public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>
Cc: Linux mtd <linux-mtd@lists.infradead.org>
Subject: Re: mtd-utils/nandwrite: what if write fails?
Date: Fri, 27 Oct 2006 17:13:05 +0300	[thread overview]
Message-ID: <1161958385.3080.29.camel@sauron> (raw)
In-Reply-To: <Pine.LNX.4.64.0610271500310.25906@lnxricardw.se.axis.com>

On Fri, 2006-10-27 at 15:07 +0200, Ricard Wanderlof wrote:
> I assume that the mtd block devices don't provide any bad block management 
> either? (Hm, one could imagine a device which when written to simply 
> skipped bad blocks ... ?)
Yes. I personally have never used it because it is obviously very poor
FTL and is barely usable except for testing/debugging or such.

> A torture test would be nice too, but it's not really the same thing. 
> Blocks can go bad with time, and when one actually does go bad, it has to 
> be handled at that time.

I offer you to test it. Select an eraseblock, and erase it many times in
cycle and see what happens. It may be interesting. I can send you a test
module which does this.

> Another option would be to integrate erasure into nandwrite, so that it 
> could erase blocks prior to writing them, to give a completely integrated 
> utility. Writing to a non-erased (nand) flash is rather pointless anyway 
> isn't it? Naturally, one would want to set limits for the erasure so that 
> not the whole flash would have to be erased just to write a small image.

IMO be it makes sense to write a nice image flashing utility for this
instead from scratch.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

  reply	other threads:[~2006-10-27 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17 14:17 mtd-utils/nandwrite: what if write fails? Ricard Wanderlof
2006-10-17 14:36 ` Artem Bityutskiy
2006-10-27 13:07   ` Ricard Wanderlof
2006-10-27 14:13     ` Artem Bityutskiy [this message]
2006-10-17 15:33 ` Josh Boyer
2006-10-18  8:18   ` Ricard Wanderlof
2006-10-27 13:09   ` Ricard Wanderlof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1161958385.3080.29.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ricard.wanderlof@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox