Jump to content

Recommended Posts

Posted
2 hours ago, TonyMac32 said:

 

I see that on Amazon.de, but not amazon.com for us colonists...:P

top and bottom have no holes, but that certainly looks sharp.  Add it to the "Pi-factor cases" topic?

Raidsonic.de is a company in Germany, which sells the brand "ICY BOX" : https://www.raidsonic.de/en/index.php

(the ebay-seller where I did buy will send it worldwide:  eBay item number 362279671071 - free postage)


Yes- top and bottom doesnt got holes, but at the longer sides there is grid-aluminium for "fresh air".
Also the bottom plate could absorb/spread the heat.

I know some time ago I did see the case-thread, but I didnt find it now while searching for some keywords :(
[EDIT]
here is the thread

 

Posted

while waiting for the final (stable?) version of armbian with kernel 4.18 I did go back to armbian stable: for better hw-support

ARMBIAN 5.47 stable Debian GNU/Linux 9 (stretch) 4.14.51-sunxi64

Linux npi-k1-plus 4.14.51-sunxi64 #23 SMP Sun Jun 24 12:19:01 UTC 2018 aarch64 GNU/Linux

 

here I did miss the temperature in armbianmonitor -m  :(

So I did take a look at my Neo2 and found the missing link :)
 

cd  /etc/armbianmonitor/datasources/
ln -s /sys/devices/virtual/thermal/thermal_zone0/temp soctemp

After creating the symbolic link I do get also the temperature from armbianmonitor:

root@npi-k1-plus(192.168.6.70):/etc/armbianmonitor/datasources# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.

16:26:42:  648MHz  0.00   0%   0%   0%   0%   0%   0% 36.9°C  0/8
16:26:47:  408MHz  0.00   0%   0%   0%   0%   0%   0% 37.0°C  0/8
16:26:53:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.9°C  0/8
16:26:58:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.9°C  0/8
16:27:03:  408MHz  0.00   1%   0%   0%   0%   0%   0% 37.3°C  0/8
16:27:08:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.5°C  0/8

root@npi-k1-plus(192.168.6.70):/# cat /sys/devices/virtual/thermal/thermal_zone0/temp|awk '{printf "%.2f\n", ($1/1000)}'
37.39

after getting the temperature in armbianmonitor we also have the temperature in the welcome screen :)
 

Welcome to ARMBIAN 5.47 stable Debian GNU/Linux 9 (stretch) 4.14.51-sunxi64
System load:   0.00 0.00 0.00   Up time:       3:15 hours               Local users:   2
Memory usage:  3 % of 2002MB    IP:            192.168.6.70
CPU temp:      37°C
Usage of /:    4% of 30G

PS: /sys/devices/virtual/thermal/thermal_zone0/temp is missing in the dev-image so there no temperature 

Posted
17 minutes ago, guidol said:

So I did take a look at my Neo2 and found the missing link

 

This is something that should happen automagically at boot. Can you please provide output from

grep soctemp /etc/init.d/armhwinfo

 

Posted
3 minutes ago, tkaiser said:

 

This is something that should happen automagically at boot. Can you please provide output from

grep soctemp /etc/init.d/armhwinfo

root@npi-k1-plus(192.168.6.70):/# grep soctemp /etc/init.d/armhwinfo
grep: /etc/init.d/armhwinfo: Datei oder Verzeichnis nicht gefunden

 

Posted
17 minutes ago, tkaiser said:

Then your image already uses /usr/lib/armbian/armbian-hardware-monitor and there the symlink should be created automatically at boot. Strange.

root@npi-k1-plus(192.168.6.70):/etc/init.d# grep soctemp /usr/lib/armbian/armbian-hardware-monitor
                ln -fs /sys/devices/platform/a20-tp-hwmon/temp1_input /etc/armbianmonitor/datasources/soctemp
                ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
                ln -fs /sys/devices/virtual/thermal/${THERMAL_ZONE}/temp /etc/armbianmonitor/datasources/soctemp
        # remove the soctemp node on platforms where kernel support is not yet ready for thermal readouts
        cat /etc/armbianmonitor/datasources/soctemp >/dev/null 2>&1 || rm /etc/armbianmonitor/datasources/soctemp
root@npi-k1-plus(192.168.6.70):/etc/init.d# echo ${THERMAL_ZONE}

root@npi-k1-plus(192.168.6.70):/etc/init.d#
 

Should ${THERMAL_ZONE} be set outside the script?

( as /sys/devices/virtual/thermal/thermal_zone0/temp = thermal_zone0 )

 

${BOARDFAMILY} seems to be available

root@npi-k1-plus(192.168.6.70):/etc/init.d# echo ${BOARDFAMILY}
sun50iw2
 

So when ${THERMAL_ZONE} is empty it looks like the symbolic link is removed:

else
		# all other boards/kernels use the same sysfs node except of Actions Semi S500:
		[[ ${BOARDFAMILY} == s500 ]] && THERMAL_ZONE="thermal_zone1" || THERMAL_ZONE="thermal_zone0"
		ln -fs /sys/devices/virtual/thermal/${THERMAL_ZONE}/temp /etc/armbianmonitor/datasources/soctemp
	fi
	# remove the soctemp node on platforms where kernel support is not yet ready for thermal readouts
	cat /etc/armbianmonitor/datasources/soctemp >/dev/null 2>&1 || rm /etc/armbianmonitor/datasources/soctemp

Is sun50iw2 = s500 BoardFamily? because sun50iw2 isnt in the script....

Posted
2 hours ago, guidol said:

Should ${THERMAL_ZONE} be set outside the script?

 

No. How does the output of the following look like?

