Hi.
I'm using am3352 at custom board
it' has nand flash ( MT29F8G08ABACA - Micron )
I'm modify boot loader . flash info (am335x_evm.h)
/////////////////////////////
#define CONFIG_SYS_NAND_PAGE_SIZE 4096
#define CONFIG_SYS_NAND_OOBSIZE 224
#define CONFIG_SYS_NAND_BLOCK_SIZE (256*1024)
#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS
#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \
10, 11, 12, 13, 14, 15, 16, 17, \
18, 19, 20, 21, 22, 23, 24, 25, \
26, 27, 28, 29, 30, 31, 32, 33, \
34, 35, 36, 37, 38, 39, 40, 41, \
42, 43, 44, 45, 46, 47, 48, 49, \
50, 51, 52, 53, 54, 55, 56, 57, }
#define CONFIG_SYS_NAND_ECCSIZE 512
#define CONFIG_SYS_NAND_ECCBYTES 14
#define CONFIG_SYS_NAND_ECCSTEPS 8
////////////////////////////
i'm start uart boot sequence ..
check info ..
this is print at uart...
NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
and nand write. erase done....it 's not notice error
but boot argument change and write
... example ) serverip=xxx.xxxx..... -> saveenv
this is print at uart...
Erasing Nand...
check_offs_len: Unaligned address
nand0: MTD Erase failure: -22
After boot -uart boot
this is print at uart...
NAND read from offset 260000 failed -74
*** Warning - readenv() failed, using default environment
i'm guess that nand is miss matching ....
that is not support in driver or i'm missing...
Now is problem....
Thanks a lot!
Best Regards,