[OpenWrt-Devel] (no subject)

2014-11-26 Thread Martijn Zilverschoon
Patch to add the buildprofile for the GL-Init-6408A-v1 and the GL-Inet-6416A-v1
Both devices are identical, only difference is one comes with 8MB flash and the 
other with 16MB flash

Official website: http://www.gl-inet.com/w/?page_id=241&lang=en
Comprehensive list of specs: https://revspace.nl/GL-Inet
Official ebay store: 
http://www.ebay.com/sch/alfie.zhao/m.html?_nkw=&_armrs=1&_ipg=&_from=
Official amazon store: 
http://www.amazon.com/gp/aag/main?ie=UTF8&seller=A364119SDJA4QG
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: Add build profile for the gl-inet 6416A and 6408A

2014-11-26 Thread Martijn Zilverschoon
Signed-off-by: Martijn Zilverschoon 
---
 target/linux/ar71xx/image/Makefile |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 1c78898..791c4b7 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1253,7 +1253,8 @@ $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,ARCHERC7V1,archer-c7-v1,ARCHER-C7
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,ARCHERC7V2,archer-c7-v2,ARCHER-C7,ttyS0,115200,0xc702,1,16Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,ELM150,el-m150,EL-M150,ttyATH0,115200,0x01500101,1,8Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,ELMINI,el-mini,EL-MINI,ttyATH0,115200,0x01530001,1,8Mlzma))
-$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,GLINET,gl-inet-v1,GL-INET,ttyATH0,115200,0x0801,1,8Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,GLINET6408A,gl-inet-6408A-v1,GL-INET,ttyATH0,115200,0x0801,1,8Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,GLINET6416A,gl-inet-6416A-v1,GL-INET,ttyATH0,115200,0x0801,1,16Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLMR10U,tl-mr10u-v1,TL-MR10U,ttyATH0,115200,0x00100101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))
@@ -1340,6 +1341,7 @@ $(eval $(call MultiProfile,AP136,AP136_010 AP136_020))
 $(eval $(call MultiProfile,ARCHERC7, ARCHERC5 ARCHERC7V1 ARCHERC7V2))
 $(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT EWDORIN16M))
 $(eval $(call MultiProfile,OPENMESH,OM2P OM5P MR600 MR900))
