On Thu, Mar 18, 2010 at 11:55:29AM +0500, Nikolay Petukhov wrote: > + /* move to ECC position if needed */ > + if (eccpos[0] != 0) { > + /* This only works on large pages > + * because the ECC controller waits for > + * NAND_CMD_RNDOUTSTART after the > + * NAND_CMD_RNDOUT. > + * anyway, for small pages, the eccpos[0] == 0 > + */ > + chip->cmdfunc(mtd, NAND_CMD_RNDOUT, > + mtd->writesize + eccpos[0], -1); > + } [snip] > + /* get back to oob start (end of page) */ > + chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1);
Is the second RNDOUT OK on small page NAND? > + //struct atmel_nand_host *host = nand_chip->priv; Just remove the line. -Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot