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,825件の閲覧回数
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,818件の閲覧回数
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,819件の閲覧回数
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,811件の閲覧回数
Only_聆听
Contributor III

Hello SUN:

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

Only__0-1634203946803.png

 

 

0 件の賞賛
返信