miskcoo / ugreen_leds_controller

An LED controller of UGREEN DX4600 Pro NAS, compatible with UGREEN DXP4800/6800/8800 series.
152 stars 22 forks source link

Missing kernel builds for newer TrueNAS versions #28

Open tooomm opened 1 week ago

tooomm commented 1 week ago

Looking at https://download.truenas.com/, where the build-all.sh script checks as well, there are versions listed up to 24.04.2.3:

image

The latest action runs do only find & build an old release from one month ago: Building TrueNAS-SCALE-Dragonfish/24.04.2.1

And the file storage even only has 24.04.2 🤔 https://github.com/miskcoo/ugreen_dx4600_leds_controller/tree/gh-actions/build-scripts/truenas/build/TrueNAS-SCALE-Dragonfish

miskcoo commented 5 days ago

Unfortunately, I am not a TrueNAS user and I cannot find the linux-headers package in the download link, which is required by the script. It seems there is something different compared to other version.

Maybe the old module (24.04.2) also works for these versions?

tooomm commented 1 day ago

I ran the command from the script locally, and it does find all versions correctly:

$ curl https://download.truenas.com/ | grep -Po "(?<=href=\")TrueNAS-SCALE-\w*?/\d+(\.\d+)*" | uniq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6084k  100 6084k    0     0  2857k      0  0:00:02  0:00:02 --:--:-- 2860k
TrueNAS-SCALE-Angelfish/22.02.0
TrueNAS-SCALE-Angelfish/22.02.0.1
TrueNAS-SCALE-Angelfish/22.02.1
TrueNAS-SCALE-Angelfish/22.02.2
TrueNAS-SCALE-Angelfish/22.02.2.1
TrueNAS-SCALE-Angelfish/22.02.3
TrueNAS-SCALE-Angelfish/22.02.4
TrueNAS-SCALE-Bluefin/22.12.0
TrueNAS-SCALE-Bluefin/22.12.1
TrueNAS-SCALE-Bluefin/22.12.2
TrueNAS-SCALE-Bluefin/22.12.3
TrueNAS-SCALE-Bluefin/22.12.3.1
TrueNAS-SCALE-Bluefin/22.12.3.2
TrueNAS-SCALE-Bluefin/22.12.3.3
TrueNAS-SCALE-Bluefin/22.12.4
TrueNAS-SCALE-Bluefin/22.12.4.1
TrueNAS-SCALE-Bluefin/22.12.4.2
TrueNAS-SCALE-Cobia/23.10.0
TrueNAS-SCALE-Cobia/23.10.0.1
TrueNAS-SCALE-Cobia/23.10.1
TrueNAS-SCALE-Cobia/23.10.1.1
TrueNAS-SCALE-Cobia/23.10.1.3
TrueNAS-SCALE-Cobia/23.10.2
TrueNAS-SCALE-Dragonfish/24.04.0
TrueNAS-SCALE-Dragonfish/24.04.1
TrueNAS-SCALE-Dragonfish/24.04.1.1
TrueNAS-SCALE-Dragonfish/24.04.2
TrueNAS-SCALE-Dragonfish/24.04.2.1
TrueNAS-SCALE-Dragonfish/24.04.2.2
TrueNAS-SCALE-Dragonfish/24.04.2.3


Maybe the logs of the action give a better hint what might goes wrong here.

miskcoo commented 1 day ago

Sure, it will find these versions.

For those older than 24.04, I manually excluded them in the next few lines, so it is expected they are not built.

But for 24.04.2.x, the script failed at finding the linux-headers package. For example, you can find it in the subdirectory 24.04.2/packages here), but it doesn't exist in 24.04.2.x.

Without these header files, the kernel module cannot be compiled. We may need to find another way to build the module for these version. However, fortunately, it seems the packages exist in the upcoming version 24.10, at least in the RC and the BETA versions.