Hi Rik, This patch is for U-Boot only. You might wanna find the kernel patch at http://rocketboards.org/gitweb/?p=linux-socfpga.git;a=commit;h=23b95d8c25d34afadc82325313f25e72d76c5cef
While for your issue, its quite strange. Currently, we are using 512 byte sector protected with 8 bit ECC. With this configuration, we will need around 58 bytes at OOB. This is to accommodate 2 bytes bad block market + 42 bytes data + 14 bytes ECC. Wonder you are using different configuration? Thanks and have a nice day! Chin Liang On Fri, 2014-05-30 at 11:06 +0000, Rik Smith wrote: > Chin, > > I was wondering which kernel this patch went into or is going into? > > I am having problems with accessing a hynix NAND from an altera > cyclone V > using kernel 3.11. It is coming up with a kernel driver error on boot > of: > "Your NAND chip OOB is not large enough to contain 8bit ECC correction > codes" > > Looking for help on this issue. > > Cheers > Rik > > kernel bootlog extract: > > at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write > denali-nand-dt ff900000.flash: Dump timing register values:acc_clks: > 0, > re_2_we: 50, re_2_re: 50 > we_2_re: 5170, addr_2_data: 5170, rdwr_en_lo_cnt: 18 > rdwr_en_hi_cnt: 12, cs_setup_cnt: 3 > NAND device: Manufacturer ID: 0xad, Chip ID: 0xd5 (Hynix NAND 2GiB > 3,3V > 8-bit), 2048MiB, page size: 4096, OOB size: 64 > Your NAND chip OOB is not large enough > to > contain 8bit ECC correction codes > cadence-qspi ff705000.flash: DMA NOT enabled > cadence-qspi ff705000.flash: master is unqueued, this is deprecated > m25p80 spi2.0: found n25q00, expected n25q512a > > > > ______________________________________________________________________ > Rik Smith | Senior Software Engineer > > > > > > Optos Plc > Queensferry House > Carnegie Campus > Enterprise Way, Dunfermline > Scotland, UK > > KY11 8GR > > > > Tel: +44 (0)1383 843300 > > Dir: +44 (0)1383 843427 > > Fax: +44 (0)1383 843333 > > Email: rsm...@optos.com > > Web: www.optos.com > > > > > > > Transmission of this email and any files that may be attached is > confidential and may contain proprietary information, and is intended > solely for the use of the individual(s) or entity to who it is > addressed. If you are not the intended recipient, any use including, > but not limited to, dissemination, printing or copying of the email > and its attachments is strictly prohibited.If you have received the > email in error you are requested to contact the sender by telephone > and permanently delete the material from your system.Any views or > opinions expressed herein are solely those of the individual sender > and do not necessarily represent those of Optos plc or its subsidiary > companies. Precautions have been taken to minimize the risk of > transmitting software viruses. Optos plc requests virus checks on any > attachments to this message are carried out by the recipient(s), as no > responsibility or liability can be assumed for any loss or damage to > the recipient's computer software or hardware. OPTOS PLC. SC139953. > REGISTERED OFFICE. QUEENSFERRY HOUSE, CARNEGIE CAMPUS, ENTERPRISE WAY, > DUNFERMLINE, SCOTLAND, KY11 8GR, UNITED KINGDOM; OPTOS INC. 67 FOREST > STREET, MARLBOROUGH, MA 01752, USA; OPTOS GmbH. PRINZENALLEE 7, > D-40549, DÜSSELDORF, GERMANY. GESCHÄFTSFÜHRER: ROY DAVIS, ROBERT > KENNEDY. AMTSGERICHT MANNHEIM HRB 700 960 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot