> Date: Mon, 27 Apr 2020 12:33:24 +0100 > From: Stuart Henderson <s...@spacehopper.org> > > On 2020/04/26 12:56, Mark Kettenis wrote: > > Diff below adds GPIO support to bcmgpio(4). It also adds the bits to > > attach gpio(4) such that GPIO pins can be controlled from userland. > > This makes sense on boards like the Raspberry Pi and the > > implementation makes sure that pins used by kernel drivers can't be > > touched. > > > > ok? > > Only tested with inputs so far, but works for me. OK sthen@ >
If you put: /usr/sbin/gpioctl gpio0 42 set out led0 in /etc/rc.securelevel you can turn on the green LED with: gpioctl gpio0 led0 on Cheers, Mark