uboot:ftp://ftp.denx.de/pub/u-boot/
GNU Arm Embedded Toolchain(Version 7-2017-q4-major):https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
vim安装:http://blog.hlcert.com/619.html
解压缩:
sudo tar jxvf gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 -C /opt/
环境变量设置:
1、vim /etc/profile
2、最下边加上:export PATH=$PATH:/opt/gcc-arm-none-eabi-7-2017-q4-major/bin/
3、source /ect/profile
4、echo $PATH,打印内容包含:/opt/gcc-arm-none-eabi-7-2017-q4-major/bin/ 则设置成功
uboot编译:
1、cd <your uboot path>
2、vim Makefile,在如下位置加入交叉编译工具
3、make smdk5420_defconfig
4、make,如果不报错说明你已经搭建好环境