05-20-2019, 05:07 AM
Thank you for sharing this tool.
However I've some troubles, the build fails for me with an error I don't understand. Looks like something with systemctl?
I should have PWM enabled (at least I think so).
Thanks!
However I've some troubles, the build fails for me with an error I don't understand. Looks like something with systemctl?
Code:
root@rockpro64:~# 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.
root@rockpro64:~# uname -a
Linux rockpro64 4.4.132-1075-rockchip-ayufan-ga83beded8524 #1 SMP Thu Jul 26 08:22:22 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
root@rockpro64:~# cat /etc/issue
Ubuntu 18.04.1 LTS \n \l
root@rockpro64:~# which lua
/usr/bin/lua
root@rockpro64:~# /usr/bin/lua -v
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
root@rockpro64:~#
I should have PWM enabled (at least I think so).
Code:
root@rockpro64:~# ls /sys/class/pwm/pwmchip0/
device export npwm power subsystem uevent unexport
root@rockpro64:~# zegrep "PWM" /proc/config.gz
CONFIG_ROCKCHIP_REMOTECTL_PWM=y
# CONFIG_INPUT_PWM_BEEPER is not set
# CONFIG_SENSORS_PWM_FAN is not set
CONFIG_REGULATOR_PWM=y
CONFIG_BACKLIGHT_PWM=y
# CONFIG_LEDS_PWM is not set
# CONFIG_COMMON_CLK_PWM is not set
CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
# CONFIG_PWM_CROS_EC is not set
# CONFIG_PWM_FSL_FTM is not set
# CONFIG_PWM_GPIO is not set
# CONFIG_PWM_PCA9685 is not set
CONFIG_PWM_ROCKCHIP=y
# CONFIG_PWM_ROCKCHIP_I2S is not set
root@rockpro64:~#
Thanks!