Skip to content

Partitions

The XP8800 has a GUID Partition Table (GPT) on the internal eMMC. It uses an A/B (dual-slot) scheme and has no dynamic (super) partitions. The stock image is system-as-root.

Many Android devices have the recovery and dtbo partitions. This platform does not have these two partitions. Recovery and custom boot images need a different procedure.

Partition list

The GPT defines 69 named partitions and some unallocated space. Names that end in _a or _b are A/B slot pairs.

Group Partitions
Boot chain xbl_a/b, abl_a/b, tz_a/b, hyp_a/b, rpm_a/b, pmic_a/b, devcfg_a/b, keystore, devinfo
Secure / DRM cmnlib_a/b, cmnlib64_a/b, keymaster_a/b, mdtp_a/b, mdtpsecapp_a/b, storsec, sec, msadp, apdp, dip, dpo, limits
Boot / OS boot_a/b, system_a/b, vendor_a/b, oem_a/b, vbmeta_a/b, misc, userdata
Peripherals modem_a/b, dsp_a/b, bluetooth_a/b, splash
Radio NV / calibration modemst1, modemst2, fsg, fsc, persist
Diagnostics / logs logdump, logfs, rawdump, ddr, ssd, sti, toolsfv, frp, reserve0, reserve3, reserve4, reserve5

WARNING: DO NOT WRITE DATA FROM ANOTHER UNIT TO THE FIVE RADIO NV AND CALIBRATION PARTITIONS (modemst1, modemst2, fsg, fsc, persist). THE DATA IS DIFFERENT FOR EACH UNIT. See NV partitions and backup.

Approximate sizes

These sizes come from fastboot and from an inspection of the GPT:

Partition Size
boot_a 64 MB
system_a 4 GB
vendor_a 1 GB (empty filesystem on stock, non-Treble)
oem_a 512 MB
userdata ~46 GB
modem_a ~110 MB
bluetooth_a ~1 MB

The raw-program manifest gives the slot-A images in 512-byte sectors:

Image Start sector Sectors
boot_a 262144 131072
system_a 524288 8388608
oem_a 21495808 1048576
modem_a 23752704 225280
dsp_a 24203264 32768
bluetooth_a 24549104 2048

Layout

flowchart TB
  subgraph GPT["eMMC GPT (mmcblk1) — slot A / slot B"]
    direction TB
    XBL["xbl_a / xbl_b — boot loaders"]
    ABL["abl_a / abl_b — Android bootloader (unlock target: abl_a)"]
    TRUST["tz / hyp / rpm / pmic / devcfg / keymaster / cmnlib"]
    BOOT["boot_a / boot_b — kernel + ramdisk + appended DTBs"]
    SYS["system_a / system_b — 4 GB Android"]
    VEN["vendor_a / vendor_b — empty on stock"]
    OEM["oem_a / oem_b"]
    PERIPH["modem_a/b · dsp_a/b · bluetooth_a/b"]
    NV["modemst1 · modemst2 · fsg · fsc · persist — per-unit, never overwrite"]
    MISC["misc · frp · devinfo · vbmeta_a/b"]
    DATA["userdata — ~46 GB, wiped by unlock"]
  end
  XBL --> ABL --> BOOT --> SYS

Android boot-image format

The stock boot_a is an Android boot header v0 image:

Field Value
Header version 0
Page size 4096 bytes
Base address 0x00000000
Kernel offset 0x00008000
Ramdisk offset 0x01000000
Tags offset 0x00000100
OS version 10.0.0
OS patch level 2022-03
Kernel gzip-compressed ARM64 Image.gz
Appended data 12 Qualcomm DTBs after the gzip stream

The device tree of the XP8800 is the appended dtb_101.dtb (SHA-256 1a2dced5ec5f26a89d6d46105807435ae2d75e9b94a81007ed3868af08fb2e1e). There is no dtbo partition, so the DTB comes directly after the gzip-compressed kernel. It is not in its own partition.

A/B slot behaviour

  • The active slot at the reference inspection was _a.
  • A new slot starts with a retry count of 7. After some boots that do not succeed, the bootloader marks that slot as unbootable and stops in fastboot.
  • Slot _b is not a safe fallback for custom images. The stock abl_b has no fastboot flash or set_active. It also enforces verified boot. A change to _b can brick the phone.
  • Keep abl_b and boot_b stock. Keep a recovery procedure that you know is good. See Boot chain and Fastboot.
  • On an unlocked bootloader, fastboot set_active a usually recovers a phone that is stuck in fastboot.