mafredri / asustor-platform-driver

Linux kernel platform driver for ASUSTOR NAS hardware (leds, buttons)
GNU General Public License v3.0
58 stars 9 forks source link

It works on my old AS3104T, thank you very much #13

Open Adios opened 8 months ago

Adios commented 8 months ago

Just installed Void Linux (musl) on AS3104T and found the second top LED (system status) keep blinking. Did some search and it brought me here.

On a fresh Void, install the dev tools (I can't remember what exactly I installed), you will also need these packages:

# headers
sudo xbps-install -S linux-headers
# system.map
sudo xbps-install -S void-repo-debug
sudo xbps-install -S linux6.6-dbg # match your kernel version

And follow the README.md to stop the system LED from blinking:

sudo modprobe asustor_it87
sudo modprobe asustor_gpio_it87
sudo sh -c "echo 0 > /sys/devices/platform/asustor_it87.656/hwmon/hwmon2/gpled1_blink"

I can see the following lines in dmesg when modprobe: (i tried asustor as well)

[ 1215.674589] asustor_it87: loading out-of-tree module taints kernel.
[ 1215.674606] asustor_it87: module verification failed: signature and/or required key missing - tainting kernel
[ 1215.676235] asustor_it87: Found IT8728F chip at 0x290, revision 2
[ 1215.676281] asustor_it87: Beeping is supported
[ 1215.678253] asustor_gpio_it87: Found Chip IT8728 rev 2. 64 GPIO lines starting at 0600h
[ 1215.690004] asustor: No supported ASUSTOR mainboard found

I think the next step for me would be make a package for Void Linux, but I'm completely newbie to Void, so maybe not now :P

Anyway many thanks for this awesome proejct!

Adios commented 8 months ago

Didn't notice there is dkms target in the Makefile. So don't even bother void-repo-debug, linux6.6-dbg.

on a fresh void liunx, all I need is just

sudo xbps-install -S dkms

git clone https://github.com/mafredri/asustor-platform-driver
cd asustor-platform-driver
sudo make dkms
sudo sh -c "echo 11 > /sys/devices/platform/asustor_it87.656/hwmon/hwmon3/gpled1_blink_freq"

to make the LED steady green and that's it, excellent work!