public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* mmc-spi block driver
@ 2010-09-23 14:48 sunil
  0 siblings, 0 replies; only message in thread
From: sunil @ 2010-09-23 14:48 UTC (permalink / raw)
  To: linux-mmc

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-23 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 14:48 mmc-spi block driver sunil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox