LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 03-17-2009, 01:58 AM   #1
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Rep: Reputation: 17
how to enable MMC/SD card interface ?


Dear all,
im using a at91sam9261ek board . i have compiled the kernel with MMC/SD block device driver enabled and vfat and dos file system enable also. but still its not workin !! do we have to make any changes in the board file arch/arm/mach-at91board-sam9261ek.c? or any changes in the kernel configuration? let me know . thanks.
warm regards,
Ravi Kulkarni .
 
Old 03-18-2009, 04:06 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
You need to debug all the layers. First start with the interface to the card: SDIO, SPI? The drivers should report something at boot. Check if the card is detected at the lowest possible layer.
 
Old 03-21-2009, 12:48 AM   #3
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Original Poster
Rep: Reputation: 17
@mara

Quote:
Originally Posted by Mara View Post
You need to debug all the layers. First start with the interface to the card: SDIO, SPI? The drivers should report something at boot. Check if the card is detected at the lowest possible layer.
Thanks mara . i found that MMC/SD card uses the same clock line used by Atmel SPI controller. so if disable that my MMC/SD card works. how should i try to change the interface so that i can use both at a time? any links or tutorials on that would be very helpful.
warm regards,
Ravi Kulkarni.
 
Old 03-28-2009, 06:42 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
I guess your processor has SPI or MMC/SD on the same pins. That means you can use it for one function at a time. You need to decide which way to go. If, and only if, the card supports SPI (unlikely?), you have an option. If not you probably need to migrate some of the hardware (I understand you use the SPI in question for some other device) to a different SPI or MMC port.
 
Old 04-07-2009, 11:25 AM   #5
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Original Poster
Rep: Reputation: 17
Hi mara,
u are right. i can use it only one at a time. However if i design my custom board based on this by using a different clock line im able to use this. so tat solves the trick. thanks Mara.
warm regards,
Ravi kulkarni.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ricoh Sd/mmc Card Reader Won't Read Mmc Cards it-s Linux - Hardware 4 07-02-2011 05:49 AM
how to enable mmc card ? jabka Linux - Laptop and Netbook 4 02-07-2007 02:53 PM
SD/MMC-Card Reader hubideg Suse/Novell 2 05-17-2006 08:31 PM
MMC/SD card reader jnsg Slackware 11 04-18-2006 02:36 AM
Accessing MMC card in Laptop built-in MMC Card Slot with knoppix bröggle Linux - Laptop and Netbook 0 08-18-2004 08:44 AM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration