05-27-2019, 05:24 AM
(05-24-2019, 09:17 AM)tuxd3v Wrote:Hi, here are the outputs.(05-23-2019, 02:00 PM)tuxd3v Wrote: Hello tikonen,
You need to install the tool has root..
Hello tikonen,
Can you share the output of:
Code:systemctl status ats
Also the output of:
Code:journalctl -u ats
Code:
rock64@rockpro64:~$ sudo luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec
Warning: variable CFLAGS was not passed in build_variables
gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o debug.o src/debug.c
gcc -c -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o ats.o src/ats.c
gcc -shared -Wl,-soname,ats.so.0 -llua5.3 -o ats.so.0.9 debug.o ats.o
Install ATS Tool ..................: ats in /usr/local/sbin
Install ATS Config ................: ats.config in /etc
Install ATS Service File ..........: ats.service in systemd
Remove previous ATS Library .......: ats.so.* from /usr/local/lib/lua/5.3
Install new ATS Library ...........: ats.so.0.9 in /usr/local/lib/lua/5.3
Create soname symLink .............: ats.so in /usr/local/lib/lua/5.3
Failed to enable unit: Unit file ats.service does not exist.
Makefile:103: recipe for target 'install' failed
make: *** [install] Error 1
Error: Build error: Failed installing.
rock64@rockpro64:~$
Code:
rock64@rockpro64:~$ systemctl status ats
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/lib/systemd/system/ats.service; bad; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-05-27 11:16:18 UTC; 5s ago
Process: 1631 ExecStart=/usr/local/sbin/ats (code=exited, status=1/FAILURE)
Main PID: 1631 (code=exited, status=1/FAILURE)
May 27 11:16:18 rockpro64 systemd[1]: ats.service: Failed with result 'exit-code'.
Code:
rock64@rockpro64:~$ journalctl -u ats
....
May 27 11:16:18 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
May 27 11:16:18 rockpro64 ats[1631]: getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/te
May 27 11:16:18 rockpro64 ats[1631]: exit 1
May 27 11:16:18 rockpro64 systemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE
May 27 11:16:18 rockpro64 systemd[1]: ats.service: Failed with result 'exit-code'.
May 27 11:16:26 rockpro64 systemd[1]: ats.service: Service hold-off time over, scheduling restart.
May 27 11:16:26 rockpro64 systemd[1]: ats.service: Scheduled restart job, restart counter is at 322.
May 27 11:16:26 rockpro64 systemd[1]: Stopped ATS - Active Thermal Service.
May 27 11:16:26 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
May 27 11:16:26 rockpro64 ats[1636]: getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/te
May 27 11:16:26 rockpro64 ats[1636]: exit 1
May 27 11:16:26 rockpro64 systemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE
May 27 11:16:26 rockpro64 systemd[1]: ats.service: Failed with result 'exit-code'.
May 27 11:16:34 rockpro64 systemd[1]: ats.service: Service hold-off time over, scheduling restart.
May 27 11:16:34 rockpro64 systemd[1]: ats.service: Scheduled restart job, restart counter is at 323.
May 27 11:16:34 rockpro64 systemd[1]: Stopped ATS - Active Thermal Service.
May 27 11:16:34 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
May 27 11:16:34 rockpro64 ats[1637]: getConditions: Warning, Values { THERMAL0_CTL, THERMAL1_CTL, FAN_CTL }: /sys/class/thermal/thermal_zone0/te
May 27 11:16:34 rockpro64 ats[1637]: exit 1
May 27 11:16:34 rockpro64 systemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE
May 27 11:16:34 rockpro64 systemd[1]: ats.service: Failed with result 'exit-code'.
Code:
rock64@rockpro64:~$ uname -a
Linux rockpro64 4.4.138-1097-rockchip-ayufan-gb5128c0a1684 #1 SMP Sat Sep 29 15:08:06 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
Thanks, Teemu