Closed aparcar closed 7 years ago
rmilecki:
This comes from the following 01_leds entry:
ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1"
ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2"
Can you provide output of following commands?
cat /etc/config/system
cat /sys/class/leds/tp-link:green:usb2/trigger
ls /sys/class/leds/tp-link:green:usb2/ports/
Ansuel:
root@Ansuel-Router:~# cat /etc/config/system
config system option hostname 'Ansuel-Router' option cronloglevel '8' option conloglevel '4' option log_size '128' option zonename 'Europe/Rome' option timezone 'CET-1CEST,M3.5.0,M10.5.0/3' option urandom_seed '0' option log_proto 'udp'
config timeserver 'ntp' option enabled '1' list server '0.lede.pool.ntp.org' list server '1.lede.pool.ntp.org' list server '2.lede.pool.ntp.org' list server '3.lede.pool.ntp.org'
config led 'led_usb1' option name 'USB1' option sysfs 'tp-link:green:usb1' option trigger 'usbdev' option interval '50' option default '0' option dev '1-1'
config led option default '0' option name 'System' option sysfs 'tp-link:blue:system' option trigger 'none'
config led option default '0' option name 'Ath0' option sysfs 'ath9k-phy0' option trigger 'phy0tx'
config led option default '0' option name 'Ath1' option sysfs 'ath9k-phy1' option trigger 'phy1tx'
config led option default '0' option name 'Internet' option sysfs 'tp-link:blue:qss' option trigger 'netdev' option dev 'pppoe-wan' option mode 'tx'
root@Ansuel-Router:~# cat /sys/class/leds/tp-link:green:usb2/trigg er [none] nand-disk switch0 timer default-on netdev phy0rx phy0tx phy0assoc phy0radio phy0tpt phy1rx phy1tx phy1assoc phy1radio phy1tpt root@Ansuel-Router:~# ls /sys/class/leds/tp-link:green:usb2/ports/ ls: /sys/class/leds/tp-link:green:usb2/ports/: No such file or directory
rmilecki:
You didn't install kmod-usb-ledtrig-usbport so don't expect trigger to be available.
If you aren't sure how to compile images with device specific rootfs, consider using snapshots: https://downloads.lede-project.org/snapshots/targets/ar71xx/
Ansuel:
I think it's a bug... i get the same error with stock configuration so i think it should be included in the default firmware packages
rmilecki:
I believe it is, take a look at target/linux/ar71xx/image/tp-link.mk
define Device/tl-wdr3600-v1
$(Device/tplink-8mlzma)
DEVICE_TITLE := TP-LINK TL-WDR3600 v1
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
BOARDNAME := TL-WDR4300
DEVICE_PROFILE := TLWDR4300
TPLINK_HWID := 0x36000001
IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
endef
Did you try installing image from https://downloads.lede-project.org/snapshots/targets/ar71xx/ ?
Ansuel:
No i compile the image myself, my tp-link.mk is the same... Now i'm checking if it's selected in the package list but i can't find it (it should be in kernel modules --> led modules right? )
Ansuel:
No ok found it, it's strange... It should be selected by default... Anyway thx for the support
rmilecki:
Please Google how to use menuconfig, especially the search feature. Also learn how config files work because you can grep them easily. Don't get me wrong please, but it's not really a place for explaining all such stuff.
Ansuel:
Supply the following if possible:
Thu Nov 17 05:40:06 2016 user.notice : setting up led USB1 Thu Nov 17 05:40:06 2016 user.notice : /etc/rc.common: eval: line 1: can't create /sys/class/leds/tp-link:green:usb1/ports/1-1-port1: nonexistent directory Thu Nov 17 05:40:06 2016 user.notice : setting up led USB2 Thu Nov 17 05:40:06 2016 user.notice : /etc/rc.common: eval: line 1: can't create /sys/class/leds/tp-link:green:usb2/ports/1-1-port2: nonexistent directory