-
Notifications
You must be signed in to change notification settings - Fork 98
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
usermod: group 'gpio' does not exist #65
Comments
Same issue here. So I just run my program as root. |
same here. Anyone found the problem? |
Looking at my O-Pi there definitely isn't a A quick google leads me to https://forum.armbian.com/topic/1886-gpio-access-from-user-space/ which will probably help with the non-root access; you're right - the documentation really should be updated .. I'm sure PR's would be welcome! 😁
Was this not fixed in #41 ? The Sphinx docs are generated from the RST in the repo, so technically both should match (unless one needs rebuilding?!) |
dont know if its been fixed as i just encountered this issue today on a NanoPi Neo v1.4 running armbian bookworm 6.1.63.. |
I still have the problem with the latest bookworm armbian on an OrangePi PC. I tried adding the udev rules, but it didn't help for me. I am using the WiringOP library and get the following Message from my application when I start as normal user:wiringPiSetup: Unable to open /dev/mem or /dev/gpiomem: Datei oder Verzeichnis nicht gefunden.
|
Hardware: OrangePi PC (H3)
OS: Armbian 22.05.3 Jammy with Linux 5.15.48-sunxi
Issue: running
sudo usermod -aG gpio
produces error:usermod: group "gpio" "does not exist"
I created the group manually (per #47), and continued to follow the instructions but am still not able to access GPIO with non-root user (
Permission denied '/sys/class/gpio/gpio7/direction'
).Can it be there is a comma error in the instructions?
The instruction use "Right Double Quotation Mark", "Left Double Quotation Mark" and "Left Single Quotation Mark" instead of the more common "Quotation Mark" and "Apostrophe"
I replaced the above with the common chars, but am still not able to obtain non-root access:
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"
The text was updated successfully, but these errors were encountered: