From 9358fe75e9f9fa6ec549c24b02e6c31fbc78685a Mon Sep 17 00:00:00 2001 From: amazingfate Date: Tue, 7 Jan 2025 01:47:35 +0800 Subject: [PATCH] image-output-abl: build boot recovery image --- extensions/image-output-abl.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extensions/image-output-abl.sh b/extensions/image-output-abl.sh index a16478d94..d07468822 100644 --- a/extensions/image-output-abl.sh +++ b/extensions/image-output-abl.sh @@ -55,6 +55,18 @@ function post_build_image__900_convert_to_abl_img() { --pagesize 4096 \ -o ${DESTIMG}/${version}.boot_${dtb_name}.img done + display_alert "Creatng abl kernel boot recovery image with dtb ${ABL_DTB_LIST[0]}" "${EXTENSION}" "info" + cat ${DESTIMG}/Image.gz ${new_rootfs_image_mount_dir}/usr/lib/linux-image-*/qcom/${dtb_name}.dtb > ${DESTIMG}/Image.gz-${dtb_name} + /usr/bin/mkbootimg \ + --kernel ${DESTIMG}/Image.gz-${ABL_DTB_LIST[0]} \ + --ramdisk ${new_rootfs_image_mount_dir}/boot/initrd.img-*-* \ + --base 0x0 \ + --second_offset 0x00f00000 \ + --kernel_offset 0x8000 \ + --ramdisk_offset 0x1000000 \ + --tags_offset 0x100 \ + --pagesize 4096 \ + -o ${DESTIMG}/${version}.boot_recovery.img fi umount ${new_rootfs_image_mount_dir}