nandwrite image fit re-checking?

Ricard Wanderlof ricard.wanderlof at axis.com
Tue Sep 11 17:55:42 EDT 2007


On Tue, 11 Sep 2007, linux01 at architechnical.net wrote:

> nandwrite doesn't appear to retest if the image still fits into a
> partition after it discovers bad blocks.  If I have an image the same size
> as a partition and a block is bad, would it then try to write the last
> block into the next partition after skipping the bad block?  (I assume the
> MTD layer would know it's out of range and fail on pwrite).  Is this
> considered a potential bug?

The mtd layer doesn't allow writes outside the current partition, so 
nandwrite fails and says the image is too big for the partition.

/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