Project

General

Profile

NAND Flash Driver Crashes

Added by Mark Lyon over 11 years ago

When I try to use the NAND Flash Driver on Qnx with the default settings:
fs-etfs-mitydsp-omapl1xx -D addr=0x62000000,cs=3,width=2 -m /fs/etfs
It appears to crash after the initial use. I can do an ls of /fs/etfs and see files there, but then it goes away. All attempts to write to it fail. I ran the erase first, but it doesn't seem to make a difference.
There are no messages to the console or log about the failure.


Replies (5)

RE: NAND Flash Driver Crashes - Added by Michael Williamson over 11 years ago

Hi Mark,

I am wondering if you now have a module that contains a x8 NAND instead of a x16 NAND part.

A while ago Micron obsoleted the x16 NAND device and we are only able to get x8 NAND that the OMAP-L138 has hardware ECC capabilities for (the OMAP-L138 only supports 1-bit ECC for x16 width NAND, and the new x16 parts require a minimum of 4-bit ECC). This is posted in the MityDSP-L138 Errata, and we've update the u-Boot code and the Linux base code to detect the part installed and adjust the EMIFA drivers accordingly.

I am not certain if the QNX driver has this patch. I believe QNX was originally tested with earlier revisions of the OMAP-L138. I'll try to chase this down here and follow up.

-Mike

RE: NAND Flash Driver Crashes - Added by John Pruitt over 11 years ago

If the part has changed to be x8 instead of x16, then the driver command may need to change to reflect the part. I would start with

fs-etfs-mitydsp-omapl1xx -D addr=0x62000000,cs=3,width=1 -m /fs/etfs

changing the width to 1 instead of 2

RE: NAND Flash Driver Crashes - Added by Mark Lyon over 11 years ago

No joy. When I try to erase (or just load) it, I get a whole bunch of BADBLK errors:
fs-etfs-mitydsp-omapl1xx: readtrans3 BADBLK on cluster xxxxxx, status: 30, status2: 30
fs-etfs-mitydsp-omapl1xx: Unable to initialise ETFS systems (Input/output error)

With width=2 I get the following message:
Starting etfs driver...
ancr: 0x8144119, nandfcr: 0x4
nand id: 0x2c:ca:80:d5

# ls /fs/etfs
.badblks .counts .filetable .reserved
# cp /fs/etfs/.counts /fs/etfs/foo
cp: Can't open destination file. (/fs/etfs/foo): No such process
cp: close (/fs/etfs/.counts): Bad file descriptor
# ls /fs/etfs
ls: No such file or directory (/fs/etfs)

RE: NAND Flash Driver Crashes - Added by Michael Williamson over 11 years ago

Hi Mark,

Do you have an FPGA programmed while you are trying to perform these operations?

If you do, can you confirm that the FPGA configuration options float any unused IO pins? By default, FPGA bitstreams pull unused pins to ground, which can really cause problems on the EMIFA bus.

-Mike

RE: NAND Flash Driver Crashes - Added by Mark Lyon over 11 years ago

FPGA was the problem, it works now. Thanks Mike.

    (1-5/5)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)