1. What version of the SDK/PSP are you using? Since PSP version 04.06.00.09-rc2 only BCH8 ECC algorithm is supported, so you don't need to use the "nandecc" command.
2. It is strongly recommended to have 3 copies of the MLO in the NAND memory after the original MLO, each with 0x20000 offset from the previous one, as shown in the NAND Layout:
[quote]
+------------+-->0x00000000-> SPL start (SPL copy on 1st block) | | | |-->0x0001FFFF-> SPL end | |-->0x00020000-> SPL.backup1 start (SPL copy on 2nd block) | | | |-->0x0003FFFF-> SPL.backup1 end | |-->0x00040000-> SPL.backup2 start (SPL copy on 3rd block) | | | |-->0x0005FFFF-> SPL.backup2 end | |-->0x00060000-> SPL.backup3 start (SPL copy on 4th block) | | | |-->0x0007FFFF-> SPL.backup3 end
[/quote]
The SPL backups are required in case corruption occurs.
3. Please provide more information (a log) of what exactly is displayed (if anything) when the NAND boot fails.
4. How is your NAND flash connected to the GPMC? Is the GPMC WAIT0 signal connected?
Best regards,
Miroslav