/bin/bash -x /usr/lib/armbian/armbian-hardware-monitor start

 

Posted
5 minutes ago, tkaiser said:

 

No. How does the output of the following look like?


/bin/bash -x /usr/lib/armbian/armbian-hardware-monitor start

 

here it is in the hidden box:
 

Spoiler

root@npi-k1-plus(192.168.6.70):/# /bin/bash -x /usr/lib/armbian/armbian-hardware-monitor start
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ check_sd_card_speed
+ collect_information
+ prepare_temp_monitoring
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ '[' -d /etc/armbianmonitor/datasources ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ ifconfig
+ grep -q eth0
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ cat /etc/armbianmonitor/datasources/soctemp
+ RebootCount=8
+ '[' 8 -eq 2 ']'
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ TMPFILE=/tmp/armbian-hardware-monitor.oWdHNn
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.oWdHNn" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 20:05:46 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.oWdHNn
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ egrep -v 'log2ram|folder2ram'
+ sort
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ find /sys -name oemid
+ read Device
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
++ tr '\n' ' '
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
++ tr '\n' ' '
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ echo -e '\n### Boot system health:\n'
+ sleep 1
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.oWdHNn
+ exit 0
 

 

Posted
16 minutes ago, guidol said:

here it is in the hidden box

 

The script uses /sys/class/hwmon/hwmon0/temp1_input since this should be the 'usual place' with modern kernels. Is reading out the temperature working now or not ('cat /etc/armbianmonitor/datasources/soctemp')

Posted
36 minutes ago, tkaiser said:

The script uses /sys/class/hwmon/hwmon0/temp1_input since this should be the 'usual place' with modern kernels. Is reading out the temperature working now or not ('cat /etc/armbianmonitor/datasources/soctemp')

Now - after the script - it does use another symbolic link (as written by you above) :
root@npi-k1-plus(192.168.6.70):/# cat /etc/armbianmonitor/datasources/soctemp
36905
root@npi-k1-plus(192.168.6.70):/# ls -l /etc/armbianmonitor/datasources/soctemp
lrwxrwxrwx 1 root root 35 Jul 15 20:08 /etc/armbianmonitor/datasources/soctemp -> /sys/class/hwmon/hwmon0/temp1_input

 

I used before
root@npi-k1-plus(192.168.6.70):/# cat /sys/devices/virtual/thermal/thermal_zone0/temp
36542
 

Posted
15 minutes ago, guidol said:

root@npi-k1-plus(192.168.6.70):/# ls -l /etc/armbianmonitor/datasources/soctemp
lrwxrwxrwx 1 root root 35 Jul 15 20:08 /etc/armbianmonitor/datasources/soctemp -> /sys/class/hwmon/hwmon0/temp1_input

 

This is as expected on most recent Armbian images with mainline kernel. I still don't get it: is there a problem or not? It should be set this way after each and every reboot as long as thermal support is available in the specific kernel branch.

Posted
12 minutes ago, tkaiser said:

This is as expected on most recent Armbian images with mainline kernel. I still don't get it: is there a problem or not? It should be set this way after each and every reboot as long as thermal support is available in the specific kernel branch.

I did a reboot and the symbolic link is gone :(

 

So I have to do 

ln -s /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp    (prefered by the new system!?)

or

ln -s /sys/devices/virtual/thermal/thermal_zone0/temp /etc/armbianmonitor/datasources/soctemp

 

Kernel 4.14.51-sunxi64 seems - for me - to have thermal support available, but on this version it doesnt seems to be recognized by the script :(
(or the script doesnt run at startup - how could I check this?)

Posted
18 minutes ago, tkaiser said:

systemctl status armbian-hardware-monitor

 

Hmm - looks like it started, but without setting the link manually (or via /etc/rc.local) I didnt get a temperature readout:
 

root@npi-k1-plus(192.168.6.70):~# systemctl status armbian-hardware-monitor
● armbian-hardware-monitor.service - Armbian hardware monitoring
   Loaded: loaded (/lib/systemd/system/armbian-hardware-monitor.service; enabled; vendor preset: enabled)
   Active: active (exited) since Sun 2018-07-15 21:59:13 +03; 1min 4s ago
  Process: 594 ExecStart=/usr/lib/armbian/armbian-hardware-monitor start (code=exited, status=0/SUCCESS)
 Main PID: 594 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/armbian-hardware-monitor.service

Jul 15 21:59:10 npi-k1-plus systemd[1]: Starting Armbian hardware monitoring...
Jul 15 21:59:13 npi-k1-plus systemd[1]: Started Armbian hardware monitoring.

BUT if I stop/start armbian-hardware-monitor the temperature-readout does WORK :)  without setting the link manually- so it seems to be like a timeout or not ready service:
 

root@npi-k1-plus(192.168.6.70):~# systemctl stop armbian-hardware-monitor
root@npi-k1-plus(192.168.6.70):~# systemctl start armbian-hardware-monitor
root@npi-k1-plus(192.168.6.70):~# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.

22:05:38:  648MHz  0.29  10%   3%   4%   0%   1%   0% 38.1°C  0/8
22:05:43:  408MHz  0.26   0%   0%   0%   0%   0%   0% 37.5°C  0/8

 

Posted

Weird. You could add the following just below the '#!/bin/bash' line and then post the contents of /tmp/armbian-hardware-monitor-debug.txt after a reboot, then waiting 5 minutes and then stopping/starting the service again:

exec 2>>/tmp/armbian-hardware-monitor-debug.txt
set -x
date

 

Posted
4 minutes ago, tkaiser said:

Weird. You could add the following just below the '#!/bin/bash' line and then post the contents of /tmp/armbian-hardware-monitor-debug.txt after a reboot, then waiting 5 minutes and then stopping/starting the service again:


exec 2>>/tmp/armbian-hardware-monitor-debug.txt
set -x
date

 

I added this to /usr/lib/armbian/armbian-hardware-monitor.

After reboot:
 

Spoiler

root@npi-k1-plus(192.168.6.70):~# more /tmp/armbian-hardware-monitor-debug.txt
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ check_sd_card_speed
+ collect_information
+ prepare_temp_monitoring
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ '[' -d /etc/armbianmonitor/datasources ']'
+ ifconfig
+ grep -q eth0
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ RebootCount=22
+ '[' 22 -eq 2 ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ cat /etc/armbianmonitor/datasources/soctemp
+ rm /etc/armbianmonitor/datasources/soctemp
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ TMPFILE=/tmp/armbian-hardware-monitor.ue6G4h
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.ue6G4h" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 22:42:50 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.ue6G4h
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ read Device
+ find /sys -name oemid
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
++ tr '\n' ' '
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
++ tr '\n' ' '
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.ue6G4h
+ exit 0
 

 

5 Minutes later and 

systemctl stop armbian-hardware-monitor

systemctl start armbian-hardware-monitor

Spoiler

+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ check_sd_card_speed
+ collect_information
+ prepare_temp_monitoring
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ '[' -d /etc/armbianmonitor/datasources ']'
+ ifconfig
+ grep -q eth0
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ RebootCount=22
+ '[' 22 -eq 2 ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ cat /etc/armbianmonitor/datasources/soctemp
+ rm /etc/armbianmonitor/datasources/soctemp
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ TMPFILE=/tmp/armbian-hardware-monitor.ue6G4h
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.ue6G4h" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 22:42:50 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.ue6G4h
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ read Device
+ find /sys -name oemid
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
++ tr '\n' ' '
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
++ tr '\n' ' '
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.ue6G4h
+ exit 0
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ case ${BOARDFAMILY} in
++ cut -f1 '-d '
+ /sbin/modprobe -r snd_soc_hdmi_codec rc_cec dw_hdmi_i2s_audio dw_hdmi_cec snd_soc_simple_card sun4i_i2s sun8i_co
dec_analog sun4i_codec snd_soc_simple_card_utils snd_soc_core zram ir_lirc_codec sun4i_gpadc_iio lirc_dev snd_pcm_
dmaengine sun8i_dw_hdmi snd_pcm dw_hdmi cec sunxi_cir rc_core iio_hwmon snd_timer industrialio sun4i_tcon sun4i_dr
m sun8i_mixer sy8106a_regulator sunxi musb_hdrc
modprobe: FATAL: Module snd_soc_hdmi_codec is in use.
++ iostat -p zram0
++ vmstat -w
++ free -h
++ dmesg
++ tail -n 100
+ echo -e '\n### shutdown:\n\nLinux 4.14.51-sunxi64 (npi-k1-plus)       15.07.2018      _aarch64_       (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0,94    0,01    0,68    0,34    0,00   98,02

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
zram0             3,39         1,63        11,93        732       5372\n\nprocs -----------------------memory-----
----------------- ---swap-- -----io---- -system-- --------cpu--------
 r  b         swpd         free         buff        cache   si   so    bi    bo   in   cs  us  sy  id  wa  st
 0  0            0      1852644        10752       124456    0    0    68     3  123  143   1   1  98   0   0\n\n
             total        used        free      shared  buff/cache   available
Mem:           2,0G         61M        1,8G        3,0M        132M        1,8G
Swap:          1,0G          0B        1,0G\n\n[    2.403200] hub 7-0:1.0: USB hub found
[    2.403231] hub 7-0:1.0: 1 port detected
[    2.403788] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    2.403807] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    2.404013] ohci-platform 1c1d400.usb: irq 20, io mem 0x01c1d400
[    2.466776] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    2.466783] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.466789] usb usb8: Product: Generic Platform OHCI controller
[    2.466794] usb usb8: Manufacturer: Linux 4.14.51-sunxi64 ohci_hcd
[    2.466799] usb usb8: SerialNumber: 1c1d400.usb
[    2.467178] hub 8-0:1.0: USB hub found
[    2.467206] hub 8-0:1.0: 1 port detected
[    2.468113] input: r-gpio-keys as /devices/platform/r-gpio-keys/input/input0
[    2.468458] of_cfs_init
[    2.468537] of_cfs_init: OK
[    2.468681] vdd-cpux-dummy: disabling
[    2.468688] usb0-vbus: disabling
[    2.468691] ALSA device list:
[    2.468694]   No soundcards found.
[    2.469205] Freeing unused kernel memory: 448K
[    2.514750] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.515144] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.515185] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.663614] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy re
gulator
[    2.664348] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.664365] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 9
[    2.664619] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[    2.664626] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.664632] usb usb9: Product: MUSB HDRC host driver
[    2.664637] usb usb9: Manufacturer: Linux 4.14.51-sunxi64 musb-hcd
[    2.664643] usb usb9: SerialNumber: musb-hdrc.1.auto
[    2.665173] hub 9-0:1.0: USB hub found
[    2.665222] hub 9-0:1.0: 1 port detected
[    2.697448] thermal thermal_zone0: binding zone cpu-thermal with cdev thermal-cpufreq-0 failed:-17
[    2.846131] random: fast init done
[    3.236332] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    3.901854] systemd[1]: System time before build time, advancing clock.
[    3.939887] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVIN
IT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.940413] systemd[1]: Detected architecture arm64.
[    3.967865] systemd[1]: Set hostname to <npi-k1-plus>.
[    4.545732] systemd[1]: Listening on Syslog Socket.
[    4.562912] systemd[1]: Created slice User and Session Slice.
[    4.574815] systemd[1]: Reached target Swap.
[    4.587046] systemd[1]: Listening on udev Kernel Socket.
[    4.601194] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.622765] systemd[1]: Created slice System Slice.
[    4.637316] systemd[1]: Created slice system-getty.slice.
[    4.973401] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[    6.031190] lirc_dev: IR Remote Control driver registered, major 244
[    6.063487] IR LIRC bridge handler initialized
[    6.064309] Registered IR keymap rc-empty
[    6.064556] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
[    6.064704] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input1
[    6.073172] zram: Added device: zram0
[    6.075330] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[    6.075452] zram: Added device: zram1
[    6.075461] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[    6.075806] zram: Added device: zram2
[    6.075957] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    6.075961] [drm] No driver support for vblank timestamp query.
[    6.076156] zram: Added device: zram3
[    6.076523] zram: Added device: zram4
[    6.083096] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_platform_driver_exit [sun8i_mixer])
[    6.083441] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    6.083468] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_platform_driver_exit [sun4i_
tcon])
[    6.210834] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    6.211351] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    6.211648] sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops [sun8i_dw_hdmi])
[    6.211693] [drm] Cannot find any crtc or sizes
[    6.212075] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    6.212533] thermal thermal_zone0: failed to read out thermal zone (-110)
[    6.213560] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01f015c0 not registered
[    6.213571] sun4i-codec 1c22c00.codec: Failed to register our card
[    6.234427] zram1: detected capacity change from 0 to 262479872
[    6.237722] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    6.266687] Registered IR keymap rc-cec
[    6.266874] rc rc1: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc1
[    6.267030] input: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc1/input2
[    6.313019] Adding 256324k swap on /dev/zram1.  Priority:5 extents:1 across:256324k SSFS
[    6.316119] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    6.333457] zram2: detected capacity change from 0 to 262479872
[    6.360947] Adding 256324k swap on /dev/zram2.  Priority:5 extents:1 across:256324k SSFS
[    6.363839] zram3: detected capacity change from 0 to 262479872
[    6.388327] Adding 256324k swap on /dev/zram3.  Priority:5 extents:1 across:256324k SSFS
[    6.394947] zram4: detected capacity change from 0 to 262479872
[    6.415750] Adding 256324k swap on /dev/zram4.  Priority:5 extents:1 across:256324k SSFS
[    6.439171] RTL8211E Gigabit Ethernet 0.2:07: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr
=0.2:07, irq=POLL)
[    6.446869] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    6.446880] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    6.447249] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.475756] zram0: detected capacity change from 0 to 52428800
[    6.671024] EXT4-fs (zram0): mounted filesystem without journal. Opts: (null)
[    7.234697] thermal thermal_zone0: failed to read out thermal zone (-110)
[    7.238752] [drm] Cannot find any crtc or sizes
[    7.292862] systemd-journald[585]: Received request to flush runtime journal from PID 1
[    7.674478] random: crng init done
[    7.674489] random: 7 urandom warning(s) missed due to ratelimiting
[    8.258735] thermal thermal_zone0: failed to read out thermal zone (-110)
[    9.507505] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    9.507553] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready'
+ logger -i -t armbian-hardware-monitor 'Sane shutdown'
+ sync
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ check_sd_card_speed
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ prepare_temp_monitoring
+ collect_information
+ '[' -d /etc/armbianmonitor/datasources ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ ifconfig
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ grep -q eth0
+ cat /etc/armbianmonitor/datasources/soctemp
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ RebootCount=23
+ '[' 23 -eq 2 ']'
+ TMPFILE=/tmp/armbian-hardware-monitor.vWJ8QY
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.vWJ8QY" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 22:50:40 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.vWJ8QY
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ find /sys -name oemid
+ read Device
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
++ tr '\n' ' '
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
++ tr '\n' ' '
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.vWJ8QY
+ exit 0
 

 

