Has anyone ever used the dataflash (AT45DB321) on the IMX51 EVK board?
I have derived my own board from the EVK design but I can't get the dataflash to work as a JFFS2 filesystem. I already discovered (and corrected) a fatal flaw in mxc_dataflash.c but I'm wondering how many more problems there are.
I'm not using it as a boot device. It seems I can read/write using mtd_debug but when I try to mount it I get a lot of messages like:
Newly-erased block contained word 0x20031985 at offset 0x00277200
The value after word is always the same. When I dump the flash around 0x00277200 I see it is empty. I think it is some race condition between the PMIC and the flash using the same SPI interface.
When I try to modify a file, the JFFS2 kernel driver produces a kernel bug originating from wbuf.c.
I'm using kernel version 2.6.35.5.
can you r/w in u-boot?