[PATCH]: cmd: part: add part block command
Tom Rini
trini at konsulko.com
Tue Jun 2 19:55:14 CEST 2020
On Mon, Jun 01, 2020 at 01:20:25PM +0300, razvan.becheriu at gmail.com wrote:
>
> The Intel Edison OTA process requires a conversion of data size
> from bytes to number of blocks. The following functions are used:
>
> # function ota_conv_sizes
> # Convert a bytes size to a block size
> # input bytesize : size in bytes to convert
> # input blksize : size of a block in bytes
> # output num_blk : converted size in blocks
>
> # function ota_mmc_write
> # Write a memory buffer to mmc drive
> # input floadaddr : address of buffer to write
> # input u_part_start : block start in mmc
> # input num_blk : number of block to write
>
> This patch adds the cmd part sub-command 'block' which returns
> the partition block size in bytes.
This is usually done with the setexpr command today, 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/45b0f8be/attachment.sig>
More information about the U-Boot
mailing list