cmd: gpt: GPT manipulation improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest8 patches 1 replyIn review
- v48 patches 6 repliesSuperseded
- v38 patches 11 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 8 patches | 9 replies | Superseded | |
| v1 | 6 patches | 4 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | cmd: gpt: Remove confusing help textcmd/ | +0 | 0 replies | |
| 2/8 | doc: Add gpt command documentationdoc/ doc/ | +185 | 0 replies | |
| 3/8 | tests: gpt: Remove test order dependencytest/ | +8 | 1 reply | |
| 4/8 | cmd: gpt: Add gpt_partition_bootable variablecmd/ doc/ test/ | +45 | 0 replies | |
| 5/8 | cmd: gpt: Add command to set bootable flagscmd/ doc/ test/ | +114 | 0 replies | |
| 6/8 | cmd: gpt: Preserve type GUID if enabledcmd/ test/ | +81 | 0 replies | |
| 7/8 | cmd: gpt: Preserve bootable flagcmd/ test/ | +4 | 0 replies | |
| 8/8 | cmd: gpt: Add command to swap partition ordercmd/ doc/ test/ | +87 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/8] cmd: gpt: GPT manipulation improvements
Adds several improvements and additions to the gpt command processing, specifically (although not exclusively) for the purpose of supporting "ping-pong" booting when doing A/B boot partitions with u-boot itself.
In this mechanism, u-boot must boot up, and then check if the correct boot partition is active, and if not switch the GPT partition table to the other boot partition and reboot to activate the other u-boot.
In order to facilitate this, the gpt command needs to be better at preserving entry attributes when manipulating the partition table. It also learns two new commands, one which can swap the order of partitions in the table, and another that lets it change which partitions have the bootable flag.
V2: Add documentation and tests
V3: Review Feedback
V4: More review feedback. Fixed 'gpt swap-position' to work with
missing partition indexes.
V5: Rename 'gpt swap-position' -> 'gpt transpose', taking inspiration
from `sgdisk --transpose`
Joshua Watt (8):
cmd: gpt: Remove confusing help text
doc: Add gpt command documentation
tests: gpt: Remove test order dependency
cmd: gpt: Add gpt_partition_bootable variable
cmd: gpt: Add command to set bootable flags
cmd: gpt: Preserve type GUID if enabled
cmd: gpt: Preserve bootable flag
cmd: gpt: Add command to swap partition order
cmd/gpt.c | 156 ++++++++++++++++++++++++-- doc/usage/cmd/gpt.rst | 226 ++++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + test/py/tests/test_gpt.py | 160 +++++++++++++++++++++++++-- 4 files changed, 524 insertions(+), 19 deletions(-) create mode 100644 doc/usage/cmd/gpt.rst
Signature · 1 line
2.34.1