</>EmbeddedInterview

How do you debug an embedded Linux board that does not boot?

MediumEmbedded Linux & Boot

When an embedded Linux board does not boot, identify the last verified stage before changing software. A failure before UART output has different causes from a root-filesystem panic.

1. Debug checklist

Last evidence Investigate
No activity Power rails, reset, reference clock, boot straps
Boot ROM / early firmware only Boot image layout, authentication, SRAM/DRAM setup
U-Boot prompt Storage reads, image/DTB validity, load addresses
Kernel starts then hangs Early console, DTB, CPU state, memory or driver initialization
Cannot mount root root=, storage driver, filesystem and partition
PID 1 failure Rootfs contents, executable ABI, libraries and init configuration

2. Practical tools

Use serial logs first. Inspect bootloader environment and image metadata. JTAG can halt early firmware when console output is unavailable. Linux earlycon, initcall_debug and appropriate loglevel can expose later initialization problems.

3. Example

If Linux reports that it cannot open the root device, verify the actual partition identifier, built-in storage controller driver or required initramfs, and filesystem support. Changing DDR timing is unlikely to address a clearly diagnosed root-mount problem.

4. Compare a known-good image

Change one variable at a time and record evidence. Preserve recovery access and avoid overwriting known-good boot slots without a backup.

Interview takeaway: Boot debugging is stage isolation. Confirm hardware, firmware handoff, kernel initialization and rootfs/userspace independently.