public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: sunil <usdutt@gmail.com>
To: linux-mmc@vger.kernel.org
Subject: mmc-spi block driver
Date: Thu, 23 Sep 2010 14:48:16 +0000 (UTC)	[thread overview]
Message-ID: <loom.20100923T163849-19@post.gmane.org> (raw)

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	other threads:[~2010-09-23 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20100923T163849-19@post.gmane.org \
    --to=usdutt@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox