![]() When you use a USB SD Card reader on the other hand, it uses the generic "USB mass storage device" interface - so when your PC is talking to the USB card reader, it doesn't even really know it's talking to an SD card specifically, it just treats it like its another generic USB storage device (like a flash drive or something). The driver has to send specific commands to the SD card to read these registers. The CID information is stored on a register on the SD card, and you can only access it through SPI (usually). ![]() I ran into this problem just the other day (and stumbled across this question in my search), and it looks like the answer is that it's not really possible. Is there any way to read SD card serial number mounted as sda? Any suggestions are welcome! $ ls /sys/block/sda/deviceīlacklist evt_soft_threshold_reached rescanĮvt_capacity_change_reported modalias timeoutĮvt_mode_parameter_change_reported queue_type wwid $ ls /sys/block/mmcblk0/deviceĬsd erase_size name preferred_erase_size ssrīut, about the SD card connected with USB SD card reader/writer mounted on the device of sda, I can't see the cid file. ![]() On Raspberry pi, I can read the serial number of SD card mounted on the built-in SD card drive from cid file under /sys/block/mmcblk0/device folder.
0 Comments
Leave a Reply. |