Greg, have you read the remoteproc kernel documentation ? I did like a year
ago, and I do want to say there is a method to halt remoteproc. But I'm not
sure, and even if I did read that. There is no telling if it's actually
been implemented yet into our kernel / kernel modules . . .

On Wed, Dec 21, 2016 at 7:21 AM, Greg <soapy-sm...@comcast.net> wrote:

> Hello, a quick question on operating PRUs via the RemoteProc framework on
> Beaglebone:
>
> Is there a command via RemoteProc which will stop execution of firmwares
> running on the PRU(s)?
>
> There are bind and unbind capability in sys:
>
> echo "4a334000.pru0" > /sys/bus/platform/drivers/pru-rproc/bind
> echo "4a338000.pru1" > /sys/bus/platform/drivers/pru-rproc/bind
>
> echo "4a334000.pru0" > /sys/bus/platform/drivers/pru-rproc/unbind
> echo "4a338000.pru1"  > /sys/bus/platform/drivers/pru-rproc/unbind
>
> The unbind appears to disconnect RPMsg (character devices gone), but it
> does not halt the PRU!
>
> So after unbind, I am doing this:
>
> sudo rmmod pru_rproc
> sudo rmmod pruss
>
> So after removing pruss the PRUs appear to halt.
> So that is a total of 3 commands to halt a PRU.
>
> So what I am looking for is a RemoteProc framework capability to halt the
> PRU(s) from user-space.
> If there is none, I will use the rmmod commands as above.  I'm hoping I am
> missing a simpler method.
>
> Regards,
> Greg
>
> --
> 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 beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/e12d6e11-3d19-469f-83bb-71f69922f125%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/e12d6e11-3d19-469f-83bb-71f69922f125%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit 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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORpqDtw5Yx7dARt1x8Qng_JCV_kqQSzvO6w%2BTdjaWQOqLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to