[PATCH]: cmd: part: add part block command

Tom Rini trini at konsulko.com
Tue Jun 2 20:30:59 CEST 2020


On Tue, Jun 02, 2020 at 11:08:19AM -0700, razvan becheriu wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> setexpr can compute the divide/multiply part, but we still need to get the
> partition block size somehow.
> 
> I know that this is 0x200 by default, but we can not hardcode that in the
> scripts. we should read that from the partition info.

So there's plenty of examples today of hard-coding that value.  Are you
worried about a potential future change or an exists today problem you
can't otherwise determine the hardware revision of at run-time?  Thanks!

-- 
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/20200602/97f83999/attachment.sig>


More information about the U-Boot mailing list