Build Apalis iMX8 Boot Image Scratch

Checked “Build Apalis iMX8/Colibri iMX8X Boot Image/Linux from Scratch” but this is for an old u-boot version. I want to build U-Boot 2020.04-5.1.0 present in your last yocto 5. Tried to compile branch origin/toradex_imx_v2020.04_5.4.24_2.1.0 but wont boot. Of cource I uses bl31.bin and other firware
I tried u-boot from GitHub - u-boot/u-boot: "Das U-Boot" Source Tree. Boot but no ethernet
I can’t find how you build your included yocto 5 u-boot version!
Why u-boot source is not included in yocto?

Hi @fdu,

For iMX8-based modules TF-A/SCU FW/SECO FW/imx-mkimage/U-Boot versions should correspond to each other. In your case you’re trying to re-build new U-Boot version with the old versions of TF-A/SCU FW/etc, and this unfortunately won’t work.

For toradex_imx_v2020.04_5.4.24_2.1.0 U-Boot you have to use:

  1. imx-mkimage: https://source.codeaurora.org/external/imx/imx-mkimage/log/?h=imx_5.4.24_2.1.0

  2. TF-A: http://git.toradex.com/cgit/imx-atf.git/log/?h=toradex_imx_5.4.24_2.1.0

  3. SECO FW: http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.6.3.bin

  4. SCU FW: https://github.com/toradex/i.MX-System-Controller-Firmware/blob/master/src/scfw_export_mx8qm_b0/build_mx8qm_b0/mx8qm-apalis-scfw-tcm.bin

Hope it helps!

Regards,
Igor

Same also applies to the Linux kernel version (because for SCMI/PSCI services both TF-A and SCU FW are used)