how to get temperature and set CPU frequency in sc fireware

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

how to get temperature and set CPU frequency in sc fireware

2,581 Views
wuguangnan110
Contributor I

hello:

   We found that CPU temperature was too high when running imx8 with high performance,and too high temperature will cause crash.So we need to reduce the CPU frequency when the CPU temperature is too high.

   and we refer to this article:

System Controller Firmware 101 - Miscellaneous service 

change as fllow:

board_system_config(...)

{

...

int16_t celsius;
int8_t tenths;
sc_misc_get_temp(ipc, SC_R_A53, SC_MISC_TEMP, &celsius, &tenths);

...

}

and it doesn't work,please tell me the way to solve this problem,thank u!

0 Kudos
5 Replies

2,295 Views
igorpadykov
NXP Employee
NXP Employee

Hi wuguangnan110

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

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

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

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,295 Views
wuguangnan110
Contributor I

Hi igorpadykov 

I'm sorry 

system version:Android P9.0.0_2.1.0_AUTO (4.14.98 kernel)

scfw version:L4.14.98_2.0.0_SCFWKIT-1.2

0 Kudos

2,295 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

2,295 Views
wuguangnan110
Contributor I

thank you!

   I find thermal driver in android system, I can get the temperature from it,like "cat /sys/class/thermal/thermal_zone0/temp".

   but I can't find the way to control cpu freq,is there have Temperature control strategy in imx8qm?

0 Kudos

2,295 Views
igorpadykov
NXP Employee
NXP Employee

one can check sect.2.9 Thermal Linux Manual included in

Linux 4.19.35_1.1.0 Documentation

Best regards
igor

0 Kudos