Boot Error after flashing (Wrong Image Format for bootm command)

Klaus Fuerth Klaus.Fuerth at gmx.de
Wed Feb 24 05:38:27 EST 2010


Hi David!

on 2010-02-24 10:45 David Reyes Samblas Martinez wrote:
> First for future use issues, like this one please use the discussion
> list , I have added to cross posting, just to have things a little bit
> in order. The discusion list has been just created so I understand you
> post here, I'm just let you know :)
>    
Ok, sorry for posting to the wrong list. I'll stay here...

> Then, to the point.
> Have you erase the whole NAND before flashing?
>    
Yes, I used the reflash_ben.sh script.

I tried your suggested commands and include the output from the tool.
Summery:
   Erasing said: "There are marked bad blocks: 4"
   Flashing uImage: "Skip a old bad block !" (see below)
Could this cause the error?

> Seems than  roll back to previous distro, or if you have also info
> stored on NAND, cause some problems if not doin so, I guess because
> information to flash is smaller , and the previous info on the NAND
> remaining  mess the our little beast.
>
> So here is the procedure to follow than has recovered my Ben from bricked state.
>
> sudo usbboot -c "boot;nerase 0 4096 0 0"
>    
My log:
$ sudo usbboot -c "boot;nerase 0 4096 0 0"
usbboot - Ingenic XBurst USB Boot Utility
(c) 2009 Ingenic Semiconductor Inc., Qi Hardware Inc., Xiangfu Liu, 
Marek Lindner
This program is Free Software and comes with ABSOLUTELY NO WARRANTY.

Now checking whether all configure args valid: YES
Current device information:
CPU type is Ingenic XBurst Jz4740
Crystal work at 12MHz, the CCLK up to 252MHz and PMH_CLK up to 84MHz
SDRAM Total size is 32 MB, work in 4 bank and 16 bit mode
Nand page per block 128, Nand page size 4096, ECC offset in OOB 12, bad 
block offset in OOB 0, bad block page 127, use 1 plane mode
  Execute command: boot
  CPU data: Boot4740
  Already booted.
  Execute command: nerase 0 4096 0 0
  CPU data: Boot4740
  Erasing No.0 device No.0 flash (start_blk 0 blk_num 4096)......
  Finish! Return: 00 02 08 00 00 00 00 00 (position 4100)
  There are marked bad blocks: 4

> sudo usbboot -c "nprog 0 openwrt-xburst-u-boot.bin 0 0 -n"
>    
seems to be ok, nothing special on output
> sudo usbboot -c "nprog 1024 openwrt-xburst-uImage.bin 0 0 -n"
>    
My log:
$ sudo usbboot -c "nprog 1024 openwrt-xburst-uImage.bin 0 0 -n"
usbboot - Ingenic XBurst USB Boot Utility
(c) 2009 Ingenic Semiconductor Inc., Qi Hardware Inc., Xiangfu Liu, 
Marek Lindner
This program is Free Software and comes with ABSOLUTELY NO WARRANTY.

Now checking whether all configure args valid: YES
Current device information:
CPU type is Ingenic XBurst Jz4740
Crystal work at 12MHz, the CCLK up to 252MHz and PMH_CLK up to 84MHz
SDRAM Total size is 32 MB, work in 4 bank and 16 bit mode
Nand page per block 128, Nand page size 4096, ECC offset in OOB 12, bad 
block offset in OOB 0, bad block page 127, use 1 plane mode
  Execute command: nprog 1024 openwrt-xburst-uImage.bin 0 0 -n
  Programing No.0 device, flen 1771612, start page 1024...
  CPU data: Boot4740
  Erasing No.0 device No.0 flash (start_blk 8 blk_num 4)......
  Finish! Return: 00 08 00 00 00 00 00 00 (position 16)
  There are marked bad blocks: 4
  Size to send 1771612, transfer_size 524288
  Image type : without oob
  It will cause 4 times buffer transfer.
  Writing NAND page 1024 len 524288...
  CPU data: Boot4740
  Finish! (len 524288 start_page 1024 page_num 128)
  Checking 524288 bytes... Comparing 524288 bytes - SUCCESS
  End at Page: 1408
  Skip a old bad block !
  Writing NAND page 1408 len 524288...
  CPU data: Boot4740
  Finish! (len 524288 start_page 1408 page_num 128)
  Checking 524288 bytes... Comparing 524288 bytes - SUCCESS
  End at Page: 1536
  Writing NAND page 1536 len 524288...
  CPU data: Boot4740
  Finish! (len 524288 start_page 1536 page_num 128)
  Checking 524288 bytes... Comparing 524288 bytes - SUCCESS
  End at Page: 1664
  Writing NAND page 1664 len 200704...
  CPU data: Boot4740
  Finish! (len 200704 start_page 1664 page_num 49)
  Checking 200704 bytes... Comparing 200704 bytes - SUCCESS
  End at Page: 1713

> sudo usbboot -c "nprog 2048 openwrt-xburst-rootfs.ubi 0 0 -n"
>    
nothing special at output
> Please try and report back
>
>    
Nothing changed. To be shure I flashed a second time with a different 
usb-cable (very short, double powered) at another usb. Still not working.

Klaus





More information about the discussion mailing list


interactive