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
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.
Solved! Go to Solution.
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
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
Hello SUN:
I have successfully read the UID according to your suggestion. Thank you very much