mtd-utils: ubiformat: writing images on flash with badblocks.

Ricard Wanderlof ricard.wanderlof at axis.com
Mon Sep 12 02:41:55 EDT 2011


> On Sun, 11 Sep 2011, Artem Bityutskiy wrote:
> 
> This issue was reported and analyzed by
> Anton Olofsson <anol.martinsson at gmail.com>:
> 
> when ubiformat encounters a write error while flashing the UBI image (which may
> come from a file of from stdout), it correctly marks the faulty eraseblock as
> bad and skips it. However, it also incorrectly drops the data buffer which was
> supposed to be written, and reads next block of data.

I'm just curious, how come this has gone unnoticed for so long? One would 
think that someone would have tried to flash an image to a chip with bad 
blocks a long time ago?

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list