SPI DataFlash interfacing using 2.4.27-vrs1

Andrew Victor andrew at sanpeople.com
Fri Mar 11 01:37:39 EST 2005


hi Narinder,

Sorry for the late reply.

> I tried out mtd-snapshot-20050217.tar and latest one also but still not 
> able to get rid of my problem.

Either of those should work - the DataFlash support was merged before
then.


> If there is something crucial that i am missing out please let me know. 

There is one item I think I forgot to mention.

In the at91_dataflash.c driver, change the line:
    device->type = MTD_NORFLASH;
to
    device->type = MTD_DATAFLASH;

Then also make sure you have "JFFS2 write-buffering support" enabled in
the configuration.  (It's under the File Systems menu).

You should see the message "JFFS2 write-buffering enabled" printed to
kernel log when you mount the partition.  If you don't see it, the
Dataflash support is not correctly enabled.


Regards,
  Andrew Victor






More information about the linux-mtd mailing list