PRUSS under Debian beta

202 views
Skip to first unread message

Sherman Boyd

unread,
Jun 27, 2014, 4:03:32 PM6/27/14
to beagl...@googlegroups.com
Hello.  I'm trying to get PRUSS working with the new Debian beta image.  I've got things working on Angstrom, but not on Debian.  I'm using kernel 3.8.13-bone50, is anybody else using PRUSS on this kernel?

Charles Kerr

unread,
Jun 27, 2014, 4:53:47 PM6/27/14
to beagl...@googlegroups.com
Yes.  Did you enable the PRU ?  

if you do the following: cat /sys/devices/bone_capemgr.9/slots
Does it show the PRU enabled?

If not, look in /lib/firmware for a dtbo that has the PRU , and do an:echo PRUDTBOFILE > /sys/devices/bone_capemgr.9/slots

Sherman Boyd

unread,
Jul 1, 2014, 4:50:10 PM7/1/14
to beagl...@googlegroups.com
It's not showing as enabled:

# lsmod
Module                  Size  Used by
uio_pruss               4066  0
g_multi                50407  2
libcomposite           15028  1 g_multi
mt7601Usta            641118  0

# cat /sys/devices/bone_capemgr.9/slots
 0: 54:PF---
 1: 55:PF---
 2: 56:PF---
 3: 57:PF---
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

# echo /lib/firmware/BB-BONE-PRU-01-00A0.dtbo > /sys/devices/bone_capemgr.9/slots
-bash: echo: write error: No such file or directory

But the command doesn't work.  Am I doing it right?


Best regards,

Sherman Boyd



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/hdB-hDLDSrE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Nelson

unread,
Jul 1, 2014, 4:54:07 PM7/1/14
to Beagle Board
On Tue, Jul 1, 2014 at 3:49 PM, Sherman Boyd <sherma...@gmail.com> wrote:
> It's not showing as enabled:
>
> # lsmod
> Module Size Used by
> uio_pruss 4066 0
> g_multi 50407 2
> libcomposite 15028 1 g_multi
> mt7601Usta 641118 0
>
> # cat /sys/devices/bone_capemgr.9/slots
> 0: 54:PF---
> 1: 55:PF---
> 2: 56:PF---
> 3: 57:PF---
> 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
> 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>
> # echo /lib/firmware/BB-BONE-PRU-01-00A0.dtbo >
> /sys/devices/bone_capemgr.9/slots
> -bash: echo: write error: No such file or directory

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Privileged_echo

sudo sh -c "echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.9/slots"

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Sherman Boyd

unread,
Jul 1, 2014, 5:25:18 PM7/1/14
to beagl...@googlegroups.com
Thank you.

root@beaglebone:~# cat /sys/devices/bone_capemgr.9/slots               0: 54:PF---
 1: 55:PF---
 2: 56:PF---
 3: 57:PF---
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
root@beaglebone:~# modprobe uio_pruss
root@beaglebone:~# echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.9/slots
root@beaglebone:~# cat /sys/devices/bone_capemgr.9/slots               0: 54:PF---
 1: 55:PF---
 2: 56:PF---
 3: 57:PF---
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-PRU-01

Best regards,

Sherman Boyd



Bit Pusher

unread,
Apr 23, 2015, 12:18:07 PM4/23/15
to beagl...@googlegroups.com
We have been using the PRUSS's extensively on bone70; with mostly success, but every so often, memory gets corrupted, and we have to reboot. This behavior is aperiodic and we have not been able to track it down yet (the PRUSS's can write anywhere in memory - they could be a significant security risk - for example changing some bytes loaded at PRUSS startup could be used to take over the BBB). That is until today (see my recent post), where some input connections to the header that we want to use as PRUSS inputs is causing the BBB to freeze at boot. Generally, however, the PRUSS's seem to work as expected (make sure you assemble with -V2)

William Hermans

unread,
Apr 23, 2015, 2:50:05 PM4/23/15
to beagl...@googlegroups.com
(the PRUSS's can write anywhere in memory - they could be a significant security risk - for example changing some bytes loaded at PRUSS startup could be used to take over the BBB).

Only if you're incompetent where system security is concerned. 

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages