I've confirmed on a seperate install that the fan functions normally on the armv7 version. The linux module exists on the aarch64 version (can modprobe pwn_fan and pwm_raspberrypi_poe), but they don't seem to do anything. I noticed there is one module that isn't included (rpi_poe_power) but I have literally no experience adding drivers to the linux kernel. I tried using dkms via PKGBUILD, but it's giving me errors even though everything looks fine in the build log:
$this->bbcode_second_pass_code('', 'DKMS make.log for rpi-poe-power-0.1.0 for kernel 5.17.0-1-aarch64-ARCH (aarch64)
Tue Mar 29 06:46:58 PM UTC 2022
make -C /usr/lib/modules/5.17.0-1-aarch64-ARCH/build M=/var/lib/dkms/rpi-poe-power/0.1.0/build modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/lib/modules/5.17.0-1-aarch64-ARCH/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-unknown-linux-gnu-gcc (GCC) 11.2.0
You are using: gcc (GCC) 11.2.0
CC [M] /var/lib/dkms/rpi-poe-power/0.1.0/build/rpi_poe_power.o
MODPOST /var/lib/dkms/rpi-poe-power/0.1.0/build/Module.symvers
CC [M] /var/lib/dkms/rpi-poe-power/0.1.0/build/rpi_poe_power.mod.o
LD [M] /var/lib/dkms/rpi-poe-power/0.1.0/build/rpi_poe_power.ko
make[1]: Leaving directory '/usr/lib/modules/5.17.0-1-aarch64-ARCH/build'')
here's the mkpkg -si error:
$this->bbcode_second_pass_code('', 'Error! Build of rpi-poe-power.ko failed for: 5.17.1-1-aarch64-ARCH (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/rpi-poe-power/0.1.0/build for more information.
==> WARNING: `dkms install --no-depmod rpi-poe-power/0.1.0 -k 5.17.1-1-aarch64-ARCH' exited 7
')
Am I at least on the right path with DKMS? or is there something else I'm missing that needs to be done?