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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,906 Views
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 Kudos
Reply
1 Solution
1,899 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,900 Views
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 Kudos
Reply
1,892 Views
Only_聆听
Contributor III

Hello SUN:

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

Only__0-1634203946803.png

 

 

0 Kudos
Reply