Openamp_rsc_table example for imx95_evk board.

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

Openamp_rsc_table example for imx95_evk board.

Jump to solution
2,197 Views
deepshika_borundiya
Contributor III

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.

0 Kudos
Reply
1 Solution
1,677 Views
danielchen
NXP TechSupport
NXP TechSupport

HI @deepshika_borundiya 

 

please use the latest BSP,  it fixed this issue.

danielchen_0-1755073311443.png

Regards

Daniel

View solution in original post

8 Replies
2,183 Views
danielchen
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply
2,175 Views
deepshika_borundiya
Contributor III
i.MX Linux Yocto Project BSP 6.12.3_1.0.0 Release
0 Kudos
Reply
2,117 Views
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 Kudos
Reply
2,083 Views
deepshika_borundiya
Contributor III
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 Kudos
Reply
2,040 Views
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 Kudos
Reply
1,884 Views
deepshika_borundiya
Contributor III
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 Kudos
Reply
1,815 Views
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 Kudos
Reply
1,678 Views
danielchen
NXP TechSupport
NXP TechSupport

HI @deepshika_borundiya 

 

please use the latest BSP,  it fixed this issue.

danielchen_0-1755073311443.png

Regards

Daniel

%3CLINGO-SUB%20id%3D%22lingo-sub-2133303%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EOpenamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133303%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20run%20openamp_rsc_table%20example%20for%20imx95_evk%20board.%20On%20running%20west%20build%20command%2C%20zephyr.elf%20is%20generated.%20However%2C%20when%20I%20am%20running%20this%20elf%20file%20using%20remoteproc%20with%20Linux%20running%20on%20my%20A55%20core%2C%20I%20don't%20see%20the%20messages%20sent%20between%20A%20Core%20and%20M%20Core.%20My%20M7%20console%20only%20shows%20Zephyr%20Booting%20message%20and%20then%20halts.%20I%20have%20used%20yocto%20to%20generate%20Linux%20image%20for%20A55.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252659%22%20target%3D%22_blank%22%3E%40deepshika_borundiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Eplease%20use%20the%20latest%20BSP%2C%26nbsp%3B%20it%20fixed%20this%20issue.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielchen_0-1755073311443.png%22%20style%3D%22width%3A%20714px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielchen_0-1755073311443.png%22%20style%3D%22width%3A%20714px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352173iD37EA67B25513AF3%2Fimage-dimensions%2F714x125%3Fv%3Dv2%22%20width%3D%22714%22%20height%3D%22125%22%20role%3D%22button%22%20title%3D%22danielchen_0-1755073311443.png%22%20alt%3D%22danielchen_0-1755073311443.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147725%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147725%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAs%20far%20as%20I%20know%2C%20this%20is%20a%20known%20issue%20in%26nbsp%3B%20BSP6.6.x%2C%26nbsp%3B%20%26nbsp%3BI%20will%20update%20you%20when%20this%20fix%20is%20merged.%3C%2FP%3E%0A%3CP%3EI%20would%20suggest%20you%20refer%20to%20AN14748%20for%20how%20to%20run%20application%20on%20M7%20core%20of%20i.MX95.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14748%2Fpage%2Ftopics%2Fintroduction.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14748%2Fpage%2Ftopics%2Fintroduction.html%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20Daniel%2C%3CBR%20%2F%3EI%20had%20to%20add%20rpmsg_client_sample.c%20separately%20to%20linux%20build%20to%20generate%20an%20imx-image-full%20image.%20After%20copying%20zephyr_openamp_rsc_table.bin%20file%20and%20generating%20flash.bin%2C%20I%20booted%20the%20board.%20Post%20this%20my%20module%20is%20loaded%20but%20not%20in%20use.%20Moreover%2C%20my%20remoteproc's%20state%20is%20attached%20and%20I%20am%20unable%20to%20change%20the%20state.%3CBR%20%2F%3E%3CBR%20%2F%3Eroot%40imx95-19x19-lpddr5-evk%3A~%23%20lsmod%20%7C%20grep%20rpmsg_client_sample%3CBR%20%2F%3Erpmsg_client_sample%2012288%200%3CBR%20%2F%3Eroot%40imx95-19x19-lpddr5-evk%3A~%23%3CBR%20%2F%3Eroot%40imx95-19x19-lpddr5-evk%3A~%23%20ls%20%2Fdev%2F%20%7C%20grep%20rpmsg%3CBR%20%2F%3Erpmsg_ctrl0%3CBR%20%2F%3Eroot%40imx95-19x19-lpddr5-evk%3A~%23%20cat%20%2Fsys%2Fdevices%2Fplatform%2Fimx95-cm7%2Fremoteproc%2Fremoteproc1%2Fstate%3CBR%20%2F%3Eattached%3CBR%20%2F%3Eroot%40imx95-19x19-lpddr5-evk%3A~%23%20echo%20stop%20%26gt%3B%20%2Fsys%2Fdevices%2Fplatform%2Fimx95-cm7%2Fremoteproc%2Fremoteproc1%2Fstate%3CBR%20%2F%3E-sh%3A%20echo%3A%20write%20error%3A%20No%20such%20process%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2139925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2139925%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252659%22%20target%3D%22_blank%22%3E%40deepshika_borundiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20can%20find%20the%20rpmsg_client_sample.ko%20under%20below%20folder.%20Can%20you%20try%20it%20again%3F%3C%2FP%3E%0A%3CP%3E%2Fusr%2Flib%2Fmodules%2F6.12.3-lts-next-g37d02f4dcbbe%2Fkernel%2Fsamples%2Frpmsg%2Frpmsg_client_sample.ko%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20Daniel%2C%3CBR%20%2F%3EI%20tried%20building%20this%20example.%20However%2C%20SAMPLE_RPMSG_CLIENT%20configuration%20is%20not%20defined.%20Therefore%2C%20the%20module%3A%20rpmsg_client_sample.ko%20is%20not%20generated.%3CBR%20%2F%3EWhile%20the%20application%20is%20building%20and%20successfully%20generating%20zephyr.elf%2C%20on%20running%20this%20elf%20on%20A%20Core%20(linux)%2C%20it%20is%20not%20executing%20beyond%20Zephyr%20Booting%20message.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20openamp_rsc_table%20example%20now%20supports%20imx95_evk%2Fm7.%26nbsp%3B%20The%20A55%20core%20must%20run%20linux-imx%20(tested%20with%20version%206.6.52%20)%3C%2FP%3E%0A%3CP%3ETo%20run%20this%20sample%2C%26nbsp%3B%20I%20would%20suggest%20you%20check%20the%20%22Linux%20setup%22%20and%20%22Zephyr%20setup%22%20in%20the%20readme%20file.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20below%20link%20for%20more%20details.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Ftree%2Fmain%2Fsamples%2Fsubsys%2Fipc%2Fopenamp_rsc_table%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Ftree%2Fmain%2Fsamples%2Fsubsys%2Fipc%2Fopenamp_rsc_table%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133421%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133421%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX%20Linux%20Yocto%20Project%20BSP%206.12.3_1.0.0%20Release%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Openamp_rsc_table%20example%20for%20imx95_evk%20board.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ecould%20you%20please%20let%20us%20know%20the%20BSP%20version%20you%20are%20using%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E