OpenWrt Forum Archive

Topic: [solved sort of] help i've broken my led and I can't light up

The content of this topic has been archived on 28 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Currently working on netgear r8000:

Somewhere along the line of building my firmware I lost the ability to control my leds.  I had them all set up just perfect, and the definitions are still in /etc/config/system, but they no longer work.  Also the LED configuration page is empty in LUCI and there is no ability to add.  I'm certain I removed something I need but for the life of me I can't figure out what.

Any advice on what to look for is most welcome please.

Thanks,

WWTK

https://www.dropbox.com/s/k8ldky93g2d86up/leds%20gone.png?dl=0

config led 'led_usb2'
        option name 'USB 2.0'
        option sysfs 'bcm53xx:white:usb2'
        option trigger 'usbport'
        list port 'usb1-port2'
        list port 'usb2-port2'
        option default '0'

config led 'led_usb3'
        option name 'USB 3.0'
        option sysfs 'bcm53xx:white:usb3'
        option trigger 'usbport'
        list port 'usb1-port1'
        list port 'usb2-port1'
        list port 'usb4-port1'
        option default '0'

config led
        option name 'Power'
        option sysfs 'bcm53xx:white:power'
        option default '1'
        option trigger 'none'

config led
        option default '0'
        option trigger 'netdev'
        option dev 'eth0.2'
        option name 'Wan Up'
        option mode 'link'
        option sysfs 'bcm53xx:white:wan'

config led
        option name 'Wan Down'
        option default '1'
        option trigger 'netdev'
        option dev 'eth0.2'
        option sysfs 'bcm53xx:amber:wan'

config led
        option default '0'
        option sysfs 'bcm53xx:white:5ghz-1'
        option trigger 'netdev'
        option dev 'wlan0'
        option name 'Radio0 Up'
        option mode 'link tx rx'

config led
        option default '0'
        option name 'Radio1 Up'
        option sysfs 'bcm53xx:white:2ghz'
        option trigger 'netdev'
        option dev 'wlan1'
        option mode 'link tx rx'

config led
        option default '0'
        option name 'Radio2 Up'
        option sysfs 'bcm53xx:white:5ghz-2'
        option trigger 'netdev'
        option dev 'wlan2'
        option mode 'link tx rx'

config of what i thought i needed:

CONFIG_DEFAULT_kmod-leds-gpio=y
CONFIG_DEFAULT_kmod-ledtrig-default-on=y
CONFIG_DEFAULT_kmod-ledtrig-timer=y
CONFIG_DEFAULT_kmod-usb-ledtrig-usbport=y
CONFIG_PACKAGE_kmod-leds-gpio=y
CONFIG_PACKAGE_kmod-leds-pca963x=y
CONFIG_PACKAGE_kmod-ledtrig-default-on=y
CONFIG_PACKAGE_kmod-ledtrig-gpio=y
CONFIG_PACKAGE_kmod-ledtrig-heartbeat=y
CONFIG_PACKAGE_kmod-ledtrig-netdev=y
CONFIG_PACKAGE_kmod-ledtrig-oneshot=y
CONFIG_PACKAGE_kmod-ledtrig-timer=y
CONFIG_PACKAGE_kmod-ledtrig-transient=y
CONFIG_PACKAGE_kmod-usb-ledtrig-usbport=y

(Last edited by WWTK on 8 Nov 2017, 16:32)

Hmmmm, Ok i "sort of" figured it out.  For some reason even though I set the led stuff to install it didn't get into the image.  Once I manually transfered the packages to the router and installed them its all working right again.

I must have hit some limit on packages or something.......

The discussion might have continued from here.