IT8613E Super I/O Chip support in TrueNAS SCALE

Hello guys, first time on the forums here,
i have recently moved from Ubuntu Server to TrueNAS SCALE, everything is working quite well, apart from this IT8613E super I/O chip.
The fans are spinning at full speed and i cannot manage to control them since the kernel module is missing and i cannot compile it.
I’m using this github/shauno8/it87 github repo that contains a fork of the IT87 kmod already present in TrueNAS SCALE.
p.s. dev-tools are installed

On ubuntu server, i managed to compile and install the module with the autorun_setup.sh script, but on TrueNAS, compilation keeps failing, both with the script and manually using dkms/make.
if building with make:

make[2]: *** [scripts/Makefile.build:243: /usr/src/it87/it87.o] Killed

and, if building with dkms:

Error! Bad return status for module build on kernel: 6.6.44-production+truenas (x86_64)
Consult /var/lib/dkms/it87/v1.0-169-g213db3a.20240922/build/make.log for more information.
make: *** [Makefile:100: dkms] Error 10
Finished running dkms install steps

I’m running on an N100 BKHD NAS motherboard, i even tried on a VM for excluding hardware errors and i can confirm that i’m getting the same errors on the VM.
My goal will be controlling these PWM fans with fancontrol (pwmconfig) in a docker container because at the moment the NAS is way too loud considering that i have it in my living room.
I know that i could buy an internal USB fan controller, but since the case is already very small and the I/O on the motherboard is fairly limited, i would preferer using the super I/O chio to control my system fans.

Thanks,
Jack

p.p.s. the make.log error log is not giving any useful help.

This should be posted in Feature Requests, instead.

Reading the About the Feature Requests category before creating that post might help, too.

Feature request for this module was posted recently, vote for it.
While it is not done, there are two workarounds:

  1. Setup fan curve or lower static speed in uefi setup, it often does better job than any Linux software.
  2. Fake upstream-supported chip which is close enough, i.e. modprobe force_id=0x8620. I am using this to check fans speed, wouldn’t risk controlling them with this hack though.