r/embeddedlinux • u/tenoun • Apr 22 '26
project Android Verified Boot for embedded Linux
I built a toolkit that brings AVB (Android Verified Boot) to Embedded Linux.
Current practice: the root hash sits inside an initramfs that's only verified at an earlier stage. Once in RAM there's a multi-second TOCTOU window before the verity/dmsetup stage fires. JTAG, voltage glitch, DMA outside the IOMMU: overwrite the hash and the kernel is happy with it. No crypto broken but device pwned!
avb-utils brings AVB dm-verity-style to embedded Linux shipped on billions of Android devices, with host signing, target verification tools and PQC ML-DSA support.
View all comments
Show parent comment
1
u/Ok-Adhesiveness5106 Apr 22 '26
Yes, but what if you wrap the hash and the offset into a U-Boot bootscript and add it to the kernel fitImage? You always sign the configuration section of the fitImage. If anyone tampered with the hash it would be detected.
You can then pass this to the initramfs and it will set up the mapper device infrastructure.
The initramfs image with the shell script that sets up the mapper device infrastructure is also made part of the fitImage.
The kernel image has dm-verity boot script, kernel zImage, and initramfs image in total. This fitImage is signed.