Openamp_rsc_table example for imx95_evk board.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Openamp_rsc_table example for imx95_evk board.

1,110 次查看
deepshika_borundiya
Contributor II

I am trying to run openamp_rsc_table example for imx95_evk board. On running west build command, zephyr.elf is generated. However, when I am running this elf file using remoteproc with Linux running on my A55 core, I don't see the messages sent between A Core and M Core. My M7 console only shows Zephyr Booting message and then halts. I have used yocto to generate Linux image for A55.

标记 (6)
0 项奖励
回复
8 回复数

1,096 次查看
danielchen
NXP TechSupport
NXP TechSupport

could you please let us know the BSP version you are using?

 

0 项奖励
回复

1,088 次查看
deepshika_borundiya
Contributor II
i.MX Linux Yocto Project BSP 6.12.3_1.0.0 Release
0 项奖励
回复

1,030 次查看
danielchen
NXP TechSupport
NXP TechSupport

The openamp_rsc_table example now supports imx95_evk/m7.  The A55 core must run linux-imx (tested with version 6.6.52 )

To run this sample,  I would suggest you check the "Linux setup" and "Zephyr setup" in the readme file.

Please refer to below link for more details.

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/ipc/openamp_rsc_table

 

Regards

Daniel

 

0 项奖励
回复

996 次查看
deepshika_borundiya
Contributor II
Hi Daniel,
I tried building this example. However, SAMPLE_RPMSG_CLIENT configuration is not defined. Therefore, the module: rpmsg_client_sample.ko is not generated.
While the application is building and successfully generating zephyr.elf, on running this elf on A Core (linux), it is not executing beyond Zephyr Booting message.
0 项奖励
回复

953 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @deepshika_borundiya 

 

I can find the rpmsg_client_sample.ko under below folder. Can you try it again?

/usr/lib/modules/6.12.3-lts-next-g37d02f4dcbbe/kernel/samples/rpmsg/rpmsg_client_sample.ko

 

Regards

Daniel

0 项奖励
回复

797 次查看
deepshika_borundiya
Contributor II
Hi Daniel,
I had to add rpmsg_client_sample.c separately to linux build to generate an imx-image-full image. After copying zephyr_openamp_rsc_table.bin file and generating flash.bin, I booted the board. Post this my module is loaded but not in use. Moreover, my remoteproc's state is attached and I am unable to change the state.

root@imx95-19x19-lpddr5-evk:~# lsmod | grep rpmsg_client_sample
rpmsg_client_sample 12288 0
root@imx95-19x19-lpddr5-evk:~#
root@imx95-19x19-lpddr5-evk:~# ls /dev/ | grep rpmsg
rpmsg_ctrl0
root@imx95-19x19-lpddr5-evk:~# cat /sys/devices/platform/imx95-cm7/remoteproc/remoteproc1/state
attached
root@imx95-19x19-lpddr5-evk:~# echo stop > /sys/devices/platform/imx95-cm7/remoteproc/remoteproc1/state
-sh: echo: write error: No such process
0 项奖励
回复

728 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

 

As far as I know, this is a known issue in  BSP6.6.x,   I will update you when this fix is merged.

I would suggest you refer to AN14748 for how to run application on M7 core of i.MX95.

https://docs.nxp.com/bundle/AN14748/page/topics/introduction.html

 

 

Regards

Daniel

 

 

0 项奖励
回复

590 次查看
danielchen
NXP TechSupport
NXP TechSupport

HI @deepshika_borundiya 

 

please use the latest BSP,  it fixed this issue.

danielchen_0-1755073311443.png

Regards

Daniel

0 项奖励
回复