How to read the SD card ID in Linux Android-read the SD card ID (sd cid)

Source: Internet
Author: User

Original Works. reposted for the source!

 

 

Run the following command:

CAT/sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0: 1234/CID

Or use wildcards

CAT/sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0: */CID

 

Get 32 bytes of data:

0254 4d53 4130 3847 0610 ebb5 5000 a93f

 

In the kernel/Drivers/MMC/CORE/SD. c file:

The following array structure is used to save the SD card ID

 

Card-> raw_cid [0];

Card-> raw_cid [1];

Card-> raw_cid [2];

Card-> raw_cid [3];

 

 

Linux KernelCodeLocated:

 

Kernel/Drivers/MMC/CORE/SD. c

Kernel/Drivers/MMC/CORE/mmc. c

Kernel/include/Linux/MMC/card. h

Kernel/include/Linux/MMC/mmc. h

 

Keywords:

 

How to read the SD card ID in Linux Android -- read the SD card ID (sd cid)

Linux mmccard driver reads SD card ID

How to read the SD card ID

How to obtain the SD card ID

How to obtain the serial number of an SD card

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.