[OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1
New router/repeater from TP-LINK - CPU: Atheros AR9341-DL3A (AP123) - Flash: 4MB - Ram: 32MB Similar to TL-WA850RE Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ target/linux/ar71xx/base-files/etc/diag.sh (working copy) @@ -167,6 +167,9 @@ tl-wa850re) status_led=tp-link:blue:re ;; + tl-wa860re) + status_led=tp-link:green:power + ;; tl-mr3220 | \ tl-mr3220-v2 | \ tl-mr3420 | \ Index: target/linux/ar71xx/base-files/etc/uci-defaults/01_leds === --- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision 41592) +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working copy) @@ -234,6 +234,11 @@ ucidef_set_led_rssi rssihigh RSSIHIGH tp-link:blue:signal5 wlan0 80 100 -79 13 ;; +tl-wa860re) + ucidef_set_led_netdev lan LAN tp-link:green:lan eth0 + ucidef_set_led_wlan wlan WLAN tp-link:green:wlan phy0tpt + ;; + tl-wa901nd) ucidef_set_led_netdev lan LAN tp-link:green:lan eth0 ;; Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network === --- target/linux/ar71xx/base-files/etc/uci-defaults/02_network (revision 41592) +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network (working copy) @@ -269,6 +269,7 @@ tl-mr3040-v2 |\ tl-wa750re |\ tl-wa850re |\ +tl-wa860re |\ tl-wa801nd-v2 |\ tl-wa901nd |\ tl-wa901nd-v2 |\ Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 41592) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy) @@ -145,6 +145,9 @@ 085000*) model=TP-Link TL-WA850RE ;; + 086000*) + model=TP-Link TL-WA860RE + ;; 090100*) model=TP-Link TL-WA901N/ND ;; @@ -541,6 +544,9 @@ *TL-WA850RE) name=tl-wa850re ;; + *TL-WA860RE) + name=tl-wa860re + ;; *TL-WA801ND v2) name=tl-wa801nd-v2 ;; Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh === --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 41592) +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy) @@ -240,6 +240,7 @@ tl-wa7510n | \ tl-wa750re | \ tl-wa850re | \ + tl-wa860re | \ tl-wa801nd-v2 | \ tl-wa901nd | \ tl-wa901nd-v2 | \ Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c === --- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (revision 41592) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (working copy) @@ -33,6 +33,12 @@ #define TL_WAX50RE_GPIO_LED_SIGNAL43 #define TL_WAX50RE_GPIO_LED_SIGNAL54 +#define TL_WA860RE_GPIO_LED_WLAN_ORANGE0 +#define TL_WA860RE_GPIO_LED_WLAN_GREEN 2 +#define TL_WA860RE_GPIO_LED_POWER_ORANGE 12 +#define TL_WA860RE_GPIO_LED_POWER_GREEN14 +#define TL_WA860RE_GPIO_LED_LAN20 + #define TL_WA801ND_V2_GPIO_LED_LAN 18 #define TL_WA801ND_V2_GPIO_LED_SYSTEM 14 @@ -39,6 +45,10 @@ #define TL_WAX50RE_GPIO_BTN_RESET 17 #define TL_WAX50RE_GPIO_BTN_WPS16 +#define TL_WA860RE_GPIO_BTN_RESET 17 +#define TL_WA860RE_GPIO_BTN_WPS16 +#define TL_WA860RE_GPIO_BTN_ONOFF 11 + #define TL_WAX50RE_KEYS_POLL_INTERVAL 20 /* msecs */ #define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL) @@ -123,7 +133,31 @@ }, }; +static struct gpio_led tl_wa860re_leds_gpio[] __initdata = { + { + .name = tp-link:green:lan, + .gpio = TL_WA860RE_GPIO_LED_LAN, + .active_low = 1, + }, { + .name = tp-link:green:power, + .gpio = TL_WA860RE_GPIO_LED_POWER_GREEN, + .active_low = 1, + }, { + .name = tp-link:orange:power, + .gpio = TL_WA860RE_GPIO_LED_POWER_ORANGE, + .active_low = 1, + }, { + .name = tp-link:green:wlan, + .gpio = TL_WA860RE_GPIO_LED_WLAN_GREEN, + .active_low = 1, + }, { + .name = tp-link:orange:wlan, + .gpio
[OpenWrt-Devel] New gstreamer packages
Hello ! I created several new gstreamer module packages (v4l2 for example), they update makefiles and add some patches. But now I confused with paths, after update gstreamer was moved to the oldpackages directory. Which path patch should contain ? -- Sergey mailto:d...@bittu.org.ru ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1
hi, Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ target/linux/ar71xx/base-files/etc/diag.sh(working copy) this is also wrong. should be --- a/target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ b/target/linux/ar71xx/base-files/etc/diag.sh (working copy) you should use git to generate the patches so i can apply them with git am John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH V3] ar71xx: add support for TP-LINK TL-WA860RE v1
New router/repeater from TP-LINK - CPU: Atheros AR9341-DL3A (AP123) - Flash: 4MB - Ram: 32MB Similar to TL-WA850RE. Changes: rename file after r41596 Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index d2e4937..f6c113e 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -167,6 +167,9 @@ get_status_led() { tl-wa850re) status_led=tp-link:blue:re ;; + tl-wa860re) + status_led=tp-link:green:power + ;; 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 ebc8942..21f049f 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -234,6 +234,11 @@ tl-wa850re) ucidef_set_led_rssi rssihigh RSSIHIGH tp-link:blue:signal5 wlan0 80 100 -79 13 ;; +tl-wa860re) + ucidef_set_led_netdev lan LAN tp-link:green:lan eth0 + ucidef_set_led_wlan wlan WLAN tp-link:green:wlan phy0tpt + ;; + tl-wa901nd) ucidef_set_led_netdev lan LAN tp-link:green:lan eth0 ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 88a1c86..dd36962 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -145,6 +145,9 @@ tplink_board_detect() { 085000*) model=TP-Link TL-WA850RE ;; + 086000*) + model=TP-Link TL-WA860RE + ;; 090100*) model=TP-Link TL-WA901N/ND ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 8f3b563..f7c3b9a 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -240,6 +240,7 @@ platform_check_image() { tl-wa7510n | \ tl-wa750re | \ tl-wa850re | \ + tl-wa860re | \ tl-wa801nd-v2 | \ tl-wa901nd | \ tl-wa901nd-v2 | \ 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 cdb1f5a..965b1cd 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 @@ -33,12 +33,22 @@ #define TL_WAX50RE_GPIO_LED_SIGNAL43 #define TL_WAX50RE_GPIO_LED_SIGNAL54 +#define TL_WA860RE_GPIO_LED_WLAN_ORANGE0 +#define TL_WA860RE_GPIO_LED_WLAN_GREEN 2 +#define TL_WA860RE_GPIO_LED_POWER_ORANGE 12 +#define TL_WA860RE_GPIO_LED_POWER_GREEN14 +#define TL_WA860RE_GPIO_LED_LAN20 + #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 +#define TL_WA860RE_GPIO_BTN_RESET 17 +#define TL_WA860RE_GPIO_BTN_WPS16 +#define TL_WA860RE_GPIO_BTN_ONOFF 11 + #define TL_WAX50RE_KEYS_POLL_INTERVAL 20 /* msecs */ #define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL) @@ -123,6 +133,30 @@ static struct gpio_led tl_wa850re_leds_gpio[] __initdata = { }, }; +static struct gpio_led tl_wa860re_leds_gpio[] __initdata = { + { + .name = tp-link:green:lan, + .gpio = TL_WA860RE_GPIO_LED_LAN, + .active_low = 1, + }, { + .name = tp-link:green:power, + .gpio = TL_WA860RE_GPIO_LED_POWER_GREEN, + .active_low = 1, + }, { + .name = tp-link:orange:power, + .gpio = TL_WA860RE_GPIO_LED_POWER_ORANGE, + .active_low = 1, + }, { + .name = tp-link:green:wlan, + .gpio = TL_WA860RE_GPIO_LED_WLAN_GREEN, + .active_low = 1, + }, { + .name = tp-link:orange:wlan, + .gpio = TL_WA860RE_GPIO_LED_WLAN_ORANGE, + .active_low = 1, + }, +}; + static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = { { @@ -142,6 +176,31 @@ static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = { }, }; +static struct gpio_keys_button tl_wa860re_gpio_keys[] __initdata = { + { + .desc = Reset button, + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval =
Re: [OpenWrt-Devel] [PATCH V3] ar71xx: add support for TP-LINK TL-WA860RE v1
On 13/07/2014 10:17, Cezary Jackiewicz wrote: +++ b/target/linux/ar71xx/patches-3.10/715-MIPS-ath79-add-TL-WA860RE-support.patch when i saw your V3 i thought ... darn its needs to be 715 after the merge i did earlier :) Thanks, applied in r41598 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1
On Sun, Jul 13, 2014 at 9:12 AM, John Crispin j...@phrozen.org wrote: hi, Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ target/linux/ar71xx/base-files/etc/diag.sh(working copy) this is also wrong. should be --- a/target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ b/target/linux/ar71xx/base-files/etc/diag.sh (working copy) you should use git to generate the patches so i can apply them with git am git am understands the -p argument, so you should be able to apply this patch with git am -p0. Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1
On 13/07/2014 12:39, Jonas Gorski wrote: On Sun, Jul 13, 2014 at 9:12 AM, John Crispin j...@phrozen.org wrote: hi, Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ target/linux/ar71xx/base-files/etc/diag.sh(working copy) this is also wrong. should be --- a/target/linux/ar71xx/base-files/etc/diag.sh (revision 41592) +++ b/target/linux/ar71xx/base-files/etc/diag.sh (working copy) you should use git to generate the patches so i can apply them with git am git am understands the -p argument, so you should be able to apply this patch with git am -p0. learned something new today :) seems obvious now that i think about it ... John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH V3 1/2] brcm63xx: Add support for Comtrend VR-3025u
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com Signed-off-by: José Vázquez Fernández ppvazquez...@gmail.com --- v2: split in two patches, fix line breakage. v3: fix José's SOB. diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index a04f4a5..1d42d47 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network @@ -81,6 +81,7 @@ DVG3810BN) 96328A-1441N1 |\ 963281TAN |\ 963281T_TEF |\ +96368M-1541N |\ 96368MVNgr |\ F@ST2504n |\ F@ST2704V2) diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc index 2f5e09b..7d9a6f7 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc @@ -19,6 +19,7 @@ case $board_name in 963281TAN |\ 963281T_TEF |\ 96358-502V |\ + 96368M-1541N |\ 96369R-1231N |\ AW4339U |\ CPVA502+ |\ diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index fcd9281..85d499e 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -57,6 +57,11 @@ brcm63xx_detect() { brcm63xx_has_reset_button=true ifname=eth0 ;; + 96368M-1541N) + brcm63xx_has_reset_button=true + status_led=VR-3025u:green:power + ifname=eth0 + ;; 96369R-1231N) brcm63xx_has_reset_button=true status_led=WAP-5813n:green:power diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 11d7678..01235e4 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -230,6 +230,8 @@ define Image/Build $(call Image/Build/CFE,$(1),96328A-1241N,6328,AR-5381u,,--pad 8) # Comtrend AR-5387un $(call Image/Build/CFE,$(1),96328A-1441N1,6328,AR-5387un,,--pad 8) + # Comtrend VR-3025u + $(call Image/Build/CFE,$(1),96368M-1541N,6368,VR-3025u,,--pad 16) # Comtrend WAP-5813n $(call Image/Build/CFE,$(1),96369R-1231N,6368,WAP-5813n,,--pad 4) # Davolink DV201AMR diff --git a/target/linux/brcm63xx/patches-3.10/562-board_VR-3025u.patch b/target/linux/brcm63xx/patches-3.10/562-board_VR-3025u.patch new file mode 100644 index 000..83b607f --- /dev/null +++ b/target/linux/brcm63xx/patches-3.10/562-board_VR-3025u.patch @@ -0,0 +1,109 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -4450,6 +4450,98 @@ static struct board_info __initdata boar + .has_ehci0 = 1, + }; + ++static struct board_info __initdata board_VR3025u = { ++ .name = 96368M-1541N, ++ .expected_cpu_id= 0x6368, ++ ++ .has_uart0 = 1, ++ .has_pci= 1, ++ .has_ohci0 = 1, ++ .has_ehci0 = 1, ++ ++ .has_enetsw = 1, ++ .enetsw = { ++ .used_ports = { ++ [0] = { ++ .used = 1, ++ .phy_id = 1, ++ .name = port1, ++ }, ++ [1] = { ++ .used = 1, ++ .phy_id = 2, ++ .name = port2, ++ }, ++ [2] = { ++ .used = 1, ++ .phy_id = 3, ++ .name = port3, ++ }, ++ [3] = { ++ .used = 1, ++ .phy_id = 4, ++ .name = port4, ++ }, ++ }, ++ }, ++ ++ .leds = { ++ { ++ .name = VR-3025u:green:dsl, ++ .gpio = 2, ++ .active_low = 1, ++ }, ++ { ++ .name = VR-3025u:green:inet, ++ .gpio = 5, ++ }, ++ { ++ .name = VR-3025u:green:lan1, ++ .gpio = 6, ++ .active_low = 1, ++ }, ++ { ++ .name = VR-3025u:green:lan2, ++ .gpio = 7,
[OpenWrt-Devel] [PATCH V2 1/2] firmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- v2: Fix zyxbcm.c indentation. diff --git a/tools/firmware-utils/Makefile b/tools/firmware-utils/Makefile index 64eccdd..d5cfdaa 100644 --- a/tools/firmware-utils/Makefile +++ b/tools/firmware-utils/Makefile @@ -49,6 +49,7 @@ define Host/Compile $(call cc,mkchkimg) $(call cc,mkzcfw cyg_crc32) $(call cc,spw303v) + $(call cc,zyxbcm) $(call cc,trx2edips) $(call cc,xorimage) $(call cc,buffalo-enc buffalo-lib, -Wall) diff --git a/tools/firmware-utils/src/zyxbcm.c b/tools/firmware-utils/src/zyxbcm.c new file mode 100644 index 000..5691977 --- /dev/null +++ b/tools/firmware-utils/src/zyxbcm.c @@ -0,0 +1,269 @@ +/* + * zyxbcm.c - based on Jonas Gorski's spw303v.c + * + * Copyright (C) 2014 Álvaro Fernández Rojas nolt...@gmail.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include stdio.h +#include stdlib.h +#include string.h +#include stdint.h +#include time.h +#include unistd.h +#include sys/stat.h + +#define TAGVER_LEN 4 /* Length of Tag Version */ +#define TAGLAYOUT_LEN 4/* Length of FlashLayoutVer */ +#define SIG1_LEN 20/* Company Signature 1 Length */ +#define SIG2_LEN 14/* Company Signature 2 Lenght */ +#define BOARDID_LEN 16 /* Length of BoardId */ +#define ENDIANFLAG_LEN 2 /* Endian Flag Length */ +#define CHIPID_LEN 6 /* Chip Id Length */ +#define IMAGE_LEN 10 /* Length of Length Field */ +#define ADDRESS_LEN 12 /* Length of Address field */ +#define DUALFLAG_LEN 2 /* Dual Image flag Length */ +#define INACTIVEFLAG_LEN 2 /* Inactie Flag Length */ +#define RSASIG_LEN 20 /* Length of RSA Signature in tag */ +#define TAGINFO1_LEN 30/* Length of vendor information field1 in tag */ +#define ZYX_TAGINFO1_LEN 20/* Length of vendor information field1 in tag */ +#define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */ +#define ZYX_FLASHLAYOUTVER_LEN 2 /* Length of Flash Layout Version String tag */ +#define TAGINFO2_LEN 16/* Length of vendor information field2 in tag */ +#define CRC_LEN 4 /* Length of CRC in bytes */ +#define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */ + +#define IMAGETAG_CRC_START 0x + +struct bcm_tag { + char tagVersion[TAGVER_LEN];// 0-3: Version of the image tag + char sig_1[SIG1_LEN]; // 4-23: Company Line 1 + char sig_2[SIG2_LEN]; // 24-37: Company Line 2 + char chipid[CHIPID_LEN];// 38-43: Chip this image is for + char boardid[BOARDID_LEN]; // 44-59: Board name + char big_endian[ENDIANFLAG_LEN];// 60-61: Map endianness -- 1 BE 0 LE + char totalLength[IMAGE_LEN];// 62-71: Total length of image + char cfeAddress[ADDRESS_LEN]; // 72-83: Address in memory of CFE + char cfeLength[IMAGE_LEN]; // 84-93: Size of CFE + char flashImageStart[ADDRESS_LEN]; // 94-105: Address in memory of image start (kernel for OpenWRT, rootfs for stock firmware) + char flashRootLength[IMAGE_LEN];// 106-115: Size of rootfs for flashing + char kernelAddress[ADDRESS_LEN];// 116-127: Address in memory of kernel + char kernelLength[IMAGE_LEN]; // 128-137: Size of kernel + char dualImage[DUALFLAG_LEN]; // 138-139: Unused at present + char inactiveFlag[INACTIVEFLAG_LEN];// 140-141: Unused at present + char rsa_signature[RSASIG_LEN]; // 142-161: RSA Signature (unused at present; some vendors may use this) + char information1[TAGINFO1_LEN];// 162-191: Compilation and related information (not generated/used by OpenWRT) + char flashLayoutVer[FLASHLAYOUTVER_LEN];// 192-195: Version flash layout + char
[OpenWrt-Devel] [PATCH V2 2/2] brcm63xx: Add support for ZyXEL P870HW-51a v2
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- v2: Remove tmp image. diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index aa32099..964f5ba 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network @@ -85,7 +85,8 @@ DVG3810BN) 96368M-1541N |\ 96368MVNgr |\ F@ST2504n |\ -F@ST2704V2) +F@ST2704V2 |\ +P870HW-51a_v2) ucidef_set_interface_lan eth0.1 ucidef_add_switch eth0 1 1 ucidef_add_switch_vlan eth0 1 0 1 2 3 8t diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc index 9c966e7..560bb20 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc @@ -27,6 +27,7 @@ case $board_name in CPVA642 |\ CT6373-1 |\ MAGIC |\ + P870HW-51a_v2 |\ RTA770BW |\ RTA770W |\ V2110 |\ diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index 74e6a0d..1029fe3 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -135,6 +135,11 @@ brcm63xx_detect() { brcm63xx_has_reset_button=true ifname=eth0 ;; + P870HW-51a_v2) + brcm63xx_has_reset_button=true + status_led=P870HW-51a:green:power + ifname=eth0 + ;; RTA770BW) brcm63xx_has_reset_button=true status_led=RTA770BW:green:diag diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index f36d182..680cf97 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -111,6 +111,20 @@ define Image/Build/SPW303V rm -f $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp endef +define Image/Build/ZyXEL + # Generate the tagged image + $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ + --output $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + --boardid $(2) --chipid $(4) --entry $(KERNEL_ENTRY) \ + --load-addr $(LOADADDR) --rsa-signature $(6) \ + --info1 +$(call Image/LimitName16,$(3)) --info2 $(1) \ + $(7) $(8) $(9) $(10) + # Fix up header + $(STAGING_DIR_HOST)/bin/zyxbcm -i $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin + rm -f $(BIN_DIR)/openwrt-$(5)-$(1).tmp +endef + define Image/Build/CFEOLD $(TOPDIR)/scripts/brcmImage.pl -t -p\ -b $(2) -c $(3) \ @@ -215,6 +229,8 @@ define Image/Build $(call Image/Build/CFEFIXUP,$(1),96348GW,GW6200,6348,GW6200,$(shell printf '\x99')) # Neufbox4 $(call Image/Build/CFE,$(1),96358VW,6358,NEUFBOX4,OpenWRT-$(REVISION)) + # Zyxel P870HW-51a v2 + $(call Image/Build/ZyXEL,$(1),96368VVW,P870HW-51a_v2,6368,P870HW-51a_v2,ZyXEL,--signature ZyXEL_0001) # Neufbox6 $(call Image/Build/CFE,$(1),NB6-SER-r0,6362,NEUFBOX6,OpenWRT-$(REVISION)) diff --git a/target/linux/brcm63xx/patches-3.10/564-board_P870HW-51a_v2.patch b/target/linux/brcm63xx/patches-3.10/564-board_P870HW-51a_v2.patch new file mode 100644 index 000..2492e5e --- /dev/null +++ b/target/linux/brcm63xx/patches-3.10/564-board_P870HW-51a_v2.patch @@ -0,0 +1,100 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -4450,6 +4450,89 @@ static struct board_info __initdata boar + .has_ehci0 = 1, + }; + ++static struct board_info __initdata board_P870HW51A_V2 = { ++ .name = P870HW-51a_v2, ++ .expected_cpu_id= 0x6368, ++ ++ .has_uart0 = 1, ++ .has_pci= 1, ++ .has_ohci0 = 1, ++ .has_ehci0 = 1, ++ ++ .has_enetsw = 1, ++ .enetsw = { ++ .used_ports = { ++ [0] = { ++ .used = 1, ++ .phy_id = 1, ++ .name = port1, ++ }, ++ [1] = { ++ .used = 1, ++ .phy_id = 2, ++ .name = port2, ++ }, ++ [2] = { ++ .used = 1, ++ .phy_id = 3, ++ .name = port3, ++ }, ++ [3] = { ++ .used = 1, ++
[OpenWrt-Devel] How to properly add an unreachable route
On 12/07/14 20:10, Dave Taht wrote: I have been trying to simplify my babel setup. I have 8 /27s out of a single /24 that I would like not to have to expose to the universe. I have 172.21.2.0/27, 172.21.2.64/27 etc on each of the 8 devices I have. But there is no need to export each /27, as these are out of a single /24. The way to do that is to setup /etc/babel.conf to only let /24s out... redistribute ip 0.0.0.0/0 le 24 allow redistribute local deny (this can also easily be expressed in the /etc/config/babeld file) And at the moment, I add this to /etc/firewall.user to add the covering route locally. ip route add unreachable 172.21.2.0/24 proto static Boom, I go from exporting 16 routes to 1. Where I'm stuck is on how to express the above line inside of uci and luci. Luci demands both a specific interface name and a numeric destination, if you are trying this via the route method. If you try the otherwise promising uci newfangled rule method by adding something like this to /etc/config/network config rule option dest '172.21.2.0/24' option action 'unreachable' You end up bricking the router's network setup. mmh.. this is how i set it up with ip on a debian system ip -6 route add unreachable 2a00:1508:1:f000::/52 and then i add the smaller, more specific prefixes (/64) that i actually use. maybe adding a *rule* with action unreachable has an earlier precedence, and more specific routes will never be read? citing openwrt wiki: action unreachable: When reaching the rule, respond with ICMP unreachable messages and abort route lookup sadly, i don't see how an unreachable type route could be configured via uci. It seems the config route section is limited to unicast type routes. The config route uci section supports unicast, local, broadcast, multicast routes by means of the uci route parameter type. This is not yet documented on the wiki as this support has only been recently enabled in the netifd trunk version. Having said that there's no support yet for unreachable, blackhole routes as routes are tied to an interface in uci. Agree this would be an usefull extension of the uci route feature set; will have a look at it in the near future $ ip -6 route help Usage: [snip] ip route { add | del | change | append | replace } ROUTE [snip] TYPE := [ unicast | local | broadcast | multicast | throw | unreachable | prohibit | blackhole | nat ] so, going back to the rule way, maybe try adding first specific rules that allow routes to be looked up, and add the unreachable action at the end? config rule option dest '172.21.2.32/27' option lookup 'main' config rule option dest '172.21.2.0/24' option action 'unreachable' i'm just hypothesizing, tho cheers!! http://wiki.openwrt.org/doc/uci/network#routing.actions ___ openwrt-devel mailing list openwrt-devel at 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
[OpenWrt-Devel] [PATCH] kernel/3.1{3, 4}: fix AMD USB HDC wakeup quirk disabling
Declare inline placeholder when usb_hcd_amd_remote_wakeup_quirk() not compiled due CONFIG_PCI_DISABLE_COMMON_QUIRKS. Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../811-pci_disable_usb_common_quirks.patch | 17 + .../811-pci_disable_usb_common_quirks.patch | 17 + 2 files changed, 34 insertions(+) diff --git a/target/linux/generic/patches-3.13/811-pci_disable_usb_common_quirks.patch b/target/linux/generic/patches-3.13/811-pci_disable_usb_common_quirks.patch index 359c631..9fe134e 100644 --- a/target/linux/generic/patches-3.13/811-pci_disable_usb_common_quirks.patch +++ b/target/linux/generic/patches-3.13/811-pci_disable_usb_common_quirks.patch @@ -82,3 +82,20 @@ +#endif #endif /* __LINUX_USB_PCI_QUIRKS_H */ +--- a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h +@@ -436,7 +436,14 @@ extern int usb_hcd_pci_probe(struct pci_ + extern void usb_hcd_pci_remove(struct pci_dev *dev); + extern void usb_hcd_pci_shutdown(struct pci_dev *dev); + ++#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS + extern int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev); ++#else ++static inline int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev) ++{ ++ return 0; ++} ++#endif + + #ifdef CONFIG_PM + extern const struct dev_pm_ops usb_hcd_pci_pm_ops; diff --git a/target/linux/generic/patches-3.14/811-pci_disable_usb_common_quirks.patch b/target/linux/generic/patches-3.14/811-pci_disable_usb_common_quirks.patch index b85ac69..4c8ee4a 100644 --- a/target/linux/generic/patches-3.14/811-pci_disable_usb_common_quirks.patch +++ b/target/linux/generic/patches-3.14/811-pci_disable_usb_common_quirks.patch @@ -82,3 +82,20 @@ +#endif #endif /* __LINUX_USB_PCI_QUIRKS_H */ +--- a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h +@@ -439,7 +439,14 @@ extern int usb_hcd_pci_probe(struct pci_ + extern void usb_hcd_pci_remove(struct pci_dev *dev); + extern void usb_hcd_pci_shutdown(struct pci_dev *dev); + ++#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS + extern int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev); ++#else ++static inline int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev) ++{ ++ return 0; ++} ++#endif + + #ifdef CONFIG_PM + extern const struct dev_pm_ops usb_hcd_pci_pm_ops; -- 1.8.1.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: fix port mapping and extract wmac eeprom on ZBT-WA05 board
Signed-off-by: Roman Yeryomin ro...@advem.lv --- target/linux/ramips/dts/ZBT-WA05.dts | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/ZBT-WA05.dts b/target/linux/ramips/dts/ZBT-WA05.dts index 714d273..13c78c7 100644 --- a/target/linux/ramips/dts/ZBT-WA05.dts +++ b/target/linux/ramips/dts/ZBT-WA05.dts @@ -70,7 +70,11 @@ ethernet@1010 { mtd-mac-address = factory 0x4; - ralink,port-map = w; + ralink,port-map = w; + }; + + wmac@1018 { + ralink,mtd-eeprom = factory 0; }; pinctrl { -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: extract mac address from flash on WHR-600D board
Signed-off-by: Roman Yeryomin ro...@advem.lv --- target/linux/ramips/dts/WHR-600D.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts index b99d024..df38b8c 100644 --- a/target/linux/ramips/dts/WHR-600D.dts +++ b/target/linux/ramips/dts/WHR-600D.dts @@ -66,6 +66,7 @@ pinctrl-names = default; pinctrl-0 = ephy_pins; + mtd-mac-address = factory 0x4; ralink,port-map = w; }; -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] bcm63xx: Add support for Huawei HG520v
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index 964f5ba..97ef3e8 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network @@ -70,7 +70,8 @@ HW556*) ;; NB4-* |\ -DVG3810BN) +DVG3810BN |\ +HW6358GW_B) ucidef_set_interfaces_lan_wan eth1.1 eth0 ucidef_add_switch eth1 1 1 ucidef_add_switch_vlan eth1 1 0 1 2 3 4 5t diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index 1029fe3..d5784db 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -131,6 +131,11 @@ brcm63xx_detect() { brcm63xx_has_reset_button=true ifname=eth0 ;; + HW6358GW_B) + status_led=HW520:green:net + brcm63xx_has_reset_button=true + ifname=eth0 + ;; NB6) brcm63xx_has_reset_button=true ifname=eth0 diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 680cf97..dbda363 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -310,6 +310,9 @@ define Image/Build # T-Com Speedport W 500V $(call Image/Build/CFEFIXUP,$(1),96348GW,SPW500V,6348,SPW500V) + # Huawei HW520 + $(call Image/Build/CFE,$(1),HW6358GW_B,6358,HW520,EchoLife_HG520v) + #HW553 $(call Image/Build/CFEHW553,$(1),HW553,6358,0x2,HW553) diff --git a/target/linux/brcm63xx/patches-3.10/565-board_hw520.patch b/target/linux/brcm63xx/patches-3.10/565-board_hw520.patch new file mode 100644 index 000..d1b1641 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.10/565-board_hw520.patch @@ -0,0 +1,60 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -3428,6 +3428,49 @@ static struct board_info __initdata boar + .num_spis = ARRAY_SIZE(ct6373_spi_devices), + }; + ++static struct board_info __initdata board_HW520 = { ++ .name = HW6358GW_B, ++ .expected_cpu_id= 0x6358, ++ ++ .has_uart0 = 1, ++ .has_pci= 1, ++ .has_ohci0 = 1, ++ .has_ehci0 = 1, ++ ++ .has_enet0 = 1, ++ .enet0 = { ++ .has_phy= 1, ++ .use_internal_phy = 1, ++ }, ++ ++ .has_enet1 = 1, ++ .enet1 = { ++ .has_phy= 1, ++ .phy_id = 0, ++ .force_speed_100= 1, ++ .force_duplex_full = 1, ++ }, ++ ++ .leds = { ++ { ++ .name = HW520:green:net, ++ .gpio = 32, ++ .active_low = 1, ++ }, ++ }, ++ ++ .buttons = { ++ { ++ .desc = reset, ++ .gpio = 37, ++ .active_low = 1, ++ .type = EV_KEY, ++ .code = KEY_RESTART, ++ .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL, ++ }, ++ }, ++}; ++ + static struct board_info __initdata board_HW553 = { + .name = HW553, + .expected_cpu_id= 0x6358, +@@ -5175,6 +5218,7 @@ static const struct board_info __initcon + board_nb4_fxc_r1, + board_nb4_fxc_r2, + board_ct6373_1, ++ board_HW520, + board_HW553, + board_HW556, + board_HW556_A, diff --git a/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch b/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch new file mode 100644 index 000..aae5845 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch @@ -0,0 +1,60 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -3438,6 +3438,49 @@ static struct board_info __initdata boar + .num_spis = ARRAY_SIZE(ct6373_spi_devices), + }; + ++static struct board_info __initdata board_HW520 = { ++ .name = HW6358GW_B, ++ .expected_cpu_id= 0x6358, ++ ++ .has_uart0 = 1, ++ .has_pci= 1, ++ .has_ohci0 = 1, ++ .has_ehci0 = 1, ++ ++ .has_enet0 = 1, ++ .enet0 = { ++ .has_phy= 1, ++ .use_internal_phy
[OpenWrt-Devel] [PATCH 2/2] brcm63xx: Add support for ADB P.DG A4001N
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds index eee89b2..854b3b2 100644 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds @@ -11,6 +11,9 @@ case $board_name in ucidef_set_led_netdev lan LAN A4001N1:green:eth eth0 ucidef_set_led_usbdev usb USB A4001N1:green:3g 1-1 ;; +96328dg2x2) + ucidef_set_led_usbdev usb USB A4001N:green:usb 1-1 + ;; 'F@ST2704V2') ucidef_set_led_usbdev usb USB F@ST2704V2:green:usb 1-1 ;; diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index 97ef3e8..f4985c7 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network @@ -82,6 +82,7 @@ HW6358GW_B) 96328A-1441N1 |\ 963281TAN |\ 963281T_TEF |\ +96328dg2x2 |\ 96368M-1341N |\ 96368M-1541N |\ 96368MVNgr |\ diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc index 560bb20..2840eb1 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc @@ -18,6 +18,7 @@ case $board_name in 96328A-1441N1 |\ 963281TAN |\ 963281T_TEF |\ + 96328dg2x2 |\ 96358-502V |\ 96368M-1341N |\ 96368M-1541N |\ diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index d5784db..1bcd3b9 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -32,6 +32,11 @@ brcm63xx_detect() { status_led=96328avng::power ifname=eth0 ;; + 96328dg2x2) + brcm63xx_has_reset_button=true + status_led=A4001N:green:power + ifname=eth0 + ;; 96328A-1241N) brcm63xx_has_reset_button=true status_led=AR-5381u:green:power diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index dbda363..781425f 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -201,6 +201,8 @@ define Image/Build $(call Image/Build/CFE,$(1),96368MVNgr,6368,96368MVNgr-generic) $(call Image/Build/CFE,$(1),96368MVWG,6368,96368MVWG-generic) + # ADB P.DG A4001N + $(call Image/Build/CFE,$(1),96328dg2x2,6328,A4001N,,--pad 4) # ADB P.DG A4001N1 $(call Image/Build/CFE,$(1),963281T_TEF,6328,A4001N1,,--pad 8) # Asmax AR 1004g diff --git a/target/linux/brcm63xx/patches-3.10/566-board_A4001N.patch b/target/linux/brcm63xx/patches-3.10/566-board_A4001N.patch new file mode 100644 index 000..1685918 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.10/566-board_A4001N.patch @@ -0,0 +1,99 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -552,6 +552,88 @@ static struct board_info __initdata boar + }, + }; + ++static struct board_info __initdata board_A4001N = { ++ .name = 96328dg2x2, ++ .expected_cpu_id= 0x6328, ++ ++ .has_uart0 = 1, ++ .has_pci= 1, ++ .has_ohci0 = 1, ++ .has_ehci0 = 1, ++ .num_usbh_ports = 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 = { ++ { ++ .name = A4001N:green:power, ++ .gpio = 8, ++ .default_trigger = default-on, ++ }, ++ { ++ .name = A4001N:red:power, ++ .gpio
[OpenWrt-Devel] Want to redesign OpenWRT.org
Any suggestions? Is there any official branding? -- *Captain Nick Shvelidze https://plus.google.com/+NickShvelidze* *Pirrate.me http://Pirrate.me* Tbilisi, Georgia *Twitter: @shvelo96 http://www.twitter.com/shvelo96* ___ 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: add support for nanostation m xw
--- target/linux/ar71xx/base-files/etc/diag.sh | 2 +- .../ar71xx/base-files/etc/uci-defaults/01_leds | 3 +- .../ar71xx/base-files/etc/uci-defaults/02_network | 7 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/image/Makefile | 7 ++- .../patches-3.10/616-MIPS-ath79-ubnt-xw.patch | 73 ++ 7 files changed, 92 insertions(+), 4 deletions(-) create mode 100644 target/linux/ar71xx/patches-3.10/616-MIPS-ath79-ubnt-xw.patch diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index ef172b4..ea7ac74 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -34,7 +34,7 @@ get_status_led() { aw-nr580) status_led=aw-nr580:green:ready ;; - bullet-m | rocket-m | nano-m | nanostation-m) + bullet-m | rocket-m | nano-m | nanostation-m | nanostation-m-xw) status_led=ubnt:green:link4 ;; bxu2000n-2-a1) 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 fe5ff93..5f0f73e 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -34,7 +34,8 @@ ap113) bullet-m | \ nanostation-m | \ -rocket-m) +rocket-m | \ +nanostation-m-xw) ucidef_set_led_rssi rssilow RSSILOW ubnt:red:link1 wlan0 1 100 0 13 ucidef_set_led_rssi rssimediumlow RSSIMEDIUMLOW ubnt:orange:link2 wlan0 26 100 -25 13 ucidef_set_led_rssi rssimediumhigh RSSIMEDIUMHIGH ubnt:green:link3 wlan0 51 100 -50 13 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 646425c..a90d846 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -207,6 +207,13 @@ uap-pro) ucidef_add_switch_vlan switch0 1 0 1 2 ;; +nanostation-m-xw) + ucidef_set_interfaces_lan_wan eth0.1 eth0.2 + ucidef_add_switch switch0 1 1 + ucidef_add_switch_vlan switch0 1 0t 5 + ucidef_add_switch_vlan switch0 2 0t 1 + ;; + wrt160nl) ucidef_set_interfaces_lan_wan eth0 eth1 ucidef_add_switch switch0 1 1 diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index bd277ab..1e50f68 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -331,6 +331,9 @@ ar71xx_board_detect() { *Nanostation M) name=nanostation-m ;; + *Nanostation M XW) + name=nanostation-m-xw + ;; *JWAP003) name=jwap003 ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 8af9580..a990e1a 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -165,6 +165,7 @@ platform_check_image() { bullet-m | \ nanostation-m | \ rocket-m | \ + nanostation-m-xw | \ rw2458n | \ wndap360 | \ wzr-hp-g300nh2 | \ diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 6bc1105..487fbe4 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -553,7 +553,9 @@ define Image/Build/UAPPRO -o $(call factoryname,$(1),$(2)) endef - +# $(4) = board (XS2, XS5, RS, XM) +# $(5) = series (BZ, XM, XW) +# $(6) = chip (ar7240, ar934x) define Image/Build/UBNT2 $(eval fwsize=$(call mtdpartsize,firmware,$(3))) $(call Sysupgrade/KRuImage,$(1),$(2),0,(($(fwsize)-4*64*1024)),64) @@ -1183,6 +1185,7 @@ $(eval $(call SingleProfile,UBNTXM,64kraw,UBNTROCKETM,ubnt-rocket-m,UBNT-RM,ttyS $(eval $(call SingleProfile,UBNTXM,64kraw,UBNTNANOM,ubnt-nano-m,UBNT-NM,ttyS0,115200,XM,XM,ar7240)) $(eval $(call SingleProfile,UBNTXM,64kraw,UBNTUNIFI,ubnt-unifi,UBNT-UF,ttyS0,115200,XM,BZ,ar7240)) $(eval $(call SingleProfile,UBNTXM,64kraw,UBNTUNIFIOUTDOOR,ubnt-unifi-outdoor,UBNT-U20,ttyS0,115200,XM,BZ,ar7240)) +$(eval $(call SingleProfile,UBNTXM,64kraw,UBNTNANOMXW,ubnt-nano-m-xw,UBNT-NM-XW,ttyS0,115200,XM,XW,ar934x)) $(eval $(call SingleProfile,WHRHPG300N,64kraw,WHRG301N,whr-g301n,WHR-G301N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-G301N)) $(eval $(call SingleProfile,WHRHPG300N,64kraw,WHRHPG300N,whr-hp-g300n,WHR-HP-G300N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-HP-G300N)) @@ -1226,7 +1229,7 @@ $(eval $(call MultiProfile,TLWR842,TLWR842V1 TLWR842V2)) $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3
[OpenWrt-Devel] Desktop configuring tool
Hello, does exist something like winbox for mikrotik? It should be owrt api(UCI+ssh for example) and desktop GUI. Then I dont need compile LuCI and save place in 2-4MB router. Maybe someone can port LuCI app to run on desktop and send commands via ssh to device. Thanks for info. -- S pozdravom Jakub Janco ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Desktop configuring tool
On Mon, Jul 14, 2014 at 07:37:37AM +0200, Jakub Jančo wrote: Hello, does exist something like winbox for mikrotik? It should be owrt api(UCI+ssh for example) and desktop GUI. UCI over SSH doesn't look very pretty, I'd say ubus over HTTP is a better idea: http://wiki.openwrt.org/doc/techref/ubus#access.to.ubus.over.http Then I dont need compile LuCI and save place in 2-4MB router. You may want to consider LuCI2, which runs mostly client-side: http://wiki.openwrt.org/doc/techref/luci2 Maybe someone can port LuCI app to run on desktop and send commands via ssh to device. Thanks for info. -- S pozdravom Jakub Janco pgp01Aa6KzUq9.pgp Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel