From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 20 Mar 2013 16:24:45 -0500 Subject: [U-Boot] freescale i.MX28 mxsboot NAND booting on mx28evk bad blocks In-Reply-To: <20130320212007.GL30773@bender.unx.csupomona.edu> (from henson@acm.org on Wed Mar 20 16:20:07 2013) References: <5147B63F.4020407@acm.org> <1363735407.16671.36@snotra> <20130320212007.GL30773@bender.unx.csupomona.edu> Message-ID: <1363814685.25034.17@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/20/2013 04:20:07 PM, Paul B. Henson wrote: > On Tue, Mar 19, 2013 at 06:23:27PM -0500, Scott Wood wrote: > > > > I don't think this is having any functional impact, as the scrub > > > component of burning a new nand image wipes out the bad blocks, > > > > You should not be routinely scrubbing NAND! > > > > The manufacturers put bad block information there for a reason. > > Hmm, I was following the instructions in doc/README.mx28_common, which > says to use "run update_nand_full" to burn the NAND image, and one > component of that per include/configs/mx28evk.h is: > > nand scrub -y 0x0 ${filesize} > > Are the instructions/env script incorrect? The env script is incorrect. Otavio, Marek, what's going on here? > I don't believe the bad blocks that linux finds are actual bad blocks, > and definitely not factory bad blocks. They seem to show up as a > byproduct of the way u-boot is burning the NAND image. They are always > at the same addresses (I tried two different NAND chips), and only > appear when u-boot is used to burn the bootstream, but not when > kobs-ng > is used. My guess is there's some mismatch regarding NAND layout, but someone more familiar with mx28 will need to answer that... -Scott