Linux Android 下如何读取SD卡的ID--读取SD Card ID(SD CID)
使用以下命令:
cat /sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0:1234/cid
或者使用通配符
cat /sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0:*/cid
得到32个字节的数据:
0254 4d53 4130 3847 0610 ebb5 5000 a93f
linux内核中对应的代码位于:
kernel\drivers\mmc\core\mmc.c
kernel\include\linux\mmc\card.h
kernel\include\linux\mmc\mmc.h
相关推荐
libowenhit 2010-09-30
跨越美利坚面试创业技术培训 2018-01-04
OathKeeper 2020-04-22
mattraynor 2020-04-14
wzxxtt0 2020-02-15
LiLiLiLaLa 2011-04-14
sgafdsg 2011-10-07
zhoujk00 2011-11-22
80266434 2017-07-27
IT精英联盟 2015-10-29
skywalker0 2015-07-26
85266438 2015-07-18
muyangzhe 2016-04-27
航帆远洋 2011-10-17
nankangren 2016-04-11
jancyliu 2015-11-12
海绵宝宝的欧尼 2012-05-17
airgreen 2012-05-17
SouthWind0 2011-11-17
luoj 2011-09-30
xuguolibeyondboy 2011-08-17
Tom天天 2011-06-07
apk0 2011-05-16
xfcyhades 2011-03-08
zlsh00 2010-12-02
huzhenv 2010-09-17
yeaperyeo 2010-09-16
bible 2010-08-23
laisean 2009-11-03