Re: gpioctl on the ODROID C2

Brad Spencer <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Vincent DEFERT <[email protected]> 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.



-- 
Brad Spencer - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.