+$(eval $(call MultiProfile,GLINET,GLINET6408A GLINET6416A))
 $(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
 $(eval $(call MultiProfile,TLMR11U,TLMR11UV1 TLMR11UV2))
 $(eval $(call MultiProfile,TLMR3040,TLMR3040V1 TLMR3040V2))
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender

2013-11-03 Thread Martijn Zilverschoon
Patch to add kernel support for the TP-LINK WA750RE and the WA850RE
range extender

Signed-off-by: Martijn Zilverschoon 

diff --git a/target/linux/ar71xx/config-3.10 b/target/linux/ar71xx/config-3.10
index 2a0ba82..55cbc10 100644
--- a/target/linux/ar71xx/config-3.10
+++ b/target/linux/ar71xx/config-3.10
@@ -72,6 +72,7 @@ CONFIG_ATH79_MACH_TL_MR11U=y
 CONFIG_ATH79_MACH_TL_MR13U=y
 CONFIG_ATH79_MACH_TL_MR3020=y
 CONFIG_ATH79_MACH_TL_MR3X20=y
+CONFIG_ATH79_MACH_TL_WAX50RE=y
 CONFIG_ATH79_MACH_TL_WA901ND=y
 CONFIG_ATH79_MACH_TL_WA901ND_V2=y
 CONFIG_ATH79_MACH_TL_WDR3500=y
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
new file mode 100644
index 000..2f82f48
--- /dev/null
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -0,0 +1,183 @@
+/*
+ *  TP-LINK TL-WA750RE V1 / TP-LINK TL-WA850RE V1 board support
+ *
+ *  Copyright (C) 2013 Martijn Zilverschoon 
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+
+#include "common.h"
+#include "dev-eth.h"
+#include "dev-gpio-buttons.h"
+#include "dev-leds-gpio.h"
+#include "dev-m25p80.h"
+#include "dev-wmac.h"
+#include "machtypes.h"
+
+#define TL_WAX50RE_GPIO_LED_LAN20
+#define TL_WAX50RE_GPIO_LED_WLAN13
+#define TL_WAX50RE_GPIO_LED_RE15
+#define TL_WAX50RE_GPIO_LED_SIGNAL10
+#define TL_WAX50RE_GPIO_LED_SIGNAL21
+#define TL_WAX50RE_GPIO_LED_SIGNAL32
+#define TL_WAX50RE_GPIO_LED_SIGNAL43
+#define TL_WAX50RE_GPIO_LED_SIGNAL54
+
+#define TL_WAX50RE_GPIO_BTN_RESET17
+#define TL_WAX50RE_GPIO_BTN_WPS16
+
+#define TL_WAX50RE_KEYS_POLL_INTERVAL20/* msecs */
+#define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
+
+static const char *tl_wax50re_part_probes[] = {
+"tp-link",
+NULL,
+};
+
+static struct flash_platform_data tl_wax50re_flash_data = {
+.part_probes= tl_wax50re_part_probes,
+};
+
+static struct gpio_led tl_wa750re_leds_gpio[] __initdata = {
+{
+.name= "tp-link:orange:lan",
+.gpio= TL_WAX50RE_GPIO_LED_LAN,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:wlan",
+.gpio= TL_WAX50RE_GPIO_LED_WLAN,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:re",
+.gpio= TL_WAX50RE_GPIO_LED_RE,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal1",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL1,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal2",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL2,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal3",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL3,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal4",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL4,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal5",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL5,
+.active_low= 1,
+},
+};
+
+static struct gpio_led tl_wa850re_leds_gpio[] __initdata = {
+{
+.name= "tp-link:blue:lan",
+.gpio= TL_WAX50RE_GPIO_LED_LAN,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:wlan",
+.gpio= TL_WAX50RE_GPIO_LED_WLAN,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:re",
+.gpio= TL_WAX50RE_GPIO_LED_RE,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal1",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL1,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal2",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL2,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal3",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL3,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal4",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL4,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal5",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL5,
+.active_low= 1,
+},
+};
+
+
+static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = {
+{
+.desc   = "Reset button",
+.type   = EV_KEY,
+.code   = KEY_RESTART,
+.debounce_in

[OpenWrt-Devel] [PATCH] ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender

2013-11-03 Thread Martijn Zilverschoon
Patch to add kernel support for the TP-LINK WA750RE and the WA850RE
range extender


Signed-off-by: Martijn Zilverschoon 
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+
+#include "common.h"
+#include "dev-eth.h"
+#include "dev-gpio-buttons.h"
+#include "dev-leds-gpio.h"
+#include "dev-m25p80.h"
+#include "dev-wmac.h"
+#include "machtypes.h"
+
+#define TL_WAX50RE_GPIO_LED_LAN20
+#define TL_WAX50RE_GPIO_LED_WLAN13
+#define TL_WAX50RE_GPIO_LED_RE15
+#define TL_WAX50RE_GPIO_LED_SIGNAL10
+#define TL_WAX50RE_GPIO_LED_SIGNAL21
+#define TL_WAX50RE_GPIO_LED_SIGNAL32
+#define TL_WAX50RE_GPIO_LED_SIGNAL43
+#define TL_WAX50RE_GPIO_LED_SIGNAL54
+
+#define TL_WAX50RE_GPIO_BTN_RESET17
+#define TL_WAX50RE_GPIO_BTN_WPS16
+
+#define TL_WAX50RE_KEYS_POLL_INTERVAL20/* msecs */
+#define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
+
+static const char *tl_wax50re_part_probes[] = {
+"tp-link",
+NULL,
+};
+
+static struct flash_platform_data tl_wax50re_flash_data = {
+.part_probes= tl_wax50re_part_probes,
+};
+
+static struct gpio_led tl_wa750re_leds_gpio[] __initdata = {
+{
+.name= "tp-link:orange:lan",
+.gpio= TL_WAX50RE_GPIO_LED_LAN,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:wlan",
+.gpio= TL_WAX50RE_GPIO_LED_WLAN,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:re",
+.gpio= TL_WAX50RE_GPIO_LED_RE,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal1",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL1,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal2",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL2,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal3",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL3,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal4",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL4,
+.active_low= 1,
+}, {
+.name= "tp-link:orange:signal5",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL5,
+.active_low= 1,
+},
+};
+
+static struct gpio_led tl_wa850re_leds_gpio[] __initdata = {
+{
+.name= "tp-link:blue:lan",
+.gpio= TL_WAX50RE_GPIO_LED_LAN,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:wlan",
+.gpio= TL_WAX50RE_GPIO_LED_WLAN,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:re",
+.gpio= TL_WAX50RE_GPIO_LED_RE,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal1",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL1,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal2",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL2,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal3",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL3,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal4",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL4,
+.active_low= 1,
+}, {
+.name= "tp-link:blue:signal5",
+.gpio= TL_WAX50RE_GPIO_LED_SIGNAL5,
+.active_low= 1,
+},
+};
+
+
+static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = {
+{
+.desc   = "Reset button",
+.type   = EV_KEY,
+.code   = KEY_RESTART,
+.debounce_interval = TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL,
+.gpio   = TL_WAX50RE_GPIO_BTN_RESET,
+.active_low   = 1,
+}, {
+.desc   = "WPS",
+.type   = EV_KEY,
+.code   = KEY_WPS_BUTTON,
+.debounce_interval = TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL,
+.gpio   = TL_WAX50RE_GPIO_BTN_WPS,
+.active_low   = 1,
+},
+};
+
+static void __init tl_ap123_setup(void)
+{
+u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
+u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
+
+ath79_register_m25p80(&tl_wax50re_flash_data);
+
+ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
+
+ath79_register_mdio(1, 0x0);
+
+ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
+
+ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
+ath79_eth0_data.phy_ma

[OpenWrt-Devel] [PATCH] ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extender

2013-11-04 Thread Martijn Zilverschoon
Patch to add kernel support for the TP-LINK WA750RE and the WA850RE
range extender


Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/config-3.10 b/target/linux/ar71xx/config-3.10
index 2a0ba82..55cbc10 100644
--- a/target/linux/ar71xx/config-3.10
+++ b/target/linux/ar71xx/config-3.10
@@ -72,6 +72,7 @@ CONFIG_ATH79_MACH_TL_MR11U=y
 CONFIG_ATH79_MACH_TL_MR13U=y
 CONFIG_ATH79_MACH_TL_MR3020=y
 CONFIG_ATH79_MACH_TL_MR3X20=y
+CONFIG_ATH79_MACH_TL_WAX50RE=y
 CONFIG_ATH79_MACH_TL_WA901ND=y
 CONFIG_ATH79_MACH_TL_WA901ND_V2=y
 CONFIG_ATH79_MACH_TL_WDR3500=y
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
new file mode 100644
index 000..2f82f48
--- /dev/null
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -0,0 +1,183 @@
+/*
+ *  TP-LINK TL-WA750RE V1 / TP-LINK TL-WA850RE V1 board support
+ *
+ *  Copyright (C) 2013 Martijn Zilverschoon 
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+
+#include "common.h"
+#include "dev-eth.h"
+#include "dev-gpio-buttons.h"
+#include "dev-leds-gpio.h"
+#include "dev-m25p80.h"
+#include "dev-wmac.h"
+#include "machtypes.h"
+
+#define TL_WAX50RE_GPIO_LED_LAN		20
+#define TL_WAX50RE_GPIO_LED_WLAN	13
+#define TL_WAX50RE_GPIO_LED_RE		15
+#define TL_WAX50RE_GPIO_LED_SIGNAL1	0
+#define TL_WAX50RE_GPIO_LED_SIGNAL2	1
+#define TL_WAX50RE_GPIO_LED_SIGNAL3	2
+#define TL_WAX50RE_GPIO_LED_SIGNAL4	3
+#define TL_WAX50RE_GPIO_LED_SIGNAL5	4
+
+#define TL_WAX50RE_GPIO_BTN_RESET	17
+#define TL_WAX50RE_GPIO_BTN_WPS		16
+
+#define TL_WAX50RE_KEYS_POLL_INTERVAL	20	/* msecs */
+#define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
+
+static const char *tl_wax50re_part_probes[] = {
+	"tp-link",
+	NULL,
+};
+
+static struct flash_platform_data tl_wax50re_flash_data = {
+	.part_probes	= tl_wax50re_part_probes,
+};
+
+static struct gpio_led tl_wa750re_leds_gpio[] __initdata = {
+	{
+		.name		= "tp-link:orange:lan",
+		.gpio		= TL_WAX50RE_GPIO_LED_LAN,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:wlan",
+		.gpio		= TL_WAX50RE_GPIO_LED_WLAN,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:re",
+		.gpio		= TL_WAX50RE_GPIO_LED_RE,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:signal1",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL1,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:signal2",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL2,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:signal3",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL3,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:signal4",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL4,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:orange:signal5",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL5,
+		.active_low	= 1,
+	},
+};
+
+static struct gpio_led tl_wa850re_leds_gpio[] __initdata = {
+	{
+		.name		= "tp-link:blue:lan",
+		.gpio		= TL_WAX50RE_GPIO_LED_LAN,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:wlan",
+		.gpio		= TL_WAX50RE_GPIO_LED_WLAN,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:re",
+		.gpio		= TL_WAX50RE_GPIO_LED_RE,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:signal1",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL1,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:signal2",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL2,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:signal3",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL3,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:signal4",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL4,
+		.active_low	= 1,
+	}, {
+		.name		= "tp-link:blue:signal5",
+		.gpio		= TL_WAX50RE_GPIO_LED_SIGNAL5,
+		.active_low	= 1,
+	},
+};
+
+
+static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = {
+	{
+		.desc		   = "Reset button",
+		.type		   = EV_KEY,
+		.code		   = KEY_RESTART,
+		.debounce_interval = TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL,
+		.gpio		   = TL_WAX50RE_GPIO_BTN_RESET,
+		.active_low	   = 1,
+	}, {
+		.desc		   = "WPS",
+		.type		   = EV_KEY,
+		.code		   = KEY_WPS_BUTTON,
+		.debounce_interval = TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL,
+		.gpio		   = TL_WAX50RE_GPIO_BTN_WPS,
+		.active_low	   = 1,
+	},
+};
+
+static void __init tl_ap123_setup(void)
+{
+	u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
+	u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
+
+	ath79_register_m25p80(&tl_wax50re_flash_data);
+
+	ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
+
+	ath79_register_mdio(1, 0x0);
+
+	ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
+
+	ath79_eth0_data.phy_if_mode = 

[OpenWrt-Devel] [PATCH] ar71xx: add user space support for the TL-WA750RE/WA850RE Range extender

2013-11-04 Thread Martijn Zilverschoon
Patch to add user space support for the TL-WA750RE/WA850RE range extender

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1cabd10..ffbac4f 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -123,6 +123,12 @@ get_status_led() {
 	tl-mr3020)
 		status_led="tp-link:green:wps"
 		;;
+	tl-wa750re)
+		status_led="tp-link:orange:re"
+		;;
+	tl-wa850re)
+		status_led="tp-link:blue:re"
+		;;
 	tl-mr3220 | \
 	tl-mr3220-v2 | \
 	tl-mr3420 | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 5566bfa..e6b7cc2 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -168,6 +168,16 @@ tl-mr3420-v2)
 	ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
 	;;
 
+tl-wa750re)
+	ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
+	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
+	;;
+
+tl-wa850re)
+	ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
+	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
+	;;
+
 tl-wa901nd)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
 	;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index d953ed7..1d80117 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -227,6 +227,8 @@ tl-mr13u |\
 tl-mr3020 |\
 tl-mr3040 |\
 tl-mr3040-v2 |\
+tl-wa750re |\
+tl-wa850re |\
 tl-wa901nd |\
 tl-wa901nd-v2 |\
 tl-wr703n |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index cd03168..8ceea57 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -103,6 +103,9 @@ tplink_board_detect() {
 	"074300"*)
 		model="TP-Link TL-WR743N/ND"
 		;;
+	"075000"*)
+		model="TP-Link TL-WA750RE"
+		;;
 	"080100"*)
 		model="TP-Link TL-WA801N/ND"
 		;;
@@ -115,6 +118,9 @@ tplink_board_detect() {
 	"084200"*)
 		model="TP-Link TL-WR842N/ND"
 		;;
+	"085000"*)
+		model="TP-Link TL-WA850RE"
+		;;
 	"090100"*)
 		model="TP-Link TL-WA901N/ND"
 		;;
