I'm developing a board with i.MX6S.
I want to boot from a Nand flash, such as MT29F1G08ABADAWP. But <<i.MX 6Solo/6DualLite Applications Processor Reference Manual>> said that boot need FCB block. And the FCB data structure is protected using software ECC (SEC-DED Hamming Codes). Driver reads raw 2112 bytes of first sector and runs through software ECC engine that determines whether FCB data is valid or not.
How about the payout of this software ECC?
I need to write the right FCB data into Nand Flash chip.
Of course, if someone can give me the sample code, I 'm very appreciative