Znyq-7000综合开发文档
Fig 2
在指定的存储目录下回生成一个u-boot.bin文件,将该文件重命名为BOOT.bin,这样做是为了方便FSBL找到这个文件。
1.2.4 编译linux内核
具体编译办法详见,
bash> cd $ZYNQ_TRD_HOME/linux-xlnx
bash> git checkout -b zynq_base_trd_14_3 xilinx-14.3-build2-trd
bash> cp $ZYNQ_TRD_HOME/patches/zynq_base_trd_14_3.patch . // copy the 14.3 TRD patch from
package to dev PC
bash> git apply --stat zynq_base_trd_14_3.patch // display contents of patch bash> git apply --check zynq_base_trd_14_3.patch // check if patch can be applied bash> git am zynq_base_trd_14_3.patch // apply the patch Configure the Linux kernel for the Zynq ZC702 Base TRD. bash> make ARCH=arm zynq_base_trd_defconfig
编译好的linux内核是zynq_base_trd_14_3/linux-xlnx/arch/arm/boot/目录下的uImage。 bash> make ARCH=arm uImage 1.2.5
编译系统设备树
编译结构树的前提是你已经编译过内核文件,命令如下:
./scripts/dtc/dtc -I dts -O dtb -o devicetree.dtb ./arch/arm/boot/dts/zynq_base_trd.dts 命令执行完后会打印出一条信息,告知结构树文件存放的位置和名称。 这里打印的信息是
./arch/arm/boot/dts/zynq_base_trd.dts 将该文件拷贝出来备用。 编译文件系统
编译文件系统的命令如下
1.2.6
Znyq-7000综合开发文档
mkimage -A arm -T ramdisk -C gzip -d rootfs.cpio.gz uramdisk.image.gz
生成的文件uramdisk.image.gz 位于linux内核的根目录下,如zynq_base_trd_14_3/linux-xlnx