Hi,
In the scfw porting guide it is mentioned one use-case in which the MCU boots the AP by following this sequence:
• SCU ROM loads SECO FW and SCFW
• SCU ROM loads MCU and AP code (either could be a pre-loader/SPL, AP image loaded as data only)
• SCFW is run
• SCFW starts the MCU
• MCU code creates a new partition for the AP
• MCU boots the AP via sc_pm_boot()
I'm interested in this use-case as I would like that the MCU is the one that manages the "boot partition", and creates a new one for the AP + some peripherals.
What I don't see yet is how to make that the SCFW only starts the MCU and not both MCU and AP. I've been trying to create an image with imx-mkimage that contains both the AP and MCU firmware while passing the flag SC_BD_FLAGS_NO_AP (which should mean "Don't boot AP even if requested by ROM"). But if I do that the MCU firmware doesn't boot either, and in the SCU Debug Monitor I get this message:
err: bad img part, no primary
board fault(0, 5, 0)
Could you please share some codebase for this use-case?
Thanks in advance!