LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2010, 10:58 AM   #1
sunilduttu
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
linux mmc block driver integration


Hi All,
I am working on integrating the mmc driver on Linux and when I try to mount the device I always get the error "mounting /dev/mmc on m failed: Invalid argument" .
I also see that when ever I try to mount,the drivers request function is invoked to read the first sector(MBR).Thus the driver always reads the MBR and returns to the filesystem.The moment I load the driver the drivers request function is invoked to read the first 8 sectors.The data for the block0 is as follows .The rest blocks are all 0.
00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000004bc1f59e00 033d061cfcd9f90007531e000000000000000000000000000000000000000000000000055aa.
Interpreting the above data I could see that the volumeID is present at the sector location 0x000000f9.
After giving this information I feel the file system should interpret the MBR's partition table and issue request with the calculated sector address.

he following are the instructions I have followed to mount the module.
mknode /dev/mmc b 254 0.
mount -t vfat /dev/mmc /mmc.(invalid argument)

When ever I do the mount I could see the drivers request function is invoked to read the first sector(sector 0).What should I do to make the file system read the volume ID (0x00000f9) sector.
Can any one help me in debugging this issue.
Regards,
Sunil
 
  


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



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 06:49 AM
What is the relationship between the linux mmc media driver and mmc host driver? archieval Linux - General 0 07-13-2009 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration