04-30-2019, 11:38 AM
(04-30-2019, 10:33 AM)Farley56 Wrote: Hi, Rock64Pro OMV Nas up and running. Trying to install the ATS script.Hello Farley56,
1. Installed the dependencies - no errors.
2. Here's error when I attempt to install the ats.master and it tries to start the service.
Makefile:224: recipe for target 'install' failed
make: *** [install] Error 3
Error: Build error: Failed installing.
What I recommend, is to go always...to Stable Version..

1) Please, remove the version you have installed..
First stop the running service:
Code:
service ats stop
Then remove version installed:
Code:
luarocks remove ats
2) Install Again:
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
2.1) This is the full output of a installation, using the master branch( Method 1. )
Code:
root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
Cloning into 'ats'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 24 (delta 1), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (24/24), 105.25 KiB | 118.00 KiB/s, done.
Resolving deltas: 100% (1/1), done.
Warning: variable CFLAGS was not passed in build_variables
** PLATFORM = linux **
** OS = 64Bits **
** ARCH = armv8-a+crc **
** TUNE = cortex-a72.cortex-a53 **
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 Method: LuaRocks ..
SystemD Detected ..
Searching for Previous Install, and Remove it:
removed '/etc/ats.conf'
removed '/lib/systemd/system/ats.service'
removed '/usr/local/sbin/ats'
removed '/usr/local/lib/lua/5.3/ats.so'
Install ATS Service File ..........: ats.service in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install ATS Config ................: ats.config in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install ATS Tool ..................: ats in '/usr/local/lib/luarocks/rocks/ats/master-0'
Install new ATS Library ...........: ats.so.0.9 in '/usr/local/lib/luarocks/rocks/ats/master-0'
Creating soname symLink ........: ats.so in '/usr/local/lib/luarocks/rocks/ats/master-0'
Creating Service symLink .......: ats.service in '/lib/systemd/system'
Creating Binary symLink ........: ats in '/usr/local/sbin/ats'
Creating Config symLink ........: ats.conf in '/etc/ats.conf'
Creating SharedObject symLink ..: ats.so.0.9 in '/usr/local/lib/lua/5.3'
Starting ATS Service..
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/usr/local/lib/luarocks/rocks/ats/master-0/ats.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-04-30 18:17:03 WEST; 29ms ago
Main PID: 12959 (lua)
Tasks: 1 (limit: 4642)
CGroup: /system.slice/ats.service
└─12959 lua /usr/local/sbin/ats
Apr 30 18:17:03 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
ats master-0 is now installed in /usr/local (license: See License..)
3) Check if service is running:
Code:
root@rockpro64:~# service ats status
● ats.service - ATS - Active Thermal Service
Loaded: loaded (/usr/local/lib/luarocks/rocks/ats/master-0/ats.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-04-30 18:17:03 WEST; 18s ago
Main PID: 12959 (lua)
Tasks: 1 (limit: 4642)
CGroup: /system.slice/ats.service
└─12959 lua /usr/local/sbin/ats
Apr 30 18:17:03 rockpro64 systemd[1]: Started ATS - Active Thermal Service.
4) Print ATS configuration running:
Code:
root@rockpro64:~# ats -t
info:'SYSTEM' Table
info: 'BOARD' Table
info: 'NAME' = ROCKPRO64
info: 'CPU' = RK3399
info: 'THERMAL0_CTL' = /sys/class/thermal/thermal_zone0/temp
info: 'THERMAL1_CTL' = /sys/class/thermal/thermal_zone1/temp
info: 'PWM_CTL' = /sys/class/hwmon/hwmon0/pwm1
info: 'MAX_CONTINUOUS_THERMAL_TEMP' = 60
info: 'MIN_CONTINUOUS_THERMAL_TEMP' = 40
info: 'MAX_PWM' = 255
info: 'MIN_PWM' = 40
info: 'ALWAYS_ON' = false
info: 'PROFILE_NAME' = profile0
info: 'PROFILE' = 0
info:'Pratio' timers
info: 'Pratio[ -20 - 40 [' = 0
info: 'Pratio[ 40 ]' = 40
info: 'Pratio[ 41 ]' = 50
info: 'Pratio[ 42 ]' = 61
info: 'Pratio[ 43 ]' = 72
info: 'Pratio[ 44 ]' = 83
info: 'Pratio[ 45 ]' = 93
info: 'Pratio[ 46 ]' = 104
info: 'Pratio[ 47 ]' = 115
info: 'Pratio[ 48 ]' = 126
info: 'Pratio[ 49 ]' = 136
info: 'Pratio[ 50 ]' = 147
info: 'Pratio[ 51 ]' = 158
info: 'Pratio[ 52 ]' = 169
info: 'Pratio[ 53 ]' = 179
info: 'Pratio[ 54 ]' = 190
info: 'Pratio[ 55 ]' = 201
info: 'Pratio[ 56 ]' = 212
info: 'Pratio[ 57 ]' = 222
info: 'Pratio[ 58 ]' = 233
info: 'Pratio[ 59 ]' = 244
info: 'Pratio[ 60 ]' = 255
info: 'Pratio[ 60 - 70 [' = 255
Stop ATS Service first [ service ats stop ]..
Please, in the process above,
Provide me, the output of installation, like in 2.1), so that I can debug it..

Regards,