This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Port 8-bit MLC Nand Flash to DM8148 EVM

Dear TI,

I am porting 8-bit Samsung Nand flash to DM8148 EVM board now.

The Nand flash is Samsung K9G8G08U0M.

Type:MLC

Size: 1GiB size,

Page size: (2K + 64)B

bus width: 8-bit

My U-boot version: u-boot-2010.06-psp04.01.00.06.patch1

Before I flash u-boot 1st stage and 2nd stage to nand, I already set CS0BW and BTMODE switch in right way.

My questions are :

1) For 8-bit nand flash, should I set "#define GPMC_NAND_ECC_LP_x8_LAYOUT     1" instead of "#define GPMC_NAND_ECC_LP_x16_LAYOUT     1" in ti8148_evm.h?

2) If I define  GPMC_NAND_ECC_LP_x8_LAYOUT     1, there is an compiler error means can't find "GPMC_NAND_HW_ECC_LAYOUT_KERNEL" , is it a bug? How can I work around it?

3) Actually I already flashed the 1st stage U-boot into the nand flash and it can work. But there are so many uncorrected ECC errors when loading 2nd stage "u-boot.bin".  Since I have to use HW BCH8 ECC scheme for this MLC nand, could I write 2nd stage u-boot with BCH8 ECC (It seems different to DM814x_AM387x_PSP_U-Boot.pdf P.22 describes)?

Thanks,

Jeffrey