Hello,
I have a Roadlink Daughter card with a IMX8-QXP-C0 and I am using Yocto for building software.
I have 2 different M40 behaviors following if I boot from SD card or QSPI with the same Linux image.
*** Boot from SD Card ***
When the board is configured to boot from SD card (switches: 0011), I switch the board on.
I have the u-boot prompt and the M40 is running.
I have: fdt_file=imx8qxp-mek-rpmsg.dtb
When I boot the linux from u-boot, the M40 is still running without any problem.
*** Boot from QSPI ***
Now I build my yocto project with the following line added in the .../v2x-layers/meta-nxp-v2x-refbsp/conf/layer.conf file:
UBOOT_CONFIG_imx8qxpc0mek = "fspi"
After building the Yocto project, I use UUU to download the binary in the QSPI (switches : 0001):
uuu -b qspi imx-boot-imx8qxpc0mekroadlink-fspi.bin-flash_spl_flexspi
When the board is configured to boot from QSPI (switches: 0110), I switch the board on.
I have the u-boot prompt BUT the M40 is NOT running.
Also I have: fdt_file=imx8qxp-mek.dtb (and not fdt_file=imx8qxp-mek-rpmsg.dtb)
When I manually load the M40 software:
fatload mmc 1:1 0x80280000 imx8qx_m4_TCM_power_mode_switch.bin;
dcache flush; bootaux ${loadaddr} 0
The m40 works.
But if I launch the linux image which is on the SD card (so with the same linux as before but another DTB), the M40 stops.
So why the QSPI build file does not include M40 binary?
Why does Linux stop the M40 following the boot?
How could I make the M40 working?
Thank you for your help.