This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NAND flash read/write makes system lockup / freeze

Hi,

I am debugging a  board with omap 3530 and a Micron MT29F2G Nand flash part (none-POP type ). Environment is Linux (kernel 2.6.31-omap1 and many other versions from old to new). 

Everything seems to work fine , x-loader, uboot , kernel all boot fine from the flash. 

Flashing a larger area of the flash, a linux filesystem for instance will make the unit lock up. There are no signs of anything going wrong the system just locks, everything stops responding.

All kinds of tests :

-> using jffs2 as filesystem

-> using ubifs as a filesystem

-> nanddump / nandwrite of raw data

-> nandtest /dev/mtdx

-> hw ecc on/off

-> gpmc prefetch on/of

-> kernels 2.6.28 / 2.6.31 / 2.6.32

All of these actions could make the system lockup ,  but completely random. The larger the partition (mtd partition) the higher the chance a lockup will happen. I have many samples, and each sample has different results : from around 2% to 90 % chance of replication of the error.

As a reference I have a beagleboard , which never locks up this way (using the same binary versions of uboot/xloader/uImage )

The gpmc bus is further only used for DDR, nothing else is connected to it.

Any idea's tips are welcome ...