Tool to create, compile and install an universal device tree overlay for libpruio for run-time pinmuxing. More...
Go to the source code of this file.
Macros | |
#define | FILE_NAME /* "libpruio" */ |
The file name. | |
#define | VERS_NAME /* "00A0" */ |
The version. | |
#define | PATH_NAME /* "/lib/firmware" */ |
The folder to place the compiled overlay binary. | |
Variables | |
VAR | fnam = FILE_NAME & "-" & VERS_NAME |
The file name (without path / suffix) | |
VAR | fnr = FREEFILE |
The file number. | |
VAR | x = IIF(LEN(M(i)), nameBall(i), 0) |
The header pin name. | |
Tool to create, compile and install an universal device tree overlay for libpruio for run-time pinmuxing.
This is a helper tool for an universal device tree overlay. Adapt this FB source code, compile it and run the executable. This will create a device tree overlay source file in the current directory, and, if you execute the binary with root privileges, this overlay gets compiled and installed in /lib/firmware.
The universal overlay provides pinmuxing capability at run-time. Root privileges are required to achieve this. It claims all header pins and prepares configurations for all modes. By default the free header pins on a Beaglebone Black are declared. Customizing can be done to include more pins (ie. the HDMI pins when not used) or to reduce the number of pins (ie. when they interfere with other capes).
PIN_DEL(...)
line, orM(P8_08) = ""
right below the PIN_DEL(...)
lines.When done,
fbc -w all dts_universal.bas
, andsudo ./dts_universal
to install the compiled overlay in /lib/firmware. The overlay source remains in the current folder (file libpruio-0A00.dts). Load the overlay by
(Or execute the echo ...
command in your boot sequence. Or use capemgr to load the overlay. See Preconditions for further information.)
Licence: GPLv3
Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net
Compile by:
fbc -w all dts_universal.bas
Definition in file dts_universal.bas.