summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhu <junzhu@nxp.com>2026-07-22 11:46:57 +0800
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-07-24 11:51:11 +0000
commit1c3782fc50722a513f6a3f6231a10c21cb767623 (patch)
tree8fb691cedd53dac02ef7f166873aceed2295d5bf
parent8945df6f30efcc6a063792209492826f763832c0 (diff)
downloadmeta-freescale-backport-2584-to-wrynose.tar.gz
imx-imx-boot-bootpart.wks.in: Use variable to choose ptable typebackport-2584-to-wrynose
In NXP i.MX BSP, i.MX 8 & 9 is preferred to use gpt ptable: - Boot ROM Compatibility: i.MX 8/9 Boot ROM can work with both MBR and GPT - U-Boot Configuration: NXP U-Boot has configured to recognize GPT (CONFIG_EFI_PARTITION=y) - Partition Alignment: GPT first usable LBA in GPT is in sector 34 (17KB), and i.MX 8&9 has IMX_BOOT_SEEK offset (32-33KB), so no conflict - Advantages of GPT - Support for >2TB storage (not typically relevant for SD cards) - More robust with CRC32 checksums and backup partition table - Up to 128 partitions vs 4 primary partitions in MBR - Better partition naming and GUID identification Signed-off-by: Jun Zhu <junzhu@nxp.com> (cherry picked from commit caff32484b25b18d12a6f61b33482d819e459657)
-rw-r--r--conf/machine/include/imx-base.inc2
-rw-r--r--files/wic/imx-imx-boot-bootpart.wks.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 916db91cf..ffda91768 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -682,6 +682,8 @@ SOC_DEFAULT_WKS_FILE:mx8-generic-bsp ?= "imx-imx-boot-bootpart.wks.in"
682SOC_DEFAULT_WKS_FILE:mx9-generic-bsp ?= "imx-imx-boot-bootpart.wks.in" 682SOC_DEFAULT_WKS_FILE:mx9-generic-bsp ?= "imx-imx-boot-bootpart.wks.in"
683 683
684WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" 684WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}"
685IMX_BOOTLOADER_PTABLE ?= "msdos"
686IMX_BOOTLOADER_PTABLE:use-nxp-bsp ?= "gpt"
685 687
686SERIAL_CONSOLES = "115200;ttymxc0" 688SERIAL_CONSOLES = "115200;ttymxc0"
687SERIAL_CONSOLES:mxs-generic-bsp = "115200;ttyAMA0" 689SERIAL_CONSOLES:mxs-generic-bsp = "115200;ttyAMA0"
diff --git a/files/wic/imx-imx-boot-bootpart.wks.in b/files/wic/imx-imx-boot-bootpart.wks.in
index 46a2a0a68..02a7c95c3 100644
--- a/files/wic/imx-imx-boot-bootpart.wks.in
+++ b/files/wic/imx-imx-boot-bootpart.wks.in
@@ -17,4 +17,4 @@ part u-boot --source rawcopy --sourceparams="file=imx-boot.tagged" --ondisk mmcb
17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --fixed-size 256 17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --fixed-size 256
18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192 18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192
19 19
20bootloader --ptable msdos 20bootloader --ptable ${IMX_BOOTLOADER_PTABLE}