NUC972---UBoot的编译

2019-07-13 07:03发布

详细资料请加QQ群索取

欢迎加入qq交流群:669495872

开发板使用uboot进行嵌入式Linux系统的引导。本节讲述如何编译uboot。   总览: 编译需求: 源码:/home/qlqcetc/nuc970bsp/03.uboot       编译工具链:arm-linux-gcc 生成文件: 1.u-boot.bin 2.u-boot-spl.bin 3.mkimage   1.进入uboot 文件夹   #cd  /home/qlqcetc/nuc970bsp/03.uboot   2.清除所有的 object code.   #make  distclean   3.设置Uboot为出厂设置。   #make  nuc970_config   4.编译 U-Boot   #make  all   编译成功后会产生 u-boot.bin 和 u-boot-spl.bin: u-boot.bin : 完整功能的 U-Boot u-boot-spl.bin : 将 Main U-Boot从 NAND flash 搬到 DDR 执行,只有 NAND boot 时才会用到,如果是 SPI boot 或 eMMC boot 只需要 u-boot.bin   u-boot-spl.bin 会产生在子目录 /nand_spl 中。     u-boot.bin 会产生在根目录中。   (注意我们用到的是u-boot.bin和u-boot-spl.bin两个文件,拓展名都是.bin)   UBoot编译完成后会在/tools子文件夹下生成mkimage工具,在编译内核生成uImage时会用到这个工具。所以使用命令   #cp  tools/mkimage   /bin   安装mkimage工具(重要)。  

注意:

        uboot的编译是在root权限下进行的编译