This recipe is for building the latest version of pinctrl
on a bullseye
system (aka .oldstable
). pinctrl
is a potentially useful adjunct in our testing and experimentation with libgpiod
.
-
pinctrl
is a member of theutils
repo at the Raspberry Pi GitHub site. For reasons that are not clear to me, cloning this repo is a two-step process:-
Go to the GitHub site, and "fork" the 'utils' repo to your GitHub account
-
From your RPi, execute a
git clone https://github.com/seamusdemora/utils
note: you should use your clone, not mine, as I'm unlikely to keep mine updated)
-
-
Get some tools:
$ sudo apt update $ sudo apt install cmake device-tree-compiler libfdt-dev
-
Build it following the instructions in the GitHub repo
$ cd ~/utils/pinctrl $ cmake . $ make $ sudo make install ... -- Installing: /usr/local/bin/pinctrl ... $ pinctrl help | less # to access the documentation