turris1x: add-kmod-leds-turris-1x
LEDs driver for Turris 1.x was upstreamed [1] and it was packaged to OpenWrt build system as separate kmod package [2]
This can be verified by using: ls -la /sys/class/leds/
.
Now, it looks like this:
root@turris:/# ll /sys/class/leds
drwxr-xr-x 2 root root 0 Jan 1 1970 ./
drwxr-xr-x 45 root root 0 Jan 1 1970 ../
lrwxrwxrwx 1 root root 0 Aug 11 13:44 ath9k-phy0 -> ../../devices/platform/ffe09000.pcie/pci9000:02/9000:02:00.0/9000:03:00.0/leds/ath9k-phy0/
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmc0:: -> ../../devices/platform/soc@ffe00000/ffe2e000.sdhc/leds/mmc0::/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:lan-1 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-1/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:lan-2 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-2/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:lan-3 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-3/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:lan-4 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-4/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:lan-5 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-5/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:power -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:power/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:wan -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:wan/
lrwxrwxrwx 1 root root 0 Jan 1 1970 rgb:wlan -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:wlan/
[1] https://lore.kernel.org/linux-leds/20220705155929.25565-2-pali@kernel.org/ [2] build@bbf2b0e8
Similar as c55d9c3e
Merge request reports
Activity
changed milestone to %Turris OS 6.0
added High label
requested review from @mvasilek
assigned to @mvasilek
removed High label
I can not make this work. I installed kmod-leds-turris-1x, rebooted and rainbow works, but /sys/class/leds is still the same as it was before the update.
root@turris:~# ls -l /sys/class/leds/ lrwxrwxrwx 1 root root 0 Aug 15 17:39 ath9k-phy0 -> ../../devices/platform/ffe09000.pcie/pci9000:02/9000:02:00.0/9000:03:00.0/leds/ath9k-phy0 lrwxrwxrwx 1 root root 0 Jan 1 1970 mmc0:: -> ../../devices/platform/soc@ffe00000/ffe2e000.sdhc/leds/mmc0:: root@turris:~# opkg list-installed | grep leds kmod-leds-gpio - 5.15.59-1-9a2687e627ae31779792480683f13d02 kmod-leds-turris-1x - 5.15.59-1-9a2687e627ae31779792480683f13d02 root@turris:~# uname -a Linux turris 5.15.59 #0 SMP Mon Aug 15 00:12:47 2022 ppc GNU/Linux root@turris:~# opkg list-installed | grep kernel kernel - 5.15.59-1-9a2687e627ae31779792480683f13d02
Updated my basic HBL Turris 1.x configuration to current HBL state, rebooted, installed the package and the changes are visible as soon as the package is installed:
root@turris:~# ls -l /sys/class/leds/ lrwxrwxrwx 1 root root 0 Aug 17 14:38 ath9k-phy0 -> ../../devices/platform/ffe09000.pcie/pci9000:02/9000:02:00.0/9000:03:00.0/leds/ath9k-phy0 lrwxrwxrwx 1 root root 0 Jan 1 1970 mmc0:: -> ../../devices/platform/soc@ffe00000/ffe2e000.sdhc/leds/mmc0:: lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:lan-1 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-1 lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:lan-2 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-2 lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:lan-3 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-3 lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:lan-4 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-4 lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:lan-5 -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:lan-5 lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:power -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:power lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:wan -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:wan lrwxrwxrwx 1 root root 0 Aug 17 14:39 rgb:wlan -> ../../devices/platform/ffe05000.localbus/ffa00000.cpld/ffa00013.led-controller/leds/rgb:wlan
Edited by Simon Borek
assigned to @jschlehofer and unassigned @mvasilek
added 2 commits