Hello,
I used to work with the yocto project provided by NXP to build my imx-boot, adding some custom patch for my specific usage. I now need to swich to secure boot, and the yocto build do not permit that afaik. To be honest I'm not familiar with yocto and I did not do the original yocto work.
I followed some documentation I could find, so the currents steps are the following, based on a compilation of multiple docs :
- Generate atf-container with ~/imx-mkimage$ make SOC=iMX8QX u-boot-atf-container.img
- Sign it with cst -i cst_uboot_atf.txt -o signed-u-boot-atf-container.img then replace it in the directory imx-mkimage/iMX8QX
- compile u-boot with make (with appropriate cross compilation env)
- Copy u-boot-spl.bin from u-boot/spl/u-boot-spl.bin to imx-mkimage/iMX8QX/.
- Copy u-boot.bin from u-boot/u-bootl.bin to imx-mkimage/iMX8QX/.
- Copy scfw_tcm.bin from SCFW porting kit to imx-mkimage/iMX8QX/.
- Copy bl31.bin from Arm Trusted Firmware (imx-atf) to imx-mkimage/iMX8QX/.
- Copy the SECO firmware container images mx8qxpc0-ahabcontainer.img to imx-mkimage/iMX8QM/.
- Generate flash.bin with make SOC=iMX8QX DEV=flexspi REV=C0 flash_spl
- Sign it with cst
After this steps, i get a 1MB file, when the yocto output file "imx-boot-imx8qxpc0mekroadlink-fspi.bin-flash_spl_flexspi" is 3.3MB.
What are the missing steps ?