Install Linaro ARM Compiler
u-boot 2014.04
$ wget http://releases.linaro.org/archive/13.04/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.xz
$ sudo tar -C /opt -xJf gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.xz
$ export CC=/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/arm-linux-gnueabihf-
u-boot 2015.04
$ wget -c https://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz
$ sudo tar -C /opt -xJf gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz
$ export CC=/opt/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
Verify Installed Package
$ ${CC}gcc --version
Get u-boot sources
$ git clone git://git.denx.de/u-boot.git
u-boot v2014.04
$ git clone git@git.embedian.com:developer/smarc-t335x-uboot.git smarcfimx6-uboot
$ cd smarcfimx6-uboot
$ git checkout smarc-imx_v2014.04_3.14.28_1.0.0_ga
u-boot v2015.04
$ git clone git@git.embedian.com:developer/smarc-t335x-uboot.git smarcfimx6-uboot
$ cd smarcfimx6-uboot
$ git checkout smarc-imx_v2015.04_4.1.15_1.0.0_ga
Compile
$ cd u-boot
$ export ARCH=arm
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ make ARCH=arm CROSS_COMPILE=${CC} distclean
Configure U-Boot for target board
u-boot v2014.04
$ make smarcfimx6_quad_1g_ser0_config
$ make ARCH=arm CROSS_COMPILE=${CC} smarcfimx6_quad_1g_ser3_config
u-boot v2015.04
$ make smarcfimx6_quad_1g_ser0_defconfig
$ make ARCH=arm CROSS_COMPILE=${CC} smarcfimx6_quad_1g_ser3_defconfig
$ make
$ make ARCH=arm CROSS_COMPILE=${CC}
Put on SD
$ sudo dd if=u-boot.imx of=/dev/sd<X> bs=1k seek=1
$ sudo dd if=u-boot.imx of=/dev/sd<X> bs=512 seek=2
$ sync