From: Scott Wood Date: Wed, 11 Dec 2013 18:24:38 -0600 Subject: [U-Boot] [RFC PATCH] Add support for Micron MT29F8G08 8Gb NAND flash MID: 0x2c, DID: 0x38 In-Reply-To: <52A8D61C.2090006@gmail.com> References: <52A8464F.5000003@gmail.com> <1386782551.10013.190.camel@snotra.buserror.net> <52A8D61C.2090006@gmail.com> Message-ID: <1386807878.10013.226.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 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 > >> > >> Signed-off-by: Lothar Felten > >> CC: scottwood at freescale.com > >> > >> --- > >> drivers/mtd/nand/nand_ids.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c > >> index f3f0cb6..a43d0e8 100644 > >> --- a/drivers/mtd/nand/nand_ids.c > >> +++ b/drivers/mtd/nand/nand_ids.c > >> @@ -108,6 +108,7 @@ const struct nand_flash_dev nand_flash_ids[] = { > >> /* 8 Gigabit */ > >> {"NAND 1GiB 1,8V 8-bit", 0xA3, 0, 1024, 0, LP_OPTIONS}, > >> {"NAND 1GiB 3,3V 8-bit", 0xD3, 0, 1024, 0, LP_OPTIONS}, > >> + {"NAND 1GiB 3,3V 8-bit", 0x38, 0, 1024, 0, LP_OPTIONS}, > >> {"NAND 1GiB 1,8V 16-bit", 0xB3, 0, 1024, 0, LP_OPTIONS16}, > >> {"NAND 1GiB 3,3V 16-bit", 0xC3, 0, 1024, 0, LP_OPTIONS16}, > >> > > > > 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? -Scott