I get sporadic problems during NAND access on two different DM365EMV boards. Upon investigation I found:
- the UBL from DVSDK 3.10 beta release (http://arago-project.org/files/releases/davinci-psp_3.x.0.0/sources/flash-utils-davinci.tar.gz) sets the A1CR register of the AEMIF unconditionally to 0x40400204. At least Bit 30 (EW) should NOT be set according to the AEMIF User's Guide (sprufi1b) in NAND mode. So I'm not too confident with the other bits either.
- running nandtest from the mtd-utils package (http://www.linux-mtd.infradead.org/index.html) reveals sporadic problems during NAND read. It seems like the read missed exactly one byte:
root@dm365evm:~# nandtest /dev/mtd3
ECC corrections: 0
ECC failures : 5
Bad blocks : 58
BBT blocks : 0
...
compare failed. seed 1458165140
Byte 0x1e518 is cd should be 41
Byte 0x1e519 is 07 should be cd
Byte 0x1e51a is f5 should be 07
Byte 0x1e51b is ae should be f5
...
This problem does NOT occur always at the same location. The frequency of failures seems to change when I change values in the mentioned A1CR register, but I did not find a setting yet that makes the problem disappear.
Did somebody else experience such problems with NAND flash?
Regards, Andreas.