Author Topic: Borked my NAND & need to rebuild from scratch  (Read 4864 times)

Offline jakes

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Borked my NAND & need to rebuild from scratch
« on: October 27, 2014, 01:38:40 am »
Hi,

I've managed to bork my on-board NAND (via fat-fingered typo to /dev/nand) & need to rebuild the system from scratch.
Fails to boot form mSD's either.

I have a UART TTL cable & connecting OK, but I'm unable to boot from my mSD to init the installation:
Code: [Select]
U-Boot SPL 2014.01 (Apr 05 2014 - 23:30:37)
Board: Cubieboard2
DRAM: 1024 MiB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
spl: not an uImage at 1600

U-Boot 2014.01 (Apr 05 2014 - 23:30:37) Arch Linux ARM

CPU:   Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   mii0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0
reading boot/uEnv.txt
** Unable to read file boot/uEnv.txt **
reading uEnv.txt
** Unable to read file uEnv.txt **
reading boot/boot.scr
** Unable to read file boot/boot.scr **
reading boot.scr
** Unable to read file boot.scr **
reading /boot/script.bin
** Unable to read file /boot/script.bin **
reading /script.bin
** Unable to read file /script.bin **
sun7i#

'?' returns a number of options, so I'm not overly concerned that it's unrecoverable - just my own ignorance.

How would I go about completely rebuilding my NAND/OS from scratch?
Possibly booting from the mSD & dd'ing an image from USB/NFS, or some semi-automated tool?

I expect I may encounter this issue again as I do my own testing/mods/R&D, but I've not found any useful resources online or in the wiki's.

Please help.

- J

Offline beerstein

  • Full Member
  • ***
  • Posts: 143
  • Karma: +4/-0
  • two beers or not two beers that is the question
    • View Profile
Re: Borked my NAND & need to rebuild from scratch
« Reply #1 on: October 27, 2014, 06:16:16 am »
Hi:
NAND is not well documented anywhere.  At least how to access it when nand boot and sd card boot is not working.
I have a CB1 which was booting and running Ok from SD card using Cubian X1. The Android on NAND also used to boot and run from nand. Then all of the sudden it stopped booting from nand and and the Cubian X1 also stopped during boot.
So - here I was sitting with a "brick".
USB port 2 (the upper one) stopped  working too and during sd boot /dev/sdc2 (mmklb0p2) was not recognized.
I suspect that this is due to a hardware problem of CB1.
Here is what I did,  to at least use the dead board:
I installed TinyCore dCore for Allwinner 10 from the TinyCore forum website. This is an extremely minimalistic Linux operating system toolkit. This microSD card now boots into CLI and with busybox you have some tools to inspect nand.
I deleted the nand partition, which was holding the Android os completely. (nuked with dd)
Then I placed the dCore program extensions onto that nand partition and I managed it to install a Linux with iceweasel and pcmanfm and window manager onto my dead CB1.

Maybe an approach like this may help you to make step forward?

Before that I tried to flash the nand wiit PhoenixSuit and Livesuit. Nothing worked.

Now i am exited about that little dCore operating system and will try to port it to CB2 and CT.
But my knowledge lacks and I need help from the forums. (Cubieboard and TinyCore)
Have a good day

Offline jakes

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Borked my NAND & need to rebuild from scratch
« Reply #2 on: October 27, 2014, 03:02:55 pm »
Thanks for the reply.
I'll give your solution a stab.

It's frustrating that such low-level details is so poorly documented - I think it's probably the biggest bugbear I have with the CB platform.

I have a fair bit of experience with the RasPi - setting up media from scratch, ELF partition & NFS net-boot, etc, but CB info is incredibly sparse; another reason why I probably not buy any more & rather spend my finite time & effort on something better like the BBB.

If anyone some technical resources I can reference, that'll be great.

Offline beerstein

  • Full Member
  • ***
  • Posts: 143
  • Karma: +4/-0
  • two beers or not two beers that is the question
    • View Profile
Re: Borked my NAND & need to rebuild from scratch
« Reply #3 on: October 28, 2014, 07:21:51 am »
please keep me posted on your progress.
I agree the RASPI is much better supported. But the Cubieboards are a different world. Info in forum needs to be better structured. and a complete intro for newbies should be established. (may be a good WIKI)

 

Offline litt

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Borked my NAND & need to rebuild from scratch
« Reply #4 on: January 13, 2015, 02:46:16 am »
Then I placed the dCore program extensions onto that nand partition and I managed it to install a Linux with iceweasel and pcmanfm and window manager onto my dead CB1.

Offline beerstein

  • Full Member
  • ***
  • Posts: 143
  • Karma: +4/-0
  • two beers or not two beers that is the question
    • View Profile
Re: Borked my NAND & need to rebuild from scratch
« Reply #5 on: January 23, 2015, 06:10:09 am »
Hi:How did you manage to bring over the extensions?
Did you download from dCore repo?