My follwing little bash-script (out of the monitor-script) does work:
 

#!/bin/bash
# SoC temp:
if [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]; then
   # usual convention with modern kernels
   echo 'setze Link'
   ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
fi

Thats the same source-code....

Posted
15 minutes ago, guidol said:

+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ cat /etc/armbianmonitor/datasources/soctemp
+ rm /etc/armbianmonitor/datasources/soctemp

 

That's the culprit. The sysfs node is present at boot but can not be read out for whatever reasons. So it's some sort of a timing problem. I added removal of the /etc/armbianmonitor/datasources/soctemp symlink to get 'nicer' output with 'armbianmonitor -m' some time ago but seems like this is counterproductive. Can you try to repeat the test after commenting this line

Posted
7 minutes ago, tkaiser said:

Can you try to repeat the test after commenting this line

Directly after the reboot (with commented rm) the link is there :) and temperature-readout does work out of the box!
 

Spoiler

root@npi-k1-plus(192.168.6.70):~# more /tmp/armbian-hardware-monitor-debug.txt
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ collect_information
+ check_sd_card_speed
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ ifconfig
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ prepare_temp_monitoring
+ '[' -d /etc/armbianmonitor/datasources ']'
+ grep -q eth0
+ RebootCount=24
+ '[' 24 -eq 2 ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ TMPFILE=/tmp/armbian-hardware-monitor.pcs92K
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.pcs92K" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 23:14:53 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.pcs92K
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ find /sys -name oemid
+ read Device
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ tr '\n' ' '
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ tr '\n' ' '
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.pcs92K
+ exit 0
 

 

