Hi Greg,

It has been quite a while since I’ve worked on PRU, but with the TI kernel, are 
you not talking about pruss_remoteproc? I don’t have a pru_rproc in my 
remoteproc folder. 

root@beaglebone:/lib/modules/4.1.13-ti-r33/kernel/drivers/remoteproc# ls
omap_remoteproc.ko  pruss_remoteproc.ko

Also, the reason why you cannot remove the KM is because it is still in use. 
When you use rmmod, you are using the force option which just yanks the KM 
irrespective of whether it is running or has dependencies, which can cause all 
kinds of problems. Here is how to do this safely.

oot@beaglebone:~# modprobe -r pruss_remoteproc 
modprobe: FATAL: Module pruss_remoteproc is in use.
root@beaglebone:~# lsmod |grep pru
rpmsg_pru               5295  0 
virtio_rpmsg_bus       15318  1 rpmsg_pru
pruss_remoteproc       17160  2 
root@beaglebone:~# modprobe -r rpmsg_pru
root@beaglebone:~# modprobe -r virtio_rpmsg_bus
root@beaglebone:~# modprobe -r pruss_remoteproc 


Regards,
John




> On May 28, 2016, at 8:18 PM, Greg <[email protected]> wrote:
> 
> That's a good question.  It doesn't work.  I am running as root.
> Here is what I see:
> 
> modprobe -r pru_rproc
> modprobe: FATAL: Module pru_rproc is in use.
> 
> However, this works perfectly:
> rmmod -f /lib/modules/4.1.18-ti-r53/kernel/drivers/remoteproc/pru_rproc.ko
> 
> Also, to insert the modules:
> modprobe pru_rproc
> 
> Does indeed work.
> modprobe -r seems to be a problem.  Others have reported this same behavior.
> 
> Greg
> 
> On Saturday, May 28, 2016 at 1:56:03 PM UTC-4, john3909 wrote:
> Why not use modprobe so you don’t have to bother with paths and dependencies?
> 
> To install
> modprobe pru_rproc
> 
> To remove
> modprobe -r pru_rproc
> 
> Regards,
> John
> 
> 
> -- 
> For more options, visit http://beagleboard.org/discuss 
> <http://beagleboard.org/discuss>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/daa94402-d23c-4a09-a2e9-0673a1c4cc55%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beagleboard/daa94402-d23c-4a09-a2e9-0673a1c4cc55%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/A84C2B58-8FB0-4AAF-AD25-CE3B071D4C7F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to