AM437x
log如下
1.217199] GPIO line 151 (SelEMMCorNAND) hogged as output/low
[ 1.223812] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.229091] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.236796] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.243183] nand: Micron MT29F4G08ABADAWP
[ 1.247256] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.254928] Using OMAP_ECC_BCH16_CODE_HW ECC scheme
[ 1.259855] omap2-nand 8000000.nand: Not enough OOB bytes: required = 106, available=64
[ 1.267947] omap2-nand: probe of 8000000.nand failed with error -22
在uboot中,已经配置了OOB size为224,但这里还是64
Shine:
请问是把CONFIG_SYS_NAND_OOBSIZE设成224了么?
user3688025:
回复 Shine:
是的,在uboot的am437x_evm.h中已经设置成了224了
#define CONFIG_SYS_NAND_PAGE_SIZE 4096#define CONFIG_SYS_NAND_OOBSIZE 224#define CONFIG_SYS_NAND_BLOCK_SIZE (256*1024)
这个是默认的设置,并没有改动。
但是在uboot中,使用nand info时,输出的oob size还是64