@@ -441,9 +447,15 @@ ar71xx_board_detect() {
 	*"TL-MR3420 v2")
 		name="tl-mr3420-v2"
 		;;
+	*TL-WA750RE)
+		name="tl-wa750re"
+		;;
 	*TL-WA7510N)
 		name="tl-wa7510n"
 		;;
+	*TL-WA850RE)
+		name="tl-wa850re"
+		;;
 	*TL-WA901ND)
 		name="tl-wa901nd"
 		;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index ae04a8c..266bf3f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -190,6 +190,8 @@ platform_check_image() {
 	tl-mr3420 | \
 	tl-mr3420-v2 | \
 	tl-wa7510n | \
+	tl-wa750re | \
+	tl-wa850re | \
 	tl-wa901nd | \
 	tl-wa901nd-v2 | \
 	tl-wdr3500 | \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: add profile and build image for the TL-WA750RE TL-WA850RE range extender

2013-11-04 Thread Martijn Zilverschoon
Patch to add profile and build image for the tplink TL-WA750RE/WA850RE board

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk
index b7d4ec0..5236f7f 100644
--- a/target/linux/ar71xx/generic/profiles/tp-link.mk
+++ b/target/linux/ar71xx/generic/profiles/tp-link.mk
@@ -139,6 +139,18 @@ define Profile/TLWA701/Description
 endef
 $(eval $(call Profile,TLWA701))
 
+
+define Profile/TLWA750
+	NAME:=TP-LINK TL-WA750RE
+	PACKAGES:=
+endef
+
+define Profile/TLWA750/Description
+	Package set optimized for the TP-LINK TL-WA750RE.
+endef
+$(eval $(call Profile,TLWA750))
+
+
 define Profile/TLWA7510
 	NAME:=TP-LINK TL-WA7510N
 	PACKAGES:=
@@ -170,6 +182,17 @@ endef
 $(eval $(call Profile,TLWA830))
 
 
+define Profile/TLWA850
+	NAME:=TP-LINK TL-WA850RE
+	PACKAGES:=
+endef
+
+define Profile/TLWA850/Description
+	Package set optimized for the TP-LINK TL-WA850RE.
+endef
+$(eval $(call Profile,TLWA850))
+
+
 define Profile/TLWA901
 	NAME:=TP-LINK TL-WA901N/ND
 	PACKAGES:=
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index f2b6bef..487b89c 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -928,7 +928,9 @@ $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR720NV3,tl-wr720n-v3,TL-WR720N
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA750,tl-wa750re-v1,TL-WA750RE,ttyS0,115200,0x0751,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA850,tl-wa850re-v1,TL-WA850RE,ttyS0,115200,0x0851,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR941NV6,tl-wr941nd-v6,TL-WDR3500,ttyS0,115200,0x09410006,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v 3.13.99))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [v3, 1/4] Add kernel support for Sagemcom F@ST2704V2 ADSL router

2013-11-08 Thread Martijn Zilverschoon
Well if you need this that badly, you can patch it yourself :)

git clone git://git.openwrt.org/openwrt.git


