<span id="_xhe_cursor"></span><span id="_xhe_temp" width="0" height="0" />sudo apt-get install lib32z1//安装32位兼容库 cd ~ git clone https://github.com/xupsh/CodeSourcery.git//安装交叉编译工具链 sudo gedit ~/.bashrc 在末尾添加 export ARCH=arm export CROSS_COMPILE=arm-xilinx-linux-gnueabi- export PATH=$PATH:~/CodeSourcery/bin 关闭文件 arm-xilinx-linux-gnueabi-gcc -v//验证安装 sudo apt-get install device-tree-compiler//安装dtc工具用于编译u-boot sudo apt-get install u-boot-tools//安装uboot工具用于编译uramdisk.image.gz