root@zeus:~/.qi/nanonote/ben/latest# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 023: ID 601a:4740
Bus 001 Device 016: ID 046a:0001 Cherry GmbH My3000 Keyboard
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@zeus:~/.qi/nanonote/ben/latest# rlwrap usbboot
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
usbboot# boot
CPU data: JZ4740V1
CPU not yet booted, now booting...
Loading stage1 from '/usr/share/xburst-tools/xburst_stage1.bin'
Download stage 1 program and execute at 0x80002000
CPU data: JZ4740V1
Loading stage2 from '/usr/share/xburst-tools/xburst_stage2.bin'
Download stage 2 program and execute at 0x81c00000
CPU data: JZ4740V1
CPU data: Boot4740
Booted successfully!
CPU data: Boot4740
Configuring XBurst CPU succeeded.
usbboot# nerase 8 8 0 0
CPU data: Boot4740
Erasing No.0 device No.0 flash (start_blk 8 blk_num 8)......
Finish! Return: 00 08 00 00 00 00 00 00 (position 16)
Force erase, no bad block infomation!
usbboot# nprog 1024 openwrt-xburst-qi_lb60-uImage.bin 0 0 -n
Programing No.0 device, flen 1844587, start page 1024...
CPU data: Boot4740
Erasing No.0 device No.0 flash (start_blk 8 blk_num 4)......
Finish! Return: 00 06 00 00 00 00 00 00 (position 12)
Force erase, no bad block infomation!
Size to send 1844587, 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)
Error - can't read bulk data from Ingenic device:4096
Checking 524288 bytes... Comparing 524288 bytes - FAIL at off 4096, wrote 0x7b, read 0x0
off 4088 write: 5e 8b 6c ad dc 35 a8 16 7b d5 8c 7e c4 a0 89 18
off 4088 read: 5e 8b 6c ad dc 35 a8 16 00 00 00 00 00 00 00 00
End at Page: -1654589874
Info - skip bad block!
Writing NAND page -1654589874 len 524288...
CPU data: Boot4740
Finish! (len 524288 start_page -1654589874 page_num 128)
Error - can't read bulk data from Ingenic device:64
Checking 524288 bytes... Comparing 524288 bytes - FAIL at off 0, wrote 0xbd, read 0x4e
off 0 write: bd e7 9e 73 ee 39 cf 79 7e 9c f3 3c df 87 d2 f2
off 0 read: 4e f6 60 9d ec e5 f5 8d b5 89 35 6f c5 d0 5e 13
End at Page: -1654589874
Writing NAND page -1654589874 len 524288...
CPU data: Boot4740
Finish! (len 524288 start_page -1654589874 page_num 128)
Error - can't read bulk data from Ingenic device:64
Checking 524288 bytes... Comparing 524288 bytes - FAIL at off 0, wrote 0x44, read 0x4e
off 0 write: 44 7c 08 3f f6 6c eb 6b 9d 85 17 16 ab b5 e7 14
off 0 read: 4e f6 60 9d ec e5 f5 8d b5 89 35 6f c5 d0 5e 13
End at Page: -1654589874
Writing NAND page -1654589874 len 274432...
Error - can't retrieve XBurst CPU information: -110
Device unboot! Boot it first!