From 7603e187cbec1dcc551edd158c21051a24c2eb33 Mon Sep 17 00:00:00 2001 From: Yogesh Lal Date: Tue, 8 Apr 2025 17:47:30 +0530 Subject: [PATCH] runtime:boot: Improve fastboot template for dynamic dtb blob extraction Enhancing the fastboot template to dynamically extract the DTB blob. This approach aims to make post-processing more generic and adaptable for various fastboot boot targets. Signed-off-by: Yogesh Lal --- config/runtime/boot/fastboot.jinja2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/runtime/boot/fastboot.jinja2 b/config/runtime/boot/fastboot.jinja2 index 9b1a44ac8d..50816f41fa 100644 --- a/config/runtime/boot/fastboot.jinja2 +++ b/config/runtime/boot/fastboot.jinja2 @@ -10,11 +10,12 @@ format: cpio.newc overlays: lava: true +{% set dtb = device_dtb.split('/')[-1] %} postprocess: docker: image: ghcr.io/mwasilew/docker-mkbootimage:master steps: - - mkbootimg --header_version 2 --kernel Image --dtb qcs6490-rb3gen2.dtb --cmdline "earlycon clk_ignore_unused pd_ignore_unused audit=0" --ramdisk rootfs.cpio.gz --output boot.img + - mkbootimg --header_version 2 --kernel Image --dtb {{ dtb }} --cmdline "console=ttyMSM0,115200n8 earlycon qcom_geni_serial.con_enabled=1 mem_sleep_default=s2idle mitigations=auto video=efifb:off" --ramdisk rootfs.cpio.gz --output boot.img to: downloads - deploy: