la NS-M5 ha la peculiarita' di fornire PoE sulla seconda porta
ethernet ma la feature e' disabilitata per default.
La patch seguente permette la sua abilitazione (passthrough) da backfire:
--- a/arch/mips/ar71xx/mach-ubnt.c 2010-08-04 11:25:28.0 +0200
+++ b/arch/mips/ar71xx/mach-ubnt.c 2010-08-11 16:52:15.0 +0200
@@ -37,6 +37,7 @@
#define UBNT_M_GPIO_LED_L3 11
#define UBNT_M_GPIO_LED_L4 7
#define UBNT_M_GPIO_BTN_RESET 12
+#define UBNT_M_GPIO_POE 8
#define UBNT_BUTTONS_POLL_INTERVAL 20
@@ -97,6 +98,10 @@
.name = ubnt:green:link4,
.gpio = UBNT_M_GPIO_LED_L4,
.active_low = 0,
+ }, {
+ .name= ubnt:poe,
+ .gpio= UBNT_M_GPIO_POE,
+ .active_low= 0,
}
};
abilitia:
echo 1 /sys/class/leds/ubnt\:poe/brightness
disabilita:
echo 0 /sys/class/leds/ubnt\:poe/brightness
Compilata e testata su r22566.
Occhio all'alimentatore usato per la PoE della NS: 15 volt a 800 mA
forniscono 12 W (assumendo di vivere in un mondo perfetto) e la NS da
sola ne richiede 8...
Antonio
___
Wireless mailing list
Wireless@ml.ninux.org
http://ml.ninux.org/mailman/listinfo/wireless