IMX8MP EVK bone stock freezes upon loading Cortex-M7 RPMSG firmware

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

IMX8MP EVK bone stock freezes upon loading Cortex-M7 RPMSG firmware

ソリューションへジャンプ
1,109件の閲覧回数
Slawek2
Contributor III

I have a 8MPLUSLPD4-PEVK kit I just took out of the box. Attempting to load the simple hello world firmware to the M7 with remoteproc, but upon doing so, the entire system freezes, no console input/output is possible; hard reset is necessary. I was able to replicate on another EVK too.

First tested on pre-loaded eMMC image, and subsequently tested on SD card loaded with imx-image-multimedia-imx8mpevk.wic from the LF_v5.15.71-2.2.0_images_IMX8MPEVK package. No difference.

Here are the steps I performed, using AN5317.pdf as a guide.

In Uboot: 

setenv fdtfile imx8mp-evk-rpmsg.dtb
saveenv

 

In Linux:

root@imx8mpevk:~# ls /sys/class/remoteproc/remoteproc0/
coredump device firmware name power recovery state subsystem uevent
root@imx8mpevk:~# cat /sys/class/remoteproc/remoteproc0/name
imx-rproc
root@imx8mpevk:~# echo -n /lib/firmware > /sys/module/firmware_class/parameters/path
root@imx8mpevk:~# echo -n imx8mp_m7_TCM_hello_world.elf > /sys/class/remoteproc/remoteproc0/firmware
root@imx8mpevk:~# cat /sys/class/remoteproc/remoteproc0/state
offline
root@imx8mpevk:~# echo start > /sys/class/remoteproc/remoteproc0/state
[ 43.589790] remoteproc remoteproc0: powering up imx-rproc
[ 43.597248] remoteproc remoteproc0: Booting fw image imx8mp_m7_TCM_hello_world.elf, size 153328
<FROZEN>

When the "start" command is sent, I can hear a high-pitched electronic noise emanate from the EVK.

On the contrary, I am able to execute the hello-world example directly from uboot and got the M7 "hello world." console output.

fatload mmc 2:1 0x48000000 imx8mp_m7_TCM_hello_world.bin;cp.b 0x48000000 0x7e0000 20000;
bootaux 0x7e0000

 

ラベル(1)
0 件の賞賛
返信
1 解決策
1,059件の閲覧回数
CurtisWald
NXP Employee
NXP Employee

Hi @Slawek2 ,

In addition to the application note AN5317.pdf, https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf provides additional information.

Page 44: If you choose to use remoteproc to start the remote core directly, execute run prepare_mcore in U-Boot before starting the Linux OS.

Adding this step to the steps you shared fixes the freeze condition. 

Thanks,

Curtis

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,060件の閲覧回数
CurtisWald
NXP Employee
NXP Employee

Hi @Slawek2 ,

In addition to the application note AN5317.pdf, https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf provides additional information.

Page 44: If you choose to use remoteproc to start the remote core directly, execute run prepare_mcore in U-Boot before starting the Linux OS.

Adding this step to the steps you shared fixes the freeze condition. 

Thanks,

Curtis

0 件の賞賛
返信