[PATCH v2 0/4] fastboot: block: Add GPT/MBR and device selection

Balaji Selvanathan balaji.selvanathan at oss.qualcomm.com
Mon Apr 27 14:06:41 CEST 2026


This series enables GPT and MBR partition table operations for
fastboot block devices and introduces device selection syntax.

Patch 1 implements device selection syntax allowing users to specify the
target block device using "N:partition" format, where N is the
device number.

Patch 2 adds fastboot_flash_gpt_partition_table() and
fastboot_flash_mbr_partition_table() helper functions that handle
flashing of GPT and MBR partition tables to block devices.

Patch 3 adds support for flashing GPT and MBR partition tables to the
fastboot block backend. This enables operations like "fastboot flash
gpt gpt.img" and "fastboot flash mbr mbr.img" for block devices.

Patch 4 documents the new syntax with usage examples.

CI test results
---------------
        https://github.com/u-boot/u-boot/pull/941/checks
	All checks have passed

Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
---
Changes in v2:
- Seperate adding device selection syntax and GPT/MBR flashing support
  into seperate patches.
- Introduce common helper functions such as
  fastboot_flash_gpt_partition_table and
  fastboot_flash_mbr_partition_table functions that can be used both
  in fb_mmc.c and fb_block.c fot GPT and MBR flashing.
- Link to v1: https://lore.kernel.org/u-boot/20260410-fb_block-v1-0-68f0c976fe0e@oss.qualcomm.com/

---
Balaji Selvanathan (4):
      fastboot: block: Add device selection syntax
      fastboot: Add GPT/MBR partition table flashing helper functions
      fastboot: block: Add GPT/MBR partition table flashing support
      doc: fastboot: Document block device selection syntax

 doc/android/fastboot.rst     |  41 +++++++++++++++++
 drivers/fastboot/Kconfig     |   4 +-
 drivers/fastboot/fb_block.c  | 102 +++++++++++++++++++++++++++++++++++++++++--
 drivers/fastboot/fb_common.c |  94 +++++++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_mmc.c    |  49 +++------------------
 include/fastboot-internal.h  |  30 +++++++++++++
 6 files changed, 272 insertions(+), 48 deletions(-)
---
base-commit: 9f61fd5b80a43ae20ba115e3a2933d47d720ab82
change-id: 20260427-fb_gpt-86d7d6595dad

Best regards,
-- 
Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>



More information about the U-Boot mailing list