Add partition type GUID support for environment
Get series with b4
b4 am [email protected] change-id 20260419-type-c6a48a1c273dVersions newest first
- v5 Latest8 patches 6 repliesIn review
- v48 patches 6 repliesSuperseded inferred link
- v35 patches 9 repliesSuperseded inferred link
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 patches | 2 replies | Superseded inferred link | |
| v1 | 4 patches | 11 replies | Superseded |
Changes in v5 from the cover letter
- use IS_ENABLED(CONFIG_PARTITION_TYPE_GUID) instead of
CONFIG_IS_ENABLED()
- expand the help text of the partition selection choice
- drop QCS615, which now keeps its environment in the eMMC
logfs partition
- name the logfs partition in the commit message
- check the type GUID and size of the matched partition instead of
its name, as the test image has no partition labels
- Link to v4: https://lore.kernel.org/u-boot/[email protected]/
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | disk: Add partition lookup by type GUID functionalitydisk/ include/ | +58 | 0 replies | |
| 2/8 | scsi: Add partition lookup by type GUID for SCSI devicesdrivers/ include/ | +34 | 0 replies | |
| 3/8 | scsi: Optimize scsi_get_blk_by_uuid() loop iterationdrivers/ | +3 | 0 replies | |
| 4/8 | env: scsi: Fix ENV_SCSI_HW_PARTITION default value typeenv/ | +1 | 1 reply | |
| 5/8 | env: scsi: Add partition type GUID support and choice-based selectionenv/ | +56 | 2 replies | |
| 6/8 | env: scsi: Implement partition type GUID lookupenv/ | +25 | 1 reply | |
| 7/8 | configs: Enable partition type GUID for QCS9100/QCM6490 boardsconfigs/ configs/ | +6 | 2 replies | |
| 8/8 | test: dm: Add partition type GUID lookup testtest/ | +52 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass | Tom Rini |
|---|---|---|
| 1/8 | R-b | |
| 2/8 | R-b | |
| 3/8 | R-b | |
| 4/8 | R-b | R-b |
| 5/8 | R-b | |
| 6/8 | R-b | |
| 7/8 | R-b | |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/8] Add partition type GUID support for environment
This series adds support for locating partitions using GPT partition type GUID instead of unique partition UUID. This enables the saveenv command to work with partitions identified by their type rather than unique identifiers, providing flexibility for systems where partition UUIDs may vary across devices but types remain constant.
---
Changes in v5:
- use IS_ENABLED(CONFIG_PARTITION_TYPE_GUID) instead of
CONFIG_IS_ENABLED()
- expand the help text of the partition selection choice
- drop QCS615, which now keeps its environment in the eMMC
logfs partition
- name the logfs partition in the commit message
- check the type GUID and size of the matched partition instead of
its name, as the test image has no partition labels
- Link to v4: https://lore.kernel.org/u-boot/[email protected]/
Changes in v4:
- Create a seperate patch for scsi_get_blk_by_uuid optimization
- Create a seperate patch for correcting default value of
ENV_SCSI_HW_PARTITION config
- Update help section of ENV_IS_IN_SCSI config
- Add 'select PARTITION_TYPE_GUID' for ENV_SCSI_PART_USE_TYPE_GUID
so that its selected automatically
- In test code, add more asserts to confirm its a kernel partition
- Link to v3: https://lore.kernel.org/u-boot/[email protected]/
Changes in v3:
- Addressed minor corrections in Patch 1 in part_get_info_by_type_guid function
- Refactor env_scsi_get_part and env_scsi_load functions based
on the choice configs in Patch 3
- Add unit test for the partition type GUID lookup functionality in Patch 5
- Link to v2: https://lore.kernel.org/u-boot/[email protected]/
Changes in v2:
- Compute blk_find_max_devnum(UCLASS_SCSI) only once in scsi_get_blk_by_type_guid()
- Introduce a Kconfig choice config to select between UUID-based
and type GUID-based partition lookup methods.
- Enable above new config in qcom_qcs615_defconfig and qcm6490_defconfig
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/
---
Balaji Selvanathan (8):
disk: Add partition lookup by type GUID functionality
scsi: Add partition lookup by type GUID for SCSI devices
scsi: Optimize scsi_get_blk_by_uuid() loop iteration
env: scsi: Fix ENV_SCSI_HW_PARTITION default value type
env: scsi: Add partition type GUID support and choice-based selection
env: scsi: Implement partition type GUID lookup
configs: Enable partition type GUID for QCS9100/QCM6490 boards
test: dm: Add partition type GUID lookup test
configs/qcm6490_defconfig | 4 +++ configs/qcom_qcs9100_defconfig | 3 +- disk/part.c | 37 ++++++++++++++++++++++ drivers/scsi/scsi-uclass.c | 28 ++++++++++++++-- env/Kconfig | 72 +++++++++++++++++++++++++++++++++--------- env/scsi.c | 43 ++++++++++++++----------- include/part.h | 21 ++++++++++++ include/scsi.h | 11 +++++++ test/dm/part.c | 52 ++++++++++++++++++++++++++++++ 9 files changed, 235 insertions(+), 36 deletions(-)
---
base-commit: 6487c50b8a40f2668ab98a892b9300ad5c181f38
change-id: 20260428-type-7dc867309086
Best regards,
Signature · 1 line
Balaji Selvanathan <[email protected]>