1 1
guidol

research armbianmonitor cpu-temperature broken? -ge: unary operator expected

Recommended Posts

These days i did install on some devices debian buster (via armbian-build-system generated).

 

On the Orange Pi One this did work also fine with the cpu-temperature (showing via armbianmonitor -m)

On a Orange Pi PC2 and a NanoPi K1 Plus this doesnt work.

 

First I did think this is a problem of the dev-image with debian buster where /sys/devices/virtual/thermal/thermal_zone0/temp

doesnt show an output via cat or more - but its filesize does show a 4096 bytes size (also on a working device - and also rights 444 = rrr for the file):

-r--r--r-- 1 root root 4096 May 20 10:47 temp

BUT NOW after a apt update & apt upgrade I also got this "problem" on a NanoPi Neo2 LTS with a stable debian stretch image:
 

Welcome to ARMBIAN 5.85 stable Debian GNU/Linux 9 (stretch) 5.1.0-sunxi64
package bsp-kernel[5.86] u-boot[5.85] dtb[5.86] firmware[5.83] config[5.86]

with armbianmonitor -m the stretch and buster devices does show the following error:

Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU

11:14:59: 1008MHz  0.22   7%   4%   2%   0%   0%   0%/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected

 

and the devices with this error got these - for me - new error messages about thermal in the dmesg:

[    6.727971] OF: /thermal-zones/cpu-thermal: arguments longer than property
[    6.728007] OF: /thermal-zones/cpu-thermal: arguments longer than property

 

 

armbianmonitor -u for the NanoPi Neo2 LTS: http://ix.io/1JNA

root@npi-neo2-24(192.168.6.24):~# armbianmonitor -u
System diagnosis information will now be uploaded to /usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
/usr/bin/armbianmonitor: line 385: read: read error: 0: Invalid argument
/usr/bin/armbianmonitor: line 386: [: -ge: unary operator expected
http://ix.io/1JNA
Please post the URL in the forum where you've been asked for.

 

Share this post


Link to post
Share on other sites
24 minutes ago, renedis said:

Have you tried to install lm-sensors and run "sensors" to see what sensors are available?


Development/early/testing kernel seems to not provide any data or data is corrupted and our script seems to break in such case ... IMO this is the only problem here. lm-sensors are dump script which reads data at the same location and if data is not present it will also show nothing ... only without this error I presume.

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...
1 1