2013/11/8 Weedy :
> Can this pretty please not die to bitrot?
> I need this merged so badly ;_;
>
>
> On Thu, Oct 31, 2013 at 7:33 PM, Marcin Jurkowski 
> wrote:
>>
>> This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
>> router.
>> It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
>> modem equipped with 64 MiB RAM and 8 MiB flash.
>> ---
>>  .../brcm63xx/patches-3.10/536-board_fast2704.patch | 133
>> +
>>  1 file changed, 133 insertions(+)
>>  create mode 100644
>> target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>>
>> diff --git a/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>> b/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>> new file mode 100644
>> index 000..db34932
>> --- /dev/null
>> +++ b/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>> @@ -0,0 +1,133 @@
>> +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
>>  b/arch/mips/bcm63xx/boards/board_bcm963xx.c
>> +@@ -1477,6 +1477,122 @@ static struct board_info __initdata boar
>> +   },
>> + };
>> +
>> ++static struct board_info __initdata board_FAST2704V2 = {
>> ++  .name   = "F@ST2704V2",
>> ++  .expected_cpu_id= 0x6328,
>> ++
>> ++  .has_uart0  = 1,
>> ++  .has_pci= 1,
>> ++  .has_ohci0  = 1,
>> ++  .has_ehci0  = 1,
>> ++  .has_usbd   = 1,
>> ++
>> ++  .has_enetsw = 1,
>> ++
>> ++  .enetsw = {
>> ++  .used_ports = {
>> ++  [0] = {
>> ++  .used   = 1,
>> ++  .phy_id = 1,
>> ++  .name   = "Port 1",
>> ++  },
>> ++  [1] = {
>> ++  .used   = 1,
>> ++  .phy_id = 2,
>> ++  .name   = "Port 2",
>> ++  },
>> ++  [2] = {
>> ++  .used   = 1,
>> ++  .phy_id = 3,
>> ++  .name   = "Port 3",
>> ++  },
>> ++  [3] = {
>> ++  .used   = 1,
>> ++  .phy_id = 4,
>> ++  .name   = "Port 4",
>> ++  },
>> ++  },
>> ++  },
>> ++
>> ++  .leds = {
>> ++  /* front LEDs */
>> ++  {
>> ++  .name   =
>> "F@ST2704V2:green:power",
>> ++  .gpio   = 4,
>> ++  .active_low = 1,
>> ++  .default_trigger= "default-on",
>> ++  },
>> ++  {
>> ++  .name   = "F@ST2704V2:red:power",
>> ++  .gpio   = 5,
>> ++  .active_low = 1,
>> ++  },
>> ++  {
>> ++  .name   = "F@ST2704V2:red:inet",
>> ++  .gpio   = 2,
>> ++  .active_low = 1,
>> ++  },
>> ++  {
>> ++  .name   = "F@ST2704V2:green:dsl",
>> ++  .gpio   = 3,
>> ++  .active_low = 1,
>> ++  },
>> ++  {
>> ++  .name   = "F@ST2704V2:green:inet",
>> ++  .gpio   = 11,
>> ++  .active_low = 1,
>> ++  },
>> ++  {
>> ++  .name   = "F@ST2704V2:green:usb",
>> ++  .gpio   = 1,
>> ++  .active_low = 1,
>> ++  },
>> ++
>> ++  /* side button LEDs */
>> ++  {
>> ++  .name   = "F@ST2704V2:green:wps",
>> ++  .gpio   = 10,
>> ++  .active_low = 1,
>> ++  },
>> ++
>> ++  /* FIXME: can't control gpio0 line in "out" state, needs
>> further investigation */
>> ++  /*
>> ++  {
>> ++  .name   =
>> "F@ST2704V2:green:rfkill",
>> ++  .gpio   = 0,
>> ++  .active_low = 1,
>> ++  },
>> ++  */
>> ++
>> ++  },
>> ++  .buttons = {
>> ++  {
>> ++  .desc   = "reset",
>> ++  .gpio

Re: [OpenWrt-Devel] [v3, 1/4] Add kernel support for Sagemcom F@ST2704V2 ADSL router

2013-11-08 Thread Martijn Zilverschoon
Well if you need this that badly, you can patch it yourself :)

Checkout the git repository:
git clone git://git.openwrt.org/openwrt.git

download the patches and apply them to the local git repo.
the command for that is: git apply 'example.patch' (make sure that you
are in the openwrt directory)
I think you have to apply 4 patches since this one is 1/4.

Sorry for the earlier message that was incomplete.

-Martijn

2013/11/8 Martijn Zilverschoon :
> Well if you need this that badly, you can patch it yourself :)
>
> git clone git://git.openwrt.org/openwrt.git
>
>
> 2013/11/8 Weedy :
>> Can this pretty please not die to bitrot?
>> I need this merged so badly ;_;
>>
>>
>> On Thu, Oct 31, 2013 at 7:33 PM, Marcin Jurkowski 
>> wrote:
>>>
>>> This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
>>> router.
>>> It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
>>> modem equipped with 64 MiB RAM and 8 MiB flash.
>>> ---
>>>  .../brcm63xx/patches-3.10/536-board_fast2704.patch | 133
>>> +
>>>  1 file changed, 133 insertions(+)
>>>  create mode 100644
>>> target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>>>
>>> diff --git a/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>>> b/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>>> new file mode 100644
>>> index 000..db34932
>>> --- /dev/null
>>> +++ b/target/linux/brcm63xx/patches-3.10/536-board_fast2704.patch
>>> @@ -0,0 +1,133 @@
>>> +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
>>>  b/arch/mips/bcm63xx/boards/board_bcm963xx.c
>>> +@@ -1477,6 +1477,122 @@ static struct board_info __initdata boar
>>> +   },
>>> + };
>>> +
>>> ++static struct board_info __initdata board_FAST2704V2 = {
>>> ++  .name   = "F@ST2704V2",
>>> ++  .expected_cpu_id= 0x6328,
>>> ++
>>> ++  .has_uart0  = 1,
>>> ++  .has_pci= 1,
>>> ++  .has_ohci0  = 1,
>>> ++  .has_ehci0  = 1,
>>> ++  .has_usbd   = 1,
>>> ++
>>> ++  .has_enetsw = 1,
>>> ++
>>> ++  .enetsw = {
>>> ++  .used_ports = {
>>> ++  [0] = {
>>> ++  .used   = 1,
>>> ++  .phy_id = 1,
>>> ++  .name   = "Port 1",
>>> ++  },
>>> ++  [1] = {
>>> ++  .used   = 1,
>>> ++  .phy_id = 2,
>>> ++  .name   = "Port 2",
>>> ++  },
>>> ++  [2] = {
>>> ++  .used   = 1,
>>> ++  .phy_id = 3,
>>> ++  .name   = "Port 3",
>>> ++  },
>>> ++  [3] = {
>>> ++  .used   = 1,
>>> ++  .phy_id = 4,
>>> ++  .name   = "Port 4",
>>> ++  },
>>> ++  },
>>> ++  },
>>> ++
>>> ++  .leds = {
>>> ++  /* front LEDs */
>>> ++  {
>>> ++  .name   =
>>> "F@ST2704V2:green:power",
>>> ++  .gpio   = 4,
>>> ++  .active_low = 1,
>>> ++  .default_trigger= "default-on",
>>> ++  },
>>> ++  {
>>> ++  .name   = "F@ST2704V2:red:power",
>>> ++  .gpio   = 5,
>>> ++  .active_low = 1,
>>> ++  },
>>> ++  {
>>> ++  .name   = "F@ST2704V2:red:inet",
>>> ++  .gpio   = 2,
>>> ++  .active_low = 1,
>>> ++  },
>>> ++  {
>>> ++  .name   

[OpenWrt-Devel] [PATCH] [1/3] ar71xx: Add kernel support for the WR842N/ND v2

2013-11-10 Thread Martijn Zilverschoon
Patch to add kernel support for the TP-LINK WR842N/ND v2

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
index 6d2654b..064a33f 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
@@ -180,6 +180,28 @@ static void __init tl_wr841n_v8_setup(void)
 MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8", "TP-LINK TL-WR841N/ND v8",
 	 tl_wr841n_v8_setup);
 
+
+static void __init tl_wr842n_v2_setup(void)
+{
+	tl_ap123_setup();
+
+	ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio) - 1,
+ tl_wr841n_v8_leds_gpio);
+
+	ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
+	ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
+	tl_wr841n_v8_gpio_keys);
+
+	gpio_request_one(TL_MR3420V2_GPIO_USB_POWER,
+			 GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
+			 "USB power");
+
+	ath79_register_usb();
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WR842N_V2, "TL-WR842N-v2", "TP-LINK TL-WR842N/ND v2",
+	 tl_wr842n_v2_setup);
+
 static void __init tl_mr3420v2_setup(void)
 {
 	tl_ap123_setup();
diff --git a/target/linux/ar71xx/patches-3.10/634-MIPS-ath79-add-TL-WR842N-v2-support.patch b/target/linux/ar71xx/patches-3.10/634-MIPS-ath79-add-TL-WR842N-v2-support.patch
new file mode 100644
index 000..f0f06cf
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.10/634-MIPS-ath79-add-TL-WR842N-v2-support.patch
@@ -0,0 +1,12 @@
+Index: linux-3.10.18/arch/mips/ath79/machtypes.h
+===
+--- linux-3.10.18.orig/arch/mips/ath79/machtypes.h	2013-11-10 15:33:58.068025153 +0100
 linux-3.10.18/arch/mips/ath79/machtypes.h	2013-11-10 15:36:03.012088462 +0100
+@@ -113,6 +113,7 @@
+ 	ATH79_MACH_TL_WR841N_V1,	/* TP-LINK TL-WR841N v1 */
+ 	ATH79_MACH_TL_WR841N_V7,	/* TP-LINK TL-WR841N/ND v7 */
+ 	ATH79_MACH_TL_WR841N_V8,	/* TP-LINK TL-WR841N/ND v8 */
++	ATH79_MACH_TL_WR842N_V2,	/* TP-LINK TL-WR842N/ND v2 */
+ 	ATH79_MACH_TL_WR941ND,		/* TP-LINK TL-WR941ND */
+ 	ATH79_MACH_UBNT_AIRROUTER,	/* Ubiquiti AirRouter */
+ 	ATH79_MACH_UBNT_BULLET_M,	/* Ubiquiti Bullet M */
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [2/3] ar71xx: add profile for the WR842N/ND v2

2013-11-10 Thread Martijn Zilverschoon
Patch to add the profile for the TP-LINK WR842N/ND v2

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 897aab9..64d2986 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -974,7 +974,7 @@ $(eval $(call SingleProfile,TPLINK,64kraw,TLWR743NV1,tl-wr743nd-v1,TL-WR741ND,tt
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV3,tl-wr841nd-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV5,tl-wr841nd-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV7,tl-wr841nd-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M))
-$(eval $(call SingleProfile,TPLINK,64kraw,TLWR842,tl-wr842n-v1,TL-MR3420,ttyS0,115200,0x08420001,1,8M))
+$(eval $(call SingleProfile,TPLINK,64kraw,TLWR842V1,tl-wr842n-v1,TL-MR3420,ttyS0,115200,0x08420001,1,8M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV2,tl-wr941nd-v2,TL-WR941ND,ttyS0,115200,0x09410002,2,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV3,tl-wr941nd-v3,TL-WR941ND,ttyS0,115200,0x09410002,2,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M))
@@ -997,6 +997,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR740NV4,tl-wr740n-v4,TL-WR741N
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR842V2,tl-wr842n-v2,TL-WR842N-v2,ttyS0,115200,0x8420002,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR941NV6,tl-wr941nd-v6,TL-WDR3500,ttyS0,115200,0x09410006,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v 3.13.99))
@@ -1058,6 +1059,7 @@ $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
 $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))
 $(eval $(call MultiProfile,TLWR743,TLWR743NV1 TLWR743NV2))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 TLWR841NV7 TLWR841NV8))
+$(eval $(call MultiProfile,TLWR842,TLWR842V1 TLWR842V2))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4 TLWR941NV6))
 $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4310V1 MW4530RV1))
 $(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [3/3] ar71xx: add user space support for the TL-WR842N/ND v2

2013-11-10 Thread Martijn Zilverschoon
Patch to add the user space support for the TL-WR842N/ND v2

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index e304fac..6ee36c1 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -140,6 +140,7 @@ get_status_led() {
 	tl-wr841n-v1 | \
 	tl-wr841n-v7 | \
 	tl-wr841n-v8 | \
+	tl-wr842n-v2 | \
 	tl-wr941nd)
 		status_led="tp-link:green:system"
 		;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 235a475..52fc409 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -219,7 +219,8 @@ tl-wr741nd-v4)
 	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
 	;;
 
-tl-wr841n-v8)
+tl-wr841n-v8 |\
+tl-wr842n-v2)
 	ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
 	ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
 	ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index bdf37ee..94ec141 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -169,6 +169,7 @@ tl-wr941nd)
 
 tl-mr3420-v2 |\
 tl-wr841n-v8 |\
+tl-wr842n-v2 |\
 wnr2000-v3 |\
 wnr2200 |\
 wnr612-v2)
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index e1cedf6..8c84446 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -474,6 +474,9 @@ ar71xx_board_detect() {
 	*"TL-WR841N/ND v8")
 		name="tl-wr841n-v8"
 		;;
