I have a 1G NAND Flash device from Hynix, chip ID: 0xD3, oobsize: 128, page size: 4096, block size: 512Kbyte. I have problem in making it boot from that device.
I start the board by booting it through the UART, and use "nand write" to program the UBL to block 1 (address 0x8,0000), program the uboot code to block 2 (address 0x10,0000). Then set the boot option to boot from NAND (BOOT[4:1] = 0111), but nothing happend.
I have defined "CONFIG_SYS_NAND_PAGE_4K", "CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST" and "CONFIG_SYS_NAND_CS" to 3 in the da850evm.h. I have dump the content of what I written to block 1 and block 2, they seems looking good. I am wondering how the AM1808 boot rom knows which CS pin is attached to the NAND flash. There are 8 boot option pins, but the datasheet only defined four of them.
Does AM1808 support this flash type, or I have miss something, or I need to modify the UBL code?
Regards,
Colman