Beagleboard: Erase NAND Flash And Now Won't Boot

I have a Beagle OMAP3530-GP board and I copied my kernel and rootfs to two SD card partitions and wanted to boot them.

partition 1 from SDcard: FAT32 boot partition with the following files in the same order: MLO U-boot.bin uImage uInitrd

And in section 2: root filesystem

Now I first downloaded it when I got it:

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Error: reading boot sector
Loading u-boot.bin from nand

U-Boot 2011.03 (Apr 20 2011 - 07:19:53)

OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial                                                                                                                                                                   
Beagle Rev C1/C2/C3                                                                                                                                                             
timed out in wait_for_pin: I2C_STAT=0                                                                                                                                           
No EEPROM on expansion board                                                                                                                                                    
Die ID #5738000300000000040323091100e002                                                                                                                                        
Hit any key to stop autoboot:  0                                                                                                                                                
MMC: block number 0x1 exceeds max(0x0)                                                                                                                                          
** Can't read from device 0 **                                                                                                                                                  

** Unable to use mmc 0:1 for fatload **                                                                                                                                         
MMC: block number 0x1 exceeds max(0x0)                                                                                                                                          
** Can't read from device 0 **                                                                                                                                                  

** Unable to use mmc 0:1 for fatload **                                                                                                                                         
Wrong Image Format for bootm command                                                                                                                                            
ERROR: can't get kernel image!  


I thought that in NAND it had an earlier u-boot.bin that it was reading and wanted to erase it, so at a weird moment:

OMAP3 # nandecc sw                                                                                                                                              
SW ECC selected                                                                                                                                                                 
OMAP3 # nand erase 0 80000                                                                                                                                      

NAND erase: device 0 offset 0x0, size 0x80000                                                                                                                                   
Erasing at 0x60000 -- 100% complete.                                                                                                                                            
OMAP3 # nand erase 80000 160000                                                                                                                                 

NAND erase: device 0 offset 0x80000, size 0x160000                                                                                                                              
Erasing at 0x1c0000 -- 100% complete.                                                                                                                                           


And booted again to notice only a few unreadable serial characters and the bootloader no longer fits.

Then it hit me that I might have removed X-loader 1.4.2 in NAND! I copied it to my boot partition so that the X-loader can be run with SDcard instead of NAND. However, I see the same unreadable characters on power-up :( :(

What should I do? How do I get the bootloader to work?

Thank you in advance


source to share

2 answers

You can prepare an SD card with x-loader ( MLO ) and u-boot.bin and boot from it like this:

  • Beagleboard switch
  • Copy MLO and u-boot.bin to sd card (FAT32 partition).
  • Insert SD card
  • Press and hold the user key on the board.
  • Power on board (do not release the user button yet)

This forces the beagle to boot from the sdcard. If both MLO and u-boot.bin are copied correctly to the SD card, then you should now see the u-boot prompt on the serial console. You can now load binaries from SD card and flash to nand at the u-boot prompt.



use nandecc hw before preparing NAND; it only boots from NAND in hw mode



All Articles