5 Minutes later and 

systemctl stop armbian-hardware-monitor

systemctl start armbian-hardware-monitor

Spoiler

root@npi-k1-plus(192.168.6.70):~# more /tmp/armbian-hardware-monitor-debug.txt
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ collect_information
+ check_sd_card_speed
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ ifconfig
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
+ prepare_temp_monitoring
+ '[' -d /etc/armbianmonitor/datasources ']'
+ grep -q eth0
+ RebootCount=24
+ '[' 24 -eq 2 ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ TMPFILE=/tmp/armbian-hardware-monitor.pcs92K
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.pcs92K" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 23:14:53 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.pcs92K
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ find /sys -name oemid
+ read Device
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ tr '\n' ' '
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ tr '\n' ' '
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.pcs92K
+ exit 0
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ case ${BOARDFAMILY} in
++ cut -f1 '-d '
+ /sbin/modprobe -r snd_soc_hdmi_codec rc_cec dw_hdmi_i2s_audio dw_hdmi_cec snd_soc_simple_card snd_soc_simple_car
d_utils zram sun8i_codec_analog ir_lirc_codec sun8i_dw_hdmi sun4i_codec lirc_dev dw_hdmi sun4i_i2s sunxi_cir cec s
nd_soc_core rc_core snd_pcm_dmaengine sun4i_gpadc_iio snd_pcm snd_timer iio_hwmon industrialio sun4i_drm sun8i_mix
er sun4i_tcon sy8106a_regulator sunxi musb_hdrc
modprobe: FATAL: Module snd_soc_hdmi_codec is in use.
++ iostat -p zram0
++ vmstat -w
++ free -h
++ dmesg
++ tail -n 100
+ echo -e '\n### shutdown:\n\nLinux 4.14.51-sunxi64 (npi-k1-plus)       15.07.2018      _aarch64_       (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0,94    0,01    0,70    0,33    0,00   98,03

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
zram0             3,54         1,63        12,54        732       5640\n\nprocs -----------------------memory-----
----------------- ---swap-- -----io---- -system-- --------cpu--------
 r  b         swpd         free         buff        cache   si   so    bi    bo   in   cs  us  sy  id  wa  st
 0  0            0      1853368        10756       124904    0    0    68     3  120  140   1   1  98   0   0\n\n
             total        used        free      shared  buff/cache   available