+	*"TL-WR842N/ND v2")
+		name="tl-wr842n-v2"
+		;;
 	*TL-WR941ND)
 		name="tl-wr941nd"
 		;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index ae04a8c..06bdf24 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -202,6 +202,7 @@ platform_check_image() {
 	tl-wr841n-v1 | \
 	tl-wr841n-v7 | \
 	tl-wr841n-v8 | \
+	tl-wr842n-v2 | \
 	tl-wr941nd | \
 	tl-wr1041n-v2 | \
 	tl-wr1043nd | \
	___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [2/3] ar71xx: add profile for the WR842N/ND v2

2013-11-11 Thread Martijn Zilverschoon
Patch to add the profile for the TP-LINK WR842N/ND v2
Small update, because of a change in the Makefile.
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 3af8375..54b9843 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -974,7 +974,7 @@ $(eval $(call SingleProfile,TPLINK,64kraw,TLWR743NV1,tl-wr743nd-v1,TL-WR741ND,tt
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV3,tl-wr841nd-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV5,tl-wr841nd-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR841NV7,tl-wr841nd-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M))
-$(eval $(call SingleProfile,TPLINK,64kraw,TLWR842,tl-wr842n-v1,TL-MR3420,ttyS0,115200,0x08420001,1,8M))
+$(eval $(call SingleProfile,TPLINK,64kraw,TLWR842V1,tl-wr842n-v1,TL-MR3420,ttyS0,115200,0x08420001,1,8M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV2,tl-wr941nd-v2,TL-WR941ND,ttyS0,115200,0x09410002,2,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV3,tl-wr941nd-v3,TL-WR941ND,ttyS0,115200,0x09410002,2,4M))
 $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M))
@@ -998,6 +998,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR741NV4,tl-wr741nd-v4,TL-WR741
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA750,tl-wa750re-v1,TL-WA750RE,ttyS0,115200,0x0751,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR842V2,tl-wr842n-v2,TL-WR842N-v2,ttyS0,115200,0x8420002,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA850,tl-wa850re-v1,TL-WA850RE,ttyS0,115200,0x0851,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR941NV6,tl-wr941nd-v6,TL-WDR3500,ttyS0,115200,0x09410006,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
@@ -1060,6 +1061,7 @@ $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
 $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))
 $(eval $(call MultiProfile,TLWR743,TLWR743NV1 TLWR743NV2))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 TLWR841NV7 TLWR841NV8))
+$(eval $(call MultiProfile,TLWR842,TLWR842V1 TLWR842V2))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4 TLWR941NV6))
 $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4310V1 MW4530RV1))
 $(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [2/3] ar71xx: add profile for the WR842N/ND v2

2013-11-11 Thread Martijn Zilverschoon
Signed-off-by: Martijn Zilverschoon 


2013/11/11 Martijn Zilverschoon :
> Patch to add the profile for the TP-LINK WR842N/ND v2
> Small update, because of a change in the Makefile.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] gianfar: Fix NAPI poll mechanism in GIANFAR ethernet driver

2013-11-11 Thread Martijn Zilverschoon
The patch that fixes the NAPI poll mechanism works amazing and
troughput is much better then the downgrade that is currently used.

This patch replaces
target/linux/mpc85xx/patches-3.10/200-gianfar_napi_poll_revert.patch

I think a lot of people will benefit from this commit.

See also the thread https://forum.openwrt.org/viewtopic.php?pid=214931#p214931

Tested-by: Martijn Zilverschoon 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: Kernel support update tl-wr842n_v2 added missing usb led

2013-11-18 Thread Martijn Zilverschoon
Just a small oversight my part, added the support for the USB led
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
index 064a33f..0099b15 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
@@ -185,7 +185,7 @@ static void __init tl_wr842n_v2_setup(void)
 {
tl_ap123_setup();

-   ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio) - 1,
+   ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr841n_v8_leds_gpio),
 tl_wr841n_v8_leds_gpio);

ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: Kernel support update tl-wr842n_v2 added missing usb led

2013-11-18 Thread Martijn Zilverschoon
Signed-off-by: Martijn Zilverschoon 

2013/11/18 Martijn Zilverschoon :
> Just a small oversight my part, added the support for the USB led
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: user space support update tl-wr842n_v2 add default led support

2013-11-18 Thread Martijn Zilverschoon
Small update to uci_defaults/01_leds, to support the usb led
Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 95b30c1..ec31631 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -229,7 +229,15 @@ tl-wr741nd-v4)
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
;;

-tl-wr841n-v8 |\
+tl-wr841n-v8)
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+   ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ;;
+
 tl-wr842n-v2)
ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
@@ -237,6 +245,7 @@ tl-wr842n-v2)
ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;

 tl-wr941nd | \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2] gianfar: Fix NAPI poll mechanism in GIANFAR ethernet driver

2013-11-19 Thread Martijn Zilverschoon
This patch would be a great addition, and works wonderfully :) I have
it running for some time now from when I found it in the thread
https://forum.openwrt.org/viewtopic.php?id=42062&p=15
Tested-by: Martijn Zilverschoon 

