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

2020-06-05 Thread Tom Rini
On Tue, Jun 02, 2020 at 12:23:52PM -0700, razvan becheriu wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > hm... > > It seems that the changes never reached upstream: > > git://github.com/01org/edison-u-boot.git branch edison-v2014.04 > > this branch was implementing 'part info'

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

2020-06-02 Thread razvan becheriu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 hm... It seems that the changes never reached upstream: git://github.com/01org/edison-u-boot.git branch edison-v2014.04 this branch was implementing 'part info' sub-command which was useful to retrieve partition info. the new repo:

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

2020-06-02 Thread Tom Rini
On Tue, Jun 02, 2020 at 11:36:48AM -0700, razvan becheriu wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > here is the implementation of the functions: > > # function ota_conv_sizes > # Convert a bytes size to a block size > # input bytesize : size in bytes to convert > # input

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

2020-06-02 Thread razvan becheriu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 here is the implementation of the functions: # 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

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

2020-06-02 Thread Tom Rini
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

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

2020-06-02 Thread razvan becheriu
-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. On 2020-06-02

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

2020-06-02 Thread Tom Rini
On Mon, Jun 01, 2020 at 01:20:25PM +0300, razvan.beche...@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

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

2020-06-01 Thread razvan . becheriu
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