how to run MMC tests on my ubuntu laptop?
Robert P. J. Day
rpjday at crashcourse.ca
Wed May 25 10:46:40 EDT 2011
probably a simple question but i'd like to play with the MMC driver;
in particular, i want to experiment with the mmc_test module on my
ubuntu laptop if that's possible.
i've configured the kernel so that i have a loadable mmc_test module
and i can certainly load and unload it, and i found what looks like a
coherent example of its use here:
http://us.generation-nt.com/answer/patch-mmc-test-move-files-sysfs-debugfs-help-200251881.html
the problem *seems* to be that, when i insert an SD card into the slot
on my ubuntu laptop, what shows up in /var/log/messages is:
May 25 10:41:50 lynx kernel: [44208.051370] usb 1-1.1: new high speed USB device number 9 using ehci_hcd
May 25 10:41:50 lynx kernel: [44208.177928] scsi10 : usb-storage 1-1.1:1.0
May 25 10:41:51 lynx kernel: [44209.173498] scsi 10:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
May 25 10:41:51 lynx kernel: [44209.174871] sd 10:0:0:0: Attached scsi generic sg2 type 0
May 25 10:41:52 lynx kernel: [44210.332466] sd 10:0:0:0: [sdb] 7729152 512-byte logical blocks: (3.95 GB/3.68 GiB)
May 25 10:41:52 lynx kernel: [44210.333320] sd 10:0:0:0: [sdb] Write Protect is off
May 25 10:41:52 lynx kernel: [44210.339425] sdb: sdb1 sdb2 sdb3
May 25 10:41:52 lynx kernel: [44210.341786] sd 10:0:0:0: [sdb] Attached SCSI removable disk
May 25 10:41:53 lynx kernel: [44210.846189] EXT3-fs: barriers not enabled
May 25 10:41:53 lynx kernel: [44210.847598] kjournald starting. Commit interval 5 seconds
May 25 10:41:53 lynx kernel: [44210.866802] EXT3-fs (sdb2): using internal journal
May 25 10:41:53 lynx kernel: [44210.866810] EXT3-fs (sdb2): mounted filesystem with ordered data mode
... snip ...
so that, clearly, this linux 2.6.39+ kernel sees the device as SCSI,
handled by the usb-storage driver. under the circumstances, how would
i (if it's even possible) access the card at the level necessary to
run things like MMC tests? obviously, i would first unmount the two
filesystems on it since those tests are destructive. but i've loaded
the mmc_test module and inserted the card, and i don't see the
appropriate subdirectory under /sys/kernel/debug.
would someone with MMC/SD experience point me in the right direction
as to how to start accessing the card at the driver level from user
space, given my situation above? thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the Kernelnewbies
mailing list