Vincent DEFERT <vincent.defert%posteo.net@localhost> writes:
I'm trying to use the GPIO of the ODROID C2 (as root) but I get an
"Operation not permitted" error whatever I do.
For instance, when I issue: gpioctl gpio0 set out pp
I get gpioctl: GPIOSET: Operation not permitted
Interestingly, gpioctl gpio0 list doesn't list anything.
dmesg says:
[ 1.000000] mesonpinctrl0 at simplebus5: Meson GXBB periphs GPIO
[ 1.000000] gpio0 at mesonpinctrl0: 119 pins
ls -l /dev/gpio0 shows:
crw-rw-r-- 1 root _gpio 173, 0 Jun 13 03:42 /dev/gpio0
Is there anything special I should do to be able to use gpioctl?
securelevel might be in the way. If possible, try gpioctl in single
user or arrange for securelevel to be -1, such as compiling a INSECURE
kernel.