[U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

Fabio Estevam festevam at gmail.com
Wed Sep 23 17:44:06 CEST 2015


On Wed, Sep 23, 2015 at 12:36 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Wed, Sep 23, 2015 at 12:22 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
>
>> This feels wrong. The entries in the DFU list must already be
>> sector-aligned, so there's no need for the code to round them. If the
>> entries are not already aligned, then the aligned erase operations will
>> erase other data, which will cause corruption.
>
> The start address does not need to be sector-aligned.
>
> In my case the SPL image needs to be placed at 0x400.

Also, just to clarify: in this patch we make sure that the erase
operation are always sector-aligned.

Only the write operations can be 'shifted' due to the start address
passed via dfu_alt_info.


More information about the U-Boot mailing list