# usbboot -c "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 setup information:
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: nerase 0 4096 0 0
CPU data: Boot4740
Erasing No.0 device No.0 flash (start_blk 0 blk_num 4096)......
Finish! Return: 80 00 08 00 00 00 00 00 (position 4097)
Force erase, no bad block infomation!
# usbboot -c "nprog 0 openwrt-xburst-qi_lb60-u-boot.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 setup information:
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 0 openwrt-xburst-qi_lb60-u-boot.bin 0 0 -n
Programing No.0 device, flen 452136, start page 0...
CPU data: Boot4740
Erasing No.0 device No.0 flash (start_blk 0 blk_num 1)......
Finish! Return: 80 00 00 00 00 00 00 00 (position 1)
Force erase, no bad block infomation!
Size to send 452136, transfer_size 524288
Image type : without oob
It will cause 1 times buffer transfer.
Writing NAND page 0 len 454656...
CPU data: Boot4740
Finish! (len 454656 start_page 0 page_num 111)
Checking 454656 bytes... Comparing 454656 bytes - FAIL at off 2048, wrote 0x0, read 0xff
off 2040 write: 00 00 45 a0 ff 00 c6 30 00 00 43 a0 ff 00 e7 30
off 2040 read: 00 00 45 a0 ff 00 c6 30 ff ff 00 00 00 ff e8 ae
End at Page: 111