[U-Boot] [PATCH] disk: Don't assume blksz > legacy_mbr

Rob Clark robdclark at gmail.com
Tue Oct 3 16:32:35 UTC 2017


On Tue, Oct 3, 2017 at 12:04 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Tue, Oct 3, 2017 at 12:30 PM, Rob Clark <robdclark at gmail.com> wrote:
>> On some devices, this does not appear to be a valid assumption.  So
>> figure out the number of blocks we actually need to read.
>>
>> Signed-off-by: Rob Clark <robdclark at gmail.com>
>
> This version does not solve the mx6 spl boot issue.

Hmm, the change you had tested earlier is not correct, since it would
allocate potentially less than blksz (and then read blksz bytes into
it)..

*maybe* the memory allocation is failing?  I'm not sure, I'm kind of
just guessing here.  It would be nice to know what blksz is on your
device.  (That said, before the original patch, the allocation was for
blksz bytes too, so if this were the issue I think it would have been
failing before.)

BR,
-R


More information about the U-Boot mailing list