Odroid N2, Booting DietPi USB SSD through Petitboot, “Cannot read /tmp/…_boot_dtb_”

vlix
Mon, 26 Jan 2026 06:27:24 +0000

Oh, I figured out why it’s happening.. The “fdtfile” was not set in boot.scr …

I just added a single line in /boot/boot.cmd, below “# Load addresses”:

setenv fdtfile "amlogic/meson-g12b-odroid-n2.dtb"

Then recompile it with:

mkimage -C none -A arm64 -T script -d /boot/boot.cmd /boot/boot.scr

It now boots correctly, without needing any extra config file.

edit:

Or even simpler.. Just add below line in dietpiEnv.txt

fdtfile=amlogic/meson-g12b-odroid-n2.dtb

Without needing to recompile.. Lol..

Note: On fresh install, if using the dietpiEnv.txt for setup, we’ll need to manually input the paths in Petitboot menu first. Only on the first boot. DietPi will copy the dietpiEnv.txt to /boot after that first boot:

Device: (*) sda1 ["UUID"]
Kernel: /boot/vmlinuz-6.12.61-current-meson64
Initrd: /boot/initrd.img-6.12.61-current-meson64
Device tree: /boot/dtb/amlogic/meson-g12b-odroid-n2.dtb