Skip to content
systemcoding.dev
Topic

Embedded Linux

Yocto, Buildroot, U-Boot, device trees and board support packages: building a small, bootable Linux for Raspberry Pi, i.MX and custom hardware.

Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, Raspberry Pi and Debian logos.
Embedded Linux

Describe an I2C Sensor in a Device Tree Node

Add a TMP102 temperature sensor to an I2C bus in a device tree with compatible, reg and status, then check that Linux bound the driver and exposes a reading.

6 min read
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Debian logos.
Embedded Linux

Compile and Decompile Device Trees With dtc

Use dtc to compile a .dts into a .dtb, turn a .dtb back into readable source and read the warnings it prints. The flags that matter, with exact commands.

6 min read
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Raspberry Pi logos.
Embedded Linux

Scan an I2C Bus for Devices With i2cdetect

Enable /dev/i2c-N, list adapters with i2cdetect -l, scan a bus with i2cdetect -y and read the address grid, including reserved ranges and missing devices.

6 min read
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Debian logos.
Embedded Linux

Why the sysfs GPIO Interface Is Deprecated

The /sys/class/gpio interface is deprecated in Linux 6.12 because of unstable numbering, leaked pins, races and missing features. Here is what replaced it.

6 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.