Re: gpioctl on the ODROID C2

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.ports.arm
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Vincent DEFERT) writes:

>Thank you!

>That's unfortunate because in multi-user mode, kern.securelevel is 
>forced to 1.
>This means that the GPIO is unusable in practice. That's a rather 
>curious design decision.


You can configure GPIO modes in single-user and you can read
or write GPIO pin values in multi-user.

The argument is that specific hardware requires correct modes
(input, output, ...) and modifying that can be dangerous.
Of course that limits the gpio driver to more simple operations,
but it's limited anyway.

You can make a custom kernel with 'options INSECURE', this allows
several less secure operations, including reconfiguring the GPIO
hardware.
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.