New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#425 - mvebu led config (wrt1200 v1) #5488
Comments
mkresin: Have you tested with an usb2 or usb3 device? It could be that 2-1 is for usb2 and 3-1 is for usb3. Would you please run the following command on the wrt1200 and paste the output here:
find /sys/ -iname usb*
|
mike: You're right, the drive that's normally connected to the usb3 port is a usb2 drive, so i left the usb3 led config dev option at '2-1' and connected a usb3 drive, led didn't work, changed the dev option to '3-1' and the led worked with the usb3 drive, but not the usb2 drive. Here's the output you asked for -
|
mkresin: Would you please try an image from https://www.kresin.me/files/mvebu/. The images are build from the 17.01 release branch and do include LuCI. Don't preserve your config when upgrading! Please test both usb ports with USB 2.0 and USB 3.0 devices. Check if the correct LED is switched on and report back! The LED names should be fixed as well. |
mike: Got the image flashed, settings were deleted, tested usb2 and usb3 drives on both ports and all leds work and both drives work, many thanks! Looking forward to the official 17.01 release. |
mkresin: I was hinted that there is one more USB LED. I've uploaded new images to take account of this extra LED. The expected behaviour changes to:
The names should be "USB 1" for the first USB LED, "USB 2" for the second USB LED and "USB 2 SS" for the "dot" LED below the second (bar) USB LED. Would you please test again and confirm that it is working this way on your wrt1200! |
anomeome: mamba:
Right, terminology usb2 port == usb1 label, usb3 port == usb2 label |
mkresin: Mhh, that is unexpected. Would you please clarify which LED you mean with USB3? Is it the USB2-bar LED or the USB2-dot LED? According to your first paste, you have the following usb port trigger:
/sys/devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:caiman:white:usb3_1/ports/usb1-port1
/sys/devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:caiman:white:usb3_1/ports/usb2-port1
/sys/devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:caiman:white:usb3_1/ports/usb3-port1
And according to the dts file you should have the following LEDs:
/sys/class/leds/pca963x:caiman:white:usb2
/sys/class/leds/pca963x:caiman:white:usb3_1
/sys/class/leds/pca963x:caiman:white:usb3_2
Would you please attach your /etc/config/system! It should look similar to the one in https://bugs.lede-project.org/index.php?do=details&task_id=423#comment1407. What I've added is the usb2_ss usb led trigger. |
anomeome: Ya, things went South on me trying to change led configs through gui front-end instead of just editing /etc/config/system. If there is anything else you think you need from the mamba let me know, otherwise I can switch it out with a rango to test that device. |
mkresin:
Oh yes, please test it on a rango as well! But better switch to the [[https://forum.lede-project.org/t/community-snapshots-for-wrt1200ac-wrt1900acv1-wrt1900acv2-wrt1900acs-wrt3200acm/545/324?u=mkresin|forum]] |
mike: //Would you please test again and confirm that it is working this way on your wrt1200!// Flashed the new image and re-tested usb2 and usb3 drives on both ports and leds are still working correctly. The new USB 2 SS led also works as expected, a dot lights up under the usb2 led when a usb3 drive is connected, that's a nice feature i didn't even know about, thanks again! |
jow-: LuCI support for "usbport" triggers added in openwrt/luci@1640d14 |
mike:
Supply the following if possible:
Device is a Linksys wrt1200 v1 running LEDE Reboot 17.01-SNAPSHOT r3006-ef08595. I noticed the usb2 led wasn't working, checked the led configs in /etc/config/system and the dev option for config led 'led_usb3' was -
option dev '3-1'
changed it to -
option dev '2-1'
rebooted and usb2 led is working now.
The text was updated successfully, but these errors were encountered: