[U-Boot] [PATCH v2 0/5] solve issues in gpt management

Patrick Delaunay patrick.delaunay at st.com
Mon Oct 16 16:17:30 UTC 2017


in the last version v2017.09, I see some regression for the command

$> gpt write mmc 0 "name=test,start=0x4400,size=0"
$> gpt write mmc 0 "name=test,size=0"

I use sandbox python test to verify if this issue is also present in
v2017.11-rc1 and when I check the log tests, I detect a other issue
for the swap / rename feature : the offset and the size is always 1MB
align, that cause issue if the partition wasn't initially 1MB align.
And it is the case of the test (the size of partition change after the
command gpt rename or swap)

I propose this patch-set with:
- updated gpt test to highlight the issues
- my proposed correction for the 2 issues


Changes in v2:
- Split test to functional change

Patrick Delaunay (5):
  test/py: gpt: copy persistent file
  test/py: gpt: add test for sub-command read/verify/write
  disk: efi: correct the overlap check on GPT header and PTE
  test/py: gpt: test start LBA for sub-command rename and swap
  cmd: gpt: solve issue for swap

 cmd/gpt.c                 | 12 +++----
 disk/part_efi.c           |  4 +--
 test/py/tests/test_gpt.py | 80 +++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 75 insertions(+), 21 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list