Get a GPIO descriptor with devm_gpiod_get
devm_gpiod_get() looks up a named GPIO from the device tree, sets its direction and initial level, and releases it on unbind; use it instead of gpio numbers.
Short posts that solve one thing: the code, the output we got, and why it works.
devm_gpiod_get() looks up a named GPIO from the device tree, sets its direction and initial level, and releases it on unbind; use it instead of gpio numbers.
Set MIX_TARGET to a Nerves target such as rpi4 before running mix commands, so dependencies and the firmware are built for the board and not the host.
Set a GPIO output with gpioset from libgpiod 2.x, selecting the chip with -c, and keep the process alive because the line reverts when it exits.
List the root device with the ro option in /etc/fstab so an embedded board's root filesystem is mounted read-only, and a power cut cannot corrupt it.
Add a ::respawn: line to BusyBox /etc/inittab so init restarts a daemon every time it exits, with no extra supervisor installed.
Set up the cross-build environment from a Yocto SDK by sourcing its environment-setup script, and see what it exports in the shell.
Add kernel options to a Yocto kernel with a .cfg fragment listed in SRC_URI of a linux-yocto bbappend on Scarthgap, without replacing the defconfig.
Turn on the Raspberry Pi I2C bus in a Yocto Scarthgap image with ENABLE_I2C in local.conf, which writes the dtparam line for you.
Silence one noisy dtc warning with -Wno-unit_address_vs_reg while keeping the other checks on, using dtc 1.7 flags on a board device tree.
Register a minimal platform driver with module_platform_driver on Linux 6.12, whose remove callback returns void since 6.11.
Setting bootdelay to -2 makes U-Boot boot at once without even checking for a key, which removes the console, on U-Boot 2025.01.
make clean deletes everything Buildroot built but leaves the dl/ directory and your .config, so a rebuild needs no downloads, on 2025.02.
We send one email when a new post is published. No spam.