periph.io/x/periph/cmd contains executables usable as-is.
periph project doesn’t release binaries at the moment, you are expected to
build from sources.
First, make sure to have Go installed. If you don’t
mind using an old Go version, you can use
sudo apt install golang.
tries to stay compatible with Go 1.5.3.
It is done via:
go get -u periph.io/x/periph/cmd/...
To use periph.io/x/extra provided packages, use:
go get -tags periphextra -u periph.io/x/periph/cmd/...
On many platforms (board/OS combination), many tools requires running as root (via sudo) to have access to the necessary CPU GPIO registers or even just kernel exposed APIs.
To have faster builds, you may wish to build on a desktop and send the executables to your ARM based micro computer. The companion tool periph.io/x/bootstrap/cmd/push helps you with this:
go get -u periph.io/x/bootstrap/cmd/push push -host raspberrypi periph.io/x/periph/cmd/bmxx80
See /platform/ for supplemental information to configure the host to leverage as much functionalities as possible.