
GPIO Sysfs vs the libgpiod Character Device Interface
Compare the deprecated /sys/class/gpio interface with the libgpiod character device on Linux 6.12: ownership, atomic access, events and numbering.
Everything you need to level up your coding skills.

Compare the deprecated /sys/class/gpio interface with the libgpiod character device on Linux 6.12: ownership, atomic access, events and numbering.

Turn a Linux 6.12 board with a USB device controller into a USB serial and Ethernet gadget using configfs and libcomposite, with the exact directory steps.

Build a CMake project for your board with the toolchain file shipped in the Yocto SDK, set install paths with DESTDIR, and run tests under qemu-user.

Read a Linux binary's CPU architecture, bit width, float ABI and loader with file, readelf -h, readelf -A and xxd, before you copy it to a board.

Build Go programs for 32-bit and 64-bit Arm boards with GOOS, GOARCH and GOARM, pick the right GOARM value, and verify the result with file and go version -m.

Run an Autotools configure script for another architecture with --host, --build and a sysroot, and read the cross-compiling errors it prints when it goes wrong.

Install a Yocto SDK, source its environment script, and cross-compile a C program with the CC variable it sets, then check the result before running it.

A sysroot is a directory that stands in for the target's root filesystem at build time. See what it holds, how GCC uses it, and how to confirm it is used.

Turn on the Raspberry Pi I2C and SPI buses with dtparam lines in config.txt or raspi-config, confirm the device nodes appear, and change bus speeds.

Extract a recipe's source into a Git tree with devtool modify on Yocto 5.0, edit and rebuild it, then turn your commits into patches with devtool finish.

Turn a Yocto 5.0 image into a flashable SD card image with a boot and a root partition by setting WKS_FILE and IMAGE_FSTYPES for the wic tool.

Build a Yocto 5.0 standard SDK installer with bitbake -c populate_sdk, install it, source the environment script and cross-compile a program.
We send one email when a new post is published. No spam.