johang / sd-card-images

Scripts to build bootable SD card images with Debian for various single-board computers
https://sd-card-images.johang.se
GNU General Public License v3.0
140 stars 32 forks source link

Custom device tree #102

Open hackitdown opened 6 months ago

hackitdown commented 6 months ago

How can i specify custom device tree file without rebuild uboot?

johang commented 6 months ago

You can change the boot script (https://github.com/johang/sd-card-images/blob/master/2nd-stage-files/pre-2nd-stage-files-arm64/etc/initramfs/post-update.d/zz-update-uimg) so it uses a different dtb. Default is to use the dtb included in Debian/Ubuntu's kernel.