Running I.MX7 - ARM cortex M4 automatically

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running I.MX7 - ARM cortex M4 automatically

Jump to solution
2,518 Views
gopinathsriniva
Contributor III

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.

Labels (2)
Tags (2)
0 Kudos
1 Solution
1,442 Views
Rhapsody
Contributor III

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

View solution in original post

0 Kudos
5 Replies
1,442 Views
gopinathsriniva
Contributor III

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? 

0 Kudos
1,443 Views
Rhapsody
Contributor III

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

0 Kudos
1,442 Views
gopinathsriniva
Contributor III

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

1,442 Views
santoshrao
Contributor II

Hi,

      Above mentioned lines are not working.

0 Kudos
1,442 Views
gopinathsriniva
Contributor III

Hi,

After u-boot customisation in the boot command, I got it working.  

0 Kudos