How to read the UNIQUE ID(UID) of IMX8MM based on Android system?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to read the UNIQUE ID(UID) of IMX8MM based on Android system?

跳至解决方案
2,869 次查看
Only_聆听
Contributor III

Hello, great NXP engineer:

I saw a description of the UID register in the I-MX8mm(Android 9.2) reference manual, but there was no instruction on how to read it.  I followed the method of reading the I-MX6q UID, but it was not successful.  

I-mx6q(Android 4.4) reads the UID with the following command:

root@linaro-ubuntu-desktop:~#cat /sys/fsl_otp/HW_OCOTP_CFG0

root@linaro-ubuntu-desktop:~#cat /sys/fsl_otp/HW_OCOTP_CFG1

Only__0-1634201260314.png

Only__1-1634201715433.png

 

I found i-MX8mm unable to find directories or configuration files in I-MX6, which confused me. I find that many people are asking how to read the UID of I-MX8mm, but have not found the actual method, I hope you can give me some suggestions, thank you.

0 项奖励
回复
1 解答
2,862 次查看
BiyongSUN
NXP Employee
NXP Employee

if you read the code, you will find.

Do you have the soure code ? 

 

cat /sys/devices/soc0/soc_uid

5.10 and above
cat /sys/devices/soc0/serial_number

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,863 次查看
BiyongSUN
NXP Employee
NXP Employee

if you read the code, you will find.

Do you have the soure code ? 

 

cat /sys/devices/soc0/soc_uid

5.10 and above
cat /sys/devices/soc0/serial_number

 

0 项奖励
回复
2,855 次查看
Only_聆听
Contributor III

Hello SUN:

I have successfully read the UID according to your suggestion. Thank you very much

Only__0-1634203946803.png

 

 

0 项奖励
回复