I have a custom board with AM335x connected to a NAND flash that has page size of 4Kbyte and 224 bytes spare area.
Reading in the AM335x documentation regarding booting from NAND, the boot will use 16bit BCH ECC.
However, there is no support in either NAND Flash Tool or nandlib to turn on BCH 16bit. I am currently trying to add this, but are having trouble to set up everything correctly.
For example, the NAND Page Mapping documentation talks about eccsize1 and eccsize0 being nibbles, but the register GPMC_ECC_SIZE_CONFIG states bytes.
Also, the spare mapping expected by the NAND boot loader is hard to match with the described page mappings found under GPMC documentation (2 bytes + ECC sector 0 + ECC sector 1...ECC sector 8)
Have anyone succeeded in boot with NAND that has a large spare area using BCH 16-bit? Any example code from TI?
Or am I completely wrong in my assumptions?
Any help is appreciated!