Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-27 Thread Julian Scheel
Hi Michael, all, On 26.07.2016 11:41, Kever Yang wrote: Hi Michael, On 07/26/2016 05:08 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 10:59 AM, Kever Yang wrote: Hi Michael, On 07/26/2016 04:37 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
Hi Michael, On 07/26/2016 05:08 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 10:59 AM, Kever Yang wrote: Hi Michael, On 07/26/2016 04:37 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang wrote:

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Michael Trimarchi
Hi On Tue, Jul 26, 2016 at 10:59 AM, Kever Yang wrote: > Hi Michael, > > > On 07/26/2016 04:37 PM, Michael Trimarchi wrote: >> >> Hi >> >> On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang >> wrote: >>> >>> The calculation of "dev_desc->lba - 34

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
Hi Michael, On 07/26/2016 04:37 PM, Michael Trimarchi wrote: Hi On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang wrote: The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34

Re: [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Michael Trimarchi
Hi On Tue, Jul 26, 2016 at 9:56 AM, Kever Yang wrote: > The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for > size '-', because both fist_usable_lba and last_usable_lba will remain > 34 sectors. > > We can simply use 0 for size '-' because the

[U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition

2016-07-26 Thread Kever Yang
The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34 sectors. We can simply use 0 for size '-' because the part_efi module will decode the size and auto extend the size to maximum available size.