06-06-2019, 01:10 AM
(06-03-2019, 04:12 AM)tikonen Wrote: [quote pid='46691' dateline='1559247732']
That is a little bit strange, I use the same kernel..
seems that you don't have the sysfs files for control:
Code:/sys/devices/virtual/thermal/thermal_zone0/temp
/sys/devices/virtual/thermal/thermal_zone1/temp
/sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
[/quote]
Hi again,
Got the pwm1 working with aarch64 distro version and kernel rockpro64 4.4.167-1197-rockchip-ayufan-ga7ca17f30176. I can do echo 0-255 to sysfs /sys/class/hwmon/hwmon0/pwm1 and speed changes accordingly.
Also install with luarocks works fine now.
Btw, there seems to be a small glitch in the installer as it fails this if there are more than one lua version installed.
Code:
root@rockpro64:~# luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.2-0.rockspec
Missing dependencies for ats 0.2-0:
lua >= 5.3 (5.1-1 provided by VM)
ats 0.2-0 depends on lua >= 5.3 (5.1-1 provided by VM)
Error: Could not satisfy dependency lua >= 5.3: No results matching query were found.
root@rockpro64:~# which vm
root@rockpro64:~# which lua
/usr/bin/lua
root@rockpro64:~# /usr/bin/lua
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> ^C
root@rockpro64:~# ls /usr/bin/lua5.3
/usr/bin/lua5.3
root@rockpro64:~# /usr/bin/lua5.3
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
>
root@rockpro64:~# apt list --installed |grep lua
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
liblua5.1-0/bionic,now 5.1.5-8.1build2 arm64 [installed,automatic]
liblua5.1-0-dev/bionic,now 5.1.5-8.1build2 arm64 [installed,automatic]
liblua5.3-0/bionic-security,bionic-updates,now 5.3.3-1ubuntu0.18.04.1 arm64 [installed,automatic]
liblua5.3-dev/bionic-security,bionic-updates,now 5.3.3-1ubuntu0.18.04.1 arm64 [installed]
lua-any/bionic,now 24 all [installed,automatic]
lua5.1/bionic,now 5.1.5-8.1build2 arm64 [installed,automatic]
lua5.3/bionic-security,bionic-updates,now 5.3.3-1ubuntu0.18.04.1 arm64 [installed]
luarocks/bionic,now 2.4.2+dfsg-1 all [installed]
Thank you!