Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gpioctl on the ODROID C2



You're right, it works in single-user mode.
That's really annoying.

How is that enforced?
I've had a look at gpioctl.c, gpio.c and mesongxbb_pinctrl.c and they don't even contain the word 'secure'...


On 07/07/2025 18:00, Brad Spencer wrote:
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.






Home | Main Index | Thread Index | Old Index