Temperature is not available at /sys/class/thermal/thermal_zoneX/temp on BSP FSL 1046a

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

Temperature is not available at /sys/class/thermal/thermal_zoneX/temp on BSP FSL 1046a

Jump to solution
7,658 Views
javier_tia
Contributor III

Hi,

After upgrading to Linux kernel 5.4 and using the LSDK-20.12-V5.4 tag code, temperature values are not readable in the thermal zones. It was working before with LSDK-19.09-update-311219-V4.19.

# cat /sys/class/thermal/thermal_zone*/temp
cat: /sys/class/thermal/thermal_zone0/temp: Invalid argument
cat: /sys/class/thermal/thermal_zone1/temp: Invalid argument
cat: /sys/class/thermal/thermal_zone2/temp: Invalid argument
cat: /sys/class/thermal/thermal_zone3/temp: Invalid argument
cat: /sys/class/thermal/thermal_zone4/temp: Invalid argument

I guess should be using this device tree provided here:

https://source.codeaurora.org/external/qoriq/qoriq-components/linux/tree/arch/arm64/boot/dts/freesca...

What could be missing on the kernel side? I can provide more information if it's required.

0 Kudos
1 Solution
7,646 Views
yipingwang
NXP TechSupport
NXP TechSupport

I downloaded pre_built image lsdk2012_yocto_tiny_LS_arm64.itb from the following link, which is built with the default Kernel configuration and dts file provided in LSDK 20.12.

wget https://www.nxp.com/lgfiles/sdk/lsdk2012/lsdk2012_yocto_tiny_LS_arm64.itb

I can get temperature values normally, please refer to the attached log.

NXP LSDK tiny 2012 (based on Yocto)
TinyLinux login: root
root@TinyLinux:~# cat /sys/class/thermal/thermal_zone*/temp
48000
48000
48000
48000
48000

Please check your Kernel configuration file, whether the following Kernel options were enabled.

CONFIG_QORIQ_CPUFREQ=y

CONFIG_THERMAL=y

CONFIG_CPU_THERMAL=y

CONFIG_QORIQ_THERMAL=y

View solution in original post

0 Kudos
2 Replies
7,630 Views
javier_tia
Contributor III

@yipingwang Thank you. It was missing enabling the new Kernel configurations. That solved it. 

0 Kudos
7,647 Views
yipingwang
NXP TechSupport
NXP TechSupport

I downloaded pre_built image lsdk2012_yocto_tiny_LS_arm64.itb from the following link, which is built with the default Kernel configuration and dts file provided in LSDK 20.12.

wget https://www.nxp.com/lgfiles/sdk/lsdk2012/lsdk2012_yocto_tiny_LS_arm64.itb

I can get temperature values normally, please refer to the attached log.

NXP LSDK tiny 2012 (based on Yocto)
TinyLinux login: root
root@TinyLinux:~# cat /sys/class/thermal/thermal_zone*/temp
48000
48000
48000
48000
48000

Please check your Kernel configuration file, whether the following Kernel options were enabled.

CONFIG_QORIQ_CPUFREQ=y

CONFIG_THERMAL=y

CONFIG_CPU_THERMAL=y

CONFIG_QORIQ_THERMAL=y

0 Kudos