Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] How to get cpuid?

44

Credits

10

Prestige

0

Contribution

new registration

Rank: 1

Credits
44

【Linux】 How to get cpuid?

Posted at 5/16/2022 18:50:35      View:1380 | Replies:3        Print      Only Author   [Copy Link] 1#
If I understand correctly, cpuid on rockchip devices is achievable via smth called 'efuses'. Looks like it must be defined in .dtd file for the platform, as it is done for RK3399, but i see no efuses definition in .dtd/.dtdi files for RK35xx family.

Is there any way this can be added?
Reply

Use props Report

486

Credits

20

Prestige

15

Contribution

intermediate

Rank: 3Rank: 3

Credits
486
Posted at 5/17/2022 15:42:31        Only Author  2#
For rk356x, 'otp' is used instead of 'efuse'.
This command can be used to view cpuid `cat /proc/cpuinfo`.You will see something like this, 'Serial : 144876a0841ff711'.
Reply

Use props Report

44

Credits

10

Prestige

0

Contribution

new registration

Rank: 1

Credits
44
Posted at 5/21/2022 19:13:20        Only Author  3#
时间的蝴蝶 Posted at 5/17/2022 15:42
For rk356x, 'otp' is used instead of 'efuse'.
This command can be used to view cpuid `cat /proc/cpu ...

I'm using armbian and looks like my .dtd file does not contain declarations for otp device. Where can I find official .dtd/.dts file for Station M2?
Reply

Use props Report

486

Credits

20

Prestige

15

Contribution

intermediate

Rank: 3Rank: 3

Credits
486
Posted at 6/1/2022 17:24:58        Only Author  4#
lexaguskov Posted at 5/21/2022 19:13
I'm using armbian and looks like my .dtd file does not contain declarations for otp device. Where  ...

https://gitlab.com/firefly-linux ... -firefly-roc-pc.dts
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list