How do I read the local CPU temperatures from user space

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

How do I read the local CPU temperatures from user space

2,071 次查看
tmorrison
Contributor III

I tried to google and search through this forum, but I haven't found anything close to this.

Environment:

   I am running a LS1043a CPU with OpenWrt from qoriq-components repository.

In section 35 of the LS1043A Reference Manual, it says there are 5 local temperature sensors?

Are these registers available to be read (do they need to be calibrated)?

I guess what I'm saying is that I don't really know how to use the TMU and what I need to configure in the device tree to be able to use it. There seems no guide.

The default LS1043a device tree has "thermal_zones". Are these the sensors (although they have eight(8) thermal zones (0-8) in the device tree). 

I am happy to read manuals if there was one.

Thanks in advance!

标签 (1)
0 项奖励
回复
1 回复

2,053 次查看
bpe
NXP Employee
NXP Employee

The processor temperature sensors can be read via SYSFS. LSDK online documentation has a article explaining how to enable and use it. The recommendations are very basic and should work in any distro.

 

Hope it helps,
Platon

 

0 项奖励
回复