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

Tom Rini trini at konsulko.com
Tue Oct 20 02:06:47 CEST 2015


On Wed, Sep 23, 2015 at 12:50:39AM -0300, Fabio Estevam wrote:

> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> The dfu_alt_info_spl variable allows passing a starting point
> for the binary to be flashed in the SPI NOR.
> 
> For example, if we have 'dfu_alt_info_spl=spl raw 0x400', this means
> that we want to flash the binary starting at address 0x400.
> 
> In order to do so we need to erase the entire sector and write to
> the the subsequent SPI NOR sectors taking such start address
> into account for the address calculations.
> 
> Tested by succesfully writing SPL binary into 0x400 offset and
> the u-boot.img at offset 64 kiB of a SPL NOR.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> Acked-by: Lukasz Majewski <l.majewski at samsung.com>

After making this use lldiv() for the math,
Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151019/1544f083/attachment.sig>


More information about the U-Boot mailing list