read temperature fail on lx2160ardb Rev2.0 board based on lsdk20.04 kernel v4.19

cancel
Showing results for 
Search instead for 
Did you mean: 

read temperature fail on lx2160ardb Rev2.0 board based on lsdk20.04 kernel v4.19

80 Views
Contributor I

Hi experts,

On nxp-lx2160ardb Rev2.0 board using LSDK20.04 kernel v4.19,  cat the cup temperature will show 

the following error:

NXP LSDK 2004 main
localhost login: root
Password:
Welcome to NXP LSDK 2004 main (GNU/Linux 4.19.90 aarch64)

* Support: https://www.nxp.com/lsdk
* Documentation: https://lsdk.github.io/document
* Licensing: https://lsdk.github.io/eula

The programs included with the NXP LSDK are free software, the exact distribution
terms of some programs are described in the individual files in /usr/share/doc.
NXP LSDK comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
By using this LSDK, you indicate that you accept the terms of the Agreement in
the link above and you acknowledge that you have the authority, for yourself
or on behalf of your company, to bind your company to these terms.

The programs included with the NXP LSDK are free software, the exact distribution
terms of some programs are described in the individual files in /usr/share/doc.
NXP LSDK comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
By using this LSDK, you indicate that you accept the terms of the Agreement in
the link above and you acknowledge that you have the authority, for yourself
or on behalf of your company, to bind your company to these terms.
root@localhost:~#
root@localhost:~#
root@localhost:~#
root@localhost:~# uname -a
Linux localhost 4.19.90 #2 SMP PREEMPT Wed Jul 15 17:46:49 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
root@localhost:~#
root@localhost:~#
root@localhost:~# cat /sys/class/thermal/thermal_zone0/temp
cat: /sys/class/thermal/thermal_zone0/temp: Invalid argument
root@localhost:~#

and I check the dts file, find the tmu-range may be uncorrect:

      fsl,tmu-range = <0x800000E6 0x8001017D>;

in arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi.

So I wander that is there workaround for this issue?

Thanks,

Zhantao

0 Kudos
0 Replies