On Wed, Apr 10, 2013 at 06:04:52PM +0200, Eric Bénard wrote: > if the flash has a known type, the ONFI detection won't occur > and thus we may not detect the right parameters. > By testing both namd and pagesize, as done in the kernel, we > can detect ONFI flash with know IDs. > > As an example on an i.MX53 board : > - without the patch : > NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 > (Micron NAND 1GiB 3,3V 8-bit), page size: 4096, OOB size: 128 > > - with the patch : > ONFI flash detected ... ONFI param page 0 valid > NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 > (Micron MT29F8G08ABACAWP), page size: 4096, OOB size: 224 > > in the first case the OOB size is wrong. > > Signed-off-by: Eric Bénard <eric@xxxxxxxxxx> Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox