blue_z wrote:
Since you have a custom board, then why post in a forum for Atmel SAMA5 Xplained boards?

I apologize for posting a custom board query in Sama5d2_Xplained category. Henceforward would post my queries on custom board on appropriate category.

blue_z wrote:
Since you have a custom board, then why are you using the wrong directory and files?

As our custom board is based on the Sama5d2_xplained (XULT) board design (except nand flash), I thought this would be quick (and dirty) way to get the board up in first place..

blue_z wrote:
Backup, how did you write these images to NAND flash?
How did you verify that the images were written correctly?
What value did you use for the NAND parameter header?

I used sam-ba_3.2.0 to program the images to nandflash.
I also used "verify" command of nandflash applet in sam-ba to verify the image.
I used 0xc0098da5 first (which is a default one given in sam-ba_3.2.0, in sama5d2 examples), which is a wrong value.. I did not get any result.
Then I used "0xc0082e07", got the u-boot loaded and running...

I'm not an expert on this, but I get the impression (from every working example) that the eccOffset should be specified to locate the ECC data at the (very) end of the OOB area.
So your specification of the minimum offset is probably wrong.
For an OOB size of 224 bytes, 8 sectors per page, and 4 bits of ECC (which requires a code word of 7 bytes), the eccOffset should probably be 168 (224 - 8 * 7) or 0xA8.