Part Number: AM3352
Tool/software: Linux
Hi, TI expert
SDK08.00.00.00 works well on custom hardware platform. Now we want to increase the NAND size from 2Gb to 32Gb. So MT29F32G08ABAAA need to be used to replace original MT29F2G08ABAEA. But when I have done this, U-boot can not bing up. Some code on u-boot-root-dir/include/configs/am335x_evm.h is modified as below. Page size, OOB size are already corrected. What should I do to the ECC part? And any other code should be modified?
#ifdef CONFIG_NAND
/* NAND: device related configs */
#define CONFIG_SYS_NAND_5_ADDR_CYCLE
#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
CONFIG_SYS_NAND_PAGE_SIZE)
#define CONFIG_SYS_NAND_PAGE_SIZE 8192
#define CONFIG_SYS_NAND_OOBSIZE 448
#define CONFIG_SYS_NAND_BLOCK_SIZE (1024*1024)
/* NAND: driver related configs */
#define CONFIG_NAND_OMAP_GPMC
#define CONFIG_NAND_OMAP_ELM
#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_ONFI_DETECTION
#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
#define MTDIDS_DEFAULT "nand0=nand.0"
#define MTDPARTS_DEFAULT "mtdparts=nand.0:" \
"1m(NAND.SPL)," \
"1m(NAND.SPL.backup1)," \
"1m(NAND.SPL.backup2)," \
"1m(NAND.SPL.backup3)," \
"1m(NAND.u-boot-spl-os)," \
"1m(NAND.u-boot)," \
"1m(NAND.u-boot-env)," \
"1m(NAND.u-boot-env.backup1)," \
"8m(NAND.kernel)," \
"-(NAND.file-system)"
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x00500000
Uboot can bring up from UART. The bootlog is
U-Boot 2014.07-00107-gd28f2b9-dirty (Sep 07 2018 - 12:13:59)
I2C: ready
DRAM: 256 MiB
NAND: 4096 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
U-Boot#
But when the MLO and u-boot.img is written to the NAND and boot again, "CCCCC" keeps on appear on UART
Best Regards
Yang