Re: [OpenWrt-Devel] [PATCH] transmission init.d script to set ulimit for open files based on open_file_limit configuration parameter
Committed in r25991, thanks. -- obsy ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] AT91 Flexibity initial board support
Dnia 2011-05-02, o godz. 18:23:11 Maxim Osipov napisał(a): > Any more comments? Any changes necessary to apply the patch? Why transmission config is in here? -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] AT91 Flexibity initial board support
Dnia 2011-05-02, o godz. 18:30:14 Maxim Osipov napisał(a): > 2011/5/2 Cezary Jackiewicz : > > Dnia 2011-05-02, o godz. 18:23:11 > > Maxim Osipov napisał(a): > > > >> Any more comments? Any changes necessary to apply the patch? > > > > Why transmission config is in here? > > This firmware will have a certain number of packages pre-installed and > with custom configs. > Is it better to move configs customisation to related packages? So you should keep these config in your own repo, not platform specyfic. -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: TP-LINK Archer C5 image name
There are more version on market, add version number to the name. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index ae398d9..e193c08 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -368,7 +368,7 @@ endef TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1 tl-wdr3320-v2 -define Device/archer-c5 +define Device/archer-c5-v1 $(Device/tplink-16mlzma) BOARDNAME := ARCHER-C5 DEVICE_PROFILE := ARCHERC7 @@ -388,7 +388,7 @@ define Device/archer-c7-v2 DEVICE_PROFILE := ARCHERC7 TPLINK_HWID := 0xc702 endef -TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2 +TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 define Device/antminer-s1 $(Device/tplink-8mlzma) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add support for TRENDnet TEW-823DRU
Add support for TRENDnet TEW-823DRU: - cpu: QCA9558 @720MHz - flash: 16MB - ram: 256MB - 4+1 RJ45 100/1000Mbps - wifi: QCA9558 (bgn) and QCA9880-BR4A (ac) - 1x USB 2.0 Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index d4f226e..ed2aeae 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -389,6 +389,10 @@ tew-732br) ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1" ;; +tew-823dru) + ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0" + ;; + tl-mr11u | \ tl-mr3020 | \ tl-mr3040 | \ diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 11c4341..bfc898c 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -43,6 +43,7 @@ ap147-010) ap136-020 |\ ap135-020 |\ +tew-823dru |\ tl-wr1043nd-v2 |\ wzr-450hp2) ucidef_set_interfaces_lan_wan "eth1" "eth0" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 0e1df10..fd57c55 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -255,7 +255,8 @@ get_status_led() { status_led="trendnet:blue:wps" ;; tew-712br|\ - tew-732br) + tew-732br|\ + tew-823dru) status_led="trendnet:green:power" ;; tl-mr3020) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 54e6166..5af7adf 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -746,6 +746,9 @@ ar71xx_board_detect() { *TEW-732BR) name="tew-732br" ;; + *TEW-823DRU) + name="tew-823dru" + ;; *"TL-WR1041N v2") name="tl-wr1041n-v2" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k index 4da611a..35a2fc9 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k @@ -23,7 +23,7 @@ do_patch_ath10k_firmware() { # some boards have bogus mac in otp, patch the default mac in the firmware case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) local mac mac=$(mtd_get_mac_ascii nvram wlan1_mac) @@ -42,7 +42,7 @@ do_patch_ath10k_firmware() { check_patch_ath10k_firmware() { case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) do_patch_ath10k_firmware ;; esac diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index bb64ef8..7e564b4 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -231,6 +231,7 @@ platform_check_image() { tew-632brp | \ tew-712br | \ tew-732br | \ + tew-823dru | \ wrt400n | \ airgateway | \ airgatewaypro | \ diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1 index 0e8b4a4..15754d9 100644 --- a/target/linux/ar71xx/config-4.1 +++ b/target/linux/ar71xx/config-4.1 @@ -122,6 +122,7 @@ CONFIG_ATH79_MACH_TEW_632BRP=y CONFIG_ATH79_MACH_TEW_673GRU=y CONFIG_ATH79_MACH_TEW_712BR=y CONFIG_ATH79_MACH_TEW_732BR=y +CONFIG_ATH79_MACH_TEW_823DRU=y CONFIG_ATH79_MACH_TL_MR11U=y CONFIG_ATH79_MACH_TL_MR13U=y CONFIG_ATH79_MACH_TL_MR3020=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt index 2b62d89..d619b3c 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt +++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt @@ -1279,6 +1279,16 @@ config ATH79_MACH_TEW_732BR select ATH79_DEV_M25P80 select ATH79_DEV_WMAC +config ATH79_MACH_TEW_823DRU + bool "TRENDnet TEW-823DRU support" + select SOC_QCA955X + select ATH79_DEV_ETH + select ATH79_DEV_GPIO_BUTTONS + select ATH79_DEV_LEDS_GPIO + select ATH79_DEV_M25P80 + select ATH79_DEV_USB + select ATH79_DEV_WMAC + config ATH79_MACH_UBNT bool "Ubiquiti AR71xx based boards support" select SOC_AR71XX diff
[OpenWrt-Devel] ramips: Error in mt7620_gsw_probe/mt7621_gsw_probe?
Hello, +static int mt7620_gsw_probe(struct platform_device *pdev) +{ + struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + const char *port4 = NULL; + struct mt7620_gsw *gsw; + struct device_node *np; + + gsw = devm_kzalloc(&pdev->dev, sizeof(struct mt7620_gsw), GFP_KERNEL); + if (!gsw) + return -ENOMEM; + + gsw->base = devm_ioremap_resource(&pdev->dev, res); + if (!gsw->base) + return -EADDRNOTAVAIL; + + gsw->dev = &pdev->dev; + + of_property_read_string(np, "mediatek,port4", &port4); + if (port4 && !strcmp(port4, "ephy")) + gsw->port4 = PORT4_EPHY; + else if (port4 && !strcmp(port4, "gmac")) + gsw->port4 = PORT4_EXT; + else + gsw->port4 = PORT4_EPHY; + Where device_node structure is populated? CC uses of_find_matching_node, but in DD/trunk this structure is null, and I cannot set "mediatek,port4" property to gmac. -- Pozdrawiam, Cezary Jackiewicz ___ 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] wwan: Add support for CDC (Huawei 'HiLink') Modems
Dnia 2016-02-23, o godz. 08:54:06 John Crispin napisał(a): > however reading that 3 people talk to the stick in a different manner > makes me wonder if there is more than 1 type of hilink modem ? E3372s-153 (sold in Poland) require only connect to usb and connect automatically. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] lcdproc: remove dot and spaces
Remove the spaces and dots at the end of the line. Signed-off-by: Cezary Jackiewicz --- Index: packages/utils/lcdproc/files/LCDd === --- packages/utils/lcdproc/files/LCDd (wersja 40577) +++ packages/utils/lcdproc/files/LCDd (kopia robocza) @@ -1,4 +1,4 @@ -#!/bin/sh /etc/rc.common +#!/bin/sh /etc/rc.common START=50 Index: packages/utils/lcdproc/files/lcdexec === --- packages/utils/lcdproc/files/lcdexec(wersja 40577) +++ packages/utils/lcdproc/files/lcdexec(kopia robocza) @@ -1,4 +1,4 @@ -#!/bin/sh /etc/rc.common. +#!/bin/sh /etc/rc.common START=50 Index: packages/utils/lcdproc/files/lcdproc === --- packages/utils/lcdproc/files/lcdproc(wersja 40577) +++ packages/utils/lcdproc/files/lcdproc(kopia robocza) @@ -1,4 +1,4 @@ -#!/bin/sh /etc/rc.common. +#!/bin/sh /etc/rc.common START=50 Index: packages/utils/lcdproc/files/lcdvc === --- packages/utils/lcdproc/files/lcdvc (wersja 40577) +++ packages/utils/lcdproc/files/lcdvc (kopia robocza) @@ -1,4 +1,4 @@ -#!/bin/sh /etc/rc.common. +#!/bin/sh /etc/rc.common START=50 -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Get wifi firmware for WRTnode
After r41444 wifi working on WRTnode. Tested. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom === --- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (wersja 41450) +++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (kopia robocza) @@ -119,6 +119,7 @@ wnce2001 | \ wr512-3gn | \ wr6202 | \ + wrtnode | \ mzk-w300nh2 | \ ur-326n4g | \ ur-336un | \ -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH RESEND] firmware-utils/mkdir615h1: fix magic XOR calculation
Dnia 2014-07-02, o godz. 22:14:22 Forest Crossman napisał(a): > Someone changed this patch's state to accepted, but I haven't seen it > appear in SVN yet. Is there something I still need to do? Or does it > just take a while for a patch to go from "Accepted" to "Committed"? I > ask because I have some more patches to add that will make this code > more efficient and generic because it actually applies to most if not > all Senao-produced boards. See https://dev.openwrt.org/changeset/41314 -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add 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 --- Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 41570) +++ 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 41570) +++ 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 41570) +++ 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 41570) +++ 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 41570) +++ 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 41570) +++ 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
[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 --- 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
[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 --- 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 = { { @@ -
[OpenWrt-Devel] [PATCH] Hame: change LED name mpr-x -> hame
Change LED name mpr-x -> hame Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 4aac473..9ad7ccb 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -80,10 +80,10 @@ get_status_led() { status_led="mofi3500-3gn:green:status" ;; mpr-a1) - status_led="mpr-a1:red:power" + status_led="hame:red:power" ;; mpr-a2) - status_led="mpr-a2:red:power" + status_led="hame:red:power" ;; nbg-419n) status_led="nbg-419n:green:power" diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index 0020729..3474b99 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -121,10 +121,10 @@ case $board in set_usb_led "mofi3500-3gn:green:usb" ;; mpr-a1) - set_wifi_led "mpr-a1:blue:system" + set_wifi_led "hame:blue:system" ;; mpr-a2) - set_wifi_led "mpr-a2:blue:system" + set_wifi_led "hame:blue:system" ;; mzk-w300nh2) set_wifi_led "mzkw300nh2:amber:wlan" diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts index 9b4ee34..af6d82b 100644 --- a/target/linux/ramips/dts/MPRA1.dts +++ b/target/linux/ramips/dts/MPRA1.dts @@ -75,11 +75,11 @@ gpio-leds { compatible = "gpio-leds"; system { - label = "mpr-a1:blue:system"; + label = "hame:blue:system"; gpios = <&gpio0 20 1>; }; power { - label = "mpr-a1:red:power"; + label = "hame:red:power"; gpios = <&gpio0 17 1>; }; }; diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts index 56d6f51..4f5e1c3 100644 --- a/target/linux/ramips/dts/MPRA2.dts +++ b/target/linux/ramips/dts/MPRA2.dts @@ -75,11 +75,11 @@ gpio-leds { compatible = "gpio-leds"; system { - label = "mpr-a2:blue:system"; + label = "hame:blue:system"; gpios = <&gpio0 20 1>; }; power { - label = "mpr-a2:red:power"; + label = "hame:red:power"; gpios = <&gpio0 17 1>; }; }; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Hame: add mpr-a1 to default profile
Add hame mpr-a1 to default ramips profile. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index bf95a84..1c65ee6 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -601,6 +601,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/M3,$(1)) $(call Image/Build/Profile/M4,$(1)) $(call Image/Build/Profile/MOFI3500-3GN,$(1)) + $(call Image/Build/Profile/MPRA1,$(1)) $(call Image/Build/Profile/MPRA2,$(1)) $(call Image/Build/Profile/MZKW300NH2,$(1)) $(call Image/Build/Profile/NBG-419N,$(1)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Clean up HAME profiles, remove unnecessary packages
Clean up HAME profiles, remove unnecessary packages. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/rt305x/profiles/hame.mk b/target/linux/ramips/rt305x/profiles/hame.mk index 35b9a04..06dfc12 100644 --- a/target/linux/ramips/rt305x/profiles/hame.mk +++ b/target/linux/ramips/rt305x/profiles/hame.mk @@ -8,7 +8,7 @@ define Profile/MPRA1 NAME:=HAME MPR-A1 PACKAGES:=\ - kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-net + kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev endef define Profile/MPRA1/Description @@ -20,9 +20,7 @@ $(eval $(call Profile,MPRA1)) define Profile/MPRA2 NAME:=HAME MPR-A2 PACKAGES:=\ - kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer \ - kmod-usb-acm kmod-usb-net kmod-usb-net-asix kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option \ - usb-modeswitch comgt + kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev endef define Profile/MPRA2/Description -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: fix switch config for Edimax 3G-6200n
Switch in Edimax 3G-6200n also require full switch reset, not only vlan definitions. Tested on Edimax 3G-6200n. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 95e728c..49c2272 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -61,7 +61,6 @@ ramips_setup_interfaces() ucidef_set_interface_lan "eth0.1" ;; - 3g-6200n | \ b2c | \ nw718 | \ psr-680w | \ @@ -98,6 +97,7 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "4 9t" ;; + 3g-6200n | \ dir-610-a1 | \ dir-300-b7 | \ dir-320-b1 | \ -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] samba 3.0.37 update
Dnia 2011-06-13, o godz. 22:41:11 Maarten Bezemer napisał(a): > This patch updates samba to version 3.0.37 (probably the last 3.0 > version that is going to be released) This patch should also provide cifsmount. -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] samba 3.0.37 update
Dnia 2011-06-14, o godz. 00:22:27 John Crispin napisał(a): > On 13/06/11 23:50, Maarten Bezemer wrote: > > On Mon, 2011-06-13 at 23:38 +0200, Maarten Bezemer wrote: > >> On Mon, 2011-06-13 at 23:07 +0200, Cezary Jackiewicz wrote: > >>> Dnia 2011-06-13, o godz. 22:41:11 > >>> Maarten Bezemer napisał(a): > >>> > >>>> This patch updates samba to version 3.0.37 (probably the last 3.0 > >>>> version that is going to be released) > >>> > >>> This patch should also provide cifsmount. > >> > >> It is possible to provide cifsmount, but the current version of samba3 > >> is also not providing cifsmount there I did not enable it. > > > > I added them to try them. It adds for mount.cifs 29191 bytes and for > > umount.cifs 14030 bytes, a total of about 43kB. > > > > I suppose mounting samba shares is not required for a server/router, so > > these binaries are a waste to provide..? > > Hi, > > you can put them in a seperate package As separate package, yes. This should replace existing cifsmount package. -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] samba 3.0.37 update
Dnia 2011-06-13, o godz. 22:41:11 Maarten Bezemer napisał(a): > This patch updates samba to version 3.0.37 (probably the last 3.0 > version that is going to be released) > > Signed-off-by: Maarten Bezemer Maarten: fresh checkout, build for ar71xx on debian/32b checking whether to use profiling... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking for perl... /usr/bin/perl checking for mips-openwrt-linux-ar... mips-openwrt-linux-uclibc-ar checking if the linker (ld) is GNU ld... yes checking GNU ld release date... 20110606 checking whether mips-openwrt-linux-uclibc-gcc and cc understand -c and -o together... yes checking that the C compiler understands -Werror... cross checking that the C compiler understands -w2... cross checking that the C compiler understands volatile... yes checking that the C compiler understands negative enum values... configure: error: in `/opt/projekty/openwrt/ar71xx/build_dir/target-mips_r2_uClibc-0.9.32/samba-3.0.37/source': configure: error: cannot run test program while cross compiling See `config.log' for more details. -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v2] samba 3.0.37 update
Dnia 2011-08-02, o godz. 22:08:04 Maarten Bezemer napisał(a): > Any replies, comments or critics are very welcome. Hi, now everything looks good. It compiles correctly. IMO nmbd daemon should be in a separate package or should be an option in the configuration allows disable it (see: https://dev.openwrt.org/ticket/9451). -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v2] samba 3.0.37 update
Dnia 2011-08-02, o godz. 22:08:04 Maarten Bezemer napisał(a): > Any replies, comments or critics are very welcome. Also - smbpasswd is quite big - old version: 11573B, new one: 1750688 B. Too big. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update
Dnia 2011-08-03, o godz. 23:35:24 Maarten Bezemer napisał(a): > - Made separate package for nmbd > (see: https://dev.openwrt.org/ticket/9451) > - Reduced the size of smbpasswd to about its previous size. (Almost) the > complete source of smbd got included and somehow not stripped away > properly. > - Fixed a problem of a failing test for 'long long', resulting that it > was not available. [...] > Any replies, comments or critics are still very welcome. Good! How about libpopt? Why samba use external package, not this build-in? -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update
> I assumed that since it is available as external library, it would be > better to use this external (shared) library to save some space. Now I > realize that it is statically linked and my assumption is incorrect and > resulting in an extra unnecessary dependency. > > So it would be better to use the build-in libpopt? Just look how grow binary with libpopt build-in. If size grows more than 10k, should be external. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update
Dnia 2011-08-06, o godz. 14:57:00 Maarten Bezemer napisał(a): Next: try do not include files from printing/* if SAMBA3_NO_PRINTING (AVM_NO_PRINTING) is selected. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update
Dnia 2011-08-08, o godz. 15:56:17 Maarten Bezemer napisał(a): > It saves about 260kB on the smbd executable size. Good to hear it. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update
Dnia 2011-08-10, o godz. 00:07:58 Maarten Bezemer napisał(a): > Any replies, comments or critics are still welcome of course. 1. Problem if host system has installed kerberos libraries. Solution - remove detection kerberos libraries 2. Don't link smbd with libldap (next external library) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update
Dnia 2011-08-14, o godz. 18:06:25 Maarten Bezemer napisał(a): > So, the Kerebos library build by OpenWRT is stripped down? Or too old? I have problem build if krb5-config is installed on host. Configure script tried include and link kerberos libraries from host system. Not from SDK/openwrt, I don't have any kb5 libraries installed in sdk. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update
Dnia 2011-08-14, o godz. 23:52:33 Maarten Bezemer napisał(a): > I was wondering whether having an option to configure Active > Directory/Kerberos would be favorable or just a waste of time. I do not > know Active Directory good (enough) to know whether it is likely to get > used on a (home)router or not. If not, then building configuration > options for it seems like a waste of time. +1 for remove AD, ldap etc. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] dwc_otg is required for external root on ramips.
Signed-off-by: Cezary Jackiewicz --- Index: package/kernel/modules/usb.mk === --- package/kernel/modules/usb.mk (wersja 28063) +++ package/kernel/modules/usb.mk (kopia robocza) @@ -956,7 +956,7 @@ CONFIG_DWC_OTG_DEVICE_ONLY=n \ CONFIG_DWC_OTG_DEBUG=n FILES:=$(LINUX_DIR)/drivers/usb/dwc_otg/dwc_otg.ko - AUTOLOAD:=$(call AutoLoad,54,dwc_otg) + AUTOLOAD:=$(call AutoLoad,54,dwc_otg,1) $(call AddDepends/usb) endef ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 5/5] [packages] samba3: update version to 3.0.47 Thanks to Maarten Bezemer
Dnia 2011-08-30, o godz. 10:56:17 Maarten Bezemer napisał(a): > Then I'll send another > update of my samba3 patch to the list and await further comments... ;) Maarten, when can we expect next version? -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1
Support for Belkin F5D8235-4 v1 (RT288x) works: - switch - buttons - some leds does not work: - USB (not supported by RT288XX) - WLAN Based on r29397 Signed-off-by: Cezary Jackiewicz --- --- target/linux/ramips/rt288x/config-2.6.39 +++ target/linux/ramips/rt288x/config-2.6.39 @@ -92,6 +92,7 @@ CONFIG_RALINK_RT288X=y # CONFIG_RALINK_RT305X is not set CONFIG_RAMIPS_WDT=y +CONFIG_RT288X_MACH_F5D8235_V1=y CONFIG_RT288X_MACH_RT_N15=y CONFIG_RT288X_MACH_WZR_AGL300NH=y CONFIG_RTL8366S_PHY=y --- target/linux/ramips/rt288x/profiles/belkin.mk +++ target/linux/ramips/rt288x/profiles/belkin.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/F5D8235V1 + NAME:=Belkin F5D8235 V1 + PACKAGES:=kmod-switch-rtl8366s kmod-swconfig swconfig +endef + +define Profile/F5D8235_V1/Description + Package set for Belkin F5D8235 V1 +endef + +$(eval $(call Profile,F5D8235V1)) + --- target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig +++ target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig @@ -2,6 +2,10 @@ menu "Ralink RT288x machine selection" +config RT288X_MACH_F5D8235_V1 + bool "Belkin F5D8235 V1 board support" + select RALINK_DEV_GPIO_LEDS + config RT288X_MACH_RT_N15 bool "Asus RT-N15 board support" select RALINK_DEV_GPIO_BUTTONS --- target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c +++ target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c @@ -56,6 +56,21 @@ .num_resources = ARRAY_SIZE(rt288x_flash1_resources), }; +static struct resource rt288x_flash8_resources[] = { + { + .flags = IORESOURCE_MEM, + .start = KSEG1ADDR(RT2880_FLASH0_BASE), + .end= KSEG1ADDR(RT2880_FLASH0_BASE) + +RT2880_FLASH8_SIZE - 1, + }, +}; + +static struct platform_device rt288x_flash8_device = { + .name = "physmap-flash", + .resource = rt288x_flash8_resources, + .num_resources = ARRAY_SIZE(rt288x_flash8_resources), +}; + static int rt288x_flash_instance __initdata; void __init rt288x_register_flash(unsigned int id, struct physmap_flash_data *pdata) @@ -73,6 +88,10 @@ pdev = &rt288x_flash1_device; reg = MEMC_REG_FLASH_CFG1; break; + case 8: + pdev = &rt288x_flash8_device; + reg = MEMC_REG_FLASH_CFG0; + break; default: return; } --- target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c +++ target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c @@ -0,0 +1,142 @@ +/* + * Belkin F5D825 V1 board support + * + * Copyright (C) 2011 Cezary Jackiewicz + * + * 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 + +#include +#include +#include +#include +#include + +#include "devices.h" + +#include +#include + +#include + +#define F5D8235_GPIO_RTL8366_SCK 2 +#define F5D8235_GPIO_RTL8366_SDA 1 + +#define F5D8235_GPIO_LED_USB_BLUE 7 +#define F5D8235_GPIO_LED_USB_ORANGE8 +#define F5D8235_GPIO_BUTTON_WPS0 +#define F5D8235_GPIO_BUTTON_RESET 9 + +#define F5D8235_BUTTONS_POLL_INTERVAL 20 + +#ifdef CONFIG_MTD_PARTITIONS +static struct mtd_partition f5d8235_partitions[] = { + { + .name = "uboot", + .offset = 0, + .size = 0x05, + .mask_flags = MTD_WRITEABLE, + }, { + .name = "kernel and rootfs", + .offset = 0x05, + .size = 0x79, + }, { + .name = "rootfs", + .offset = 0x1D, + .size = 0x61, + }, { + .name = "nvram", + .offset = 0x7E, + .size = 0x01, + }, { + .name = "factory", + .offset = 0x7F, + .size = 0x01, + } +}; +#endif /* CONFIG_MTD_PARTITIONS */ + +static struct physmap_flash_data f5d8235_flash_data = { +#ifdef CONFIG_MTD_PARTITIONS + .nr_parts = ARRAY_SIZE(f5d8235_partitions), + .parts = f5d8235_partitions, +#endif +}; + +static struct rtl8366_platform_data f5d8235_rtl8366s_data = { + .gpio_sda = F5D8235_GPIO_RTL8366_SDA, + .gpio_sck = F5D8235_GPIO_RTL8366_SCK, +}; + +static struct platform_device f5d8235_rtl8366s_device = { + .name = RTL8366S_DRIVER_NAME, + .id = -1, +
Re: [OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1
Dnia 2011-12-02, o godz. 19:34:14 Roman Yeryomin napisał(a): > On 2 December 2011 19:17, Cezary Jackiewicz > wrote: > > Support for Belkin F5D8235-4 v1 (RT288x) > > works: > > - switch > > - buttons > > - some leds > > > > does not work: > > - USB (not supported by RT288XX) > > - WLAN > > > > I would think that wifi should work because it works on Asus RT-N15. > Are you sure you've enabled it in /etc/config/wireless (it's disabled > by default) ? Yes, but for now is not works: [10.51] phy0 -> rt2x00lib_request_eeprom_file: Error - Failed to request EEPROM. is not supported -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] php5: add mod-zip
[PATCH] php5: add mod-zip Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/lang/php5/Makefile === --- feeds/packages/lang/php5/Makefile (wersja 29397) +++ feeds/packages/lang/php5/Makefile (kopia robocza) @@ -9,7 +9,7 @@ PKG_NAME:=php PKG_VERSION:=5.3.8 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.php.net/distributions/ @@ -35,7 +35,7 @@ pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql \ session simplexml soap sockets sqlite sqlite3 sysvmsg sysvsem sysvshm \ tokenizer \ - xml xmlreader xmlwriter \ + xml xmlreader xmlwriter zip \ PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_php5-cgi CONFIG_PACKAGE_php5-cli \ @@ -411,6 +411,12 @@ CONFIGURE_ARGS+= --disable-xmlwriter endif +ifneq ($(CONFIG_PACKAGE_php5-mod-zip),) + CONFIGURE_ARGS+= --enable-zip=shared +else + CONFIGURE_ARGS+= --disable-zip +endif + ifneq ($(SDK)$(CONFIG_PHP5_FILTER),) CONFIGURE_ARGS+= --enable-filter else @@ -534,3 +540,4 @@ $(eval $(call BuildModule,xml,XML,+PHP5_LIBXML:libxml2 +!PHP5_LIBXML:libexpat)) $(eval $(call BuildModule,xmlreader,XMLReader,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlreader:libxml2 +PACKAGE_php5-mod-xmlreader:libiconv)) $(eval $(call BuildModule,xmlwriter,XMLWriter,+@PHP5_LIBXML +PACKAGE_php5-mod-xmlwriter:libxml2 +PACKAGE_php5-mod-xmlwriter:libiconv)) +$(eval $(call BuildModule,zip,ZIP,+PACKAGE_php5-mod-zip:zip)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1
Dnia 2011-12-02, o godz. 19:34:14 Roman Yeryomin napisał(a): > On 2 December 2011 19:17, Cezary Jackiewicz > wrote: > > Support for Belkin F5D8235-4 v1 (RT288x) > > works: > > - switch > > - buttons > > - some leds > > > > does not work: > > - USB (not supported by RT288XX) > > - WLAN > > > > I would think that wifi should work because it works on Asus RT-N15. > Are you sure you've enabled it in /etc/config/wireless (it's disabled > by default) ? PS. Wifi works after this patch Index: target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom === --- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (wersja 29397) +++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (kopia robocza) @@ -41,6 +41,7 @@ rt2x00_eeprom_extract "devconf" 0 272 ;; + f5d8235-v1 | \ f5d8235-v2) rt2x00_eeprom_extract "u-boot" 262144 272 ;; -- Cezary ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1
Dnia 2011-12-23, o godz. 15:13:21 Gabor Juhos napisał(a): > Please don't add an invalid entry here. The 'id' argument of the > 'rt288x_register_flash' function means the id of the built-in flash > controller, > and the RT2880 has only two of such controllers. So, what should be the proper way of handling 8MB flash on rt288x? -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1
CENSE for more information. +# + +define Profile/F5D8235V1 + NAME:=Belkin F5D8235 V1 + PACKAGES:=kmod-switch-rtl8366s kmod-swconfig swconfig +endef + +define Profile/F5D8235_V1/Description + Package set for Belkin F5D8235 V1 +endef + +$(eval $(call Profile,F5D8235V1)) + --- target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig (wersja 29611) +++ target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig (kopia robocza) @@ -2,6 +2,10 @@ menu "Ralink RT288x machine selection" +config RT288X_MACH_F5D8235_V1 + bool "Belkin F5D8235 V1 board support" + select RALINK_DEV_GPIO_LEDS + config RT288X_MACH_RT_N15 bool "Asus RT-N15 board support" select RALINK_DEV_GPIO_BUTTONS --- target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c (wersja 0) +++ target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c (wersja 0) @@ -0,0 +1,142 @@ +/* + * Belkin F5D825 V1 board support + * + * Copyright (C) 2011 Cezary Jackiewicz + * + * 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 + +#include +#include +#include +#include +#include + +#include "devices.h" + +#include +#include + +#include + +#define F5D8235_GPIO_RTL8366_SCK 2 +#define F5D8235_GPIO_RTL8366_SDA 1 + +#define F5D8235_GPIO_LED_USB_BLUE 7 +#define F5D8235_GPIO_LED_USB_ORANGE8 +#define F5D8235_GPIO_BUTTON_WPS0 +#define F5D8235_GPIO_BUTTON_RESET 9 + +#define F5D8235_BUTTONS_POLL_INTERVAL 20 + +#ifdef CONFIG_MTD_PARTITIONS +static struct mtd_partition f5d8235_partitions[] = { + { + .name = "uboot", + .offset = 0, + .size = 0x05, + .mask_flags = MTD_WRITEABLE, + }, { + .name = "kernel and rootfs", + .offset = 0x05, + .size = 0x79, + }, { + .name = "rootfs", + .offset = 0x1D, + .size = 0x61, + }, { + .name = "nvram", + .offset = 0x7E, + .size = 0x01, + }, { + .name = "factory", + .offset = 0x7F, + .size = 0x01, + } +}; +#endif /* CONFIG_MTD_PARTITIONS */ + +static struct physmap_flash_data f5d8235_flash_data = { +#ifdef CONFIG_MTD_PARTITIONS + .nr_parts = ARRAY_SIZE(f5d8235_partitions), + .parts = f5d8235_partitions, +#endif +}; + +static struct rtl8366_platform_data f5d8235_rtl8366s_data = { + .gpio_sda = F5D8235_GPIO_RTL8366_SDA, + .gpio_sck = F5D8235_GPIO_RTL8366_SCK, +}; + +static struct platform_device f5d8235_rtl8366s_device = { + .name = RTL8366S_DRIVER_NAME, + .id = -1, + .dev = { + .platform_data = &f5d8235_rtl8366s_data, + } +}; + +static struct gpio_led f5d8235_leds_gpio[] __initdata = { + { + .name = "f5d8234-v1:blue:storage", + .gpio = F5D8235_GPIO_LED_USB_BLUE, + .active_low = 1, + },{ + .name = "f5d8234-v1:orange:storage", + .gpio = F5D8235_GPIO_LED_USB_ORANGE, + .active_low = 1, + } +}; + +static struct gpio_button f5d8235_gpio_buttons[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .threshold = 3, + .gpio = F5D8235_GPIO_BUTTON_RESET, + .active_low = 1, + }, { + .desc = "wps", + .type = EV_KEY, + .code = KEY_WPS_BUTTON, + .threshold = 3, + .gpio = F5D8235_GPIO_BUTTON_WPS, + .active_low = 1, + } +}; + +static void __init f5d8235_init(void) +{ + rt288x_gpio_init(RT2880_GPIO_MODE_UART0 | RT2880_GPIO_MODE_I2C); + + rt288x_register_flash(0, &f5d8235_flash_data); + rt288x_register_wifi(); + rt288x_register_wdt(); + + ramips_register_gpio_leds(-1, ARRAY_SIZE(f5d8235_leds_gpio), + f5d8235_leds_gpio); + + ramips_register_gpio_buttons(-1, F5D8235_BUTTONS_POLL_INTERVAL, +ARRAY_SIZE(f5d8235_gpio_buttons), +f5d8235_gpio_buttons); + + platform_device_register(&f5d8235_rtl8366s_device); + + rt288x_eth_data.speed = SPEED_1000; + rt288x_eth_data.duplex = DUPLEX_FULL
Re: [OpenWrt-Devel] [OpenWrt-Commits] r29640 - packages/net/transmission/files
Dnia 2012-01-02, o godz. 14:42:34 Philip Prindeville napisał(a): > I'm pretty sure this isn't what you want! > > % grep 0x02 /usr/include/netinet/ip.h > #define IPTOS_ECN_ECT0 0x02 > #define IPTOS_LOWCOST 0x02 > % > > > Read the comments in /usr/include/netinet/ip.h and consider that the original > RFC-791 markings were retired 14 years ago. > > Sending IPTOS_LOWCOST will have some *very* unfortunate effects if you go > through an ECN-aware router! Transmission defines 'lowcost' as 0x10 (line 266 in libtransmission/session.c). #define IPTOS_LOWDELAY 0x10 in /usr/include/netinet/ip.h -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Commits] r29640 - packages/net/transmission/files
Dnia 2012-01-02, o godz. 15:39:28 Philip Prindeville napisał(a): > This app is broken. Looking at /usr/include/netinet/ip.h: [...] Ok, I revert default value. If someone needs to set differently than the default value, it can do it yourself in the configuration. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add support for Redwave RW2458N
Update patches https://dev.openwrt.org/ticket/9568 Tested on r29664 Signed-off-by: Cezary Jackiewicz --- --- target/linux/ar71xx/config-2.6.37 (wersja 27297) +++ target/linux/ar71xx/config-2.6.37 (kopia robocza) @@ -33,6 +32,7 @@ CONFIG_AR71XX_MACH_PB92=y CONFIG_AR71XX_MACH_RB4XX=y CONFIG_AR71XX_MACH_RB750=y +CONFIG_AR71XX_MACH_RW2458N=y CONFIG_AR71XX_MACH_TEW_632BRP=y CONFIG_AR71XX_MACH_TL_MR3X20=y CONFIG_AR71XX_MACH_TL_WA901ND=y --- target/linux/ar71xx/image/Makefile (wersja 29665) +++ target/linux/ar71xx/image/Makefile (kopia robocza) @@ -687,6 +687,11 @@ $(call Image/Build/Template/$(fs_squash)/$(1),Cameo913x,dir-615-c1,$(dir615c1_cmdline),"AP81-AR9130-RT-070614-02") endef +rw2458n_cmdline=board=RW2458N console=ttyS0,115200 +define Image/Build/Profile/RW2458N + $(call Image/Build/Template/$(fs_64k)/$(1),UBNTXM,rw2458n,$(rw2458n_cmdline),XM,UBNTXM,ar7240) +endef + tew632brp_cmdline=board=TEW-632BRP console=ttyS0,115200 define Image/Build/Profile/TEW632BRP $(call Image/Build/Template/$(fs_squash)/$(1),Cameo913x,tew-632brp,$(tew632brp_cmdline),"AP81-AR9130-RT-070614-00") @@ -950,6 +955,7 @@ $(call Image/Build/Profile/PB42,$(1)) $(call Image/Build/Profile/PB44,$(1)) $(call Image/Build/Profile/PB92,$(1)) + $(call Image/Build/Profile/RW2458N,$(1)) $(call Image/Build/Profile/TEW632BRP,$(1)) $(call Image/Build/Profile/TEW652BRP,$(1)) $(call Image/Build/Profile/TLMR3020,$(1)) --- target/linux/ar71xx/files/arch/mips/ar71xx/Makefile (wersja 29665) +++ target/linux/ar71xx/files/arch/mips/ar71xx/Makefile (kopia robocza) @@ -53,6 +53,7 @@ obj-$(CONFIG_AR71XX_MACH_PB92) += mach-pb92.o obj-$(CONFIG_AR71XX_MACH_RB4XX)+= mach-rb4xx.o obj-$(CONFIG_AR71XX_MACH_RB750)+= mach-rb750.o +obj-$(CONFIG_AR71XX_MACH_RW2458N) += mach-rw2458n.o obj-$(CONFIG_AR71XX_MACH_TEW_632BRP) += mach-tew-632brp.o obj-$(CONFIG_AR71XX_MACH_TL_MR3020)+= mach-tl-mr3020.o obj-$(CONFIG_AR71XX_MACH_TL_MR3X20)+= mach-tl-mr3x20.o --- target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h (wersja 29665) +++ target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h (kopia robocza) @@ -49,6 +49,7 @@ AR71XX_MACH_RB_493, /* Mikrotik RouterBOARD 493/493AH */ AR71XX_MACH_RB_493G,/* Mikrotik RouterBOARD 493G */ AR71XX_MACH_RB_750, /* MikroTik RouterBOARD 750 */ + AR71XX_MACH_RW2458N,/* Redwave RW2458N */ AR71XX_MACH_TEW_632BRP, /* TRENDnet TEW-632BRP */ AR71XX_MACH_TL_MR3020, /* TP-LINK TL-MR3020 */ AR71XX_MACH_TL_MR3220, /* TP-LINK TL-MR3220 */ --- target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig (wersja 29665) +++ target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig (kopia robocza) @@ -144,6 +144,17 @@ select AR71XX_DEV_LEDS_GPIO select AR71XX_DEV_USB +config AR71XX_MACH_RW2458N + bool "Redwave RW2458N board support" + select SOC_AR724X + select AR71XX_DEV_M25P80 + select AR71XX_DEV_AP91_PCI if PCI + select AR71XX_DEV_GPIO_BUTTONS + select AR71XX_DEV_LEDS_GPIO + select AR71XX_DEV_PB42_PCI if PCI + select AR71XX_DEV_USB + default n + config AR71XX_MACH_AW_NR580 bool "AzureWave AW-NR580 board support" select SOC_AR71XX --- target/linux/ar71xx/files/arch/mips/ar71xx/mach-rw2458n.c (wersja 0) +++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-rw2458n.c (wersja 0) @@ -0,0 +1,111 @@ +/* + * Redwave RW2458N support + * + * Copyright (C) 2011-2012 Cezary Jackiewicz + * + * 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 "machtype.h" +#include "devices.h" +#include "dev-m25p80.h" +#include "dev-ap91-pci.h" +#include "dev-gpio-buttons.h" +#include "dev-pb42-pci.h" +#include "dev-leds-gpio.h" +#include "dev-usb.h" + +#define RW2458N_GPIO_LED_D31 +#define RW2458N_GPIO_LED_D40 +#define RW2458N_GPIO_LED_D511 +#define RW2458N_GPIO_LED_D67 +#define RW2458N_GPIO_BTN_RESET 12 + +#define RW2458N_KEYS_POLL_INTERVAL 20 /* msecs */ +#define RW2458N_KEYS_DEBOUNCE_INTERVAL (3 * RW2458N_KEYS_POLL_INTERVAL) + +static struct gpio_keys_button rw2458n_gpio_keys[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = RW2458N_KEYS_DEBOUNCE_INTERVAL, + .gpio = RW2458N_GPIO_BTN_RESET, + .active_low = 1, + } +}; + +#define RW2458N_WAN_PHYMASKBIT(4) + +static struct gpio_led rw2458n_leds_gpio[] __initdata = { + { +
Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for Redwave RW2458N
Dnia 2012-01-05, o godz. 22:09:11 Gabor Juhos napisał(a): [...] > Please remove the ar71xx_eth{0,1}_data.* initialization. Those values are > configured automatically for AR7240 since r29103. Yes, indeed. v1.1 Signed-off-by: Cezary Jackiewicz --- --- target/linux/ar71xx/config-2.6.37 (wersja 27297) +++ target/linux/ar71xx/config-2.6.37 (kopia robocza) @@ -33,6 +32,7 @@ CONFIG_AR71XX_MACH_PB92=y CONFIG_AR71XX_MACH_RB4XX=y CONFIG_AR71XX_MACH_RB750=y +CONFIG_AR71XX_MACH_RW2458N=y CONFIG_AR71XX_MACH_TEW_632BRP=y CONFIG_AR71XX_MACH_TL_MR3X20=y CONFIG_AR71XX_MACH_TL_WA901ND=y @@ -687,6 +687,11 @@ $(call Image/Build/Template/$(fs_squash)/$(1),Cameo913x,dir-615-c1,$(dir615c1_cmdline),"AP81-AR9130-RT-070614-02") endef +rw2458n_cmdline=board=RW2458N console=ttyS0,115200 +define Image/Build/Profile/RW2458N + $(call Image/Build/Template/$(fs_64k)/$(1),UBNTXM,rw2458n,$(rw2458n_cmdline),XM,UBNTXM,ar7240) +endef + tew632brp_cmdline=board=TEW-632BRP console=ttyS0,115200 define Image/Build/Profile/TEW632BRP $(call Image/Build/Template/$(fs_squash)/$(1),Cameo913x,tew-632brp,$(tew632brp_cmdline),"AP81-AR9130-RT-070614-00") @@ -950,6 +955,7 @@ $(call Image/Build/Profile/PB42,$(1)) $(call Image/Build/Profile/PB44,$(1)) $(call Image/Build/Profile/PB92,$(1)) + $(call Image/Build/Profile/RW2458N,$(1)) $(call Image/Build/Profile/TEW632BRP,$(1)) $(call Image/Build/Profile/TEW652BRP,$(1)) $(call Image/Build/Profile/TLMR3020,$(1)) --- target/linux/ar71xx/files/arch/mips/ar71xx/Makefile (wersja 29667) +++ target/linux/ar71xx/files/arch/mips/ar71xx/Makefile (kopia robocza) @@ -53,6 +53,7 @@ obj-$(CONFIG_AR71XX_MACH_PB92) += mach-pb92.o obj-$(CONFIG_AR71XX_MACH_RB4XX)+= mach-rb4xx.o obj-$(CONFIG_AR71XX_MACH_RB750)+= mach-rb750.o +obj-$(CONFIG_AR71XX_MACH_RW2458N) += mach-rw2458n.o obj-$(CONFIG_AR71XX_MACH_TEW_632BRP) += mach-tew-632brp.o obj-$(CONFIG_AR71XX_MACH_TL_MR3020)+= mach-tl-mr3020.o obj-$(CONFIG_AR71XX_MACH_TL_MR3X20)+= mach-tl-mr3x20.o --- target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h (wersja 29667) +++ target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h (kopia robocza) @@ -49,6 +49,7 @@ AR71XX_MACH_RB_493, /* Mikrotik RouterBOARD 493/493AH */ AR71XX_MACH_RB_493G,/* Mikrotik RouterBOARD 493G */ AR71XX_MACH_RB_750, /* MikroTik RouterBOARD 750 */ + AR71XX_MACH_RW2458N,/* Redwave RW2458N */ AR71XX_MACH_TEW_632BRP, /* TRENDnet TEW-632BRP */ AR71XX_MACH_TL_MR3020, /* TP-LINK TL-MR3020 */ AR71XX_MACH_TL_MR3220, /* TP-LINK TL-MR3220 */ --- target/linux/ar71xx/files/arch/mips/ar71xx/mach-rw2458n.c (wersja 0) +++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-rw2458n.c (wersja 0) @@ -0,0 +1,101 @@ +/* + * Redwave RW2458N support + * + * Copyright (C) 2011-2012 Cezary Jackiewicz + * + * 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 "machtype.h" +#include "devices.h" +#include "dev-m25p80.h" +#include "dev-ap91-pci.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-usb.h" + +#define RW2458N_GPIO_LED_D31 +#define RW2458N_GPIO_LED_D40 +#define RW2458N_GPIO_LED_D511 +#define RW2458N_GPIO_LED_D67 +#define RW2458N_GPIO_BTN_RESET 12 + +#define RW2458N_KEYS_POLL_INTERVAL 20 /* msecs */ +#define RW2458N_KEYS_DEBOUNCE_INTERVAL (3 * RW2458N_KEYS_POLL_INTERVAL) + +static struct gpio_keys_button rw2458n_gpio_keys[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = RW2458N_KEYS_DEBOUNCE_INTERVAL, + .gpio = RW2458N_GPIO_BTN_RESET, + .active_low = 1, + } +}; + +#define RW2458N_WAN_PHYMASKBIT(4) + +static struct gpio_led rw2458n_leds_gpio[] __initdata = { + { + .name = "rw2458n:green:d3", + .gpio = RW2458N_GPIO_LED_D3, + .active_low = 1, + }, { + .name = "rw2458n:green:d4", + .gpio = RW2458N_GPIO_LED_D4, + .active_low = 1, + }, { + .name = "rw2458n:green:d5", + .gpio = RW2458N_GPIO_LED_D5, + .active_low = 1, + }, { + .name = "rw2458n:green:d6", + .gpio = RW2458N_GPIO_LED_D6, + .active_low = 1, + } +}; + +static const char *rw2458n_part_probes[] = {
[OpenWrt-Devel] [PATCH] new package - aria2
aria2 is a lightweight multi-protocol & multi-source download utility operated in command-line. It supports HTTP/HTTPS, FTP, BitTorrent and Metalink. aria2 has built-in JSON-RPC and XML-RPC interface. Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/net/aria2/Makefile === --- feeds/packages/net/aria2/Makefile (wersja 0) +++ feeds/packages/net/aria2/Makefile (wersja 0) @@ -0,0 +1,57 @@ +# +# Copyright (C) 2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=aria2 +PKG_VERSION:=1.14.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@SF/aria2 +PKG_MD5SUM:=3a23844ab3e1460eb7e6dac9b5dd798c +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/aria2 + SECTION:=net + CATEGORY:=Network + TITLE:=Lightweight download utility + URL:=http://aria2.sourceforge.net/ + DEPENDS:=+libopenssl +zlib +libxml2 +libstdcpp \ + $(INTL_DEPENDS) $(ICONV_DEPENDS) +endef + +define Package/aria2/description + aria2 is a lightweight multi-protocol & multi-source download utility + operated in command-line. It supports HTTP/HTTPS, FTP, BitTorrent and + Metalink. aria2 has built-in JSON-RPC and XML-RPC interface. You can + manipulate aria2 via these interfaces. +endef + +CONFIGURE_ARGS += \ + --without-gnutls \ + --without-libnettle \ + --without-libgmp \ + --without-libgcrypt \ + --with-openssl \ + --without-sqlite3 \ + --with-libxml2 \ + --without-libexpat \ + --without-libcares \ + --with-libz + +CONFIGURE_VARS += \ + ZLIB_CFLAGS="-I$(STAGING_DIR)/usr/include" \ + ZLIB_LIBS="-L$(STAGING_DIR)/usr/lib" + +define Package/aria2/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,aria2)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] usb-modeswitch: update to 1.2.3
-v/-p is now mandatory Signed-off-by: Cezary Jackiewicz Index: feeds/packages/utils/usb-modeswitch/files/modeswitch.hotplug === --- feeds/packages/utils/usb-modeswitch/files/modeswitch.hotplug(wersja 30406) +++ feeds/packages/utils/usb-modeswitch/files/modeswitch.hotplug(kopia robocza) @@ -126,7 +126,7 @@ local usb_dir="/sys/$DEVPATH" [ -f "$usb_dir/idVendor" ] || usb_dir="${usb_dir%/*}" while [ $switching_done -lt 1 -a $switching_tries -le 6 ]; do - $modeswitch -I -D -n -s 30 -c "${configs%% *}" + $modeswitch -v $uVid -p $uPid -I -D -n -s 30 -c "${configs%% *}" if [ $(sanitize "$usb_dir/idProduct") = $uPid ]; then log "switching seemingly failed" else Index: feeds/packages/utils/usb-modeswitch/Makefile === --- feeds/packages/utils/usb-modeswitch/Makefile(wersja 30406) +++ feeds/packages/utils/usb-modeswitch/Makefile(kopia robocza) @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usb-modeswitch -PKG_VERSION:=1.2.0 -PKG_RELEASE:=2 +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch -PKG_MD5SUM:=1932ab96d6e3c5e0a6bdfac863338627 +PKG_MD5SUM:=9b29e8b0d93d7604a9e5efc4696d37a3 include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] usb-modeswitch-data: update to 20120120
Signed-off-by: Cezary Jackiewicz Index: feeds/packages/utils/usb-modeswitch-data/Makefile === --- feeds/packages/utils/usb-modeswitch-data/Makefile (wersja 30406) +++ feeds/packages/utils/usb-modeswitch-data/Makefile (kopia robocza) @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2011 OpenWrt.org +# Copyright (C) 2010-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usb-modeswitch-data -PKG_VERSION:=20111023 +PKG_VERSION:=20120120 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch/ -PKG_MD5SUM:=6e7cb67d0428bda241600b038ba11aeb +PKG_MD5SUM:=c899cc9c71bb35f3ec600b7cd1455c65 include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add usb_modeswitch to preinit
Some 3G modem requires switch from storage to modem before use it as extroot. This enhance block-mount. Tested on Huawei E173/E353 Signed-off-by: Cezary Jackiewicz Index: feeds/packages/utils/usb-modeswitch/files/modeswitch.preinit === --- feeds/packages/utils/usb-modeswitch/files/modeswitch.preinit(wersja 0) +++ feeds/packages/utils/usb-modeswitch/files/modeswitch.preinit(wersja 0) @@ -0,0 +1,17 @@ +#!/bin/sh + +usb_modeswitch () { + DEV=$(awk -F[=\ ] '/P:/ {print $4":"$6}' /proc/bus/usb/devices) + for i in $DEV; do + P="/etc/usb_modeswitch.d/$i" + if [ -f "$P" ]; then + VEN=${i:0:4} + PRO=${i:5} + /usr/bin/usb_modeswitch -v $VEN -p $PRO -c "$P" + fi + done + + blkid > /dev/null 2>&1 +} + +boot_hook_add preinit_mount_root usb_modeswitch Index: feeds/packages/utils/usb-modeswitch/Makefile === --- feeds/packages/utils/usb-modeswitch/Makefile(wersja 30909) +++ feeds/packages/utils/usb-modeswitch/Makefile(kopia robocza) @@ -9,7 +9,7 @@ PKG_NAME:=usb-modeswitch PKG_VERSION:=1.2.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch @@ -42,6 +42,8 @@ $(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch $(INSTALL_DIR) $(1)/etc/hotplug.d/usb $(INSTALL_DATA) ./files/modeswitch.hotplug $(1)/etc/hotplug.d/usb/20-modeswitch + $(INSTALL_DIR) $(1)/lib/preinit + $(INSTALL_DATA) ./files/modeswitch.preinit $(1)/lib/preinit/49_usb_modeswitch endef $(eval $(call BuildPackage,usb-modeswitch)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add missing gspca video drivers.
Signed-off-by: Cezary Jackiewicz --- Index: package/kernel/modules/video.mk === --- package/kernel/modules/video.mk (wersja 31563) +++ package/kernel/modules/video.mk (kopia robocza) @@ -210,6 +210,21 @@ $(eval $(call KernelPackage,video-gspca-conex)) +define KernelPackage/video-gspca-cpia1 + TITLE:=cpia1 webcam support + KCONFIG:=CONFIG_USB_GSPCA_CPIA1 + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_cpia1.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_cpia1) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-cpia1/description + The CPiA (1) USB Camera driver (cpia1) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-cpia1)) + + define KernelPackage/video-gspca-etoms TITLE:=etoms webcam support KCONFIG:=CONFIG_USB_GSPCA_ETOMS @@ -390,6 +405,21 @@ $(eval $(call KernelPackage,video-gspca-sonixj)) +define KernelPackage/video-gspca-spca1528 + TITLE:=spca1528 webcam support + KCONFIG:=CONFIG_USB_GSPCA_SPCA1528 + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_spca1528.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_spca1528) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-spca1528/description + The SPCA1528 USB Camera Driver (spca1528) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-spca1528)) + + define KernelPackage/video-gspca-spca500 TITLE:=spca500 webcam support KCONFIG:=CONFIG_USB_GSPCA_SPCA500 @@ -510,6 +540,21 @@ $(eval $(call KernelPackage,video-gspca-sq905c)) +define KernelPackage/video-gspca-sq930x + TITLE:=sq930x webcam support + KCONFIG:=CONFIG_USB_GSPCA_SQ930X + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_sq930x.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_sq930x) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-sq930x/description + The SQ Technologies SQ930x based USB Camera Driver (sq930x) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-sq930x)) + + define KernelPackage/video-gspca-stk014 TITLE:=stk014 webcam support KCONFIG:=CONFIG_USB_GSPCA_STK014 @@ -525,6 +570,21 @@ $(eval $(call KernelPackage,video-gspca-stk014)) +define KernelPackage/video-gspca-stv0680 + TITLE:=stv0680 webcam support + KCONFIG:=CONFIG_USB_GSPCA_STV0680 + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_stv0680.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_stv0680) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-stv0680/description + The STV0680 USB Camera Driver (stv0680) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-stv0680)) + + define KernelPackage/video-gspca-sunplus TITLE:=sunplus webcam support KCONFIG:=CONFIG_USB_GSPCA_SUNPLUS @@ -632,7 +692,6 @@ define KernelPackage/video-gspca-gl860 TITLE:=gl860 webcam support - DEPENDS:=@LINUX_2_6_32 KCONFIG:=CONFIG_USB_GL860 FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gl860/gspca_gl860.ko AUTOLOAD:=$(call AutoLoad,75,gspca_gl860) @@ -648,7 +707,6 @@ define KernelPackage/video-gspca-jeilinj TITLE:=jeilinj webcam support - DEPENDS:=@LINUX_2_6_32 KCONFIG:=CONFIG_USB_GSPCA_JEILINJ FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_jeilinj.ko AUTOLOAD:=$(call AutoLoad,75,gspca_jeilinj) @@ -660,3 +718,152 @@ endef $(eval $(call KernelPackage,video-gspca-jeilinj)) + + +define KernelPackage/video-gspca-jl2005bcd + TITLE:=jl2005bcd webcam support + KCONFIG:=CONFIG_USB_GSPCA_JL2005BCD + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_jl2005bcd.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_jl2005bcd) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-jl2005bcd/description + The JL2005B/C/D USB Camera Driver (jl2005bcd) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-jl2005bcd)) + + +define KernelPackage/video-gspca-kinect + TITLE:=kinect webcam support + KCONFIG:=CONFIG_USB_GSPCA_KINECT + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_kinect.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_kinect) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-kinect/description + The Kinect Sensor Device USB Camera Driver (kinect) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-kinect)) + + +define KernelPackage/video-gspca-konica + TITLE:=konica webcam support + KCONFIG:=CONFIG_USB_GSPCA_KONICA + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_konica.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_konica) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-konica/description + The Konica USB Camera Driver (konica) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-konica)) + +define KernelPackage/video-gspca-nw80x + TITLE:=nw80x webcam support + KCONFIG:=CONFIG_USB_GSPCA_NW80X + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_nw80x.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_nw80x) + $(call AddDepends/video-gspca) +endef
[OpenWrt-Devel] [PATCH] Add support for TP-Link TL-MR3040
Support for TP-Link TL-MR3040. Power LED not working - always on red, after start should be green. Signed-off-by: Cezary Jackiewicz --- --- target/linux/ar71xx/image/Makefile +++ target/linux/ar71xx/image/Makefile @@ -877,6 +877,11 @@ $(call Image/Build/Template/$(fs_64k)/$(1),TPLINK-LZMA,tl-mr3020-v1,$(tlmr3020_cmdline),0x3021,1,4Mlzma) endef +tlmr3040_cmdline=board=TL-MR11U console=ttyATH0,115200 +define Image/Build/Profile/TLMR3040 + $(call Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,tl-mr3040-v1,$(tlmr3040_cmdline),0x3041,1,4Mlzma) +endef + tlmr3220_cmdline=board=TL-MR3220 console=ttyS0,115200 define Image/Build/Profile/TLMR3220 $(call Image/Build/Template/$(fs_64kraw)/$(1),TPLINK,tl-mr3220-v1,$(tlmr3220_cmdline),0x3221,1,4M) @@ -1081,6 +1086,7 @@ $(call Image/Build/Profile/TEW673GRU,$(1)) $(call Image/Build/Profile/TLMR11U,$(1)) $(call Image/Build/Profile/TLMR3020,$(1)) + $(call Image/Build/Profile/TLMR3040,$(1)) $(call Image/Build/Profile/TLMR3220,$(1)) $(call Image/Build/Profile/TLMR3420,$(1)) $(call Image/Build/Profile/TLWA701,$(1)) --- target/linux/ar71xx/base-files/lib/ar71xx.sh +++ target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -112,6 +112,9 @@ "302000"*) model="TP-Link TL-MR3020" ;; + "304000"*) + model="TP-Link TL-MR3040" + ;; "322000"*) model="TP-Link TL-MR3220" ;; --- target/linux/ar71xx/generic/profiles/tp-link.mk +++ target/linux/ar71xx/generic/profiles/tp-link.mk @@ -27,6 +27,17 @@ $(eval $(call Profile,TLMR3020)) +define Profile/TLMR3040 + NAME:=TP-LINK TL-MR3040 + PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev +endef + +define Profile/TLMR3040/Description + Package set optimized for the TP-LINK TL-MR3040. +endef +$(eval $(call Profile,TLMR3040)) + + define Profile/TLMR3220 NAME:=TP-LINK TL-MR3220 PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: nexx wt3020: fix status led
For Nexx WT3020 board_name is wt3020, not nexx-wt3020 root@OpenWrt:~# . /lib/ramips.sh; echo $(ramips_board_name) wt3020 Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 39a0868..50b6ff2 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -190,7 +190,7 @@ get_status_led() { nexx-wt1520) status_led="nexx-wt1520:white:power" ;; - nexx-wt3020) + wt3020) status_led="nexx:blue:power" ;; mzk-w300nh2) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] comgt: add hso support
Add HSO support to comgt. This is work of Kyklas (see https://dev.openwrt.org/ticket/6995), tested with Option GTM382. Signed-off-by: Cezary Jackiewicz --- diff --git a/package/network/utils/comgt/Makefile b/package/network/utils/comgt/Makefile index 8fcf54e..1e12b68 100644 --- a/package/network/utils/comgt/Makefile +++ b/package/network/utils/comgt/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=comgt PKG_VERSION:=0.32 -PKG_RELEASE:=25 +PKG_RELEASE:=26 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/comgt @@ -47,6 +47,12 @@ $(call Package/comgt/Default) DEPENDS:=+comgt endef +define Package/comgt-hso +$(call Package/comgt/Default) + TITLE+=HSO Support + DEPENDS:=+comgt +kmod-usb-net +kmod-usb-net-hso +endef + define Package/comgt/description comgt is a scripting language interpreter useful for establishing communications on serial lines and through PCMCIA modems as well as GPRS @@ -101,6 +107,17 @@ define Package/comgt-ncm/install $(INSTALL_BIN) ./files/ncm.sh $(1)/lib/netifd/proto/ncm.sh endef +define Package/comgt-hso/install +$(INSTALL_DIR) $(1)/etc/chatscripts +$(INSTALL_DATA) ./files/hso.chat $(1)/etc/chatscripts/hso.chat +$(INSTALL_DATA) ./files/hsohup.chat $(1)/etc/chatscripts/hsohup.chat +$(INSTALL_DIR) $(1)/etc/gcom +$(INSTALL_DATA) ./files/setuser.gcom $(1)/etc/gcom/setuser.gcom +$(INSTALL_DIR) $(1)/lib/netifd/proto +$(INSTALL_BIN) ./files/hso.sh $(1)/lib/netifd/proto/hso.sh +endef + $(eval $(call BuildPackage,comgt)) $(eval $(call BuildPackage,comgt-directip)) $(eval $(call BuildPackage,comgt-ncm)) +$(eval $(call BuildPackage,comgt-hso)) diff --git a/package/network/utils/comgt/files/hso.chat b/package/network/utils/comgt/files/hso.chat new file mode 100644 index 000..cb87d5a --- /dev/null +++ b/package/network/utils/comgt/files/hso.chat @@ -0,0 +1,13 @@ +ABORT BUSY +ABORT 'NO CARRIER' +ABORT ERROR +REPORT CONNECT +TIMEOUT 10 +"" "ATZ" +OK 'AT+CGDCONT=2,"IP","$USE_APN"' +SAY"Service Mode $MODE" +TIMEOUT 30 +OK "AT_OPSYS=$MODE,2" +OK "AT_OWANCALL=2,1,0" +OK "\d\d\d\d\d\dAT_OWANDATA=2" +OK "" diff --git a/package/network/utils/comgt/files/hso.sh b/package/network/utils/comgt/files/hso.sh new file mode 100644 index 000..5f10420 --- /dev/null +++ b/package/network/utils/comgt/files/hso.sh @@ -0,0 +1,135 @@ +#!/bin/sh +INCLUDE_ONLY=1 + +. ../netifd-proto.sh +init_proto "$@" + +proto_hso_init_config() { + + no_device=1 + available=1 + + proto_config_add_string "device" + proto_config_add_string "maxwait" + proto_config_add_string "apn" + proto_config_add_string "pincode" + proto_config_add_int "mtu" + proto_config_add_string "username" + proto_config_add_string "password" + proto_config_add_string "ifname" +} + + +proto_hso_setup() { + + local iface="$1" + local chat="/etc/chatscripts/hso.chat" + + json_get_var device device + json_get_var maxwait maxwait + maxwait=${maxwait:-20} + while [ ! -e "$device" -a $maxwait -gt 0 ];do # wait for driver loading to catch up + maxwait=$(($maxwait - 1)) + sleep 1 + done + + json_get_var apn apn + json_get_var pincode pincode + json_get_var mtu mtu + json_get_var service service + json_get_var username username + json_get_var password password + json_get_type ifnametype ifname + + if [ "$ifnametype" = "array" ] + then + json_select ifname + json_get_var ifname 1 + json_select ".." + fi + + if [ "$ifnametype" = "string" ] + then + json_get_var ifname ifname + fi + + # set pin if configured + if [ ! -z "$pincode" ] + then + PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { + echo "$iface (hso): Failed to set the PIN code." + proto_notify_error "$iface" PIN_FAILED + return 1 + } + fi + + # set username and password if configured + if [ -n "$username" -a -n "$password" ] + then + USER="$username" PASS="$password" gcom -d "$device" -s /etc/gcom/setuser.gcom || { + echo "$iface (hso): Failed to set username and password." + proto_notify_error "$iface" AUTH_FAILED + return 1 + } + fi + + case "$service" in +
Re: [OpenWrt-Devel] [PATCH] ar71xx: detect GL.iNet model
Dnia 2015-03-16, o godz. 18:35:55 Matthias Schiffer napisał(a): > There are two versions of the GL.iNet, the 6408A and the 6416A. The only > difference is the flash size. > > Signed-off-by: Matthias Schiffer > --- > target/linux/ar71xx/base-files/lib/ar71xx.sh | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh > b/target/linux/ar71xx/base-files/lib/ar71xx.sh > index 3116305..db5e983 100755 > --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh > +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh > @@ -286,6 +286,19 @@ tplink_pharos_board_detect() { > [ -n "$model" ] && AR71XX_MODEL="$model v$2" > } > > +gl_inet_board_detect() { > + local size="$(mtd_get_part_size 'firmware')" > + > + case "$size" in > + 8192000) > + AR71XX_MODEL='GL-iNet 6408A v1' > + ;; > + 16580608) > + AR71XX_MODEL='GL-iNet 6416A v1' > + ;; > + esac Hi, GL-iNet 64xxA v1? Why not just GL-iNet 64xxA according to http://www.gl-inet.com/w/?page_id=308 ? -- Pozdrawiam, Cezary Jackiewicz ___ 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] [packages] add support for Huawei NCM modems
Dnia 2015-03-28, o godz. 17:28:50 Maarten Deprez napisał(a): > Adds support for Huawei NCM modems, which expect ndisdup commands at a > separate cdc-wdm device, supported by kmod-usb-net-huawei-cdc-ncm. > This builds on the work of Oskari Rauta at > https://sites.google.com/site/variousopenwrt/huawei-e3267 . In > particular, i added a lot of resilience. It has provided me with a > stable connection on Huawei E303 and E398 modems during the last few > months. [...] > +$(eval $(call BuildPackage,huawei-ncm)) > diff --git a/net/huawei-ncm/files/lib/netifd/proto/huawei_ncm.sh Why you do that? ncm from gcom-ncm is enough, you do not have to do specifically the new protocol. Just set /dev/cdc-wdm0 as device. Tested with E3131 in huawei/ncm mode. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WR710N v2
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB). Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 8766756..fe269f4 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -1476,7 +1476,8 @@ $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR3420V2,tl-mr3420-v2,TL-MR3420 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA701NV2,tl-wa701nd-v2,TL-WA701ND-v2,ttyATH0,115200,0x07010002,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWA7210NV2,tl-wa7210n-v2,TL-WA7210N-v2,ttyATH0,115200,0x7212,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma)) -$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV1,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV2,tl-wr710n-v2,TL-WR710N,ttyATH0,115200,0x0712,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR720NV3,tl-wr720n-v3,TL-WR720N-v3,ttyATH0,115200,0x07200103,1,4Mlzma)) $(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)) @@ -1562,6 +1563,7 @@ $(eval $(call MultiProfile,TLWA801,TLWA801NV1 TLWA801NV2)) $(eval $(call MultiProfile,TLWA830,TLWA830RV1 TLWA830RV2)) $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2 TLWA901NV3)) $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1)) +$(eval $(call MultiProfile,TLWR710,TLWR710NV1 TLWR710NV2)) $(eval $(call MultiProfile,TLWR720,TLWR720NV3)) $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4)) $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH V2] ar71xx: add TP-LINK TL-WR710N v2
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB). Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 49c3ca0..ad2f8c1 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -372,11 +372,19 @@ endef define Device/tl-wr710n-v1 $(Device/tplink-8mlzma) BOARDNAME := TL-WR710N -DEVICE_PROFILE := TLWR710 +DEVICE_PROFILE := TLWR710NV1 TPLINK_HWID := 0x0711 CONSOLE := ttyATH0,115200 endef +define Device/tl-wr710n-v2 +$(Device/tplink-4mlzma) +BOARDNAME := TL-WR710N +DEVICE_PROFILE := TLWR710NV2 +TPLINK_HWID := 0x0712 +CONSOLE := ttyATH0,115200 +endef + define Device/tl-wr720n-v3 $(Device/tplink-4mlzma) BOARDNAME := TL-WR720N-v3 @@ -529,7 +537,7 @@ define Device/oolite CONSOLE := ttyATH0,115200 endef -TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2 el-m150 el-mini gl-inet-6408A-v1 gl-inet-6416A-v1 mc-mac1200r tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1 tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v2 tl-mr3420-v2 tl-wa701nd-v2 tl-wa7210n-v2 tl-wr703n-v1 tl-wr710n-v1 tl-wr720n-v3 tl-wr740n-v4 tl-wr741nd-v4 tl-wr743nd-v2 tl-wa750re-v1 tl-wr841n-v8 tl-wa830re-v2 tl-wr841n-v9 tl-wr847n-v8 tl-wr842n-v2 tl-wr843nd-v1 tl-wa801nd-v2 tl-wa850re-v1 tl-wa860re-v1 tl-wa901nd-v3 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr1041n-v2 tl-wr2543-v1 tl-wdr4900-v2 smart-300 oolite +TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2 el-m150 el-mini gl-inet-6408A-v1 gl-inet-6416A-v1 mc-mac1200r tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1 tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v2 tl-mr3420-v2 tl-wa701nd-v2 tl-wa7210n-v2 tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr720n-v3 tl-wr740n-v4 tl-wr741nd-v4 tl-wr743nd-v2 tl-wa750re-v1 tl-wr841n-v8 tl-wa830re-v2 tl-wr841n-v9 tl-wr847n-v8 tl-wr842n-v2 tl-wr843nd-v1 tl-wa801nd-v2 tl-wa850re-v1 tl-wa860re-v1 tl-wa901nd-v3 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr1041n-v2 tl-wr2543-v1 tl-wdr4900-v2 smart-300 oolite rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) @@ -1858,6 +1866,7 @@ $(eval $(call MultiProfile,TLWA801,TLWA801NV1 TLWA801NV2)) $(eval $(call MultiProfile,TLWA830,TLWA830RV1 TLWA830RV2)) $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2 TLWA901NV3)) $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1)) +$(eval $(call MultiProfile,TLWR710,TLWR710NV1 TLWR710NV2)) $(eval $(call MultiProfile,TLWR720,TLWR720NV3)) $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4)) $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm63xx: Add Huawei HG655b support
Dnia 2015-05-09, o godz. 12:37:30 dani napisał(a): > This patch adds support for the Huawei HG655b. > > Nothing much special in this router, it's just another BCM6368 with > a Ralink RT3062 wifi chip and the calibration data embedded in the > main flash chip at offset 0x7c. There is also configuration data > used by the OEM firmware before the cal_data partition, this area is > protected by the board_data partition in this patch. > > Signed-off-by: Daniel Gonzalez > diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh > b/target/linux/brcm63xx/base-files/etc/diag.sh > index 03d98b9..c330674 100644 > --- a/target/linux/brcm63xx/base-files/etc/diag.sh > +++ b/target/linux/brcm63xx/base-files/etc/diag.sh > @@ -89,6 +89,9 @@ set_state() { > hg520) > status_led="HW520:green:net" > ;; > + hg655b) > + status_led="HW65x:green:power" > + ;; Hi, please use generic led name, like "huawei:green:power". -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] luci-proto-wwan minimal support
Dnia 2015-04-22, o godz. 15:59:37 Aleksandr Kolesnik napisał(a): > Signed-off-by: Aleksandr Kolesnik Hi, there is chance to to include this into 15.05? -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] ar71xx: fix mac offset in firmware file
In new firmware-4.bin (for ath10k) mac offset is 0x114 (276), not 0x118 (280). This also closes #19751, bug introduced in #45624 Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k index 88ca1e9..4511162 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k @@ -29,7 +29,7 @@ do_patch_ath10k_firmware() { cp $firmware_file /tmp/ath10k-firmware.bin macaddr_2bin $mac | dd of=/tmp/ath10k-firmware.bin \ - conv=notrunc bs=1 seek=280 count=6 + conv=notrunc bs=1 seek=276 count=6 ;; esac -- Pozdrawiam, Cezary Jackiewicz ___ 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 TRENDnet TEW-823DRU
This is new router from TRENDnet: - cpu: QCA9558 @720MHz - flash: 16MB - ram: 256MB - 4+1 RJ45 100/1000Mbps - wifi: QCA9558 (bgn) and QCA9880-BR4A (ac) - 1x USB 2.0 Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 0553251..fe3997d 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -206,7 +206,8 @@ get_status_led() { status_led="trendnet:blue:wps" ;; tew-712br|\ - tew-732br) + tew-732br|\ + tew-823dru) status_led="trendnet:green:power" ;; tl-mr3020) 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 41b..8466a28 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -283,6 +283,10 @@ tew-732br) ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1" ;; +tew-823dru) + ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0" + ;; + tl-mr11u | \ tl-mr3020 | \ tl-mr3040 | \ 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 f5c6865..907e6aa 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -46,6 +46,7 @@ ap136-010) ap136-020 |\ ap135-020 |\ +tew-823dru |\ tl-wr1043nd-v2 |\ wzr-450hp2) ucidef_set_interfaces_lan_wan "eth1" "eth0" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index b13be1e..21c599a 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -658,6 +658,9 @@ ar71xx_board_detect() { *TEW-732BR) name="tew-732br" ;; + *TEW-823DRU) + name="tew-823dru" + ;; *"TL-WR1041N v2") name="tl-wr1041n-v2" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k index 88ca1e9..cda76dd 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k @@ -23,7 +23,7 @@ do_patch_ath10k_firmware() { # some boards have bogus mac in otp, patch the default mac in the firmware case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) local mac mac=$(mtd_get_mac_ascii nvram wlan1_mac) @@ -42,7 +42,7 @@ do_patch_ath10k_firmware() { check_patch_ath10k_firmware() { case $(ar71xx_board_name) in - dgl-5500-a1) + dgl-5500-a1 | tew-823dru) do_patch_ath10k_firmware ;; esac diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 3dbd91c..3916fe1 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -219,6 +219,7 @@ platform_check_image() { tew-632brp | \ tew-712br | \ tew-732br | \ + tew-823dru | \ wrt400n | \ airgateway | \ airrouter | \ diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18 index 543b77e..9bd53b5 100644 --- a/target/linux/ar71xx/config-3.18 +++ b/target/linux/ar71xx/config-3.18 @@ -99,6 +99,7 @@ CONFIG_ATH79_MACH_TEW_632BRP=y CONFIG_ATH79_MACH_TEW_673GRU=y CONFIG_ATH79_MACH_TEW_712BR=y CONFIG_ATH79_MACH_TEW_732BR=y +CONFIG_ATH79_MACH_TEW_823DRU=y CONFIG_ATH79_MACH_TL_MR11U=y CONFIG_ATH79_MACH_TL_MR13U=y CONFIG_ATH79_MACH_TL_MR3020=y diff --git a/target/linux/ar71xx/generic/profiles/trendnet.mk b/target/linux/ar71xx/generic/profiles/trendnet.mk index 42d05b6..6102e04 100644 --- a/target/linux/ar71xx/generic/profiles/trendnet.mk +++ b/target/linux/ar71xx/generic/profiles/trendnet.mk @@ -60,3 +60,15 @@ define Profile/TEW732BR/Description endef $(eval $(call Profile,TEW732BR)) + + +define Profile/TEW823DRU + NAME:=TRENDNet TEW-823DRU + PACKAGES:=kmod-usb-core kmod-usb2 kmod-ath10k +endef + +define Profile/TEW823DRU/Description + Package set optimized for the TRENDNet TEW-823DRU. +endef + +$(eval $(call Profile,TEW823DRU)) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 580a640..10f30ec 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/
Re: [OpenWrt-Devel] Huawei 3372 NCM support on CC not working
Dnia 2015-07-01, o godz. 23:15:39 Matti Laakso napisał(a): > According to Enrico Huawei's own driver works also with E3372, but I > remember I was not able to compile it for a relatively recent kernel. See https://github.com/obsy/packages/tree/master/huawei-hw-cdc It is huawei version, works with E3372s-153 and CC-rc2 in ncm mode (see also http://eko.one.pl/forum/viewtopic.php?id=11470 - in polish) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] brcm63xx: HG553 buttons support
This patch adds buttons support for Huawei EchoLife HG553. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/brcm63xx/dts/hg553.dts b/target/linux/brcm63xx/dts/hg553.dts index 140e2de..fa22403 100644 --- a/target/linux/brcm63xx/dts/hg553.dts +++ b/target/linux/brcm63xx/dts/hg553.dts @@ -6,6 +6,25 @@ model = "Huawei EchoLife HG553"; compatible = "huawei,hg553", "brcm,bcm6358"; + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 9 1>; + linux,code = <247>; + }; + reset { + label = "reset"; + gpios = <&gpio1 5 1>; + linux,code = <0x198>; + }; + }; + gpio-leds { compatible = "gpio-leds"; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH V2] brcm63xx: HG553 buttons support
This patch adds buttons support for Huawei EchoLife HG553. Changes: - add empty line... - change codes to hexadecimal Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/brcm63xx/dts/hg553.dts b/target/linux/brcm63xx/dts/hg553.dts index 140e2de..4d79824 100644 --- a/target/linux/brcm63xx/dts/hg553.dts +++ b/target/linux/brcm63xx/dts/hg553.dts @@ -6,6 +6,26 @@ model = "Huawei EchoLife HG553"; compatible = "huawei,hg553", "brcm,bcm6358"; + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 9 1>; + linux,code = <0xf7>; + }; + + reset { + label = "reset"; + gpios = <&gpio1 5 1>; + linux,code = <0x198>; + }; + }; + gpio-leds { compatible = "gpio-leds"; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] hostapd: add RADIUS mac authentication
Allow to use radius server to mac authentication. Config section: .. option 'macfilter' 'radius' option 'auth_server' '192.168.1.100' option 'auth_secret' 'RadiusPassword' option 'auth_port' '1812' Tested with freeradius and Coova/radproxy. Signed-off-by: Cezary Jackiewicz --- diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index a3ffd93..bca9631 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -419,6 +419,22 @@ hostapd_set_bss_options() { append bss_conf "macaddr_acl=0" "$N" append bss_conf "deny_mac_file=$_macfile" "$N" ;; + radius) + append bss_conf "macaddr_acl=2" "$N" + + json_get_vars auth_server auth_secret auth_port + + # legacy compatibility + [ -n "$auth_server" ] || json_get_var auth_server server + [ -n "$auth_port" ] || json_get_var auth_port port + [ -n "$auth_secret" ] || json_get_var auth_secret key + + set_default auth_port 1812 + + append bss_conf "auth_server_addr=$auth_server" "$N" + append bss_conf "auth_server_port=$auth_port" "$N" + append bss_conf "auth_server_shared_secret=$auth_secret" "$N" + ;; *) _macfile="" ;; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] rw2458n - fix flash parts
See #12338. Redwave rw2458 has uboot, not redboot. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c === --- target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(wersja 33823) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(kopia robocza) @@ -60,22 +60,13 @@ } }; -static const char *rw2458n_part_probes[] = { -"RedBoot", -NULL, -}; - -static struct flash_platform_data rw2458n_flash_data = { -.part_probes= rw2458n_part_probes, -}; - static void __init rw2458n_setup(void) { u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff); u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff + ETH_ALEN); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); - ath79_register_m25p80(&rw2458n_flash_data); + ath79_register_m25p80(NULL); ath79_register_mdio(0, ~RW2458N_WAN_PHYMASK); -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] block-mount: do a "lazy" umount when the device is unplugged
Dnia 2012-11-17, o godz. 23:20:35 Liu Qishuai napisał(a): > If the mounted directory is in use and the device is unplugged, umount > will fail. The bug #12056 will occur again in this situation. > This patch resolves the problem by using the "lazy" parameter of > umount and also rmdir the auto-created mount point. Maybe we should mount by default in /tmp, not /mnt? This prevents unnecessary write in flash. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Initial support for AirLive AIR3GII
AirLive AIR3GII is Ralink RT5350F based device with 100Mbps switch, USB port, 4MB flash and 32MB ram. Works: ethernet (LAN & WAN), wps button, led, USB, sysupgrade Does not work: wifi (chip RT5350), reset button [ 13.39] phy0 -> rt2800_init_eeprom: Error - Invalid RT chipset 0x5350 detected. [ 13.40] phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device. Other problem: LAN leds is reverse (lights when not cable connected and vice versa) Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ramips/image/Makefile === --- target/linux/ramips/image/Makefile (wersja 34296) +++ target/linux/ramips/image/Makefile (kopia robocza) @@ -436,6 +436,10 @@ $(call Image/Build/Template/$(fs_squash)/$(1),3G6200N,3g-6200n,3G-6200N,ttyS1,57600,phys) endef +define Image/Build/Profile/AIR3GII + $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,air3gii,AIR3GII,ttyS1,57600,spi) +endef + define Image/Build/Profile/ALL02393G $(call Image/Build/Template/$(fs_squash)/$(1),UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys) endef @@ -591,6 +595,7 @@ ifeq ($(CONFIG_RALINK_RT305X),y) define Image/Build/Profile/Default $(call Image/Build/Profile/3G6200N,$(1)) + $(call Image/Build/Profile/AIR3GII,$(1)) $(call Image/Build/Profile/ALL02393G,$(1)) $(call Image/Build/Profile/ALL0256N,$(1)) $(call Image/Build/Profile/ALL5002,$(1)) Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (wersja 34296) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (kopia robocza) @@ -17,6 +17,11 @@ select RALINK_DEV_GPIO_BUTTONS select RALINK_DEV_GPIO_LEDS +config RT305X_MACH_AIR3GII + bool "AirLive Air3GII board support" + select RALINK_DEV_GPIO_BUTTONS + select RALINK_DEV_GPIO_LEDS + config RT305X_MACH_ALL0256N bool "Allnet ALL0256N support" select RALINK_DEV_GPIO_BUTTONS Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c === --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c(wersja 0) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c(kopia robocza) @@ -0,0 +1,94 @@ +/* + * AirLive Air3GII board support + * + * Copyright (C) 2012 Cezary Jackiewicz + * + * 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 +#include +#include +#include +#include + +#include "devices.h" + +#define AIR3GII_GPIO_BUTTON_WPS 7 + +#define AIR3GII_GPIO_LED_WLAN 8 +#define AIR3GII_GPIO_LED_MOBILE 9 + +#define AIR3GII_KEYS_POLL_INTERVAL 20 +#define AIR3GII_KEYS_DEBOUNCE_INTERVAL (3 * AIR3GII_KEYS_POLL_INTERVAL) + +const struct flash_platform_data air3gii_flash = { + .type = "en25q32b", +}; + +struct spi_board_info air3gii_spi_slave_info[] __initdata = { + { + .modalias = "m25p80", + .platform_data = &air3gii_flash, + .irq= -1, + .max_speed_hz = 1000, + .bus_num= 0, + .chip_select= 0, + }, +}; + +static struct gpio_led air3gii_leds_gpio[] __initdata = { + { + .name = "airlive:green:wlan", + .gpio = AIR3GII_GPIO_LED_WLAN, + .active_low = 0, + }, { + .name = "airlive:green:mobile", + .gpio = AIR3GII_GPIO_LED_MOBILE, + .active_low = 1, + } +}; + +static struct gpio_keys_button air3gii_gpio_buttons[] __initdata = { + { + .desc = "wps", + .type = EV_KEY, + .code = KEY_WPS_BUTTON, + .debounce_interval = AIR3GII_KEYS_DEBOUNCE_INTERVAL, + .gpio = AIR3GII_GPIO_BUTTON_WPS, + .active_low = 1, + } +}; + +static void __init air3gii_init(void) +{ + rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT); + + rt305x_register_spi(air3gii_spi_slave_info, + ARRAY_SIZE(air3gii_spi_slave_info)); + + rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_W; + rt305x_register_ethernet(); + + ramips_register_gpio_leds(-1, ARRAY_SIZE(air3gii_leds_gpio), + air3gii_leds_gpio); + + ramips_register_gpio_buttons(
[OpenWrt-Devel] [PATCH] Update libpcap to 1.3.0
This patch adds QMI WWAN driver for Qualcomm MSM based 3G and LTE modems. Signed-off-by: Cezary Jackiewicz --- Index: package/kernel/modules/usb.mk === --- package/kernel/modules/usb.mk (wersja 34497) +++ package/kernel/modules/usb.mk (kopia robocza) @@ -148,6 +148,22 @@ $(eval $(call KernelPackage,usb-acm)) +define KernelPackage/usb-wdm + TITLE:=USB Wireless Device Management + KCONFIG:=CONFIG_USB_WDM + FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko + AUTOLOAD:=$(call AutoLoad,60,cdc-wdm) +$(call AddDepends/usb) +$(call AddDepends/usb-net) +endef + +define KernelPackage/usb-wdm/description + USB Wireless Device Management support +endef + +$(eval $(call KernelPackage,usb-wdm)) + + define KernelPackage/usb-audio TITLE:=Support for USB audio devices KCONFIG:= \ @@ -759,6 +775,21 @@ $(eval $(call KernelPackage,usb-net-cdc-ether)) +define KernelPackage/usb-net-qmi-wwan + TITLE:=QMI WWAN driver + KCONFIG:=CONFIG_USB_NET_QMI_WWAN + FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko + AUTOLOAD:=$(call AutoLoad,61,qmi_wwan) + $(call AddDepends/usb-net,+kmod-usb-wdm) +endef + +define KernelPackage/usb-net-qmi-wwan/description + QMI WWAN driver for Qualcomm MSM based 3G and LTE modems +endef + +$(eval $(call KernelPackage,usb-net-qmi-wwan)) + + define KernelPackage/usb-net-rndis TITLE:=Support for RNDIS connections KCONFIG:=CONFIG_USB_NET_RNDIS_HOST -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] libqmi - helper library and utils to talk to QMI enabled modems
Based on work of Aleksander Morgado. Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/libs/libqmi/Makefile === --- feeds/packages/libs/libqmi/Makefile (wersja 0) +++ feeds/packages/libs/libqmi/Makefile (kopia robocza) @@ -0,0 +1,53 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libqmi +PKG_VERSION:=1.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=libqmi-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNOME/libqmi/1.0/ +PKG_MD5SUM:=1e00d300616efc1bf8d3e8e541a69f73 + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/libqmi + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+glib2 +zlib +kmod-usb-net-qmi-wwan + TITLE:=Helper library and utils to talk to QMI enabled modems +endef + +define Package/libqmi/description + Helper library and utils to talk to QMI enabled modems +endef + +CONFIGURE_VARS+= CFLAGS="CFLAGS -DMESSAGE_ENABLE_TRACE" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/libqmi-qmi \ + $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \ + $(1)/usr/lib/ +endef + +define Package/libqmi/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.so* \ + $(1)/usr/lib/ + + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,libqmi)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] QMI WWAN driver for Qualcomm MSM based 3G and LTE modems (Was: Re: [PATCH] Update libpcap to 1.3.0)
Sorry, wrong title - should be "QMI WWAN driver for Qualcomm MSM based 3G and LTE modems" -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] aria2 - update do 1.16.0
This patch updates aria2 to version 1.16.0 Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/net/aria2/Makefile === --- feeds/packages/net/aria2/Makefile (wersja 34498) +++ feeds/packages/net/aria2/Makefile (kopia robocza) @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=aria2 -PKG_VERSION:=1.15.1 +PKG_VERSION:=1.16.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/aria2 -PKG_MD5SUM:=a749a1f7cfe03a7518630d2310267c42 +PKG_MD5SUM:=0a8e1dbfe1725a02de8271589d622739 PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] usb-modeswitch
This patch updates usb-modeswitch to version 1.2.5 Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/utils/usb-modeswitch/Makefile === --- feeds/packages/utils/usb-modeswitch/Makefile(wersja 34498) +++ feeds/packages/utils/usb-modeswitch/Makefile(kopia robocza) @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usb-modeswitch -PKG_VERSION:=1.2.4 +PKG_VERSION:=1.2.5 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch -PKG_MD5SUM:=dbd4ce7966d7b4a5a0604a8280f7164d +PKG_MD5SUM:=c393603908eceab95444c5bde790f6f0 include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] usb-modeswitch-data
This patch updates usb-modeswitch-data to version 20121109 Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/utils/usb-modeswitch-data/Makefile === --- feeds/packages/utils/usb-modeswitch-data/Makefile (wersja 34498) +++ feeds/packages/utils/usb-modeswitch-data/Makefile (kopia robocza) @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usb-modeswitch-data -PKG_VERSION:=20120815 +PKG_VERSION:=20121109 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch/ -PKG_MD5SUM:=12d7de3210e45ad6f48791d12bbdbf61 +PKG_MD5SUM:=a7d23a03157871013a0d708ab2b1b6df include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: TP-LINK also has a family TL-WDR
Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 34566) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza) @@ -447,7 +447,7 @@ esac case "$machine" in - *TL-WR* | *TL-WA* | *TL-MR*) + *TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*) tplink_board_detect "$machine" ;; esac -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add TL-LINK TL-MR3220 v2
Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/base-files/etc/uci-defaults/leds === --- target/linux/ar71xx/base-files/etc/uci-defaults/leds(revision 34763) +++ target/linux/ar71xx/base-files/etc/uci-defaults/leds(working copy) @@ -118,6 +118,16 @@ ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" ;; +tl-mr3220-v2) + ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1" + 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" + ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" + ;; + tl-wa901nd) ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 34763) +++ target/linux/ar71xx/base-files/etc/diag.sh (working copy) @@ -126,6 +126,7 @@ status_led="tp-link:green:wps" ;; tl-mr3220 | \ + tl-mr3220-v2 | \ tl-mr3420 | \ tl-wa901nd | \ tl-wa901nd-v2 | \ Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh === --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 34763) +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy) @@ -151,6 +151,7 @@ tl-mr3020 | \ tl-mr3040 | \ tl-mr3220 | \ + tl-mr3220-v2 | \ tl-mr3420 | \ tl-wa7510n | \ tl-wa901nd | \ Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 34763) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy) @@ -345,6 +345,9 @@ *TL-MR3220) name="tl-mr3220" ;; + *"TL-MR3220 v2") + name="tl-mr3220-v2" + ;; *TL-MR3420) name="tl-mr3420" ;; Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (revision 34763) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -879,7 +879,7 @@ $(eval $(call SingleProfile,TPLINKOLD,$(fs_squash),TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M)) -$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x3221,1,4M)) +$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x3221,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLMR3420,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x3421,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA701,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x7511,1,4M)) @@ -903,6 +903,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11U,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x3041,1,4Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x3222,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma)) @@ -949,6 +950,7 @@ $(eval $(call MultiProfile,AP121,AP121_2M AP121_4M)) $(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT)) $(eval $(call MultiProfile,OPENMESH,OM2P MR6
[OpenWrt-Devel] [PATCH] CDC NCM & QMI WWAN driver for modern USB modems
Signed-off-by: Cezary Jackiewicz --- Index: package/kernel/modules/usb.mk === --- package/kernel/modules/usb.mk (wersja 35052) +++ package/kernel/modules/usb.mk (kopia robocza) @@ -146,6 +146,22 @@ $(eval $(call KernelPackage,usb-acm)) +define KernelPackage/usb-wdm + TITLE:=USB Wireless Device Management + KCONFIG:=CONFIG_USB_WDM + FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko + AUTOLOAD:=$(call AutoLoad,60,cdc-wdm) +$(call AddDepends/usb) +$(call AddDepends/usb-net) +endef + +define KernelPackage/usb-wdm/description + USB Wireless Device Management support +endef + +$(eval $(call KernelPackage,usb-wdm)) + + define KernelPackage/usb-audio TITLE:=Support for USB audio devices KCONFIG:= \ @@ -757,6 +773,21 @@ $(eval $(call KernelPackage,usb-net-cdc-ether)) +define KernelPackage/usb-net-qmi-wwan + TITLE:=QMI WWAN driver + KCONFIG:=CONFIG_USB_NET_QMI_WWAN + FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko + AUTOLOAD:=$(call AutoLoad,61,qmi_wwan) + $(call AddDepends/usb-net,+kmod-usb-wdm) +endef + +define KernelPackage/usb-net-qmi-wwan/description + QMI WWAN driver for Qualcomm MSM based 3G and LTE modems +endef + +$(eval $(call KernelPackage,usb-net-qmi-wwan)) + + define KernelPackage/usb-net-rndis TITLE:=Support for RNDIS connections KCONFIG:=CONFIG_USB_NET_RNDIS_HOST @@ -771,6 +802,21 @@ $(eval $(call KernelPackage,usb-net-rndis)) +define KernelPackage/usb-net-cdc-ncm + TITLE:=Support for CDC NCM connections + KCONFIG:=CONFIG_USB_NET_CDC_NCM + FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko + AUTOLOAD:=$(call AutoLoad,61,cdc_ncm) + $(call AddDepends/usb-net) +endef + +define KernelPackage/usb-net-cdc-ncm/description + Kernel support for CDC NCM connections +endef + +$(eval $(call KernelPackage,usb-net-cdc-ncm)) + + define KernelPackage/usb-net-sierrawireless TITLE:=Support for Sierra Wireless devices KCONFIG:=CONFIG_USB_SIERRA_NET -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M
Ralink RT3052F, 4MB flash, 32MB ram, one USB 2.0, two buttons and seven leds. Factory image should be used to flash from original firmware. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h === --- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h (wersja 35062) +++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h (kopia robocza) @@ -37,6 +37,7 @@ RAMIPS_MACH_WL_330N3G, /* Asus WL-330N3G */ /* RT3052 based machines */ + RAMIPS_MACH_3G300M, /* Tenda 3G300M */ RAMIPS_MACH_ALL0239_3G, /* ALL0239-3G */ RAMIPS_MACH_ARGUS_ATP52B, /* Argus ATP-52B */ RAMIPS_MACH_BC2,/* NexAira BC2 */ Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (wersja 35062) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (kopia robocza) @@ -12,6 +12,11 @@ select RALINK_DEV_GPIO_BUTTONS select RALINK_DEV_GPIO_LEDS +config RT305X_MACH_3G300M + bool "Tenda 3G300M board support" + select RALINK_DEV_GPIO_BUTTONS + select RALINK_DEV_GPIO_LEDS + config RT305X_MACH_WR6202 bool "Accton WR6202" select RALINK_DEV_GPIO_BUTTONS Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c === --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c (wersja 0) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c (kopia robocza) @@ -0,0 +1,126 @@ +/* + * Tenda 3G300M board support + * + * Copyright (C) 2013 Cezary Jackiewicz + * + * 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 + +#include +#include +#include +#include +#include + +#include "devices.h" + +#define TENDA_3G300M_GPIO_BUTTON_RESET 0 +#define TENDA_3G300M_GPIO_BUTTON_MODE 10 + +#define TENDA_3G300M_GPIO_LED_3GROUTER 11 +#define TENDA_3G300M_GPIO_LED_AP 12 +#define TENDA_3G300M_GPIO_LED_WISPROUTER 9 +#define TENDA_3G300M_GPIO_LED_WIRELESSROUTER 13 +#define TENDA_3G300M_GPIO_LED_3G 7 +#define TENDA_3G300M_GPIO_LED_WPSRESET 14 + +#define TENDA_3G300M_KEYS_POLL_INTERVAL20 +#define TENDA_3G300M_KEYS_DEBOUNCE_INTERVAL(3 * TENDA_3G300M_KEYS_POLL_INTERVAL) + +const struct flash_platform_data tenda_3g300m_flash = { + .type = "mx25l3205d", +}; + +struct spi_board_info tenda_3g300m_spi_slave_info[] __initdata = { + { + .modalias = "m25p80", + .platform_data = &tenda_3g300m_flash, + .irq= -1, + .max_speed_hz = 1000, + .bus_num= 0, + .chip_select= 0, + } +}; + +static struct gpio_led tenda_3g300m_leds_gpio[] __initdata = { +{ + .name = "tenda:blue:3grouter", + .gpio = TENDA_3G300M_GPIO_LED_3GROUTER, + .active_low = 1, + },{ + .name = "tenda:blue:ap", + .gpio = TENDA_3G300M_GPIO_LED_AP, + .active_low = 1, + },{ + .name = "tenda:blue:wisprouter", + .gpio = TENDA_3G300M_GPIO_LED_WISPROUTER, + .active_low = 1, + },{ + .name = "tenda:blue:wirelessrouter", + .gpio = TENDA_3G300M_GPIO_LED_WIRELESSROUTER, + .active_low = 1, + },{ + .name = "tenda:blue:3g", + .gpio = TENDA_3G300M_GPIO_LED_3G, + .active_low = 1, + },{ + .name = "tenda:blue:wpsreset", + .gpio = TENDA_3G300M_GPIO_LED_WPSRESET, + .active_low = 1, + } +}; + +static struct gpio_keys_button tenda_3g300m_gpio_buttons[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = TENDA_3G300M_KEYS_DEBOUNCE_INTERVAL, + .gpio = TENDA_3G300M_GPIO_BUTTON_RESET, + .active_low = 1, + },{ + .desc = "mode", + .type = EV_KEY, +
Re: [OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M
Dnia 2013-01-09, o godz. 20:51:04 Paul Fertser napisał(a): > Cezary Jackiewicz writes: > > +define Profile/3G300M > > + NAME:=Tenda 3G300M > > + PACKAGES:=\ > > + kmod-usb-core kmod-usb-rt305x-dwc_otg \ > > + kmod-ledtrig-usbdev > > +endef > > What is the motivation to have a dedicated profile that's exactly the > same as the default one? To can be selected only this device. [...] > Can you please take a look at http://patchwork.openwrt.org/patch/3132/ > , do you know of any reason do not do it the same way here? Because your patch is not yet included into mainline? This is patch for current sources, if anyone enters this change, it may be rewritten. > BTW, do you think kernel_size_4M and rootfs_size_4M should be defined > and used for all the mtdlayout_4M targets instead of hardcoding those > numbers? IMO yes, it should be, as generic_8m. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] RFC? ramips: add missing interface definition
RFC: interface should be defined for failsafe? Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface === --- target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface (wersja 0) +++ target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface (kopia robocza) @@ -0,0 +1,16 @@ +#!/bin/sh + +# +# Copyright (C) 2013 OpenWrt.org +# + +. /lib/ramips.sh + +set_preinit_iface() { + ifname=eth0 +} + +boot_hook_add preinit_main set_preinit_iface + + + -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M
Dnia 2013-01-09, o godz. 22:29:48 Paul Fertser napisał(a): [...] > > > BTW, do you think kernel_size_4M and rootfs_size_4M should be defined > > > and used for all the mtdlayout_4M targets instead of hardcoding those > > > numbers? > > > > IMO yes, it should be, as generic_8m. > > Would you like to do it yourself or do you prefer having someone else > do it? Let someone try to fix it. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WR743ND v2
AR9331 based, these same as 741v4 Signed-off-by: Cezary Jackiewicz --- --- target/linux/ar71xx/image/Makefile (wersja 35445) +++ target/linux/ar71xx/image/Makefile (kopia robocza) @@ -906,7 +906,7 @@ $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR740NV3,tl-wr740n-v3,TL-WR741ND,ttyS0,115200,0x0743,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR741NV1,tl-wr741nd-v1,TL-WR741ND,ttyS0,115200,0x07410001,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR741NV2,tl-wr741nd-v2,TL-WR741ND,ttyS0,115200,0x07410001,1,4M)) -$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR743,tl-wr743nd-v1,TL-WR741ND,ttyS0,115200,0x07430001,1,4M)) +$(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR743NV1,tl-wr743nd-v1,TL-WR741ND,ttyS0,115200,0x07430001,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV3,tl-wr841nd-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV5,tl-wr841nd-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV7,tl-wr841nd-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M)) @@ -923,6 +923,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v 3.13.99)) @@ -975,6 +976,7 @@ $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1)) $(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,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4)) $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4310V1)) Index: tools/firmware-utils/src/mktplinkfw.c === --- tools/firmware-utils/src/mktplinkfw.c (wersja 35445) +++ tools/firmware-utils/src/mktplinkfw.c (kopia robocza) @@ -45,6 +45,7 @@ #define HWID_TL_WR740N_V1 0x0741 #define HWID_TL_WR740N_V3 0x0743 #define HWID_TL_WR743ND_V1 0x07430001 +#define HWID_TL_WR743ND_V2 0x07430002 #define HWID_TL_WR841N_V1_50x08410002 #define HWID_TL_WR841ND_V3 0x08410003 #define HWID_TL_WR841ND_V5 0x08410005 @@ -251,6 +252,11 @@ .hw_rev = 1, .layout_id = "4M", }, { + .id = "TL-WR743NDv2", + .hw_id = HWID_TL_WR743ND_V2, + .hw_rev = 1, + .layout_id = "4Mlzma", + }, { .id = "TL-WR841Nv1.5", .hw_id = HWID_TL_WR841N_V1_5, .hw_rev = 2, -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] aria2: update to 1.16.3
Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/net/aria2/Makefile === --- feeds/packages/net/aria2/Makefile (wersja 35669) +++ feeds/packages/net/aria2/Makefile (kopia robocza) @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=aria2 -PKG_VERSION:=1.16.0 +PKG_VERSION:=1.16.3 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/aria2 -PKG_MD5SUM:=0a8e1dbfe1725a02de8271589d622739 +PKG_MD5SUM:=2f37c41e6a9f883f75525970582b1414 PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Linksys E4200v1 Support
Dnia 2013-02-20, o godz. 14:11:53 Hauke Mehrtens napisał(a): > On my e3200 Ethernet works with the default config. Are there more > problems discussed in this tread? On my e3200 also ethernet seems to work, but often hangs up with: [ 121.98] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 120! End of ring: 0 [ 121.988000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 121! End of ring: 0 [ 121.996000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 122! End of ring: 0 [ 122.008000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 123! End of ring: 0 [ 122.016000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 124! End of ring: 0 [ 122.024000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 125! End of ring: 0 [ 122.036000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 126! End of ring: 0 [ 122.044000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 127! End of ring: 0 [ 122.052000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 0! End of ring: 0 [ 122.064000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 1! End of ring: 0 [ 122.072000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 2! End of ring: 0 [ 122.08] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 3! End of ring: 0 [ 122.088000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 4! End of ring: 0 [ 122.10] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 5! End of ring: 0 [ 122.108000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 6! End of ring: 0 [ 122.116000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 7! End of ring: 0 [ 122.128000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 8! End of ring: 0 [ 122.136000] bgmac bcma0:1: Hardware reported transmission for empty TX ring slot 9! End of ring: 0 etc. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: rw2458n - Use eeprom (art) from wifi card
Use eeprom (art) from included wifi card, not hard coded in flash. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c === --- target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(wersja 35992) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(kopia robocza) @@ -1,7 +1,7 @@ /* * Redwave RW2458N support * - * Copyright (C) 2011-2012 Cezary Jackiewicz + * Copyright (C) 2011-2013 Cezary Jackiewicz * * 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 @@ -17,6 +17,7 @@ #include "dev-m25p80.h" #include "dev-usb.h" #include "machtypes.h" +#include "pci.h" #define RW2458N_GPIO_LED_D31 #define RW2458N_GPIO_LED_D40 @@ -64,7 +65,6 @@ { u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff); u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff + ETH_ALEN); - u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); ath79_register_m25p80(NULL); @@ -76,8 +76,6 @@ ath79_register_eth(0); ath79_register_eth(1); - ap91_pci_init(ee, NULL); - ath79_register_leds_gpio(-1, ARRAY_SIZE(rw2458n_leds_gpio), rw2458n_leds_gpio); @@ -85,6 +83,8 @@ ARRAY_SIZE(rw2458n_gpio_keys), rw2458n_gpio_keys); ath79_register_usb(); + + ath79_register_pci(); } MIPS_MACHINE(ATH79_MACH_RW2458N, "RW2458N", "Redwave RW2458N", -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [packages] proftpd: Bump to 1.3.4c
Dnia 2013-03-19, o godz. 23:48:36 Daniel Petre napisał(a): > Changelog for 1.3.4c: > > + Added Spanish translation. > + Fixed several mod_sftp issues, including SFTPPassPhraseProvider, > handling of symlinks for REALPATH requests, and response code logging. > + Fixed symlink race for creating directories when UserOwner is in effect. > + Increased performance of FTP directory listings. > > Signed-off-by: Daniel Petre Applied, thanks! -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: add Huawei D105
Small router sold in Poland (by Cyfrowy Polsat) - CPU: RT3050F @ 320MHz - 4MB flash - 16MB RAM - 1x USB 2.0 - reset button - wifi: Chipset detected - rt: 2872, rf: 0005, rev: 0200. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ramips/image/Makefile === --- target/linux/ramips/image/Makefile (wersja 36141) +++ target/linux/ramips/image/Makefile (kopia robocza) @@ -511,6 +511,10 @@ $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_8M,carambola,CARAMBOLA,ttyS1,115200,phys) endef +define Image/Build/Profile/D105 + $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,d105,D105,ttyS1,57600,phys) +endef + define Image/Build/Profile/DIR300B1 $(call Image/Build/Template/$(fs_squash)/$(1),DIR300B1,dir-300-b1,DIR-300-B1,wrgn23_dlwbr_dir300b) $(call Image/Build/Template/$(fs_squash)/$(1),DIR300B1,dir-600-b1,DIR-600-B1,wrgn23_dlwbr_dir600b) @@ -661,6 +665,7 @@ $(call Image/Build/Profile/BC2,$(1)) $(call Image/Build/Profile/BROADWAY,$(1)) $(call Image/Build/Profile/CARAMBOLA,$(1)) + $(call Image/Build/Profile/D105,$(1)) $(call Image/Build/Profile/DIR300B1,$(1)) $(call Image/Build/Profile/DIR615H1,$(1)) $(call Image/Build/Profile/DAP1350,$(1)) Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (wersja 36141) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (kopia robocza) @@ -21,6 +21,7 @@ obj-$(CONFIG_RT305X_MACH_BR6425) += mach-br6425.o obj-$(CONFIG_RT305X_MACH_BROADWAY) += mach-broadway.o obj-$(CONFIG_RT305X_MACH_CARAMBOLA)+= mach-carambola.o +obj-$(CONFIG_RT305X_MACH_D105) += mach-d105.o obj-$(CONFIG_RT305X_MACH_DIR_300_REVB) += mach-dir-300-revb.o obj-$(CONFIG_RT305X_MACH_DIR_615_H1) += mach-dir-615-h1.o obj-$(CONFIG_RT305X_MACH_DAP_1350) += mach-dap-1350.o Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (wersja 36141) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (kopia robocza) @@ -86,6 +86,11 @@ select RALINK_DEV_GPIO_BUTTONS select RALINK_DEV_GPIO_LEDS +config RT305X_MACH_D105 + bool "Huawei D105 board support" + select RALINK_DEV_GPIO_BUTTONS + select RALINK_DEV_GPIO_LEDS + config RT305X_MACH_DIR_300_REVB bool "D-Link DIR-300 revB board support" select RALINK_DEV_GPIO_BUTTONS Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c === --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c (wersja 0) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c (kopia robocza) @@ -0,0 +1,74 @@ +/* + * Huawei D105 board support + * + * Copyright (C) 2013 Cezary Jackiewicz + * + * 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 +#include +#include + +#include "devices.h" + +#define D105_GPIO_BUTTON_RESET 10 +#define D105_GPIO_LED_POWER0 +#define D105_GPIO_LED_USB 13 + +#define D105_KEYS_POLL_INTERVAL20 +#define D105_KEYS_DEBOUNCE_INTERVAL (3 * D105_KEYS_POLL_INTERVAL) + +static struct gpio_led d105_leds_gpio[] __initdata = { + { + .name = "d105:red:power", + .gpio = D105_GPIO_LED_POWER, + .active_low = 1, + }, { + .name = "d105:green:usb", + .gpio = D105_GPIO_LED_USB, + .active_low = 1, + } +}; + +static struct gpio_keys_button d105_gpio_buttons[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = D105_KEYS_DEBOUNCE_INTERVAL, + .gpio = D105_GPIO_BUTTON_RESET, + .active_low = 1, + } +}; + +static void __init d105_init(void) +{ + rt305x_gpio_init((RT305X_GPIO_MODE_GPIO << + RT305X_GPIO_MODE_UART0_SHIFT) | + RT305X_GPIO_MODE_JTAG); + + rt305x_register_flash(0); + + ramips_register_gpio_leds(-1, ARRAY_SIZE(d105_leds_gpio), + d105_leds_gpio); + ramips_register_gpio_buttons(-1, D105_KEYS_POLL_INTERVAL, + ARRAY_SIZE(d105_gpio_buttons), +
[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-MR10U
Small router with 4MB flash, 32MB RAM http://www.tp-link.com.cn/product_300.html Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (wersja 36642) +++ target/linux/ar71xx/image/Makefile (kopia robocza) @@ -927,6 +927,7 @@ $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M)) +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-WR703N,ttyATH0,115200,0x00100101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma)) Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 36642) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza) @@ -132,6 +132,9 @@ "254300"*) model="TP-Link TL-WR2543N/ND" ;; + "100101"*) + model="TP-Link TL-MR10U" + ;; "110101"*) model="TP-Link TL-MR11U" ;; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix TL-MR10U usb power
MR10U is closer to MR3040 than WR703N. This changes also enable USB power on GPIO18. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (wersja 36725) +++ target/linux/ar71xx/image/Makefile (kopia robocza) @@ -927,7 +927,7 @@ $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M)) $(eval $(call SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M)) -$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-WR703N,ttyATH0,115200,0x00100101,1,4Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-MR3040,ttyATH0,115200,0x00100101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Typo in detect TL-MR10U/TL-MR11U
At offset 0x40, signature for TL-MR10U/TL-MR11U begin from 0x00, not 0x10/0x11. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 36725) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza) @@ -132,10 +132,10 @@ "254300"*) model="TP-Link TL-WR2543N/ND" ;; - "100101"*) + "001001"*) model="TP-Link TL-MR10U" ;; - "110101"*) + "001101"*) model="TP-Link TL-MR11U" ;; "302000"*) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add cgi programs to apcupsd
This patch add cgi programs to apcupsd - data visualization on the web Signed-off-by: Cezary Jackiewicz --- Index: feeds/packages/net/apcupsd/Makefile === --- feeds/packages/net/apcupsd/Makefile (revision 36754) +++ feeds/packages/net/apcupsd/Makefile (working copy) @@ -9,7 +9,7 @@ PKG_NAME:=apcupsd PKG_VERSION:=3.14.7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/apcupsd @@ -25,12 +25,21 @@ URL:=http://www.apcupsd.org/ endef +define Package/apcupsd-cgi + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+apcupsd +libgd +uhttpd + TITLE:=UPS control software (CGI) + URL:=http://www.apcupsd.org/ +endef + define Build/Configure $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/ $(call Build/Configure/Default, \ --with-distname=unknown \ --sysconfdir=/etc/apcupsd \ --enable-usb \ + --enable-cgi \ --without-x \ ) endef @@ -61,6 +70,15 @@ $(INSTALL_BIN) ./files/apcupsd.init $(1)/etc/init.d/apcupsd endef +define Package/apcupsd-cgi/install + $(INSTALL_DIR) $(1)/www/cgi-bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/*.cgi $(1)/www/cgi-bin + $(INSTALL_DIR) $(1)/etc/apcupsd + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/multimon.conf $(1)/etc/apcupsd/ + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/apcupsd.css $(1)/etc/apcupsd/ + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/hosts.conf $(1)/etc/apcupsd/ +endef + define Package/apcupsd/conffiles /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd_mail.conf @@ -72,3 +90,4 @@ endef $(eval $(call BuildPackage,apcupsd)) +$(eval $(call BuildPackage,apcupsd-cgi)) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCHv2] minidlna: update to 1.1.0
Dnia 2013-07-22, o godz. 21:52:42 Catalin Patulea napisał(a): > Based on original patch from alpha sparc . > > - upstream renamed binary to minidlnad and moved to sbin > - drop patches (merged upstream) > - fix passing configure params > - need to pass pidfile path explicitly now Kernel.mk is also not necessary 1.1.0 -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [ar71xx] add support for TL-Link TL-MR13U
Dnia 2013-07-26, o godz. 13:01:31 Oleg Titov napisał(a): > @@ -138,6 +138,9 @@ tplink_board_detect() { > "001101"*) > model="TP-Link TL-MR11U" > ;; > + "130101"*) > + model="TP-Link TL-MR13U" > + ;; Wrong! ./mktplinkfw -i mr13uv1.bin File name : mr13uv1.bin ... Vendor name: TP-LINK Technologies Firmware version : ver. 1.0 Hardware ID: 0x00130101 (unknown) So + "001301"*) + model="TP-Link TL-MR13U" + ;; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] add TP-LINK TL-WR710N v1
Small router sold in EU: AR9330@400MHz, 1x USB2.0, 2x ethernet, 8MB flash, 32MB ram, one led, one button. See: http://galeria.tech-blog.pl/TP-Link_TL-WR710N-EU/ Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (revision 37560) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -978,6 +978,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x3222,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-MR3420-v2,ttyS0,115200,0x3422,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma)) +$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR710,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR720NV3,tl-wr720n-v3,TL-WR720N-v3,ttyATH0,115200,0x07200103,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma)) Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c === --- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c (revision 37560) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c (working copy) @@ -59,7 +59,7 @@ } }; -static void __init common_setup(unsigned usb_power_gpio) +static void __init common_setup(unsigned usb_power_gpio, bool sec_ethernet) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); @@ -84,12 +84,18 @@ ath79_register_mdio(0, 0x0); ath79_register_eth(0); + if (sec_ethernet) + { + ath79_init_mac(ath79_eth0_data.mac_addr, mac, -1); + ath79_register_eth(1); + } + ath79_register_wmac(ee, mac); } static void __init tl_mr10u_setup(void) { - common_setup(TL_MR10U_GPIO_USB_POWER); + common_setup(TL_MR10U_GPIO_USB_POWER, false); } MIPS_MACHINE(ATH79_MACH_TL_MR10U, "TL-MR10U", "TP-LINK TL-MR10U", @@ -97,8 +103,16 @@ static void __init tl_wr703n_setup(void) { - common_setup(TL_WR703N_GPIO_USB_POWER); + common_setup(TL_WR703N_GPIO_USB_POWER, false); } MIPS_MACHINE(ATH79_MACH_TL_WR703N, "TL-WR703N", "TP-LINK TL-WR703N v1", tl_wr703n_setup); + +static void __init tl_wr710n_setup(void) +{ + common_setup(TL_WR703N_GPIO_USB_POWER, true); +} + +MIPS_MACHINE(ATH79_MACH_TL_WR710N, "TL-WR710N", "TP-LINK TL-WR710N v1", +tl_wr710n_setup); Index: target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch === --- target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch (revision 0) +++ target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch (working copy) @@ -0,0 +1,29 @@ +--- a/arch/mips/ath79/Kconfig b/arch/mips/ath79/Kconfig +@@ -577,7 +577,7 @@ config ATH79_MACH_TL_WDR4300 + select ATH79_DEV_WMAC + + config ATH79_MACH_TL_WR703N +- bool "TP-LINK TL-WR703N support" ++ bool "TP-LINK TL-WR703N/TL-WR710N/TL-MR10U support" + select SOC_AR933X + select ATH79_DEV_ETH + select ATH79_DEV_GPIO_BUTTONS +--- a/arch/mips/ath79/machtypes.h b/arch/mips/ath79/machtypes.h +@@ -81,6 +81,7 @@ enum ath79_mach_type { + ATH79_MACH_TEW_632BRP, /* TRENDnet TEW-632BRP */ + ATH79_MACH_TEW_673GRU, /* TRENDnet TEW-673GRU */ + ATH79_MACH_TEW_712BR, /* TRENDnet TEW-712BR */ ++ ATH79_MACH_TL_MR10U,/* TP-LINK TL-MR10U */ + ATH79_MACH_TL_MR11U,/* TP-LINK TL-MR11U */ + ATH79_MACH_TL_MR3020, /* TP-LINK TL-MR3020 */ + ATH79_MACH_TL_MR3040, /* TP-LINK TL-MR3040 */ +@@ -98,6 +98,7 @@ + ATH79_MACH_TL_WR1043ND, /* TP-LINK TL-WR1043ND */ + ATH79_MACH_TL_WR2543N, /* TP-LINK TL-WR2543N/ND */ + ATH79_MACH_TL_WR703N, /* TP-LINK TL-WR703N */ ++ ATH79_MACH_TL_WR710N, /* TP-LINK TL-WR710N */ + ATH79_MACH_TL_WR720N_V3,/* TP-LINK TL-WR720N v3 */ + ATH79_MACH_TL_WR741ND, /* TP-LINK TL-WR741ND */ + ATH79_MACH_TL_WR741ND_V4, /* TP-LINK TL-WR741ND v4*/ Index: target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-support.patch === --- target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-support.patch
[OpenWrt-Devel] [PATCH] Add support for Netgear WNR612 v2
Netgear WNR612 v2: - cpu Atheros AR7240 (Python) @400MHz - flash 4MB - ram 32MB - ethernet 10/100: 1xwan + 2xlan (only two) - radio AR9285 Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c === --- target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (revision 37568) +++ target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (working copy) @@ -29,6 +29,8 @@ #define WNR2000V3_GPIO_LED_PWR_GREEN 14 #define WNR2000V3_GPIO_BTN_WPS 11 +#define WNR612V2_GPIO_LED_PWR_GREEN11 + #define WNR2000V3_KEYS_POLL_INTERVAL 20 /* msecs */ #define WNR2000V3_KEYS_DEBOUNCE_INTERVAL (3 * WNR2000V3_KEYS_POLL_INTERVAL) @@ -48,6 +50,14 @@ } }; +static struct gpio_led wnr612v2_leds_gpio[] __initdata = { + { + .name = "wnr612v2:green:power", + .gpio = WNR612V2_GPIO_LED_PWR_GREEN, + .active_low = 1, + } +}; + static struct gpio_keys_button wnr2000v3_gpio_keys[] __initdata = { { .desc = "wps", @@ -58,7 +68,7 @@ } }; -static void __init wnr2000v3_setup(void) +static void __init wnr_common_setup(void) { u8 *art = (u8 *) KSEG1ADDR(0x1fff); @@ -77,15 +87,29 @@ ath79_register_eth(1); ath79_register_m25p80(NULL); + ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL); +} +static void __init wnr2000v3_setup(void) +{ + wnr_common_setup(); + ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2000v3_leds_gpio), wnr2000v3_leds_gpio); ath79_register_gpio_keys_polled(-1, WNR2000V3_KEYS_POLL_INTERVAL, ARRAY_SIZE(wnr2000v3_gpio_keys), wnr2000v3_gpio_keys); +} - ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL); +MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", wnr2000v3_setup); + +static void __init wnr612v2_setup(void) +{ + wnr_common_setup(); + + ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr612v2_leds_gpio), +wnr612v2_leds_gpio); } -MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", wnr2000v3_setup); +MIPS_MACHINE(ATH79_MACH_WNR612_V2, "WNR612V2", "NETGEAR WNR612 V2", wnr612v2_setup); Index: target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch === --- target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch (revision 37568) +++ target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch (working copy) @@ -1,6 +1,6 @@ --- a/arch/mips/ath79/machtypes.h +++ b/arch/mips/ath79/machtypes.h -@@ -16,22 +16,125 @@ +@@ -16,22 +16,126 @@ enum ath79_mach_type { ATH79_MACH_GENERIC = 0, @@ -113,6 +113,7 @@ + ATH79_MACH_WNDR4300,/* NETGEAR WNDR4300 */ + ATH79_MACH_WNR2000, /* NETGEAR WNR2000 */ + ATH79_MACH_WNR2000_V3, /* NETGEAR WNR2000 v3 */ ++ ATH79_MACH_WNR612_V2, /* NETGEAR WNR612 v2 */ + ATH79_MACH_WP543, /* Compex WP543 */ + ATH79_MACH_WPE72, /* Compex WPE72 */ + ATH79_MACH_WRT160NL,/* Linksys WRT160NL */ Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 37568) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy) @@ -495,6 +498,9 @@ *WNR2000) name="wnr2000" ;; + *"WNR612 V2") + name="wnr612-v2" + ;; *WRT160NL) name="wrt160nl" ;; Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh === --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 37568) +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (working copy) @@ -214,7 +215,8 @@ } return 0 ;; - wndr3700) + wndr3700 | \ + wnr612-v2) local hw_magic hw_magic="$(ar71xx_get_mtd_part_magic firmware)" Index: target/linux/ar71xx/base-files/etc/diag.sh === --- target/linux/ar71xx/base-files/etc/diag.sh (revision 37568) +++ target/linux/ar71xx/base-files/etc/diag.sh (working copy) @@ -173,6 +174,9 @@ wnr2000) status_led="wnr2000:green:power" ;; + wnr612-v2) +
[OpenWrt-Devel] [PATCH] gpio for Linksys E4200v1
GPIO for Linksys E4200v1, tested and works. This closes #13454 and #13894 Signed-off-by: Cezary Jackiewicz --- Index: package/kernel/broadcom-diag/src/diag.c === --- package/kernel/broadcom-diag/src/diag.c (revision 37665) +++ package/kernel/broadcom-diag/src/diag.c (working copy) @@ -91,6 +91,7 @@ E1000V1, E3000V1, E3200V1, + E4200V1, /* ASUS */ WLHDD, @@ -496,6 +497,16 @@ { .name = "power", .gpio = 1 << 3, .polarity = REVERSE }, /* Power LED */ }, }, + [E4200V1] = { + .name = "Linksys E4200 V1", + .buttons= { + { .name = "reset", .gpio = 1 << 6 }, + { .name = "wps",.gpio = 1 << 4 }, + }, + .leds = { + { .name = "power", .gpio = 1 << 5, .polarity = REVERSE }, + }, + }, /* Asus */ [WLHDD] = { .name = "ASUS WL-HDD", @@ -1348,6 +1359,8 @@ return &platforms[E3000V1]; case BCM47XX_BOARD_LINKSYS_E3200V1: return &platforms[E3200V1]; + case BCM47XX_BOARD_LINKSYS_E4200V1: + return &platforms[E4200V1]; case BCM47XX_BOARD_LINKSYS_WRT150NV1: return &platforms[WRT150NV1]; case BCM47XX_BOARD_LINKSYS_WRT150NV11: -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix factory image for DIR 505 A1
Based on the original firmware, the file must have the tag HORNET-PACKET-DIR505A1-3, not HORNET-RT-DIR505A1-3. Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/image/Makefile === --- target/linux/ar71xx/image/Makefile (revision 3) +++ target/linux/ar71xx/image/Makefile (working copy) @@ -909,7 +909,7 @@ $(eval $(call SingleProfile,Cameo933x,$(fs_squash),TEW712BR,tew-712br,TEW-712BR,ttyATH0,115200,"HORNET-RT-TEW712BR-3",1.99,"")) $(eval $(call SingleProfile,Cameo933x,$(fs_squash),DIR601B1,dir-601-b1,TEW-712BR,ttyATH0,115200,"HORNET-RT-DIR601B1-3",2.99.99,"" "NA")) -$(eval $(call SingleProfile,Cameo933x_8M,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-RT-DIR505A1-3")) +$(eval $(call SingleProfile,Cameo933x_8M,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-PACKET-DIR505A1-3")) $(eval $(call SingleProfile,Cameo934x,$(fs_64k),DIR825C1,dir-825-c1,DIR-825-C1,ttyS0,115200,"00DB120AR9344-RT-101214-00")) $(eval $(call SingleProfile,Cameo934x,$(fs_64k),DIR835A1,dir-835-a1,DIR-835-A1,ttyS0,115200,"00DB120AR9344-RT-101214-00")) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix for recognize TL-WR710N
Fix for recognize TL-WR710N Signed-off-by: Cezary Jackiewicz --- Index: target/linux/ar71xx/base-files/lib/ar71xx.sh === --- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 3) +++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy) @@ -456,6 +456,9 @@ *"TL-WR703N v1") name="tl-wr703n" ;; + *"TL-WR710N v1") + name="tl-wr710n" + ;; *"TL-WR720N v3") name="tl-wr720n-v3" ;; -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix modprobe path for pppoatm
Without netifd generates an error: daemon.notice netifd: wan (1249): /bin/sh: /sbin/modprobe: not found Signed-off-by: Cezary Jackiewicz --- Index: package/network/services/ppp/patches/510-fix-modprobe.patch === --- package/network/services/ppp/patches/510-fix-modprobe.patch (wersja 0) +++ package/network/services/ppp/patches/510-fix-modprobe.patch (kopia robocza) @@ -0,0 +1,11 @@ +--- a/pppd/plugins/pppoatm/pppoatm.c.orig 2013-11-09 18:34:12.380820631 +0100 b/pppd/plugins/pppoatm/pppoatm.c 2013-11-09 18:34:20.140820952 +0100 +@@ -133,7 +133,7 @@ + int fd; + struct atm_qos qos; + +- system ("/sbin/modprobe -q pppoatm"); ++ system ("/usr/sbin/modprobe pppoatm"); + + if (!device_got_set) + no_device_given_pppoatm(); -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [packages] transmission: fixup configure, fuzz
Dnia 2014-01-04, o godz. 11:58:49 Dirk Neukirchen napisał(a): > while at it remove patch fuzz by refreshing patches > > fixes build warning: > configure: WARNING: unrecognized options: --disable-gtk > > Signed-off-by: Dirk Neukirchen r39199, thanks. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for TRENDnet TEW-823DRU
Dnia 2016-09-11, o godz. 00:05:18 Matthew McClintock napisał(a): > On Sat, Dec 12, 2015 at 1:53 AM, Cezary Jackiewicz > wrote: > > Add support for TRENDnet TEW-823DRU: > > - cpu: QCA9558 @720MHz > > - flash: 16MB > > - ram: 256MB > > - 4+1 RJ45 100/1000Mbps > > - wifi: QCA9558 (bgn) and QCA9880-BR4A (ac) > > - 1x USB 2.0 > > > > Signed-off-by: Cezary Jackiewicz > > > Can you confirm the serial port info is correct here? > https://wiki.openwrt.org/toh/trendnet/tew-823dru Yes, four pin hole on the left. -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Build 8M image for 7Links PX-4885
7Links PX-4885 (clones) can also be purchased with 8MB flash. Creating images for these routers. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/dts/PX4885-4M.dts b/target/linux/ramips/dts/PX4885-4M.dts new file mode 100644 index 000..2bea444 --- /dev/null +++ b/target/linux/ramips/dts/PX4885-4M.dts @@ -0,0 +1,90 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "PX4885", "ralink,rt5350-soc"; + model = "7Links PX-4885"; + + palmbus@1000 { + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l3205d"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <1000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x2>; + read-only; + }; + + partition@2 { + label = "devdata"; + reg = <0x2 0x2>; + read-only; + }; + + factory: partition@4 { + label = "devconf"; + reg = <0x4 0x1>; + read-only; + }; + + partition@5 { + label = "firmware"; + reg = <0x5 0x3b>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@1010 { + mtd-mac-address = <&factory 0x28>; + }; + + esw@1011 { + ralink,portmap = <0x3f>; + }; + + wmac@1018 { + ralink,mtd-eeprom = <&factory 0>; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 10 1>; + linux,code = <0x198>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + orange { + label = "7links:orange:wifi"; + gpios = <&gpio0 18 1>; + }; + blue { + label = "7links:blue:storage"; + gpios = <&gpio0 19 1>; + }; + }; +}; diff --git a/target/linux/ramips/dts/PX4885-8M.dts b/target/linux/ramips/dts/PX4885-8M.dts new file mode 100644 index 000..01d7a8a --- /dev/null +++ b/target/linux/ramips/dts/PX4885-8M.dts @@ -0,0 +1,90 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "PX4885", "ralink,rt5350-soc"; + model = "7Links PX-4885"; + + palmbus@1000 { + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l3205d"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <1000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x2>; + read-only; + }; + + partition@2 { + label = "devdata"; + reg = <0
[OpenWrt-Devel] [PATCHv2] Build 8M image for 7Links PX-4885
7Links PX-4885 (clones) can also be purchased with 8MB flash. Creating images for these routers, use dtsi for common part Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/ramips/dts/PX4885.dts b/target/linux/ramips/dts/PX4885.dts deleted file mode 100644 index 2bea444..000 --- a/target/linux/ramips/dts/PX4885.dts +++ /dev/null @@ -1,90 +0,0 @@ -/dts-v1/; - -/include/ "rt5350.dtsi" - -/ { - compatible = "PX4885", "ralink,rt5350-soc"; - model = "7Links PX-4885"; - - palmbus@1000 { - spi@b00 { - status = "okay"; - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "mx25l3205d"; - reg = <0 0>; - linux,modalias = "m25p80", "mx25l3205d"; - spi-max-frequency = <1000>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x2>; - read-only; - }; - - partition@2 { - label = "devdata"; - reg = <0x2 0x2>; - read-only; - }; - - factory: partition@4 { - label = "devconf"; - reg = <0x4 0x1>; - read-only; - }; - - partition@5 { - label = "firmware"; - reg = <0x5 0x3b>; - }; - }; - }; - }; - - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - - ethernet@1010 { - mtd-mac-address = <&factory 0x28>; - }; - - esw@1011 { - ralink,portmap = <0x3f>; - }; - - wmac@1018 { - ralink,mtd-eeprom = <&factory 0>; - }; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <20>; - reset { - label = "reset"; - gpios = <&gpio0 10 1>; - linux,code = <0x198>; - }; - }; - - gpio-leds { - compatible = "gpio-leds"; - orange { - label = "7links:orange:wifi"; - gpios = <&gpio0 18 1>; - }; - blue { - label = "7links:blue:storage"; - gpios = <&gpio0 19 1>; - }; - }; -}; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 9355448..f048caf 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -466,7 +466,7 @@ Image/Build/Profile/PSR-680W=$(call BuildFirmware/Default4M/$(1),$(1),psr-680w,P Image/Build/Profile/PWH2004=$(call BuildFirmware/Default8M/$(1),$(1),pwh2004,PWH2004) -Image/Build/Profile/PX4885=$(call BuildFirmware/Default4M/$(1),$(1),px4885,PX4885) +Image/Build/Profile/PX4885=$(call BuildFirmware/DefaultDualSize/$(1),$(1),px4885,PX4885) Image/Build/Profile/RTG32B1=$(call BuildFirmware/Default4M/$(1),$(1),rt-g32-b1,RT-G32-B1) diff --git a/target/linux/ramips/dts/PX4885-4M.dts b/target/linux/ramips/dts/PX4885-4M.dts new file mode 100644 index 000..39bca1c --- /dev/null +++ b/target/linux/ramips/dts/PX4885-4M.dts @@ -0,0 +1,42 @@ +/dts-v1/; + +/include/ "PX4885.dtsi" + +/ { + palmbus@1000 { + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l3205d"; +
[OpenWrt-Devel] [PATCH] kirkwood: add a script to detect the board name and populate /tmp/sysinfo.
Add a script to detect the board name and populate /tmp/sysinfo. Sets the status LED for Linksys EA4500. Signed-off-by: Cezary Jackiewicz --- diff --git a/target/linux/kirkwood/base-files/etc/diag.sh b/target/linux/kirkwood/base-files/etc/diag.sh new file mode 100755 index 000..bd6bd98 --- /dev/null +++ b/target/linux/kirkwood/base-files/etc/diag.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# Copyright (C) 2014 OpenWrt.org + +. /lib/functions/leds.sh +. /lib/kirkwood.sh + +get_status_led() { + case $(kirkwood_board_name) in + ea4500) + status_led="ea4500:white:health" + ;; + esac +} + +set_state() { + get_status_led + + case "$1" in + preinit) + status_led_blink_preinit + ;; + failsafe) + status_led_blink_failsafe + ;; + done) + status_led_on + ;; + esac +} -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel