简体   繁体   中英

How to get manfid of SD card from linux?



Linux will create /dev/mmcblk0p1 and I can get these information below:
/sys/block/mmcblk0/device/manfid
/sys/block/mmcblk0/device/oemid
/sys/block/mmcblk0/device/name



Extra add a USB Hub that for connecting USB host with SD socket.
The USB hub one side is link a USB socket and a SD socket, and other side is link USB host.
When I plug SD card, linux will auto create /dev/sda.
Final, i find no manfid and oemid and name at below:
/sys/block/sda/device/

So, at my case.

Linux 3.0.8
udevinfo version 100

Thank you for reading it (my English so poor).

You probably can't.

Most USB SD card readers only expose the card as a USB mass storage device. They don't provide any way to pass raw SD commands directly to the card, or to read SD-specific registers such as the ones including the manufacturer ID.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM