Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SPI Dataflash AT45DB642D and AT91SAM9260EK -> not in /dev
PostPosted: Tue Mar 18, 2008 8:08 pm 
Offline

Joined: Tue Jun 26, 2007 6:27 pm
Posts: 81
Hello,

Leinux doesn´t show me the SPI DataFlash in the /dev/ folder ?

What Kernel Options do I have to set, to make the Dataflash be shown in the /dev/ directory ?

Especially the MTD Options...

(I use Kernel 2.6.24.3)

Thank you very much...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 11:10 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
HI there

The mechanism for accessing DataFlash is through MTD partitions.

I've manually created the device nodes for MTD partitions. Then I've added this to the init script. Don't know if there is an "automatic" method.

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 7:37 pm 
Offline

Joined: Tue Jun 26, 2007 6:27 pm
Posts: 81
WHow could I manually create the partitions ?

I need mtd6, mtd6ro and mtdblock6 for the first partition, the same with index 7 for the second partition.

Should I have to use mknod ?

But which paramters ?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 9:55 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

This might work:

mknod -m 660 /dev/mtd6 c 90 12
mknod -m 440 /dev/mtd6ro c 90 12
mknod -m 660 /dev/mtdblock6 b 31 6
mknod -m 660 /dev/mtd7 c 90 14
mknod -m 440 /dev/mtd7ro c 90 14
mknod -m 660 /dev/mtdblock7 b 31 7

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: