Debug StoriesSleeping Function Warning: Invalid Context in a PREEMPT_RT Console Thread
On a PREEMPT_RT kernel with debug checks enabled, the console printing thread triggered a sleeping function warning. Here is how the report…
Tutorials, source-level deep dives, debugging stories and fixes you can work through on a real board or in QEMU.
Debug StoriesOn a PREEMPT_RT kernel with debug checks enabled, the console printing thread triggered a sleeping function warning. Here is how the report…
Deep DivesPriority inheritance in the Linux rtmutex assigns, never increments. The two waiter trees, the chain walk, max_lock_depth, and why semaphores get none.
TutorialsBuild the OpenSBI firmware and U-Boot for RISC-V from source, then boot a kernel through the full chain in QEMU. The addresses…
Deep DivesWalk the path from start_kernel to userspace on arm64: rest_init, kernel_init, the initcall levels, and the fixed order the kernel searches for…
TutorialsBuild a RISC-V Linux kernel from source, pack a minimal initramfs, and boot it on OpenSBI under QEMU — with the real…
Deep DivesHow Linux nvmem cells carry a MAC address or calibration data out of an EEPROM or fuse array and into a driver…
TutorialsBoot a custom Linux kernel in QEMU with a minimal BusyBox initramfs: build the cpio, wire the console, and insmod a module…
Deep DivesUnder PREEMPT_RT spinlock_t becomes an rtmutex. Sleeping spinlocks explain why _irq does nothing and why unlock order matters.
Debug StoriesA new vendor BSP release failed at do_fetch with a revision error. Every cleanup attempt failed, then a week later it built…
Debug StoriesA board with verified boot enabled happily booted a tampered kernel and printed OK. The only clue was one missing word on…
Deep DivesMemory allocation profiling attributes kernel RAM to a source line. What it costs to ship, how to leave it dormant, and why…
TutorialsCross-compile the Linux kernel for ARM64, build a BusyBox initramfs, and boot the system in QEMU using exact, reproducible commands and expected…
Debug StoriesA shared, level-triggered interrupt line was disabled after a "nobody cared" spurious interrupt storm. Here is how the kernel detects it and…
Deep DiveseBPF observability for embedded Linux in three layers: in-kernel instrumentation, structured events, and the power regressions logs never show.
TutorialsA high latency number tells you a problem exists, not where it comes from. This final part of the series covers tracing…
The best of our kernel and embedded Linux writing, a few emails a month. No spam.
// 1,200+ embedded engineers already read it
We email occasionally and never share your address.