From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 2 Jun 2020 14:30:59 -0400 Subject: [PATCH]: cmd: part: add part block command In-Reply-To: References: <20200601102026.51707-1-razvan.becheriu@gmail.com> <20200602175514.GO21630@bill-the-cat> Message-ID: <20200602183059.GR21630@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: