Binaries to reflash directly from osx

Guylhem Aznar nanonote at
Fri Apr 9 21:46:12 EDT 2010


I use OSX on my laptop, and ssh to a remote linux server to cross
compile. Since the warnings said "no virtual linux", I recompiled the
tools for OSX.

Here is the tarball, in case it can help someone/save time on the
compilation : it only contains usbboot and the dylib for libusb : the
first goes in /usr/local/bin, the second in /usr/local/lib. Add the
following from any linux binary package:

To compile on OSX, besides compiling the dependancies, I only had to
fix src/xburst-tools_version.h  which had a "-e "
appended to the first line for some reason (!)

BTW A simple suggestion : in replace the rm -fr by the following:
        DEST=`date +"%Y%m%d_%H%M%S"`
        mkdir /tmp/qi-$DEST
        mv "${WORKING_DIR}/${LOADER}" "${WORKING_DIR}/${KERNEL}"
"${WORKING_DIR}/${ROOTFS}" /tmp/qi-$DEST

It helps when the bandwith is not so good and the options haven't been
fully understood yet (1h to download again...)


$ uname -v
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010;
$ 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 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
usbboot :> boot
 CPU data: JZ4740V1
 CPU not yet booted, now booting...
 Loading stage1 from '/usr/local//share/xburst-tools/xburst_stage1.bin'
 Download stage 1 program and execute at 0x80002000
 CPU data: JZ4740V1
 Loading stage2 from '/usr/local//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 :> nprog 0 /tmp/openwrt-xburst-u-boot.bin 0 0 -n
 Programing No.0 device, flen 444660, 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 444660, transfer_size 524288
 Image type : without oob
 It will cause 1 times buffer transfer.
 Writing NAND page 0 len 446464...
 CPU data: Boot4740
 Finish! (len 446464 start_page 0 page_num 109)
 Checking 446464 bytes... no check! End at Page: 109
usbboot :>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx-x64.tbz
Type: application/octet-stream
Size: 50381 bytes
Desc: not available
URL: <>

More information about the discussion mailing list