[OpenWrt-Devel] [PATCH v5] Add support for Ubiquiti EdgeRouter X (UBNT-ERX)

Nikolay Martynov mar.kolya at gmail.com
Sat Dec 12 11:03:42 EST 2015


2015-12-12 2:01 GMT-05:00 John Crispin <blogic at openwrt.org>:
> On 12/12/2015 07:50, Nikolay Martynov wrote:
>> Hi, John.
>>> as for the led support, you need to add an extra hook function so that
>>> swconfig can read the per port traffic counters. it can then make gpio
>>> leds flash based on those values.
>>   Just to make sure we are on the same page: the problem is that this
>> router doesn't have gpio-driven leds. Only leds it has are connected
>> directly to switch and those are not exposed as gpios.
>>   Is SWCONFIG_LEDS the thing that designed to help is this case? Or is
>> it for the case when we have leds on gpios and switch without directly
>> connected leds?
> ah ok, i though the automagic leds dont work and you have gpio leds.
> some ODMs do that for unknown reasons. in those cases the you need the
> SWCONFIG_LEDS. do they just stay silent for you now ?
  No, they blink with traffic alright.

  The problem I was trying to solve is to give some visual
notification during upgrade.
  Stock firmware locked one led on. I do not have source for stock
kernel module that does it, but I looked at U-boot and it looks like
there's some code that controls those leds via mdio. I do not know
what exactly they are doing - it might well be they just make link
status stuck on.
  I couldn't find anything similar to this in linux kernel.

Martynov Nikolay.
Email: mar.kolya at gmail.com
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list