Skip to content

platforms/glymur-crd: update spinor partitions for dual-boot support - #158

Open
Neeraj (neervish) wants to merge 1 commit into
qualcomm-linux:mainfrom
neervish:glymur-partition-size-update
Open

platforms/glymur-crd: update spinor partitions for dual-boot support#158
Neeraj (neervish) wants to merge 1 commit into
qualcomm-linux:mainfrom
neervish:glymur-partition-size-update

Conversation

@neervish

Copy link
Copy Markdown

To support dual boot (Windows and Linux) on Glymur, resize BOOT_FW1/ BOOT_FW1_BACKUP and dtb_a/dtb_b, and drop partitions that are not present in the base WP SP nor in other current QLI SPs.

Grow BOOT_FW1 and BOOT_FW1_BACKUP from 12288KB to 16500KB to match the Windows partition, and shrink dtb_a and dtb_b from 4096KB to 2048KB to stay within the spinor disk size.

Partition Old size New size Note
BOOT_FW1 12288KB 16500KB grown to match WP
BOOT_FW1_BACKUP 12288KB 16500KB "
dtb_a 4096KB 2048KB Shrink to stay within spinor disk size
dtb_b 4096KB 2048KB "
TZAPPS 768KB removed not in base WP SP or other QLI SPs
TZAPPS_BACKUP 768KB removed "
XBL_RAMDUMP 512KB removed part of BOOT_FW2
XBL_RAMDUMP_BACKUP 512KB removed "
MULTIIMGQTI 32KB removed part of BOOT_FW1
MULTIIMGQTI_BACKUP 32KB removed "
SPU_PROD_BACKUP 1024KB removed SPSS, part of BOOT_FW2

Net effect: spinor total partitioned size goes from 62396KB to 63076KB,
within the declared 65536KB disk capacity (2460KB free).

To support dual boot (Windows and Linux) on Glymur, resize BOOT_FW1/
BOOT_FW1_BACKUP and dtb_a/dtb_b, and drop partitions that are not
present in the base WP SP nor in other current QLI SPs.

Grow BOOT_FW1 and BOOT_FW1_BACKUP from 12288KB to 16500KB to match
the Windows partition, and shrink dtb_a and dtb_b from 4096KB to
2048KB to stay within the spinor disk size.

Remove the following partitions, which are not part of the WP Meta
and are safe to drop:
  TZAPPS               768KB (not present in WP)
  TZAPPS_BACKUP        768KB (not present in WP)
  XBL_RAMDUMP          512KB  (part of BOOT_FW2)
  XBL_RAMDUMP_BACKUP   512KB  (part of BOOT_FW2)
  MULTIIMGQTI           32KB  (part of BOOT_FW1)
  MULTIIMGQTI_BACKUP    32KB  (part of BOOT_FW1)
  SPU_PROD_BACKUP      1024KB (SPSS, part of BOOT_FW2)

Regenerate tests/integration/checksums.sha256 to match the updated
partitions.conf.

Signed-off-by: Neeraj Vishwakarma <neervish@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant