public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] skipping bad blocks when erasing nand
@ 2006-07-17 21:42 David Byron
  2006-07-20 23:22 ` Tolunay Orkun
  0 siblings, 1 reply; 16+ messages in thread
From: David Byron @ 2006-07-17 21:42 UTC (permalink / raw)
  To: u-boot

On Friday, July 14th, Wolfgang Denk wrote:	 

> I tend to agree here, which was the reason that I said I was  willing
> to  accept  the patch, but that at least the printf() shoould be kept
> so that the user gets the warning.

Sorry for the delay.  Here's a patch that lets the erase continue, but does
print a message.

-DB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nand_base.c.patch.2
Type: application/octet-stream
Size: 939 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060717/eca54814/attachment.obj 

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] skipping bad blocks when erasing nand
@ 2006-07-13 22:21 David Byron
  2006-07-13 22:45 ` Wolfgang Denk
  0 siblings, 1 reply; 16+ messages in thread
From: David Byron @ 2006-07-13 22:21 UTC (permalink / raw)
  To: u-boot

> Silently ignoring such errors without even  printing  a  message  and
> setting the return code of the command is not acceptable.

I guess I don't understand what's going on enough then.  Is it really an
error to come across a bad block?  I thought that was part of the deal when
using nand chips.  If, for example, I want to erase a whole chip, then
silently skipping bad blocks seems like the way to go.  I could see keeping
some kind of debug message, but something less severe than KERN_WARNING.
Would that make this acceptable?

Thanks for your help.

-DB

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [U-Boot-Users] skipping bad blocks when erasing nand
@ 2006-07-13 21:35 David Byron
  2006-07-13 21:48 ` Wolfgang Denk
  0 siblings, 1 reply; 16+ messages in thread
From: David Byron @ 2006-07-13 21:35 UTC (permalink / raw)
  To: u-boot

Apologies if this should go to the patches list.

This change gets u-boot to skip bad blocks during an erase operation instead
of giving up.

Comments?

-DB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nand_base.c.patch
Type: application/octet-stream
Size: 848 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060713/38e1e905/attachment.obj 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-08-22  9:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-17 21:42 [U-Boot-Users] skipping bad blocks when erasing nand David Byron
2006-07-20 23:22 ` Tolunay Orkun
2006-07-21  4:27   ` Stefan Roese
  -- strict thread matches above, loose matches on Subject: below --
2006-07-13 22:21 David Byron
2006-07-13 22:45 ` Wolfgang Denk
2006-07-13 23:13   ` Dave Hylands
2006-07-14  7:10     ` Joachim Jaeger
2006-07-14  7:14   ` Stefan Roese
2006-07-14  8:28     ` Wolfgang Denk
2006-07-14  8:47       ` Stefan Roese
2006-07-14  9:29         ` Wolfgang Denk
2006-07-14  9:58         ` Joachim Jaeger
2006-07-14 11:19           ` Wolfgang Denk
2006-08-22  9:44             ` Ladislav Michl
2006-07-13 21:35 David Byron
2006-07-13 21:48 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox