beagleboard / beagleboard/librobotcontrol

PRU Permissions denied. Cannot access servos/escs V1.0.5

Open
#210 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
212
Forks
167
PR merge metrics
No merged PRs in 30d

Description

**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
ERROR 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:~$ rc_test_servos -p 1.5
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:
1. Have V1.0.4 or 1.0.5 installed with latest release 10.3 eMMC flasher image debian
2. sudo rc_test_servos -p (float)
3. See error

**Expected behavior**
run servos/esc

**Screenshots**
![image](https://user-images.githubusercontent.com/88365067/131020146-b3ca0532-44fc-4025-af92-4dab483385e5.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.