[U-Boot] [PATCH] fastboot: sparse: fix chunk write offset calculation

Maxime Ripard maxime.ripard at free-electrons.com
Wed Feb 3 11:18:50 CET 2016


Hi Jeffy,

On Tue, Feb 02, 2016 at 04:43:31PM +0800, Jeffy Chen wrote:
> We should count skipped blocks in when calculating write offset.
> 
> Signed-off-by: Jeffy Chen <jeffy.chen at rock-chips.com>

As I told you, this won't work in the NAND case.

If there's a bad block in the NAND, the offset will be incremented by
a block, and it won't be taken into account by the fastboot client,
and you'll end up writing on a block you already wrote to.

I guess the only solution is to make the storage backend scan the area
you skip so that it adjusts the skipped size, possibly extending it.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160203/0bcc7aac/attachment.sig>


More information about the U-Boot mailing list