Mem:           2,0G         60M        1,8G        3,0M        132M        1,8G
Swap:          1,0G          0B        1,0G\n\n[    2.403688] hub 7-0:1.0: USB hub found
[    2.403721] hub 7-0:1.0: 1 port detected
[    2.404273] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    2.404292] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    2.404496] ohci-platform 1c1d400.usb: irq 20, io mem 0x01c1d400
[    2.467281] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    2.467288] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.467294] usb usb8: Product: Generic Platform OHCI controller
[    2.467299] usb usb8: Manufacturer: Linux 4.14.51-sunxi64 ohci_hcd
[    2.467304] usb usb8: SerialNumber: 1c1d400.usb
[    2.467686] hub 8-0:1.0: USB hub found
[    2.467713] hub 8-0:1.0: 1 port detected
[    2.468607] input: r-gpio-keys as /devices/platform/r-gpio-keys/input/input0
[    2.468927] of_cfs_init
[    2.469008] of_cfs_init: OK
[    2.469153] vdd-cpux-dummy: disabling
[    2.469160] usb0-vbus: disabling
[    2.469163] ALSA device list:
[    2.469166]   No soundcards found.
[    2.469670] Freeing unused kernel memory: 448K
[    2.515434] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.515835] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.515877] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.660050] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy re
gulator
[    2.660744] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.660766] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 9
[    2.661358] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[    2.661369] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.661375] usb usb9: Product: MUSB HDRC host driver
[    2.661380] usb usb9: Manufacturer: Linux 4.14.51-sunxi64 musb-hcd
[    2.661386] usb usb9: SerialNumber: musb-hdrc.1.auto
[    2.662133] hub 9-0:1.0: USB hub found
[    2.662176] hub 9-0:1.0: 1 port detected
[    2.698329] thermal thermal_zone0: binding zone cpu-thermal with cdev thermal-cpufreq-0 failed:-17
[    2.836155] random: fast init done
[    3.217854] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    3.870516] systemd[1]: System time before build time, advancing clock.
[    3.919164] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVIN
IT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.919617] systemd[1]: Detected architecture arm64.
[    3.955554] systemd[1]: Set hostname to <npi-k1-plus>.
[    4.539030] systemd[1]: Listening on fsck to fsckd communication Socket.
[    4.554805] systemd[1]: Listening on Journal Audit Socket.
[    4.568812] systemd[1]: Listening on udev Kernel Socket.
[    4.580088] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.599862] systemd[1]: Listening on Journal Socket.
[    4.611467] systemd[1]: Reached target Swap.
[    4.624125] systemd[1]: Created slice System Slice.
[    4.944384] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[    5.748558] thermal thermal_zone0: failed to read out thermal zone (-110)
[    5.837106] lirc_dev: IR Remote Control driver registered, major 244
[    5.843992] IR LIRC bridge handler initialized
[    5.844622] Registered IR keymap rc-empty
[    5.844751] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
[    5.844877] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input1
[    5.848204] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[    5.848359] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[    5.849894] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01f015c0 not registered
[    5.849905] sun4i-codec 1c22c00.codec: Failed to register our card
[    5.851025] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    5.851030] [drm] No driver support for vblank timestamp query.
[    5.857653] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_platform_driver_exit [sun8i_mixer])
[    5.858100] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    5.858132] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_platform_driver_exit [sun4i_
tcon])
[    5.879092] zram: Added device: zram0
[    5.879597] zram: Added device: zram1
[    5.880836] zram: Added device: zram2
[    5.881293] zram: Added device: zram3
[    5.882563] zram: Added device: zram4
[    5.983398] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    5.984120] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    5.984511] sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops [sun8i_dw_hdmi])
[    5.984562] [drm] Cannot find any crtc or sizes
[    5.985216] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    6.009041] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    6.075210] Registered IR keymap rc-cec
[    6.075400] rc rc1: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc1
[    6.078480] input: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc1/input2
[    6.105723] zram1: detected capacity change from 0 to 262479872
[    6.123523] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    6.220590] Adding 256324k swap on /dev/zram1.  Priority:5 extents:1 across:256324k SSFS
[    6.224728] zram2: detected capacity change from 0 to 262479872
[    6.251541] Adding 256324k swap on /dev/zram2.  Priority:5 extents:1 across:256324k SSFS
[    6.254327] zram3: detected capacity change from 0 to 262479872
[    6.286192] Adding 256324k swap on /dev/zram3.  Priority:5 extents:1 across:256324k SSFS
[    6.289517] zram4: detected capacity change from 0 to 262479872
[    6.315259] Adding 256324k swap on /dev/zram4.  Priority:5 extents:1 across:256324k SSFS
[    6.372077] zram0: detected capacity change from 0 to 52428800
[    6.423676] RTL8211E Gigabit Ethernet 0.2:07: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr
=0.2:07, irq=POLL)
[    6.425981] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    6.425995] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    6.426372] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.546460] EXT4-fs (zram0): mounted filesystem without journal. Opts: (null)
[    6.755217] thermal thermal_zone0: failed to read out thermal zone (-110)
[    7.011278] [drm] Cannot find any crtc or sizes
[    7.192861] systemd-journald[584]: Received request to flush runtime journal from PID 1
[    7.588326] random: crng init done
[    7.588338] random: 7 urandom warning(s) missed due to ratelimiting
[    7.779228] thermal thermal_zone0: failed to read out thermal zone (-110)
[    9.507930] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    9.507972] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready'
+ logger -i -t armbian-hardware-monitor 'Sane shutdown'
+ sync
+ date
+ . /etc/armbian-release
++ BOARD=nanopik1plus
++ BOARD_NAME='Nanopi K1 Plus'
++ BOARDFAMILY=sun50iw2
++ VERSION=5.47
++ LINUXFAMILY=sunxi64
++ BRANCH=next
++ ARCH=arm64
++ IMAGE_TYPE=stable
++ BOARD_TYPE=conf
++ INITRD_ARCH=arm64
++ KERNEL_IMAGE_TYPE=Image
+ . /usr/lib/armbian/armbian-common
++ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ my_name=armbian-hardware-monitor
++ Log=/var/log/armbian-services.log
+ case $1 in
+ check_sd_card_speed
+ collect_information
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
+ prepare_temp_monitoring
+ '[' -d /etc/armbianmonitor/datasources ']'
+ [[ -f /sys/power/axp_pmu/pmu/temp ]]
+ [[ -f /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034//temp1_input ]]
+ [[ -f /sys/devices/b0170000.i2c/i2c-0/0-0065/atc2603c-hwmon.0/ic_temperature ]]
+ [[ -f /sys/class/axppower/ic_temp ]]
+ [[ -d /sys/devices/platform/a20-tp-hwmon ]]
+ [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]
+ ifconfig
+ ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
+ grep -q eth0
++ grep -c '^### df:' /var/log/armbian-hardware-monitor.log
++ mktemp /tmp/armbian-hardware-monitor.XXXXXX
+ RebootCount=25
+ '[' 25 -eq 2 ']'
+ TMPFILE=/tmp/armbian-hardware-monitor.MNfj1i
+ trap 'sleep 1 ; rm "/tmp/armbian-hardware-monitor.MNfj1i" ; exit 0' 0 1 2 3 15
++ lscpu
++ awk '/Architecture/ {print $2}'
+ CPU_ARCH=aarch64
++ dpkg --print-architecture
+ DISTRO_ARCH=arm64
++ uname -r
+ KERNELID=4.14.51-sunxi64
+ dmesg
+ echo Nanopi K1 Plus
+ '[' 0 -ne 0 ']'
+ '[' -f /root/.machine.id ']'
+ log_hardware_info
+ Log=/var/log/armbian-hardware-monitor.log
+ '[' -f /etc/logrotate.d/armbian-hardware-monitor ']'
+ chmod 644 /etc/logrotate.d/armbian-hardware-monitor
+ '[' -f /var/log/armbian-hardware-monitor.log ']'
++ date
+ echo -e '\n\n\nSo 15. Jul 23:22:42 +03 2018 | Nanopi K1 Plus | 5.47 | arm64 | aarch64 | 4.14.51-sunxi64'
+ echo -e '\n### dmesg:\n'
+ cat /tmp/armbian-hardware-monitor.MNfj1i
+ echo -e '\n### armbian-release:\n'
+ cat /etc/armbian-release
+ echo -e '\n### boot environment:\n'
+ cat /boot/armbianEnv.txt
+ echo -e '\n### lsusb:\n'
+ lsusb
+ echo -e '\n### lscpu:\n'
+ lscpu
+ echo -e '\n### cpuinfo:\n'
+ cat /proc/cpuinfo
+ echo -e '\n### meminfo:\n'
+ cat /proc/meminfo
+ '[' -x /sbin/ip ']'
+ echo -e '\n### ip addr:\n'
+ /sbin/ip r s
+ /sbin/ip a
+ echo ' '
+ echo -e '### partitions:\n'
+ egrep -v ' ram| zram' /proc/partitions
+ echo -e '\n### df:\n'
+ df -h
+ egrep '^udev|^tmpfs|^/dev/|log2ram|folder2ram'
+ which zpool
+ echo -e '\n### lsblk:\n'
+ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,UUID
+ grep -v '^zram'
+ echo -e '\n### mtab:\n'
+ egrep '^/dev/|\ zfs\ ' /etc/mtab
+ sort
+ egrep -v 'log2ram|folder2ram'
+ [[ -e /boot/script.bin ]]
+ get_flash_information
+ read Device
+ find /sys -name oemid
+ DeviceNode=/sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007
+ DeviceName=mmc0:0007
+ echo -e '\n### mmc0:0007 info:\n'
+ find /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007 -maxdepth 1 -type f
+ read
+ NodeName=fwrev
++ printf %20s fwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/fwrev
++ tr '\n' ' '
+ echo -e '               fwrev: 0x0 '
+ read
+ NodeName=uevent
++ printf %20s uevent
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/uevent
++ tr '\n' ' '
+ echo -e '              uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SD32G MODALIAS=mmc:block '
+ read
+ NodeName=cid
++ printf %20s cid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/cid
++ tr '\n' ' '
+ echo -e '                 cid: 275048534433324730da7d50db0104b3 '
+ read
+ NodeName=csd
++ printf %20s csd
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/csd
++ tr '\n' ' '
+ echo -e '                 csd: 400e00325b590000eeaf7f800a4000b9 '
+ read
+ NodeName=manfid
++ printf %20s manfid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/manfid
++ tr '\n' ' '
+ echo -e '              manfid: 0x000027 '
+ read
+ NodeName=ocr
++ printf %20s ocr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ocr
++ tr '\n' ' '
+ echo -e '                 ocr: 0x00200000 '
+ read
+ NodeName=preferred_erase_size
++ printf %20s preferred_erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/preferred_erase_size
++ tr '\n' ' '
+ echo -e 'preferred_erase_size: 4194304 '
+ read
+ NodeName=type
++ printf %20s type
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/type
++ tr '\n' ' '
+ echo -e '                type: SD '
+ read
+ NodeName=hwrev
++ printf %20s hwrev
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/hwrev
++ tr '\n' ' '
+ echo -e '               hwrev: 0x3 '
+ read
+ NodeName=date
++ printf %20s date
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/date
++ tr '\n' ' '
+ echo -e '                date: 04/2016 '
+ read
+ NodeName=dsr
++ printf %20s dsr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/dsr
++ tr '\n' ' '
+ echo -e '                 dsr: 0x404 '
+ read
+ NodeName=erase_size
++ printf %20s erase_size
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/erase_size
++ tr '\n' ' '
+ echo -e '          erase_size: 512 '
+ read
+ NodeName=oemid
++ printf %20s oemid
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/oemid
++ tr '\n' ' '
+ echo -e '               oemid: 0x5048 '
+ read
+ NodeName=serial
++ printf %20s serial
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/serial
++ tr '\n' ' '
+ echo -e '              serial: 0xda7d50db '
+ read
+ NodeName=ssr
++ printf %20s ssr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/ssr
++ tr '\n' ' '
+ echo -e '                 ssr: 00000000050000000400900200ab00000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000 '
+ read
+ NodeName=scr
++ printf %20s scr
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/scr
++ tr '\n' ' '
+ echo -e '                 scr: 0235800001000000 '
+ read
+ NodeName=name
++ printf %20s name
++ cat /sys/devices/platform/soc/1c0f000.mmc/mmc_host/mmc0/mmc0:0007/name
++ tr '\n' ' '
+ echo -e '                name: SD32G '
+ read
+ read Device
+ sleep 1
+ echo -e '\n### Boot system health:\n'
+ armbianmonitor -s
+ egrep '^Time|^[0-9]'
+ rm /tmp/armbian-hardware-monitor.MNfj1i
+ exit 0
 

 

Posted

Happy to report both SPI channels worked properly with 5.47 stable using 4.14.51-sunxi64:

 

 

_7160703.JPG

Posted
8 hours ago, tkaiser said:

especiall wrt ondemand scheduler behaviour -- always remaining at max cpufreq with recent kernels)

because of that I use the conservative governer as current governer.

Posted
2 minutes ago, guidol said:

because of that I use the conservative governer as current governer

 

I read about that 'workaround' but this one is no option as already explained in detail (since not behaving correctly with I/O loads -- switching to conservative trashes storage performance). It would be better if users would help testing instead of promoting broken workarounds.

Posted
2 hours ago, tkaiser said:

It would be better if users would help testing instead of promoting broken workarounds.

How could I help testing the broken ondemand?
I did see on several SBCs that ondemand isnt working and switched to conservative?

I didnt promote conservative - I only want the CPU to switch down - a thing that ondemand at this time doesnt do.

Posted
36 minutes ago, guidol said:

How could I help testing the broken ondemand?

 

By testing with second part of the aforementioned commit.

 

As @BRSS discovered the sampling_rate value changed with some kernel version and that affects the governor's behaviour: https://forum.armbian.com/topic/6398-orange-pi-zero-cpu-and-load-issues-with-538/?tab=comments#comment-58057 (let's ignore the 'average load' problem for now since unrelated).

 

