Dear NXP Team,
We currently use the LS1043ARDB for development, where our custom board only has eMMC as the boot device.
From samsung emmc 16GiB (KLMAG1JETD-B041) datasheet, it support hardware partitioning and initially consists of below partition from manufacturer.
Boot Partition 1 : 4 MiB
Boot Partition 2 : 4 MiB
RPMB : 4 MiB
User Data Area (UDA) : less than 16 GiB
According to "qoriq-wks-base.inc" file available in layer-scape SDK, "sd2_sd.pbl" image locate at block number 0x8 (which is 4KiB offset) as below diagram.
# short-description: Create eMMC/SD card image with a boot partition
# The disk layout (in blocks) used is:
# blocks KiB
# 0x0 +-----------------------+ 0x0
# | MBR / GPT |
# 0x8 +-----------------------+ 0x4
# | RCW + PBI + BL2 |
# 0x100 +-----------------------+ 0x80
# | PFE firmware |
# 0x800 +-----------------------+ 0x400
# | FIP (BL31+BL32+BL33) |
# 0x2800 +-----------------------+ 0x1400
# | U-Boot Env variables |
# 0x3000 +-----------------------+ 0x1800
# | Secureboot headers |
# 0x4000 +-----------------------+ 0x2000
# | DDR PHY FIP |
# 0x4800 +-----------------------+ 0x2400
# | DPAA1 FMAN ucode |
# 0x5000 +-----------------------+ 0x2800
# | DPAA2-MC |
# 0x6800 +-----------------------+ 0x3400
# | DPAA2 DPL |
# 0x7000 +-----------------------+ 0x3800
# | DPAA2 DPC |
# 0x7800 +-----------------------+ 0x3c00
# | Device tree (UEFI) |
# 0x8000 +-----------------------+ 0x4000
# | Kernel |
# 0x10000 +-----------------------+ 0x8000
# | Ramdisk |
# +-----------------------+
As far as I understand, the table above only works for SD card, not eMMC, and below are my questions about the LS1043A processor.
Query 1:
Does BL1(boot ROM firmware) support booting from eMMC boot partition 1 when "bl2_sd.pbl" (RCW + PBI + BL2) is located in its block 0x8 (offset 4KiB) ?
Query 2:
If "bl2_sd.pbl" boots from eMMC boot partition 1, does eMMC UDA (user data area) partition support GPT partitioning?
Query 3:
where GPT partition table is located ? Is it stored at starting block of UDA partition? In Samsung EMMC case, UDA hardware partition block start at 24576 (0x6000) and offset is 12 MiB.
Regards,
Bhargav Jayswal