2013/11/19 Thomas Huehn :
> This patch fixes the NAPI poll mechanism in the GIANFAR ethernet driver, which
> was not properly working since Linus Kernel Version 3,8.
> Therefore the workaround patch to downgrade the GIANFAR ethernet driver to
> Kernelversion v3.8 is obsoete.
> This patch was extensivly testes with different network loads and types of
> traffic. There is quite a substantial user base that reports proper Ethernet
> function with TPlink-4900. This patch is based on the fixes from GINAFAR
> maintainer Claudiu Manoli.
> ---
> v2: add the deletion of the former workaround 
> 200-gianfar_napi_poll_revert.patch
>
> Signed-off-by: Thomas Huehn 
> ---
>  .../200-gianfar_napi_poll_revert.patch |  162 
> 
>  .../patches-3.10/201-fix_gianfar_napi_poll.patch   |  111 ++
>  2 files changed, 111 insertions(+), 162 deletions(-)
>  delete mode 100644 
> target/linux/mpc85xx/patches-3.10/200-gianfar_napi_poll_revert.patch
>  create mode 100644 
> target/linux/mpc85xx/patches-3.10/201-fix_gianfar_napi_poll.patch
>
> diff --git 
> a/target/linux/mpc85xx/patches-3.10/200-gianfar_napi_poll_revert.patch 
> b/target/linux/mpc85xx/patches-3.10/200-gianfar_napi_poll_revert.patch
> deleted file mode 100644
> index 7b0e6c9..000
> --- a/target/linux/mpc85xx/patches-3.10/200-gianfar_napi_poll_revert.patch
> +++ /dev/null
> @@ -1,162 +0,0 @@
>  a/drivers/net/ethernet/freescale/gianfar.c
> -+++ b/drivers/net/ethernet/freescale/gianfar.c
> -@@ -132,7 +132,7 @@ static int gfar_poll(struct napi_struct
> - static void gfar_netpoll(struct net_device *dev);
> - #endif
> - int gfar_clean_rx_ring(struct gfar_priv_rx_q *rx_queue, int rx_work_limit);
> --static void gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue);
> -+static int gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue);
> - static void gfar_process_frame(struct net_device *dev, struct sk_buff *skb,
> -  int amount_pull, struct napi_struct *napi);
> - void gfar_halt(struct net_device *dev);
> -@@ -2475,7 +2475,7 @@ static void gfar_align_skb(struct sk_buf
> - }
> -
> - /* Interrupt Handler for Transmit complete */
> --static void gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue)
> -+static int gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue)
> - {
> -   struct net_device *dev = tx_queue->dev;
> -   struct netdev_queue *txq;
> -@@ -2575,6 +2575,8 @@ static void gfar_clean_tx_ring(struct gf
> -   tx_queue->dirty_tx = bdp;
> -
> -   netdev_tx_completed_queue(txq, howmany, bytes_sent);
> -+
> -+  return howmany;
> - }
> -
> - static void gfar_schedule_cleanup(struct gfar_priv_grp *gfargrp)
> -@@ -2833,82 +2835,62 @@ static int gfar_poll(struct napi_struct
> -   struct gfar __iomem *regs = gfargrp->regs;
> -   struct gfar_priv_tx_q *tx_queue = NULL;
> -   struct gfar_priv_rx_q *rx_queue = NULL;
> --  int work_done = 0, work_done_per_q = 0;
> --  int i, budget_per_q = 0;
> --  int has_tx_work;
> --  unsigned long rstat_rxf;
> --  int num_act_queues;
> -+  int rx_cleaned = 0, budget_per_queue = 0, rx_cleaned_per_queue = 0;
> -+  int tx_cleaned = 0, i, left_over_budget = budget;
> -+  unsigned long serviced_queues = 0;
> -+  int num_queues = 0;
> -+
> -+  num_queues = gfargrp->num_rx_queues;
> -+  budget_per_queue = budget/num_queues;
> -
> -   /* Clear IEVENT, so interrupts aren't called again
> -* because of the packets that have already arrived
> -*/
> -   gfar_write(®s->ievent, IEVENT_RTX_MASK);
> -
> --  rstat_rxf = gfar_read(®s->rstat) & RSTAT_RXF_MASK;
> --
> --  num_act_queues = bitmap_weight(&rstat_rxf, MAX_RX_QS);
> --  if (num_act_queues)
> --  budget_per_q = budget/num_act_queues;
> --
> --  while (1) {
> --  has_tx_work = 0;
> --  for_each_set_bit(i, &gfargrp->tx_bit_map, 
> priv->num_tx_queues) {
> --  tx_queue = priv->tx_queue[i];
> --  /* run Tx cleanup to completion */
> --  if (tx_queue->tx_skbuff[tx_queue->skb_dirtytx]) {
> --  gfar_clean_tx_ring(tx_queue);
> --  has_tx_work = 1;
> --  }
> --  }
> -+  while (num_queues && left_over_budget) {
> -+

Re: [OpenWrt-Devel] How badly broken is bluetooth on OpenWrt ?

2013-11-25 Thread Martijn Zilverschoon
Hi,

What happens when you try to connect the bluetooth dongle trough an
active powered hub?

-Fried

2013/11/25 valent.turko...@gmail.com :
> Hi,
> I have no previous experience with bluetooth on openwrt but from my
> experience in last few days of serious testing bluetooth stack on
> openwrt I can only say with really high confidence that bluetooth is
> badly broken on openwrt (atleast on one platform).
>
> Do you have experience with stable bluetooth connections on openwrt?
> On which platform?
>
> There was almost no bluetooth documentation beside few blog and forum
> posts here and there so I decided o start a new wiki page:
> http://wiki.openwrt.org/doc/howto/usb.bluetooth
>
> Please join in and help create better documentation that would be
> realy valuable to lots of people.
>
> Currentd device I'm using is Carambola [1] with Attitude Adjustment
> 12.09 and I'm getting weird bluetooth issues all the time...
>
> USB device keeps disconnecting and reconnecting, other bluetooth
> devices don't even get recognized and then I get kernel panics and
> reboots during l2pings:
>
> root@OpenWrt:/# hcitool scan
> Scanning ...
> AC:72:89:6A:66:99snow
>
> root@OpenWrt:/# l2ping AC:72:89:6A:66:99
> Ping: AC:72:89:6A:57:29 from 00:1F:81:00:02:00 (data size 44) ...
> 44 bytes from AC:72:89:6A:57:29 id 0 time 34.78ms
> 44 bytes from AC:72:89:6A:57:29 id 1 time 10.23ms
> 44 bytes from AC:72:89:6A:57:29 id 2 time 18.26ms
> 44 bytes from AC:72:89:6A:57:29 id 3 time 27.02ms
> 44 bytes from AC:72:89:6A:57:29 id 4 time 14.60ms
> 44 bytes from AC:72:89:6A:57:29 id 5 time 25.77ms
> [  104.79] dwc_otg: Device Not Supported
> [  105.04] usb 1-1: USB disconnect, device number 2
> [  105.04] CPU 0 Unable to handle kernel paging request at virtual
> address 00200200, epc == 80e86710, ra == 80e86704
> [  105.05] Oops[#1]:
> [  105.05] Cpu 0
> [  105.05] $ 0   :   00200200 80f3da00
> [  105.05] $ 4   : 80f3da00 80f3da60 0001 0001
> [  105.05] $ 8   : 80080005 80080005 80f3da00 0001
> [  105.05] $12   : 0004 80080004 0001 
> [  105.05] $16   : 80f3da00 80ea4000 80f3da00 80ea1134
> [  105.05] $20   : 80ea1138 81a651ec 001f 81a6549c
> [  105.05] $24   :  800339b0
> [  105.05] $28   : 81bf6000 81bf7c80 81b57e00 80e86704
> [  105.05] Hi: 00e2
> [  105.05] Lo: 0003
> [  105.05] epc   : 80e86710 0x80e86710
> [  105.05] Tainted: G   O
> [  105.05] ra: 80e86704 0x80e86704
> [  105.05] Status: 1100a403KERNEL EXL IE
> [  105.05] Cause : 008c
> [  105.05] BadVA : 00200200
> [  105.05] PrId  : 0001964c (MIPS 24KEc)
> [  105.05] Modules linked in: btusb hci_uart hidp bnep rfcomm
> bluetooth hid evdev ledtrig_usbdev nf_nat_irc nf_conntrack_irc
> nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat pppoe
> xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4
> nf_defrag_ipv4 nf_conntrack pppox ipt_REJECT xt_TCPMSS ipt_LOG
> xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter
> ip_tables xt_tcpudp x_tables tun ppp_async ppp_generic slhc vfat fat
> rt2800pci(O) rt2800lib(O) rt2x00soc(O) rt2x00pci(O) rt2x00lib(O)
> nls_iso8859_1 nls_cp437 mac80211(O) crc_itu_t crc_ccitt eeprom_93cx6
> cfg80211(O) compat(O) arc4 aes_generic usb_storage dwc_otg ehci_hcd
> sd_mod ext4 jbd2 mbcache usbcore usb_common scsi_mod nls_base crc16
> crypto_algapi leds_gpio button_hotplug(O) gpio_keys_polled
> input_polldev input_core
> [  105.05] Process khubd (pid: 397, threadinfo=81bf6000,
> task=81b94850, tls=)
> [  105.05] Stack : 80ea1138 81a651ec 001f 80e9b6e0 80f3da00
> 80ea4448 0009 80ea1134
> [  105.05] 80ea1138 80e868c8 80e31eb0 8026 0001
> 80e31eb0 80f3da00 800c0aa0
> [  105.05] 80ea4008 80ea4000 80ea4020 80ea4418 
> 80e818d0 81bf7d40 0002
> [  105.05] 81bf7d00 8000  80ea4000 80ea4014
> 81b76f00  80e84900
> [  105.05] 0001 800c1248  0005 80d99500
> 80ea4000 80ea4014 80e24078
> [  105.05] ...
> [  105.05] Call Trace:[<80e9b6e0>] 0x80e9b6e0
> [  105.05] [<80e868c8>] 0x80e868c8
> [  105.05] [<800c0aa0>] 0x800c0aa0
> [  105.05] [<80e818d0>] 0x80e818d0
> [  105.05] [<80e84900>] 0x80e84900
> [  105.05] [<800c1248>] 0x800c1248
> [  105.05] [<80e24078>] 0x80e24078
> [  105.05] [<80c2acd0>] 0x80c2acd0
> [  105.05] [<8002e588>] 0x8002e588
> [  105.05] [<80132f10>] 0x80132f10
> [  105.05] [<80132fa8>] 0x80132fa8
> [  105.05] [<801f7534>] 0x801f7534
> [  105.05] [<80133028>] 0x80133028
> [  105.05] [<80132af8>] 0x80132af8
> [  105.05] [<8013056c>] 0x8013056c
> [  105.05] [<80c299f4>] 0x80c299f4
> [  105.05] [<80c20bcc>] 0x80c20bcc
> [  105.05] [<80c23220>] 0x80c23220
> [  105.05] [<80c21354>] 0x80c21354
> [  105.05] [<80c241e8

[OpenWrt-Devel] [PATCH][1/2] update Userspace support for the WA850/WA750

2013-11-29 Thread Martijn Zilverschoon
Patch for adding the default uci values of the rssileds application
for the tp-link -tl-wa850re and the tl-wa750re for the
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 95b30c1..5a8173f 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -180,11 +180,23 @@ tl-mr3420-v2)
 tl-wa750re)
ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
+   ucidef_set_rssimon "wlan0" "4" "1"
+   ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
+   ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
+   ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
+   ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
+   ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
;;

 tl-wa850re)
ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
+   ucidef_set_rssimon "wlan0" "4" "1"
+   ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
+   ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
+   ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
+   ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
+   ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
;;

 tl-wa901nd)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][2/2] AR71xx: Update profile for the wa750/wa850 to include rssileds by default

2013-11-29 Thread Martijn Zilverschoon

diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk
index 5236f7f..5138c0c 100644
--- a/target/linux/ar71xx/generic/profiles/tp-link.mk
+++ b/target/linux/ar71xx/generic/profiles/tp-link.mk
@@ -142,7 +142,7 @@ $(eval $(call Profile,TLWA701))

 define Profile/TLWA750
NAME:=TP-LINK TL-WA750RE
-   PACKAGES:=
+   PACKAGES:=rssileds
 endef

 define Profile/TLWA750/Description
@@ -184,7 +184,7 @@ $(eval $(call Profile,TLWA830))

 define Profile/TLWA850
NAME:=TP-LINK TL-WA850RE
-   PACKAGES:=
+   PACKAGES:=rssileds
 endef

 define Profile/TLWA850/Description
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][1/2] update Userspace support for the WA850/WA750

