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:
What could be missing on the kernel side? I can provide more information if it's required.
Solved! Go to Solution.
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
@yipingwang Thank you. It was missing enabling the new Kernel configurations. That solved it.
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