Hi Rich,

I have this working on BBB using V4.1.6-bone15, but I should receive an x15 
sometime today and it will take me a few days to do testing. There is however 
one hick-up that needs input from Pantelis to resolve. When BBB first boots, 
remoteproc/virtio_rpmsg_bus load automatically and the PRU firmware loads as 
before. The sample code under samples/rpmsg work work perfectly. However, if I 
uninstall remoteproc.ko and then reinstall it, I get a kernel exception. 

Investigating further, I found that _omap_device_notifier_call sets 
pdev->archdata.od = NULL when the pruss_remoteproc is uninstalled, but when I 
install the pruss_remoteproc, pruss_probe tries to run 
omap_device_deassert_hardreset which references archdata.od which is is now 
NULL. 

Looking at TI’s V3.14 kernel, it does not set archdata.od = NULL, so I can 
uninstall and install the KO without issue. 

In the V4.1 code, if I comment out lines 57 & 60 [1], pruss_remoteproc 
uninstalls and installs without error.

My question is how do I recreate archdata.od before pruss_probe executes 
omap_device_deassert_hardreset? Given that this patch was authored by Pantelis, 
I figured you would be the best person to answer my question.

[1] 
https://github.com/RobertCNelson/linux-dev/blob/master/patches/bbb_overlays/0006-arm-omap-Proper-cleanups-for-omap_device.patch


Regards,
John




> On Oct 18, 2015, at 7:11 PM, Robert Nelson <[email protected]> wrote:
> 
> On Sun, Oct 18, 2015 at 8:52 PM, Rick Mann <[email protected]> wrote:
>> 
>>> On Oct 18, 2015, at 17:11 , Robert Nelson <[email protected]> wrote:
>>> 
>>> On Sun, Oct 18, 2015 at 7:05 PM, Rick Mann <[email protected]> wrote:
>>>> Pruss is still broken in the 4.1.10-ti-r21 kernel, right?
>>>> 
>>>> Does anyone know if the new remoteproc thing can be used to download 
>>>> existing firmware that was built with pruss in mind, and how I could 
>>>> modify my code to use that instead?
>>>> 
>>> 
>>> another user got it working with remoteproc, he's just waiting for a
>>> beta-x15 to arrive so that they will work the same on both boards..
>> 
>> Oh, do you remember who that was?
> 
> Yeap, he will post it when he's ready.
> 
> Regards,
> 
> -- 
> Robert Nelson
> https://rcn-ee.com/
> 
> -- 
> 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].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to