This shows you the differences between two versions of the page.
tutorials:cb2:development:booting_from_usb_in_fel_mode [2013/10/29 11:45] benn created |
tutorials:cb2:development:booting_from_usb_in_fel_mode [2013/12/23 14:50] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
==== Download all we need ==== | ==== Download all we need ==== | ||
- | $wget http://dl.cubieboard.org/software/a20-cubieboard/cb2-fel-usb-boot.tar.gz | ||
- | $tar -zxvf cb2-fel-usb-boot.tar.gz | ||
+ | <code console> | ||
+ | $ wget http://dl.cubieboard.org/software/a20-cubieboard/cb2-fel-usb-boot.tar.gz | ||
+ | $ tar -zxvf cb2-fel-usb-boot.tar.gz | ||
+ | </code> | ||
to check the md5sum(optional) | to check the md5sum(optional) | ||
- | $wget http://dl.cubieboard.org/software/a20-cubieboard/cb2-fel-usb-boot.tar.gz.md5 | + | <code console> |
- | $ md5sum cb2-fel-usb-boot.tar.gz | + | $ wget http://dl.cubieboard.org/software/a20-cubieboard/cb2-fel-usb-boot.tar.gz.md5 |
- | 32a1192659a8ba9a914c3bb7139412ad cb2-fel-usb-boot.tar.gz | + | $ md5sum cb2-fel-usb-boot.tar.gz |
- | $ cb2-fel-usb-boot.tar.gz.md5 | + | 32a1192659a8ba9a914c3bb7139412ad cb2-fel-usb-boot.tar.gz |
- | 32a1192659a8ba9a914c3bb7139412ad cb2-fel-usb-boot.tar.gz | + | $ cb2-fel-usb-boot.tar.gz.md5 |
+ | 32a1192659a8ba9a914c3bb7139412ad cb2-fel-usb-boot.tar.gz | ||
+ | </code> | ||
Line 43: | Line 46: | ||
After entering FEL mode, we suggest you to plug in AC adapter if you have SATA drive on board, avoiding low current from USB. | After entering FEL mode, we suggest you to plug in AC adapter if you have SATA drive on board, avoiding low current from USB. | ||
- | ==== Upload Images ==== | ||
- | $cd usbboot-fel | ||
- | $ ./usb-boot ./u-boot-spl.bin ./u-boot.bin ./uImage ./script.bin ./initramfs.img | ||
- | fel write 0x2000 ./u-boot-spl.bin | ||
- | fel exe 0x2000 | ||
- | fel write 0x4a000000 ./u-boot.bin | ||
- | fel write 0x41000000 ./bin/ramboot.scr | ||
- | fel write 0x43000000 ./script.bin | ||
- | fel write 0x44000000 ./uImage | ||
- | fel write 0x4c000000 ./initramfs.img | ||
- | fel exe 0x4a000000 | ||
+ | ==== Upload Images ==== | ||
+ | <code console> | ||
+ | $ cd usbboot-fel | ||
+ | $ ./usb-boot ./u-boot-spl.bin ./u-boot.bin ./uImage ./script.bin ./initramfs.img | ||
+ | fel write 0x2000 ./u-boot-spl.bin | ||
+ | fel exe 0x2000 | ||
+ | fel write 0x4a000000 ./u-boot.bin | ||
+ | fel write 0x41000000 ./bin/ramboot.scr | ||
+ | fel write 0x43000000 ./script.bin | ||
+ | fel write 0x44000000 ./uImage | ||
+ | fel write 0x4c000000 ./initramfs.img | ||
+ | fel exe 0x4a000000 | ||
+ | </code> | ||
==== Tips ==== | ==== Tips ==== | ||
- | *Setting EMAC | + | * Setting EMAC |
udhcpc | udhcpc | ||
- | *default user and password | + | * default user and password |
root/root | root/root | ||
- | *Change to VGA output | + | * Change to VGA output\\ <code console> |
- | + | $ cd usbboot-fel/ | |
- | $cd usbboot-fel/ | + | $ ls |
- | $ ls | + | adb-devprobe.sh bin2fex fel fex2bin initramfs.img pio u-boot.bin uImage |
- | adb-devprobe.sh bin2fex fel fex2bin initramfs.img pio u-boot.bin uImage | + | bin bootinfo fel-gpio fexc nand-part script.bin u-boot-spl.bin usb-boot |
- | bin bootinfo fel-gpio fexc nand-part script.bin u-boot-spl.bin usb-boot | + | ./bin2fex script.bin 1.fex |
- | ./bin2fex script.bin 1.fex | + | fexc-bin: script.bin: version: 0.1.2 |
- | fexc-bin: script.bin: version: 0.1.2 | + | fexc-bin: script.bin: size: 46472 (85 sections) |
- | fexc-bin: script.bin: size: 46472 (85 sections) | + | vim 1.fex (here change the output type |
- | vim 1.fex (here change the output type | + | ./fex2bin 1.fex script.bin |
- | ./fex2bin 1.fex script.bin | + | </code> |
=====Customizing===== | =====Customizing===== | ||
Line 82: | Line 86: | ||
The fel/usb-boot in this manual is X86_64bit version. If you want to use it under I386 or even arm platform, you need to compile the tools by yourself. fel/usb-boot are part of sunxi-tools, and the latest source code can be found at http://github.com/linux-sunxi/sunxi-tools.git. | The fel/usb-boot in this manual is X86_64bit version. If you want to use it under I386 or even arm platform, you need to compile the tools by yourself. fel/usb-boot are part of sunxi-tools, and the latest source code can be found at http://github.com/linux-sunxi/sunxi-tools.git. | ||
- | * Getting Source Code | + | * Getting Source Code\\ <code console> |
- | + | $ git clone git://github.com/linux-sunxi/sunxi-tools.git | |
- | $git clone git://github.com/linux-sunxi/sunxi-tools.git | + | </code> |
- | + | * Compiling\\ <code console> | |
- | * Compiling | + | $ cd sunxi-tools |
- | + | $ make | |
- | $cd sunxi-tools | + | </code> |
- | $make | + | |
and then replace the tools with the one you built | and then replace the tools with the one you built | ||
====initramfs.img==== | ====initramfs.img==== | ||
- | *Refer to http://github.com/hno/miniroot | + | |
+ | * Refer to http://github.com/hno/miniroot | ||
=== See Also === | === See Also === | ||
- | *http://linux-sunxi.org/FEL | + | |
- | *http://linux-sunxi.org/FEL/USBBoot | + | * http://linux-sunxi.org/FEL |
+ | * http://linux-sunxi.org/FEL/USBBoot | ||