From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Jürgen Kilb" <J.Kilb@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: NAND defect Block handling
Date: Fri, 25 May 2012 21:58:47 +0200 [thread overview]
Message-ID: <20120525195847.GT30400@pengutronix.de> (raw)
In-Reply-To: <OFFE55D117.F033B5DE-ONC1257A09.006BA85C-C1257A09.006BA869@phytec.de>
Hi Jürgen,
On Fri, May 25, 2012 at 09:35:54PM +0200, Jürgen Kilb wrote:
> Hi,
> I discovered a problem which I thought would be handled in a different way..
> During "tftp 250Mbyte_Testimage.bin /dev/nand0.rootfs.bb" an I/O error occurred
> and tftp stopped downloading/writing the file to the nand0.rootfs.bb partition.
>
> ===
> ...###################################write: I/O error
>
> tftp failed: error -5
> ===
>
> As far as I debugged the problem, a block erase error occurred. I thought the
> normal behavior should be, mark the defect block as bad and continue with
> the next block.
>
> What is the best way to handle such problems?
>
> - implement such a behavior if the destination is a *.bb device
> - add a nand_write command
> - add a global option to mark a bad nand block
We have a command for this: nand -b
I think the best was would be to automatically mark a block as bad when
it occurs. It should be configurable during runtime though so that we
can activate it once we know a driver is actually working. Otherwise
many developers end up with 100% bad blocks on their nand devices.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-05-25 19:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 19:35 Jürgen Kilb
2012-05-25 19:58 ` Sascha Hauer [this message]
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=20120525195847.GT30400@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=J.Kilb@phytec.de \
--cc=barebox@lists.infradead.org \
/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