Hi,
I have tested ARM cortex M4 in I.MX7 by using below commands.
fatload mmc 0:1 0x7F8000 hello_world.bin
dcache flush
bootaux 0x7F8000
The application is started on the ARM Cortex-M4 core with dmesg output in the UART2 console. Now I am trying to run this Auxiliary core automatically during the boot. In the u-boot, I can see the below information related to M4 core.
Output of printenv
loadm4image=fatload mmc ${mmcdev}:${mmcpart} 0x7F8000 ${m4image}
m4boot=run loadm4image; bootaux 0x7F8000
m4image=m4_qspi.bin
Though, M4 core is not launched automatically during the boot sequence. Can anyone help me out on this?
Thank You for support.
Solved! Go to Solution.
you have to change the dtb file used by changing the fdt_file env variable:
setenv fdt_file imx7d-sdb-m4.dtb
you should have that file on the SD card
and then
saveenv
Instead, can I ask you how to share your solution about the m4 firmware to be automatically booted?
Thanks,
Ale
Hi, When I launched the ARM cortex M4, I cannot boot the ARM cortex A7 in IMX7. It is hanging with the dmesg "Starting kernel ..." I want to boot and use the both M4 and A7 simultaneously. Any ideas on how to do this?
you have to change the dtb file used by changing the fdt_file env variable:
setenv fdt_file imx7d-sdb-m4.dtb
you should have that file on the SD card
and then
saveenv
Instead, can I ask you how to share your solution about the m4 firmware to be automatically booted?
Thanks,
Ale
Hi Alessandro,
Thank you. You solution works. I have done the below changes to run M4 firmware automatically.
Changed the "m4image=m4_qspi.bin" name to my FreeRTOS bin name and below commands in u-boot.
setenv loadimage 'run m4boot;fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}'
saveenv
Hi,
Above mentioned lines are not working.
Hi,
After u-boot customisation in the boot command, I got it working.