?Table of ContentsU-bootToolchainClick one of the site to download toolchain to build U-boot. Please note that this toolchain is for U-boot, there is another toolchain to build Linux kernel. Once the download is done, extract the tarball to /opt/toolchains/. If the '/opt/toolchains' directory does not exist in host pc, then create the directory. $ sudo mkdir -p /opt/toolchains $ sudo tar xzvf arm-eabi-4.4.3.tar.gz -C /opt/toolchains/ In order to add the toolchain path to PATH, paste below lines to $HOME/.bashrc. export PATH=/opt/toolchains/arm-eabi-4.4.3/bin:$PATH You can apply the change if you login again or import to apply this change, login again or evaluate $HOME/.bashrc with source command. $ source ~/.bashrc You can check if the toolchain installed above works properly while checking the version of toolchain. If you can find gcc version 4.4.3(GCC) at the end of the line, the toolchain is well installed. $ arm-eabi-gcc -v Using built-in specs. Target: arm-eabi Configured with: /home/jingyu/projects/gcc/android-toolchainsrc/build/../gcc/gcc-4.4.3/configure --prefix=/usr/local --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/home/jingyu/projects /gcc/toolchain_build/obj/temp-install --with-mpfr=/home/jingyu/projects/gcc/toolchain_build/obj/temp-install --disable-libssp --enable -threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disa ble-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs --with-gcc-version=4.4.3 --with -binutils-version=2.19 --with-gmp-version=4.2.4 --with-mpfr-version=2.4.1 --with-gdb-version=7.1.x --with-arch=armv5te --with-multilib -list=mandroid --with-sysroot=/usr/local/google/home/android/cupcake_rel_root --program-transform-name='s&^&arm-eabi-&' Thread model: single gcc version 4.4.3 (GCC) Checkout & compileYou can checkout U-boot source tree from Hardkernel's Github. $ git clone https://github.com/hardkernel/u-boot.git -b odroid-v2010.12 Before you compile U-boot, you must configure for ODROID-U3 with following command. $ cd u-boot $ make smdk4412_config And finally you can compile U-boot. $ make Then you can start to build u-boot image, u-boot.bin. This will create u-boot/u-boot.bin. You can also add -j option for fast compile. Installation
ODROID-U3 boot load must have the secure booting process and there are 4 binary files.(bl1.HardKernel, bl2.HardKernel, u-boot.bin, tzsw.HardKernel)
Installation to blank cardWe provide the script, sd_fuse/sd_fusing.sh, this helps you to install the bootloader into your blank card MicroSD.
$ cd sd_fuse $ ./sd_fusing.sh <device/path/of/your/card> Installation using fastbootIf you can boot your ODROID-U3 already and want to install a new u-boot.bin built by you. Fastboot helps you to install a u-boot.bin into your board. u-boot.bin install $ sudo fastboot flash bootloader u-boot.bin bl1.bin install $ sudo fastboot flash fwbl1 sd_fuse/bl1.HardKernel bl2.bin install $ sudo fastboot flash bl2 sd_fuse/bl2.HardKernel tzsw.bin install $ sudo fastboot flash tzsw sd_fuse/tzsw.HardKernel If installation is done, you care reboot your ODROID-U3 with fastboot. $ sudo fastboot reboot Updating from LinuxYou also can update U-boot from Linux with dd command. After building U-boot, copy u-boot.bin into your ODROID-U3. Then do the command below in order to flash your U-boot image to MicroSD. $ sudo dd if=u-boot.bin of=<device/path/of/your/card> seek=63 $ sudo sync A tip for the TFTP bootingHere is a modified u-boot to support the TFTP booting. Special thanks to Surian and kangur91 in our community forum. Uboot-for-TFTP |
|