In latest svn the default kernel for NSLU2 is updated to 2.6.24 from 2.6.23, but, the /sys/class/leds is now empty.
Is the led interface changed in this version, or the leds support is not available yet in the new kernel?
Topic: Empty /sys/class/leds/ on NSLU2 with 2.6.24 kernel
The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Hi,
I've tested the r10666 on the ixp4xx platform (NSLU2) and I have the same issue.
All the 4 leds (status, ready, disk-1 and disk-2) are lighted after boot and there's no way to switch off the lights.
on Kamikaze 7.09 I can do :
$ echo 0 >/sys/class/leds/status/brightness
But /sys/class/leds/ is empty with the trunk snapshot.
Any clue?
--
Florent
I think that we have to stay with 2.6.23 kernel for while....
I dont have any NSLU2 available for testing, but perhaps you could test this? Try to remove this patch and build again:
rm trunk/target/linux/ixp4xx/patches-2.6.24/021-ixp4xx_use_leds_gpio.patch
EDIT: looks like other patches depend on this patch, and I'm not familiar with quilt, so testing will be trickier than I thought.
(Last edited by netprince on 28 Apr 2008, 20:33)
Here is a patch to try. I have 2 nslu2s running openwrt, but both are in production and I cannot test this patch right now:
diff -urN --exclude=.svn target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk target/linux/ixp4xx/generic/profiles/200-NSLU2.mk
--- target.old/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 15:46:19.000000000 -0400
+++ target/linux/ixp4xx/generic/profiles/200-NSLU2.mk 2008-04-28 16:05:42.000000000 -0400
@@ -10,7 +10,7 @@
PACKAGES:=kmod-ixp4xx-npe \
kmod-scsi-core \
kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage \
- kmod-fs-ext2 kmod-fs-ext3
+ kmod-fs-ext2 kmod-fs-ext3 kmod-leds-gpio
endef
define Profile/NSLU2/Description
diff -urN package.old/kernel/modules/other.mk package/kernel/modules/other.mk
--- package.old/kernel/modules/other.mk 2008-04-28 16:30:09.000000000 -0400
+++ package/kernel/modules/other.mk 2008-04-28 16:35:34.000000000 -0400
@@ -294,7 +294,7 @@
define KernelPackage/leds-gpio
SUBMENU:=$(OTHER_MENU)
TITLE:=GPIO LED support
- DEPENDS:=@TARGET_adm5120
+ DEPENDS:=@TARGET_adm5120||@TARGET_ixp4xx
KCONFIG:=CONFIG_LEDS_GPIO
FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,60,leds-gpio)
Make sure kmod-leds-gpio is selected for installation in menuconfig.
Ah, yes that seems to work just fine. Its worth noting that the /ready led is the green side of the Ready/Status bicolor LED, and the /status is the red.
Thanks,
Yes. Trunk really needs a stabilizing phase now
For myself I wait a few thousand revisions now before I do my next build.
Yes...
"The eagle never lost so much time as when he submitted to learn from the Crow"
The discussion might have continued from here.