how to get cpu temperature in t1042d4rdb

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

how to get cpu temperature in t1042d4rdb

1,722 Views
sadeghi
Contributor I

Hi,

I have QorIQ-sdk-V2.0-20160527-yocto and I can build Image for t1042d4rdb machine

I want to get cpu temperature and monitor it in my application, but I cant find the temperature in its linux!

I have QorIQ-sdk document too, in it said that I must check this parameter in kernel :

<*> CPU frequency scaling driver for NXP QorIQ SoCs

but I couldnt find it ! there is :

<*> CPU frequency scaling driver for Freescale QorIQ SoCs

in menuconfig.

there is a Device Tree Binding section in document too, what I must do with IT ?

Im new in Embedded Linux developing, can you help me to how I can access to cpu temperature ??

I want a simple road map to do

sorry for poor English.

thank you!

0 Kudos
6 Replies

1,549 Views
sadeghi
Contributor I

I add these variables to kenel config :

CONFIG_QORIQ_CPUFREQ=y

CONFIG_THERMAL=y

CONFIG_CPU_THERMAL=y

CONFIG_QORIQ_THERMAL=y

after building and booting the board, I see these log in kernel boot log :

    qoriq_thermal ffe0f0000.tmu: Failed to register thermal zone device -517
   qoriq_thermal ffe0f0000.tmu: Failed to register thermal zone device -517
   qoriq_thermal ffe0f0000.tmu: Failed to register thermal zone device -517

and there is no "/sys/class/thermal/thermal_zone0/" directory in /sys/class/thermal/

how I can get Cpu temperature ??

can you help me? Is there any way to get cpu temperature

0 Kudos

1,549 Views
ufedor
NXP Employee
NXP Employee

Use the option "Freescale QorIQ SoCs".

0 Kudos

1,549 Views
sadeghi
Contributor I

thanks a lot !

and what about device Tree code that mentioned in document??

selecting neccesary option in kernel is enough for my purpose ??

0 Kudos

1,549 Views
sadeghi
Contributor I

thanks, you are right

but my question now is about cpu temperature, because All of development are done on this version and now I want only cpu temperature

then I can update and cotinue...

0 Kudos

1,549 Views
ufedor
NXP Employee
NXP Employee

You wrote:

> I have QorIQ-sdk-V2.0-20160527-yocto

Please install update "QorIQ Linux SDK v2.0-1703" available for download here:

Linux® SDK for QorIQ® Processors | NXP 

0 Kudos

1,549 Views
patriciaotero15
Contributor I

Hi,

 

for using this article it is necessary to use SCFW Porting Kit

Please also check processor revision, as old may not work with the latest Linux

releases described on i.MX Software and Development Tools | NXP paymydoctor

 

Best regards.

0 Kudos