driver - How to get manfid of SD card from linux? -
normal case.
(sd card <-> sd card socket <-> sdio <-> chip)
linux create /dev/mmcblk0p1 , can these information below:
/sys/block/mmcblk0/device/manfid
/sys/block/mmcblk0/device/oemid
/sys/block/mmcblk0/device/name
my case.
(sd card <-> sd card socket <-> usb hub <-> usb host <-> chip)
add usb hub connecting usb host sd socket.
usb hub 1 side link usb socket , sd socket, , other side link usb host.
when plug sd card, linux auto create /dev/sda.
final, find no manfid , oemid , name @ below:
/sys/block/sda/device/
so, @ case.
how manfid(and oemid , name) of sd card linux?
linux 3.0.8
udevinfo version 100
thank reading (my english poor).
you can't.
most usb sd card readers expose card usb mass storage device. don't provide way pass raw sd commands directly card, or read sd-specific registers such ones including manufacturer id.
Comments
Post a Comment