[PATCH] fwu: mtd: Fix dfu_alt_info generation for 2 images per bank

Tom Rini trini at konsulko.com
Tue Jul 25 23:13:09 CEST 2023


On Thu, Jul 13, 2023 at 04:36:27PM +0200, Michal Simek wrote:

> Code rewrites the last char of size with adding &. It is visible from
> dfu_alt_info print before this patch:
> 
> Make dfu_alt_info: 'mtd nor0=bank0 raw 2320000 80000;bank1 raw 27a0000
> 8000&mtd nor0=bank0 raw 23a0000 4000000;bank1 raw 2820000 4000000'
> 
> And after it:
> Make dfu_alt_info: 'mtd nor0=bank0 raw 2320000 80000;bank1 raw 27a0000
> 80000&mtd nor0=bank0 raw 23a0000 4000000;bank1 raw 2820000 4000000'
> 
> Size for bank0 and bank1 must be the same because it is the same image.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> Acked-by: Jassi Brar <jaswinder.singh at linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230725/9a02d096/attachment.sig>


More information about the U-Boot mailing list