now i have tool,bin2nand which support BCH16
i use it ,found some question .
Bin2nand_v1_2_0 -spare 128 -bch 16 -block 64 NAND_boot_ti.bin convert1.bin
I call bin2nand from the above command line,it have some question?
for example. address=00000000 ,data is 50 b4 00 00 00 04 2b 04 6c 00 9f e5 db f0 21 e3
after use bin2nand, the new file address=00000000 data is 50 d0 94 00 00 00 04 2f 40 6c 00 c2 9f d1 85
address=00000000 the data is should be no change,and other address data is aslo wrong.
so if add ECC data ,ADDRESS=00000000-0X00000800 the data is should not change .
and Address 0x00000800 -0x00000870 is add ecc data