UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer ajcurtis84
Observer
7,910 Views
Registered: ‎04-04-2016

samples only run once!

Hello,

 

I have followed the instructions in UG1186 and successfully built and ran the echo_test using Petalinux v2015.4. The problem is that it only runs once. After exiting the echo_test application, /dev/rpmsg0 disappears. All the device drivers are still loaded. (although the messages when echo_test exists indicates that it should be been unloaded) I am unable to unload the modules manually. Recreating /dev/rpmsg0 does not work either.

 

Is there a solution?

 

TIA

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
7,867 Views
Registered: ‎08-01-2008

Re: samples only run once!

check these links
http://www.wiki.xilinx.com/OpenAMP
https://forums.xilinx.com/t5/Embedded-Linux/Zynq-Petalinux-hangs-on-GPIO-access/td-p/645008
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Observer ajcurtis84
Observer
7,653 Views
Registered: ‎04-04-2016

Re: samples only run once!

Here is the answer:

 

The kernel modules must be unloaded and then reloaded each time an AMP application is run. Using "rmmod <kernel module>" does not unload the modules correctly. However using "modprobe -r" does work.

 

Here are the commands:

modprobe -r rpmsg_user_dev_driver
modprobe
-r zynq_remoteproc

Note: This is applicable for the Zync7000 only. 

0 Kudos