From: Scott Wood Date: Thu, 12 Dec 2013 13:12:52 -0600 Subject: [U-Boot] [RFC PATCH] Add support for Micron MT29F8G08 8Gb NAND flash MID: 0x2c, DID: 0x38 In-Reply-To: <52A975F0.2000002@gmail.com> References: <52A8464F.5000003@gmail.com> <1386782551.10013.190.camel@snotra.buserror.net> <52A8D61C.2090006@gmail.com> <1386807878.10013.226.camel@snotra.buserror.net> <52A975F0.2000002@gmail.com> Message-ID: <1386875572.10013.244.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2013-12-12 at 09:38 +0100, micro1183 wrote: > On 12/12/2013 01:24 AM, Scott Wood wrote: > > On Wed, 2013-12-11 at 22:16 +0100, micro1183 wrote: > >> On 12/11/2013 06:22 PM, Scott Wood wrote: > >>> On Wed, 2013-12-11 at 12:02 +0100, micro1183 wrote: > >>>> Microns MT29F8G08 8GBit flash is not identified correctly. > >>>> Manufacturer ID is 0x2c, device ID is 0x38 > >>>> > [snip] > >>>> > >>> > >>> Is this an ONFI flash? If so, use that instead of the ID table. > >>> > >>> -Scott > >>> > >> > >> Hi Scott, > >> > >> yes it's an ONFI flash, but the OOB size is 224 bytes, which results in > >> a data abort (see below). > >> > >> Apparently the supported ONFI detected OOB sizes are 8,16,64 and 128 bytes. > >> I lack a nand_oob_224 struct but I don't know what the default positions > >> would be. > > > > What NAND driver are you using? Are you using hardware ECC or software > > ECC? > > I use the omap nand driver, the cpu is a AM335x with hw ecc elm. > Depending on the flash type, the rom code expects BCH8 or BCH16 unless > ECC is completely disabled. > I'm not sure if the ecc hw is used but I see oob bytes being used. How > can I verify this? What version of U-Boot did you try? In particular, are you using top of tree which has Pekon Gupta's patchset which significantly modifies how ECC and layouts work in that driver? -Scott