[PATCH 13/15] RFC: lib: Support a binary prefix 0y

Wolfgang Denk wd at denx.de
Thu Jul 22 11:48:30 CEST 2021


Dear Simon,

In message <CAPnjgZ0i0BQbP_BOESVazq=1o-2otvKoecVt0n+DrJdkZgrJAg at mail.gmail.com> you wrote:
>
> > But ... do we really *need* all this stuff?
>
> No...
>
> I added binary as an RFC because I have found a few cases where it is
> nice to be able to specify the bits (e.g. programming GPIOs). We could
> update 'md' to support it too.

Yes, we could, but U-Boot size is continuously growing, even for
constant configurations, i. e. when no nmew features are
wanted/needed.

> I added octal as an RFC since the current impl is almost never
> available (only when 0 is parted to simple_strtoul()) which seems odd.

I can't see how this should work...

> Well, yes. Perhaps we should just drop octal?

Drop?  AFAICT we never supported octal. Something like "md 040" will
start dumping at 0x00000040, right?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are three things I always forget. Names, faces -  the  third  I
can't remember.                                         - Italo Svevo


More information about the U-Boot mailing list