Hi Everyone,
I'm trying to get my custom DM385 board booting from nand. The nand we are using is MT29F2G08ABAGAH4-IT:G.
Currently, I can successfully boot the system two ways:
1. Boot from SD card, which loads the first and second stage uboot from the card, but loads the kernel and rootfs from the nand.
2. Load u-boot.min.nand using XMODEM upon power on (When I receive the CCCCC... prompt over serial). Once loaded, u-boot.min will run, loading u-boot from nand and then into the kernel.
I've tried programming the u-boot.min.nand file from the second stage u-boot with the following commands:
mmc rescan 0;fatload mmc 0 0x81000000 u-boot.min.nand; nand erase 0x0 0x20000;nand write.i 0x81000000 0x0 0x20000
I've also tried setting the nandecc to HW_ECC_BCH8 before programming the u-boot.min.nand with the following commands:
nandecc hw 2
mmc rescan 0;fatload mmc 0 0x81000000 u-boot.min.nand; nand erase 0x0 0x20000;nand write.i 0x81000000 0x0 0x20000
This also does not seem to work. Whenever I reboot the system, I just receive the CCCC prompt.
Any idea on what I need to do to get this working?
Thanks
mt
329f2g u-boot.min.nand