0
haxxa

Orange Pi Zero LTS Incorrect Temps Reported

Recommended Posts

Armbianmonitor:

As stated in the topic the new Orange Pi Zero LTS reports incorrect system temps (likely due to 16bit overflow if I were to guess): 

~$ cat /sys/devices/virtual/thermal/thermal_zone0/temp
-2178

Model Purchased: https://www.aliexpress.com/item/4000070093365.html

Share this post


Link to post
Share on other sites

got "deeper" temps with a OPi One and kernel 5.3.0 - RC6 and RC7 (RC3 seems to be OK)

maybe the .dtb did change for both mainline and dev kernel?:

 

Share this post


Link to post
Share on other sites

on my OPi Zero (non LTS) I got "working" temps with kernel 5.2.2:
 

Debian Buster with Armbian Linux 5.2.2-sunxi

root@opi-zero(192.168.6.99):~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU

18:11:14: 1008MHz  1.67   0%   0%   0%   0%   0%   0% 82.2°C
18:11:19: 1008MHz  1.69  17%   3%   4%   0%   9%   0% 79.6°C
18:11:24: 1008MHz  1.64  33%   8%  23%   0%   1%   0% 77.8°C
18:11:30: 1008MHz  1.59  21%   2%  13%   0%   5%   0% 80.5°C
18:11:35: 1008MHz  2.58  37%   8%  26%   0%   2%   0% 77.4°C
18:11:40: 1008MHz  2.45  26%   3%  21%   0%   1%   0% 83.5°C

but now after the update to kernel 5.3.0-RC6 it also has freezing temperatures:
 

Debian Buster with Armbian Linux 5.3.0-rc6-sunxi

root@opi-zero(192.168.6.99):~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.

18:14:01: 1008MHz  1.21  28%  13%  13%   0%   1%   0% -172062°C  0/4
18:14:06:  480MHz  1.11   1%   0%   0%   0%   0%   0% -173998°C  0/4
18:14:11:  480MHz  1.02   0%   0%   0%   0%   0%   0% -174966°C  0/4
18:14:16:  480MHz  0.94   0%   0%   0%   0%   0%   0% -175208°C  0/4

its seems that there are in the newer dtb/dts some fewer cpu-temp stages (no warm - only cpu-hot and cpu-very-hot) and there is a thermal ths calibration, which I didnt see before in the dtb/dts like :
 

ths_calibration = "/soc/eeprom@1c14000/thermal-sensor-calibration@34";

 eeprom@1c14000 {
                        reg = < 0x1c14000 0x400 >;
                        compatible = "allwinner,sun8i-h3-sid";
                        #address-cells = < 0x01 >;
                        #size-cells = < 0x01 >;
                        phandle = < 0x3b >;

                        thermal-sensor-calibration@34 {
                                reg = < 0x34 0x04 >;
                                phandle = < 0x28 >;
                        };
                };

 

Share this post


Link to post
Share on other sites

5.3.0 RC8 also has these low temperatures:
Debian Buster with Armbian Linux 5.3.0-rc8-sunxi
package bsp-kernel[5.96] u-boot[5.96] dtb[5.96] firmware[5.96] config[5.96]

 

root@nanopiduo(192.168.6.151):/sys/class/leds# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.

20:30:48: 1008MHz  0.35  12%   2%   8%   0%   1%   0% -203885°C  0/4
20:30:53:  480MHz  0.32   0%   0%   0%   0%   0%   0% -205337°C  0/4
20:30:58:  480MHz  0.29   0%   0%   0%   0%   0%   0% -205458°C  0/4
20:31:04:  480MHz  0.32   0%   0%   0%   0%   0%   0% -205700°C  0/4

@Igor @martinayotte Do you know something about some a commit/merge or else which did change some of the .DTBs for Allwinner-devices like NPi/OPi which apply after 5.3.0 RC3?

Share this post


Link to post
Share on other sites
4 minutes ago, guidol said:

Do you know something about some a commit/merge or else which did change some of the .DTBs for Allwinner-devices like NPi/OPi which apply after 5.3.0 RC3?


No idea. This means some Allwinner related code landed to mainline kernel and there is possible some conflict with our patches. Or just a bug.

Share this post


Link to post
Share on other sites
3 minutes ago, Igor said:


No idea. This means some Allwinner related code landed to mainline kernel and there is possible some conflict with our patches. Or just a bug.

the login-motd hasnt a temperature readout (because of?)

[   11.543638] thermal thermal_zone0: failed to read out thermal zone (-110)

 but armbianmonitor -m and htop does show this very low temperature:

root@npi-duo(192.168.6.113):~# more /sys/class/thermal/thermal_zone0/temp
-207152

 

Share this post


Link to post
Share on other sites
5 minutes ago, guidol said:

but armbianmonitor -m and htop does show this very low temperature:


Kernel driver is reporting wrong temperature - input to those scripts and apps (which is the same) is wrong. I saw this bug. That's all I can do right now.

Share this post


Link to post
Share on other sites
1 hour ago, guidol said:

these low temperatures:

I've some OPiPC+ that still at RC3, and the bug is not present, while some other with RC6, the issue is there ...

So, maybe @megous has committed something related to that ...

Share this post


Link to post
Share on other sites
1 hour ago, martinayotte said:

I've some OPiPC+ that still at RC3, and the bug is not present, while some other with RC6, the issue is there ...

So, maybe @megous has committed something related to that ...

Hmmm - how much time has gone since RC3? - because thermal/THS before 8 days:

"remove a83t-OPP and H3-H5-THS patches since Megous 5.3.0-RC6 have them"
martinayotte committed 8 days ago

https://github.com/armbian/build/commit/b53556a5f1ada29169d08b6a106a01f87d763774

 

could something like this change it? H3/H5 and RC6 would make it a "good" nominee?

Share this post


Link to post
Share on other sites
16 hours ago, guidol said:

martinayotte committed 8 days ago

My "delete" commit was due to duplicate nodes already present in @megous branch, but I didn't check if his commits was coming from mainstream and were healthy ...

It maybe not only DT issue, but from thermal driver, see here activities in his branch : https://github.com/megous/linux/commits/orange-pi-5.3/drivers/thermal/sun8i_thermal.c

 

Share this post


Link to post
Share on other sites

@Igor @martinayotte

the bad "freezeing"-temperatures seems to be fixed with the new kernel/dtb with date-code 190913:


Debian Buster with Armbian Linux 5.3.0-rc8-sunxi
package bsp-kernel[5.96.190913] u-boot[5.96] dtb[5.96.190913] firmware[5.96] config[5.96]

 

which I received via apt upgrade :)

 

Many thanks to who did fix this! ;)

 

Share this post


Link to post
Share on other sites
(edited)

 

On orange pi one plus does not work :(

/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected

Edited by rain45
addition

Share this post


Link to post
Share on other sites
1 hour ago, rain45 said:

 

On orange pi one plus does not work :(

/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected

 

before the freeze-temperatures we had this error-message on some boards.

So we are where we were before.

This error was in/with newer kernels (dtb?) 

 

Share this post


Link to post
Share on other sites
1 minute ago, guidol said:

So we are where we were before.

 

You have this? On which boards?

 

Do we need to create a debug tool for our debugger? :P:D

Share this post


Link to post
Share on other sites
9 hours ago, Igor said:

 

You have this? On which boards?

 

Do we need to create a debug tool for our debugger? :P:D

I had this some months ago, but now @rain45 has it - but I dont know with wich version...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0