简体   繁体   English

无法在Beaglebone Black上启用PRU

[英]Cannot enable PRU on Beaglebone Black

I am trying to enable the PRU module on my BeagleBone Black, but I came across two errors. 我试图在我的BeagleBone Black上启用PRU模块,但是遇到两个错误。 The first one, is when I am trying to activate it: 第一个是当我尝试激活它时:

echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.9/slots

and I get this error: 我得到这个错误:

-sh: echo: write error: No such file or directory

And the second one comes up when I try to run a simple example, like this: 当我尝试运行一个简单的示例时,出现第二个示例,如下所示:

./PRU_memAccessPRUDataRam

with this error: 出现此错误:

./PRU_memAccessPRUDataRam: error while loading shared libraries: libprussdrv.so: cannot open shared object file: No such file or directory

Ho you have any ideea on how can I resolve this two issues? 您对如何解决这两个问题有何想法? Thank you! 谢谢!

Re first question: check whether your file system has /sys/devices/bone_capemgr.9 or /sys/devices/bone_capemgr.8. 第一个问题:检查文件系统是否具有/sys/devices/bone_capemgr.9或/sys/devices/bone_capemgr.8。 Many use the command: >sudo echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.*/slots, so it doesn't matter; 许多人使用以下命令:> sudo echo BB-BONE-PRU-01> / sys / devices / bone_capemgr。* / slots,因此无关紧要; note also the need for sudo unless you have previously done a sudo su or have logged in as root (not normally recommended). 还要注意对sudo的需要,除非您之前已经做过sudo su或已经以root身份登录(通常不建议这样做)。

Re second question: it may be related to first problem. 再问第二个问题:它可能与第一个问题有关。 Also, see: http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/05/22/bbb--working-with-the-pru-icssprussv2 . 另请参阅: http : //www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/05/22/bbb--working-with-the-pru-icssprussv2 As explained in Step 1), do an >lsmod to see if pru is enabled. 如步骤1)中所述,执行> lsmod以查看是否启用了pru。 If not, you can do a >modprobe uio_pruss or better, change the device tree loaded at bootup (am335x-boneblack.dtb) to have the pru parameter status = "disabled" changed to status = "okay". 如果不是,则可以执行> modprobe uio_pruss或更好的方法,更改启动时加载的设备树(am335x-boneblack.dtb),以将pru参数status =“ disabled”更改为status =“ okay”。 The link above, authored by Shabaz, is the most useful and understandable link I have found in about a year (on and off) of working with the BBB; 上面的链接是由Shabaz撰写的,是我在与BBB合作约一年(上下)中发现的最有用和最容易理解的链接。 it's well worth going through everything there as a tutorial. 值得将那里的所有内容作为教程进行学习。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM