From: Wolfgang Denk Date: Tue, 16 Jun 2009 22:09:40 +0200 Subject: [U-Boot] PATCH: bugfix for nand erase failure with bad blocks In-Reply-To: <4A37F7BF.2090101@valueteam.com> References: <4A3798C4.8000303@valueteam.com> <20090616181035.52228832E416@gemini.denx.de> <4A37F7BF.2090101@valueteam.com> Message-ID: <20090616200940.DD093832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Michele De Candia (VT)", In message <4A37F7BF.2090101@valueteam.com> you wrote: > > >> this patch fixes a bug for 'nand erase' command: when bad blocks are > >> present into erasing area, they were skipped but the erased size was > >> updated anyway. > > > > And what exactly is the bug in this behaviour? > > > I think that 'erase' should have the same behaviour of 'write' and > 'read' commands: skip bad blocks until read/write size is reached. If > you write a script that erases and then writes a NAND area and bad > blocks are not skipped while erasing (as U-Boot actually does), the > following 'write' is successfully done but ECC checks fail on next read > on the same area. I see - thanks for the explanation. Hm... actually I think the write should fail in such a case... Scott, what do you think? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Only in our dreams we are free. The rest of the time we need wages. - Terry Pratchett, _Wyrd Sisters_