So I want to boot my custom board entirely from NAND flash and I am having problems with U-Boot showing that all blocks are bad. I thought I needed to change my ECC algorithm (I have MT29F4G08ABADAWP which has HW ECC), but I find U-Boot is missing the nandecc command.
I checked the sources and it is located in arch/arm/cpu/armv7/omap3/board.c, but this isn't even compiled for the am335x_evm target.
So, what should I do? Should I copy the implementation over to arch/arm/cpu/armv7/am33xx/board.c? Why isn't this code part of the generic OMAP GPMC code?
Also, can someone tell my what HW ECC algorithm to use with the above NAND chip?
BTW, this u-boot came from ti-sdk-am335x-evm-05.06.00.00 and prints this string on boot: U-Boot 2012.10-svn8
Thanks