So by testing through different values and this also with some older kernels we could try to come up again with settings that match everywhere. 'Legacy'/default kernels aren't that much of an issue since we use with sunxi kernels lower than 4.x the interactive governor (since ondemand sucks with Allwinner BSP kernels and interactive is the only reasonable choice).

 

So it's really just testing through higher sampling_rate values with some kernel variants. Discussion should IMO better happen in the other thread (even if 'wrong' subforum).

 

 

 

Posted
3 hours ago, tkaiser said:

So by testing through different values and this also with some older kernels we could try to come up again with settings that match everywhere. 'Legacy'/default kernels aren't that much of an issue since we use with sunxi kernels lower than 4.x the interactive governor (since ondemand sucks with Allwinner BSP kernels and interactive is the only reasonable choice).

 

for testing I switched the K1 Plus back to ondemand and did take a look at 
root@npi-k1-plus(192.168.6.70):~# more /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
10000
 

With 10000 ondemand doenst switch down with kernel  4.14.51-sunxi64, but when setting the rate to 20000
echo 20000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

 

ondemand as governer does beginn to switch down the frequency:
 

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

15:23:30: 1152MHz  0.06   0%   0%   0%   0%   0%   0% 37.5°C  0/8
15:23:35: 1152MHz  0.05   0%   0%   0%   0%   0%   0% 37.4°C  0/8
15:23:41: 1152MHz  0.05   0%   0%   0%   0%   0%   0% 37.6°C  0/8
15:23:46: 1152MHz  0.04   0%   0%   0%   0%   0%   0% 37.3°C  0/8
15:23:51:  648MHz  0.04   0%   0%   0%   0%   0%   0% 37.5°C  0/8
15:23:56:  408MHz  0.04   0%   0%   0%   0%   0%   0% 37.6°C  0/8
15:24:01: 1152MHz  0.03   0%   0%   0%   0%   0%   0% 37.5°C  0/8
15:24:06:  408MHz  0.03   0%   0%   0%   0%   0%   0% 37.6°C  0/8
15:24:11:  408MHz  0.03   0%   0%   0%   0%   0%   0% 37.9°C  0/8
15:24:16:  408MHz  0.03   0%   0%   0%   0%   0%   0% 38.1°C  0/8

