Hello,
We have some issue on changing nand from nand 8 to nand 16.
We made the change as following:
int board_nand_init(struct nand_chip *nand)
{
int32_t gpmc_config = 0;
cs = 0;
+ gpmc_cfg->cs[cs].config1 |= 0x1000;
Bu then after doing the following command, we get that all blocks are detected as bad:
nand scrub.chip
nand erase.chip,
but in nand erase.chip I get that all blocks are detected as bad block!
AND erase.chip: device 0 whole chip
Skipping bad block at 0x00000000
Skipping bad block at 0x00020000
...
We are using am335 release u-boot-2013.01.01-psp06.00.00.00 .
and we compile it as following:
make O=am335x CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm distclean
make O=am335x CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm am335x_evm
Is the above u-boot psp version the latest for am335x ? Should it work with nand16 after doing the above gpmc modification ?
Maybe it is a matter of wrong nand gpmc configuration timing ?
Thanks for any ideas,
Ran