1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

bootimg: exynos: extract platform and subtype from dt.img header

dtbtool-exynos has two options --platform and --subtype that are
embedded in dt.img header and need to match the values that the
bootloader expects. For most devices these values are 0x50a6 and
0x217584da, respectively, but for some they have other values.

Add functionality to parse the dt.img header and extract these values,
and add them to the deviceinfo as
bootimg_qcdt_exynos_{platform,subtype} if they are not equal to the
default values.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2638
This commit is contained in:
Henrik Grimler 2025-07-04 13:52:55 +02:00 committed by Oliver Smith
parent 7d2f055bcb
commit 2872ec6be8
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 38 additions and 0 deletions

View file

@ -135,6 +135,8 @@ class Bootimg(TypedDict):
cmdline: str
bootimg_qcdt: str
bootimg_qcdt_type: str | None
bootimg_qcdt_exynos_platform: str | None
bootimg_qcdt_exynos_subtype: str | None
dtb_offset: str | None
dtb_second: str
base: str