15:46:52:  408MHz  0.00   0%   0%   0%   0%   0%   0% 37.1°C  0/8
15:46:57: 1152MHz  0.00   0%   0%   0%   0%   0%   0% 37.0°C  0/8
15:47:02:  408MHz  0.00   0%   0%   0%   0%   0%   0% 37.3°C  0/8
15:47:07:  408MHz  0.00   0%   0%   0%   0%   0%   0% 37.1°C  0/8
15:47:12:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.7°C  0/8
15:47:17:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.8°C  0/8
15:47:22: 1152MHz  0.00   0%   0%   0%   0%   0%   0% 37.0°C  0/8
15:47:27:  408MHz  0.00   0%   0%   0%   0%   0%   0% 37.3°C  0/8
15:47:32:  408MHz  0.00   0%   0%   0%   0%   0%   0% 36.9°C  0/8

with one little peak to 1152Mhz (maybe a write to sd?)

 

@tkaiser In the thread 'Orange Pi Zero - CPU and Load issues with 5.38" you did wrote about a value of 200000

Quote

Simply edit /etc/init.d/armhwinfo and search for 'ondemand' there, then add the missing 'echo 200000 >${i}/sampling_rate' line, play around with the values and report back.

 Isnt 200000 to high - or is that a value for a Orange Pi Zero?

Posted
8 minutes ago, tkaiser said:

I tested around with next branch on NanoPi Fire3, Clearfog Pro and RK3328. With those kernel settings 20,000 is way too low.

2.4 Ondemand

sampling_rate:

Measured in uS (10^-6 seconds), this is how often you want the kernel to look at the CPU usage and to make decisions on what to do about the frequency. Typically this is set to values of around '10000' or more.

 

So how much CPU usage we do get more when we use 200.000 against 20.000?
The K1 Plus will also switch with 200.000 as samplingrate.

Do we need a higher samplingrate with a faster CPU like on the NanoPi Fire3, Clearfog Pro and RK3328? (because Fire3 is a OctaCore)

Posted

Strange :(
I edited the /usr/lib/armbian/armbian-hardware-optimization ondemand-part for the samplingrate like
 

        # tweak ondemand cpufreq governor settings to increase cpufreq with IO load
        grep -q ondemand /etc/default/cpufrequtils
        if [ $? -eq 0 ]; then
                echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
                cd /sys/devices/system/cpu
                for i in cpufreq/ondemand cpu0/cpufreq/ondemand cpu4/cpufreq/ondemand ; do
                        if [ -d $i ]; then
                                echo 1 >${i}/io_is_busy
                                echo 25 >${i}/up_threshold
                                echo 10 >${i}/sampling_down_factor
                                echo 20000 >${i}/sampling_rate
                        fi
                done
        fi

but after reboot I only get as value 10000:
root@npi-k1-plus(192.168.6.70):~# more /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
10000
 

So the governor doesnt switch :(
But when I insert
echo 20000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

at the end of /etc/rc.local (before exit 0)

then the governor does switch down to 408Mhz

Posted
2 hours ago, guidol said:

Measured in uS (10^-6 seconds), this is how often you want the kernel to look at the CPU usage and to make decisions on what to do about the frequency. Typically this is set to values of around '10000' or more.

 

With 10,000 the kernel takes a look 100 hundred times each second, when set to 200,000 it's just 5 times any more. And this is all off-topic here as already said (but same applies to the other thread that talks about OPi Zero)

 

As a first step I tried to consolidate timer frequency settings accross all kernels since what we have today is just chaos.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines