4. 编译U-boot
《MYS-8MMX_Linux软件开发指南.pdf》没有讲述如何单独编译U-boot,所以我看了NXP官方的文档找到了方法。
在《i.MX_Linux_User's_Guide.pdf》文档中 4.5.11 How to build U-Boot and Kernel in standalone environment
5. 生成u-boot的flash.bin文件
查看《i.MX_Linux_User's_Guide.pdf》4.5.12 How to build imx-boot image by using imx-mkimage
其中还涉及到了一些我并没有见过的文件。像5. Copy bl31.bin from ARM Trusted Firmware (imx-atf) to imx-mkimage/iMX8M/中的imx-atf中的bl31.bin 以及firmware/hdmi/cadence/signed_hdmi_imx8m.bin,copy ddr4_imem_1d.bin, ddr4_dmem_1d.bin, ddr4_imem_2d.bin, and
ddr4_dmem_2d.bin from firmware/ddr/synopsys of firmware-imx
3) 剩下两个文件夹在Yocto的编译目录下imx-atf 在imx-atf is in your yocto/build-xwayland/tmp/work/aarch64-mx8mm-poky-linux/imx-atf firmware-imx 在firmware is in your yocto/build-xwayland/tmp/work/aarch64-mx8mm-poky-linux/firmware-imx-8m/8.7-r0/firmware-imx-8.7
将这两个文件夹拷贝到mys-8mmx目录下,然后文件就齐全了