It was noted that a GPT partition with the maximum available partition number (ex: /dev/mmcblk128) can't be read/write from U-Boot using read/write commands. Futher investigation shows that the problem is deeper.
This set of patches fixes uncovered issues. Changes v1: * fix partition searching inside read/write commands Changes v2: * fix partition searching inside gpt command (thanks to Quentin Schulz) * fix mtdpart partition numbering Changes v3: * slightly improve covber letter * internal enumeration of mtd partitions match to partition driver api. * 1-st and 2-nd patch was acked by Quentin Schulz Mikhail Kshevetskiy (3): disk: part: fix partition search boundaries cmd: gpt: fix partition search boundaries mtd: mtdpart: fix partitions searching cmd/gpt.c | 4 ++-- disk/part.c | 4 ++-- drivers/mtd/mtdpart.c | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) -- 2.51.0

