[U-Boot-Users] skipping bad blocks when erasing nand

Wolfgang Denk wd at denx.de
Fri Jul 14 00:45:45 CEST 2006


In message <000001c6a6ca$bd0b3230$a134800a at RudiDell> you wrote:
> > 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

It should at least be reported to the user - otherwise he assumes  to
have an error-free medium.

> 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

No, I think I would want to see reports about unerasable blocks here.

> some kind of debug message, but something less severe than KERN_WARNING.
> Would that make this acceptable?

It should be a regular message, not only debug.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Human beings were created by water to transport it uphill.




More information about the U-Boot mailing list