2013-11-29 Thread Martijn Zilverschoon
Sorry my mistake

Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 95b30c1..5a8173f 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -180,11 +180,23 @@ tl-mr3420-v2)
 tl-wa750re)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
 	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
+	ucidef_set_rssimon "wlan0" "4" "1"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
+	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
 	;;
 
 tl-wa850re)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
 	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
+	ucidef_set_rssimon "wlan0" "4" "1"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
+	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
 	;;
 
 tl-wa901nd)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][2/2] AR71xx: Update profile for the wa750/wa850 to include rssileds by default

2013-11-29 Thread Martijn Zilverschoon
Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk b/target/linux/ar71xx/generic/profiles/tp-link.mk
index 5236f7f..5138c0c 100644
--- a/target/linux/ar71xx/generic/profiles/tp-link.mk
+++ b/target/linux/ar71xx/generic/profiles/tp-link.mk
@@ -142,7 +142,7 @@ $(eval $(call Profile,TLWA701))
 
 define Profile/TLWA750
 	NAME:=TP-LINK TL-WA750RE
-	PACKAGES:=
+	PACKAGES:=rssileds
 endef
 
 define Profile/TLWA750/Description
@@ -184,7 +184,7 @@ $(eval $(call Profile,TLWA830))
 
 define Profile/TLWA850
 	NAME:=TP-LINK TL-WA850RE
-	PACKAGES:=
+	PACKAGES:=rssileds
 endef
 
 define Profile/TLWA850/Description
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][1/2] update Userspace support for the WA850/WA750

2013-11-29 Thread Martijn Zilverschoon
Signed-off-by: Martijn Zilverschoon 

2013/11/29 Martijn Zilverschoon :
> Sorry my mistake
>
> Signed-off-by: Martijn Zilverschoon 
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 95b30c1..5a8173f 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -180,11 +180,23 @@ tl-mr3420-v2)
 tl-wa750re)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
 	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "phy0tpt"
+	ucidef_set_rssimon "wlan0" "4" "1"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:orange:signal1" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:orange:signal2" "wlan0" "20" "100" "-19" "13"
+	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:orange:signal3" "wlan0" "40" "100" "-39" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:orange:signal4" "wlan0" "60" "100" "-59" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:orange:signal5" "wlan0" "80" "100" "-79" "13"
 	;;
 
 tl-wa850re)
 	ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
 	ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
+	ucidef_set_rssimon "wlan0" "4" "1"
+	ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:blue:signal1" "wlan0" "1" "100" "0" "13"
+	ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMHIGH" "tp-link:blue:signal2" "wlan0" "20" "100" "-19" "13"
+	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "tp-link:blue:signal3" "wlan0" "40" "100" "-39" "13"
+	ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:blue:signal4" "wlan0" "60" "100" "-59" "13"
+	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" "wlan0" "80" "100" "-79" "13"
 	;;
 
 tl-wa901nd)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][1/2] update Userspace support for the WA850/WA750

2013-11-29 Thread Martijn Zilverschoon
Once again this patch complains that it is corrupt, but for some
reason the last line of the mbox file is missing.
That seemed also be the case with other patches as well.

this command does do the trick however, sed in this case only adds a
newline to the end of the file when it is missing.
wget http://patchwork.openwrt.org/patch/4487/mbox/ -O - | sed '$a\' | git am -s


Maybe it is worth looking into, or maybe tell me what I do wrong?
because the other patch was submitted the same way and it doesn't have
issues.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][1/3] ar71xx: Add kernel support for the TP-Link tl-WA801ND_v2 and tl-WA901ND_v3

2013-12-04 Thread Martijn Zilverschoon
Since both the wa750, wa850, wa801nd_v2 and the wa901nd_v3, I did some 
refactoring of the file mach-tl-wax50re.c
This way it is a bit easier to add other tp-link range extenders based on the 
Atheros ap123 reference board with one lan port.

This patch supersedes 4500


Signed-off-by: Martijn Zilverschoon 

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
index 2f82f48..f587b72 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -31,6 +31,9 @@
 #define TL_WAX50RE_GPIO_LED_SIGNAL43
 #define TL_WAX50RE_GPIO_LED_SIGNAL54
 
+#define TL_WA801ND_V2_GPIO_LED_LAN 18
+#define TL_WA801ND_V2_GPIO_LED_SYSTEM 14
+
 #define TL_WAX50RE_GPIO_BTN_RESET  17
 #define TL_WAX50RE_GPIO_BTN_WPS16
 
@@ -137,6 +140,26 @@ static struct gpio_keys_button tl_wax50re_gpio_keys[] 
__initdata = {
},
 };
 
+static struct gpio_led tl_wa801nd_v2_leds_gpio[] __initdata = {
+   {
+   .name   = "tp-link:green:lan",
+   .gpio   = TL_WA801ND_V2_GPIO_LED_LAN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:wlan",
+   .gpio   = TL_WAX50RE_GPIO_LED_WLAN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:qss",
+   .gpio   = TL_WAX50RE_GPIO_LED_RE,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:system",
+   .gpio   = TL_WA801ND_V2_GPIO_LED_SYSTEM,
+   .active_low = 1,
+   },
+};
+
 static void __init tl_ap123_setup(void)
 {
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
@@ -156,10 +179,6 @@ static void __init tl_ap123_setup(void)
ath79_register_eth(0);
 
ath79_register_wmac(ee, mac);
-
-   ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
-   ARRAY_SIZE(tl_wax50re_gpio_keys),
-   tl_wax50re_gpio_keys);
 }
 
 static void  __init tl_wa750re_setup(void)
@@ -167,17 +186,53 @@ static void  __init tl_wa750re_setup(void)
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa750re_leds_gpio),
 tl_wa750re_leds_gpio);
+
+   ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+   ARRAY_SIZE(tl_wax50re_gpio_keys),
+   tl_wax50re_gpio_keys);
 }
 
 MIPS_MACHINE(ATH79_MACH_TL_WA750RE, "TL-WA750RE", "TP-LINK TL-WA750RE",
 tl_wa750re_setup);
 
+static void __init tl_wa801nd_v2_setup(void)
+{
+   tl_ap123_setup();
+   ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa801nd_v2_leds_gpio),
+   tl_wa801nd_v2_leds_gpio);
+
+   ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+   ARRAY_SIZE(tl_wax50re_gpio_keys),
+   tl_wax50re_gpio_keys);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WA801ND_V2, "TL-WA801ND-v2", "TP-LINK TL-WA801ND 
v2",
+   tl_wa801nd_v2_setup);
+
 static void  __init tl_wa850re_setup(void)
 {
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa850re_leds_gpio),
 tl_wa850re_leds_gpio);
+
+   ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+   ARRAY_SIZE(tl_wax50re_gpio_keys),
+   tl_wax50re_gpio_keys);
 }
 
 MIPS_MACHINE(ATH79_MACH_TL_WA850RE, "TL-WA850RE", "TP-LINK TL-WA850RE",
 tl_wa850re_setup);
+
+static void __init tl_wa901nd_v3_setup(void)
+{
+   tl_ap123_setup();
+   ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa801nd_v2_leds_gpio),
+   tl_wa801nd_v2_leds_gpio);
+
+   ath79_register_gpio_keys_polled(-1, TL_WAX50RE_KEYS_POLL_INTERVAL,
+   ARRAY_SIZE(tl_wax50re_gpio_keys) - 1,
+   tl_wax50re_gpio_keys);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WA901ND_V3, "TL-WA901ND-v3", "TP-LINK TL-WA901ND 
v3",
+   tl_wa901nd_v3_setup);
diff --git 
a/target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-WA801ND-v2_TL-WA901ND-v3_support.patch
 
