Running I.MX7 - ARM cortex M4 automatically

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Running I.MX7 - ARM cortex M4 automatically

ソリューションへジャンプ
4,053件の閲覧回数
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.

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
2,977件の閲覧回数
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 件の賞賛
返信
5 返答(返信)
2,977件の閲覧回数
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 件の賞賛
返信
2,978件の閲覧回数
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 件の賞賛
返信
2,977件の閲覧回数
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

2,977件の閲覧回数
santoshrao
Contributor II

Hi,

      Above mentioned lines are not working.

0 件の賞賛
返信
2,977件の閲覧回数
gopinathsriniva
Contributor III

Hi,

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

0 件の賞賛
返信