From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 12 Feb 2010 12:53:46 -0600 Subject: [U-Boot] [PATCH] add explicit bbt creation to commandline In-Reply-To: <27567768.post@talk.nabble.com> References: <20080706080456.GF4167@prithivi.gnumonks.org> <27558231.post@talk.nabble.com> <20100212170411.GA21800@loki.buserror.net> <27566937.post@talk.nabble.com> <4B759454.8070906@freescale.com> <27567768.post@talk.nabble.com> Message-ID: <4B75A3BA.8000501@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Steven Zedeck wrote: > First of all, I inherited much of this code, especially the NAND-related > stuff. I've never needed to go into this portion of the code. > > It seems we are using the mtd driver as all our files dealing with nand are > in drivers/mtd/nand. The only place I see NAND_USE_FLASH_BBT being used is > in nand_bbt.c in nand_default_bbt. I see this: > > this->options |= NAND_USE_FLASH_BBT; > return nand_scan_bbt (mtd, &agand_flashbased); > > Is this what you are referring to? No, I mean in the NAND driver for your specific hardware (fsl_elbc_nand.c, mxc_nand.c, ndfc_nand.c, etc). > Also, once we get the BBT created, does the code that loads Linux use that > info ? The BBT is created on the flash. Linux runs pretty much the same code as u-boot and will use the on-flash BBT if its NAND driver specifies NAND_USE_FLASH_BBT. This isn't about in-memory BBTs. -Scott