[PATCH v3 0/5] improve 'read' command, add 'write' command

Tom Rini trini at konsulko.com
Thu Mar 16 19:18:08 CET 2023


On Thu, Mar 16, 2023 at 02:24:05PM +0100, Rasmus Villemoes wrote:
> On 02/03/2023 09.12, Rasmus Villemoes wrote:
> > The first patch simplies do_read somewhat by making use of an existing
> > helper instead of parsing the dev_part string manually. As a bonus
> > (and my actual motivation), it now understands dev#partname syntax -
> > hard-coded partition numbers are so last decade.
> > 
> > I also need the symmetrical operation, being able to write to a named
> > raw partition, and fortunately it doesn't require that many lines of
> > code to implement that.
> > 
> > There's a very minor change in the error reporting due to using
> > cmdtp->name to generate the new messages, but I don't think "Error
> > reading blocks" offers much that "read error" doesn't.
> > 
> > New in v2: the last three patches add documentation, ensure CMD_WRITE
> > is set for sandbox and adds some basic test cases for the various ways
> > of accessing the partitions (by number, name, or as raw offset within
> > the whole disk).
> > 
> > v3: Add Simon's R-b to patches 2, 4, 5, fixup whitespace in patch 5.
> 
> Can this series be picked up for -next, please?

Yes. Getting out of a backlog now due to some lab issues.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230316/c114878a/attachment.sig>


More information about the U-Boot mailing list