b/target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-WA801ND-v2_TL-WA901ND-v3_support.patch
new file mode 100644
index 000..6902d93
--- /dev/null
+++ 
b/target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-WA801ND-v2_TL-WA901ND-v3_support.patch
@@ -0,0 +1,16 @@
+Index: linux-3.10.21/arch/mips/ath79/machtypes.h
+

[OpenWrt-Devel] [Patch][2/3] ar71xx: Add profile for the TP-Link tl-WA801ND_v2 and tl-WA901ND_v3

2013-12-04 Thread Martijn Zilverschoon
This patch supersedes 4502 and 4503


Signed-off-by: Martijn Zilverschoon 

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 0f2a2bb..3fe906b 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -998,9 +998,11 @@ $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR740NV4,tl-wr740n-v4,TL-WR741N
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA750,tl-wa750re-v1,TL-WA750RE,ttyS0,115200,0x0751,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA801NV2,tl-wa801nd-v2,TL-WA801ND-v2,ttyS0,115200,0x08010002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR842V2,tl-wr842n-v2,TL-WR842N-v2,ttyS0,115200,0x8420002,1,8Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA850,tl-wa850re-v1,TL-WA850RE,ttyS0,115200,0x0851,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA901NV3,tl-wa901nd-v3,TL-WA901ND-v3,ttyS0,115200,0x09010003,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR941NV6,tl-wr941nd-v6,TL-WDR3500,ttyS0,115200,0x09410006,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR1043V2,tl-wr1043nd-v2,TL-WR1043ND-v2,ttyS0,115200,0x10430002,1,8M))
@@ -1054,9 +1056,9 @@ $(eval $(call MultiProfile,TLMR11U,TLMR11UV1 TLMR11UV2))
 $(eval $(call MultiProfile,TLMR3040,TLMR3040V1 TLMR3040V2))
 $(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))
 $(eval $(call MultiProfile,TLMR3420,TLMR3420V1 TLMR3420V2))
-$(eval $(call MultiProfile,TLWA801,TLWA801NV1))
+$(eval $(call MultiProfile,TLWA801,TLWA801NV1 TLWA801NV2))
 $(eval $(call MultiProfile,TLWA830,TLWA830RV1))
-$(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2))
+$(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2 TLWA901NV3))
 $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
 $(eval $(call MultiProfile,TLWR720,TLWR720NV3))
 $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch][3/3] ar71xx: Add user-space support for the TP-Link tl-WA801ND_v2 and tl-WA901ND_v3

2013-12-04 Thread Martijn Zilverschoon
This patch supersedes 4501


Signed-off-by: Martijn Zilverschoon 

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 216100b..5d70cdb 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -136,8 +136,10 @@ get_status_led() {
tl-mr3220-v2 | \
tl-mr3420 | \
tl-mr3420-v2 | \
+   tl-wa801nd-v2 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
+   tl-wa901nd-v3 | \
tl-wdr3500 | \
tl-wr1041n-v2 | \
tl-wr1043nd | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 
b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 5a96f33..b29e6a5 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -207,6 +207,12 @@ tl-wa901nd-v2)
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
;;
 
+tl-wa801nd-v2 | \
+tl-wa901nd-v3)
+   ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ;;
+
 tl-wdr3500)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index 5ef4938..63cc15e 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -234,9 +234,11 @@ tl-mr3020 |\
 tl-mr3040 |\
 tl-mr3040-v2 |\
 tl-wa750re |\
+tl-wa801nd-v2 |\
 tl-wa850re |\
 tl-wa901nd |\
 tl-wa901nd-v2 |\
+tl-wa901nd-v3 |\
 tl-wr703n |\
 wndap360 |\
 mynet-rext |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 0b18d0c..5d11d0d 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -468,6 +468,9 @@ ar71xx_board_detect() {
*TL-WA7510N)
name="tl-wa7510n"
;;
+   *"TL-WA801ND v2")
+   name="tl-wa801nd-v2"
+   ;;
*TL-WA850RE)
name="tl-wa850re"
;;
@@ -477,6 +480,9 @@ ar71xx_board_detect() {
*"TL-WA901ND v2")
name="tl-wa901nd-v2"
;;
+   *"TL-WA901ND v3")
+   name="tl-wa901nd-v3"
+   ;;
*"TL-WDR3500")
name="tl-wdr3500"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index b5a7da7..aa73326 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -213,9 +213,11 @@ platform_check_image() {
tl-mr3420-v2 | \
tl-wa7510n | \
tl-wa750re | \
+   tl-wa801nd-v2 | \
tl-wa850re | \
tl-wa901nd | \
tl-wa901nd-v2 | \
+   tl-wa901nd-v3 | \
tl-wdr3500 | \
tl-wdr4300 | \
tl-wr703n | \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][1/2] update Userspace support for the WA850/WA750

2013-12-06 Thread Martijn Zilverschoon
> I don't think that it is a patchwork issue because patches from other users 
> are
> fine usually. However I don't know how you are submitting the patches, so I
> don't know what you are doing wrong. Maybe gmail causes the corruption.

Yup they did, also they reformatted the attached text files/patches

> Ideally you should send patches inline instead of attaching that to the mail
> Additionally the Signed-off-by line should be part of the patch itself.

Indeed, it makes quoting a bit easier as well. But google did not work
nicely when including it inline

> Your previous patches also had the missing last line issue, but I have fixed
> those manually.

Thanks for that, also I know switched mail client and that solved the
problems so far :)

-Martijn
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [patch openwrt 0/4] Add support for TL-WA801ND v2 board

2013-12-07 Thread Martijn Zilverschoon
> I'm not sure what needs to be done more to get the patchset applied.

Not much it just takes some time to review patches.

> If anything needs to be changed, please tell me so and I will fix that.

Well I did submit some patches as well since a lot of WA* devices of
tp-link are more or less similar.
It was for the wa801nd V2 and the wa901nd v3
http://patchwork.midlink.org/bundle/FriedZombie/tp-link%20tl-wa801nd_v2-tl-wa901nd_v3/

Sorry for that.

-Martijn

> Thanks, Jiri
>
>
> Tue, Dec 03, 2013 at 03:33:37PM CET, j...@resnulli.us wrote:
>>Jiri Pirko (4):
>>  ar71xx: add kernel support for the TL-WA801ND v2 board
>>  ar71xx: add user space support for the TL-WA801ND v2
>>  ar71xx: add profile for the WA801ND v2
>>  firmware-utils/mkplinkfw: add TL-WA801ND v2 support
>>
>> target/linux/ar71xx/base-files/etc/diag.sh |  1 +
>> .../ar71xx/base-files/etc/uci-defaults/01_leds |  5 ++
>> .../ar71xx/base-files/etc/uci-defaults/02_network  |  1 +
>> target/linux/ar71xx/base-files/lib/ar71xx.sh   |  3 ++
>> .../ar71xx/base-files/lib/upgrade/platform.sh  |  1 +
>> .../files/arch/mips/ath79/mach-tl-wr841n-v8.c  | 54 
>> ++
>> target/linux/ar71xx/image/Makefile |  3 +-
>> .../612-MIPS-ath79-add-TL-WA801NDv2-suport.patch   | 10 
>> tools/firmware-utils/src/mktplinkfw.c  |  6 +++
>> 9 files changed, 75 insertions(+), 9 deletions(-)
>> create mode 100644 
>> target/linux/ar71xx/patches-3.10/612-MIPS-ath79-add-TL-WA801NDv2-suport.patch
>>
>>--
>>1.8.3.1
>>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to set busybox's some options now ?

2013-12-17 Thread Martijn Zilverschoon
I think it does, because that also saves a lot of questions in the
future (hopefully). Because I think a lot of people that build there
own custom openwrt firmware often also modify the busybox config.


2013/12/17 Yousong Zhou :
> On 17 December 2013 22:13, openwrt-de...@couprie.net
>  wrote:
>> Hi yousong,
>>
>> Can you give a example how to call menuconfig for busybox ?
>
> I am doing menuconfig for busybox in OpenWrt build environment in
> which busybox tarball has already been extracted. Your situation may
> vary. Busybox itself provide menuconfig just like those for
> OpenWrt/Buildroot/Kernel.
>
> $ make -C build_dir/target-mips_34kc_uClibc-0.9.33.2/busybox-1.19.4/
> menuconfig
>
> Does it deserve a "busybox_menuconfig" just like "kernel_menuconfig"?
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel