Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prussdrv_open open failed #16

Closed
vmayoral opened this issue Jan 31, 2014 · 12 comments
Closed

prussdrv_open open failed #16

vmayoral opened this issue Jan 31, 2014 · 12 comments

Comments

@vmayoral
Copy link

I've been able to compile everything following these steps but i get the following error when trying to run the examples:

./PRU_memAccessPRUDataRam
INFO: Starting PRU_memAccessPRUDataRam example.
prussdrv_open open failed
@olsonse
Copy link
Contributor

olsonse commented Jan 31, 2014

Not that this is the (only) problem, but have did you run this as root?

@vmayoral
Copy link
Author

@olsonse thanks for following up, yes i did. It's not that.

@olsonse
Copy link
Contributor

olsonse commented Jan 31, 2014

can you give me the commit hash that your code is at?

@vmayoral
Copy link
Author

vmayoral commented Feb 1, 2014

Last one 5018f39.

Don't think it matters but I copied the libprussdrv* libs located at am335x_pru_package/pru_sw/app_loader/libto /lib. Otherwise executing:

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

@vmpn
Copy link

vmpn commented Feb 1, 2014

Did you enable the PRU?

I use the following command:

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

@olsonse
Copy link
Contributor

olsonse commented Feb 1, 2014

The .so libs were meant currently only for the python wrapper. That could be a problem. But your error you showed with the library not loading is not consistent with the error "prussdrv_open open failed" error you got earlier. Did you upgrade in the mean time, or change how you built the code?

@vmayoral
Copy link
Author

vmayoral commented Feb 1, 2014

@vmpn @olsonse thanks for your support.

The problem was that the PRU was not enabled. echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.8/slots fixed it.

A simple step-by-step guide of these first steps is available here.

Bests

@vmayoral vmayoral closed this as completed Feb 1, 2014
@andrelutza
Copy link

I was trying the same thing and it took me to another problem. When I try to enable the PRU, I get this error:

root@beaglebone:~# echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.8/slots
sh: echo: write error: No such file or directory

Did you come across the same problem? How can I resolv it?
Thank you.

@CoryStewart
Copy link

@andrelutze
Sometimes you need to use /sys/devices/bone_capemgr.9.
Do an 'ls' in that dir to see what you have.

@andrelutza
Copy link

@CoryStewart
That doesn't seem to be the problem (I have the folder called "bone_capemgr.8"), moreover, autocomplete does its job... Can you give me any other ideas?

@andrelutza
Copy link

Also, when I try to run ./PRU_memAccessPRUDataRam , I get this:
prussdrv_open open failed
Any ideas? Thank you.

@Hitheshkaranth
Copy link

Hitheshkaranth commented Feb 6, 2018

I was trying the same thing and it took me to another problem. When I try to enable the PRU, I get this error:

root@beaglebone:~# echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.8/slots
sh: echo: write error: No such file or directory

Did you come across the same problem? How can I resolv it?
Thank you.

Replying to this problem --->

  • Make sure you add the .dtbo file upon compilation to /lib/firmware
  • in SU mode "echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.8/slots"
  • if you are using Beaglebone Black then " echo BB-BONE-PRU-01 >/sys/devices/platform/bone_capemgr/slots"
    Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants