-
Notifications
You must be signed in to change notification settings - Fork 159
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
PRU Permissions denied. Cannot access servos/escs V1.0.5 #210
Comments
can you paste the output of |
debian@beaglebone: |
Yeah, I can link it here. This is the output of the message. |
This means that the remoteproc drivers don't really seem to be the issue here. The line Probably @jadonk might be able to confirm, but I believe you need to load the dtb of this: https://github.com/DhruvaG2000/BeagleBoard-DeviceTrees/blob/v4.19.x-ti-overlays/src/arm/am335x-roboticscape.dtsi overlay |
Try following the workflow described here: https://github.com/beagleboard/librobotcontrol/blob/master/device_tree/install_dt_manually.sh |
Hi, thank you for responding here is the text file. #Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0 uname_r=4.19.94-ti-r42 ###U-Boot Overlays### ###Overide capes with eeprom ###Additional custom capes ###Custom Cape ###Disable auto loading of virtual capes (emmc/video/wireless/adc) ###PRUSS OPTIONS ###Cape Universal Enable ###Debug: disable uboot autoload of Cape ###U-Boot fdt tweaks... (60000 = 384KB) cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet #In the event of edid real failures, uncomment this next line: ##enable Generic eMMC Flasher: debian@beaglebone:/boot$ |
To my knowledge I hope I havn't loaded anything that would affect the librobotcontrol library. When I installed the image, I had version 1.0.4 and used sudo apt-get update, the servo library was unavailable here. Then I used sudo apt-get install librobotcontrol which installed version 1.0.5 and the problem still persisted. I hence uninstalled the library and reinstalled it. |
thanks for that, we will have to dig a little deeper as "The overlay and device tree source files here don't actually get compiled or installed since they are part of the beagleboard image now" so you should not need to explicitly do that as I mentioned earlier. |
also i'm sorry i'm not super experienced in linux device trees and environment paths, what does this script do? Do I need to install the script or is it already installed and I just need to run it? |
I'm not sure if this has anything to do with it but I also installed xfce which is a gui for graphics |
didn't mean to close it |
I think I will try reflashing and see if that fixes it. |
Update: I've tried reflashing with version 10.3 but to no success. I am still getting the errors. I will try with a different image. |
Probably you should try |
Hi, Thank you for the reply I have not tried it with Debian 10.3 console yet, but I want to use a program that only works with ubuntu right now so I want to try to get the library to work with it. Update: I've tried with other images. I used an old version of the library on a pre-configured ubuntu 18.04 image and it was working. I then tried to do a fresh install of ubuntu 18.04 and installed the robotics cape 1.0.5 again because I didn't want to use the image mentioned above and I am getting similar errors again. root@beaglebone:~# rc_test_servos -p 1.0 Is there a way to enable it in the device tree or should I just use an old version of the library? |
Describe the bug
Hi, I can't access the servo/escs with either version 1.0.4 or 1.0.5. I tried with both regular command and then as a su using sudo. I havn't tried as a pure root user but with previous versions I was able to use it as a su. I wanted to use the latest image because it was the only image that I could get a camera working so having access to the servo/esc command would be nice.
Below is the error.
debian@beaglebone:
$ sudo rc_test_servos -p 1.5$ rc_test_servos -p 1.5ERROR in rc_pru_stop opening remoteproc driver: No such file or directory
PRU probably not enabled in device tree
ERROR in rc_servo_init, failed to start PRU1
debian@beaglebone:
ERROR: in rc_pru_shared_mem_ptr could not open /dev/mem: Permission denied
Need to be root to access PRU shared memory
ERROR in rc_servo_init, failed to map shared memory pointer
Kernel: 4.19.94-ti-r42
BeagleBoard.org Debian Buster IoT Image 2020-04-06
Debian: 10.3
PASSED: gpio 0
PASSED: gpio 1
PASSED: gpio 2
PASSED: gpio 3
PASSED: pwm0
PASSED: pwm1
PASSED: pwm2
PASSED: eqep0
PASSED: eqep1
PASSED: eqep2
ERROR: pru-rproc driver not loaded
PASSED: uart1
PASSED: uart2
PASSED: uart4
PASSED: uart5
PASSED: i2c1
PASSED: i2c2
PASSED: spi
PASSED: LED
PASSED: ADC iio
Currently running on a:
MODEL_BB_BLUE
Robot Control library Version:
1.0.5
To Reproduce
Steps to reproduce the behavior:
Expected behavior
run servos/esc
Screenshots
The text was updated successfully, but these errors were encountered: