[OpenWrt-Devel] Gray out objects in the UI?
Hi all, How to gray out in the UI on a object, the like option Value, or option ListValue object?(gray out means users can see input text but can not change any values) In luci model, Have gray out design can use it? thanks, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] How to display the execution graph?
Hi all, Such as pictures of the attachment! I want to show the execution status in function o.write when I execute my C API ? When the C API implementation of the latter will auto perform a save config and will display as attached status. Because when execution C API function there is a delay time, the middle does not have any message, so I want to display as attached action, how do I achieve? thanks all, attachment: luci UI.png___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/5] uboot-envtools: config for Edimax BR-6425
Signed-off-by: Yuval Adam yuv@gmail.com --- package/boot/uboot-envtools/files/ramips |5 + 1 file changed, 5 insertions(+) diff --git a/package/boot/uboot-envtools/files/ramips b/package/boot/uboot-envtools/files/ramips index 65cd49c..3599f68 100644 --- a/package/boot/uboot-envtools/files/ramips +++ b/package/boot/uboot-envtools/files/ramips @@ -21,6 +21,11 @@ all5002) ;; esac +br6425) + ubootenv_add_uci_config /dev/mtd1 0x0 0x1000 0x1 + ;; +esac + config_load ubootenv config_foreach ubootenv_add_app_config ubootenv -- 1.7.10.2 (Apple Git-33) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/5] ramips: add Edimax BR-6425 support to kernel
Signed-off-by: Yuval Adam yuv@gmail.com --- .../arch/mips/include/asm/mach-ralink/machine.h|1 + .../ramips/files/arch/mips/ralink/rt305x/Kconfig |5 ++ .../ramips/files/arch/mips/ralink/rt305x/Makefile |1 + .../files/arch/mips/ralink/rt305x/mach-br6425.c| 78 target/linux/ramips/rt305x/config-3.7 |1 + 5 files changed, 86 insertions(+) create mode 100644 target/linux/ramips/files/arch/mips/ralink/rt305x/mach-br6425.c diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h index 384a466..238495d 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h @@ -41,6 +41,7 @@ enum ramips_mach_type { RAMIPS_MACH_ALL0239_3G, /* ALL0239-3G */ RAMIPS_MACH_ARGUS_ATP52B, /* Argus ATP-52B */ RAMIPS_MACH_BC2,/* NexAira BC2 */ + RAMIPS_MACH_BR6425, /* Edimax BR-6425 */ RAMIPS_MACH_BROADWAY, /* Hauppauge Broadway */ RAMIPS_MACH_DAP_1350, /* D-Link DAP-1350 */ RAMIPS_MACH_ESR_9753, /* Senao / EnGenius ESR-9753*/ diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig b/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig index 97258de..c4653f5 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig @@ -17,6 +17,11 @@ config RT305X_MACH_3G300M select RALINK_DEV_GPIO_BUTTONS select RALINK_DEV_GPIO_LEDS +config RT305X_MACH_BR6425 + bool Edimax BR-6425 board support + select RALINK_DEV_GPIO_BUTTONS + select RALINK_DEV_GPIO_LEDS + config RT305X_MACH_WR6202 bool Accton WR6202 select RALINK_DEV_GPIO_BUTTONS diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile b/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile index d38765c..4e9f2f7 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile @@ -18,6 +18,7 @@ obj-$(CONFIG_RT305X_MACH_BC2) += mach-bc2.o obj-$(CONFIG_RT305X_MACH_AIR3GII) += mach-air3gii.o obj-$(CONFIG_RT305X_MACH_ALL0256N) += mach-all0256n.o obj-$(CONFIG_RT305X_MACH_ALL5002) += mach-all5002.o +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_DIR_300_REVB) += mach-dir-300-revb.o diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-br6425.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-br6425.c new file mode 100644 index 000..3a24516 --- /dev/null +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-br6425.c @@ -0,0 +1,78 @@ +/* + * Edimax BR-6425 board support + * + * Copyright (C) 2012 OpenWrt.org + * + * 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 linux/init.h +#include linux/platform_device.h +#include linux/spi/spi.h +#include linux/spi/flash.h + +#include asm/mach-ralink/machine.h +#include asm/mach-ralink/dev-gpio-buttons.h +#include asm/mach-ralink/dev-gpio-leds.h +#include asm/mach-ralink/rt305x.h +#include asm/mach-ralink/rt305x_regs.h + +#include devices.h + +#define BR6425_GPIO_LED_POWER 9 +#define BR6425_GPIO_BUTTON_RESET 12 +#define BR6425_GPIO_SWITCH_RFKILL 13 +#define BR6425_GPIO_LED_WLAN 14 +#define BR6425_KEYS_POLL_INTERVAL 20 +#define BR6425_KEYS_DEBOUNCE_INTERVAL (3 * BR6425_KEYS_POLL_INTERVAL) + +static struct gpio_keys_button br6425_gpio_buttons[] __initdata = { + { + .desc = reset_wps, + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = BR6425_KEYS_DEBOUNCE_INTERVAL, + .gpio = BR6425_GPIO_BUTTON_RESET, + .active_low = 1, + }, + { + .desc = RFKILL switch, + .type = EV_SW, + .code = KEY_RFKILL, + .debounce_interval = BR6425_KEYS_DEBOUNCE_INTERVAL, + .gpio = BR6425_GPIO_SWITCH_RFKILL, + .active_low = 1, + }, +}; + +static struct gpio_led br6425_leds_gpio[] __initdata = { + { + .name = edimax:green:power, + .gpio = BR6425_GPIO_LED_POWER, + .active_low = 1, + }, { + .name = edimax:orange:wlan, + .gpio = BR6425_GPIO_LED_WLAN, +
[OpenWrt-Devel] [PATCH] [package] [kernel/modules] add nForce Ethernet module
Signed-off-by: Zhiqiang Wang wang.9...@gmail.com --- --- package/kernel/modules/netdevices.mk(revision 35195) +++ package/kernel/modules/netdevices.mk(working copy) @@ -663,3 +663,18 @@ endef $(eval $(call KernelPackage,dm9000)) + +define KernelPackage/forcedeth + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=nForce Ethernet support + DEPENDS:=@PCI_SUPPORT + KCONFIG:=CONFIG_FORCEDETH + FILES:=$(LINUX_DIR)/drivers/net/ethernet/nvidia/forcedeth.ko + AUTOLOAD:=$(call AutoLoad,50,forcedeth) +endef + +define KernelPackage/forcedeth/description + Kernel driver for Nvidia Ethernet support +endef + +$(eval $(call KernelPackage,forcedeth)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] AA: Package zsh 5.0.2.
Hi, I would like to submit a Makefile feed for zsh. The actual patch is attached. If there is something that needs changes, please let me know. Kind regards, -- Francisco 0001-AA-Package-zsh-5.0.2.patch Description: Binary data ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] How to reload the model page?
Hi all, How to perform if I need to set completed need to re-load the model page? Because some values will not change on model page! thanks all, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCHv2] [ar71xx] add support for TL-WDR3500
PATCHv2 changelog: * got ethernet almost right: eth1 = wan, eth0 = lan ports, reversed * added board to sysupgrade support WDR3500 is similar to WDR3600 except it doesn't have gigabit ethernet, and has only 1 USB port. So, this patch (over r35162) adds a new board type, based on mach-tl-wdr4300.c but replacing ethernet config with one franken-based on mach-tl-wr841n-v8.c a huge thanks goes out to Paul Fertser for hours of tireless advice! Pending issues: * Leds are not working at all (except power and wlan_5g) * LAN switch ethernet ports are reversed with respect to case label. [Label] - soft device [LAN1] - eth0.4 [LAN2] - eth0.3 [LAN3] - eth0.2 [LAN4] - eth0.1 Anyone with experience fixing those details that cares to help, will be much appreciated! Thanks-to: Paul Fertser fercer...@gmail.com Signed-off-by: Gui Iribarren g...@altermundi.net --- target/linux/ar71xx/base-files/lib/ar71xx.sh |6 + .../ar71xx/base-files/lib/upgrade/platform.sh |1 + target/linux/ar71xx/config-3.7 |1 + .../ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c | 153 target/linux/ar71xx/generic/profiles/tp-link.mk|4 +- target/linux/ar71xx/image/Makefile |3 +- .../610-MIPS-ath79-openwrt-machines.patch | 27 +++- 7 files changed, 185 insertions(+), 10 deletions(-) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 31b6dde..a11c1c3 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -123,6 +123,9 @@ tplink_board_detect() { 342000*) model=TP-Link TL-MR3420 ;; + 35*) + model=TP-Link TL-WDR3500 + ;; 36*) model=TP-Link TL-WDR3600 ;; @@ -366,6 +369,9 @@ ar71xx_board_detect() { *TL-WA901ND v2) name=tl-wa901nd-v2 ;; + *TL-WDR3500) + name=tl-wdr3500 + ;; *TL-WDR3600/4300/4310) name=tl-wdr4300 ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 3d5efdb..a952a9b 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -158,6 +158,7 @@ platform_check_image() { tl-wa7510n | \ tl-wa901nd | \ tl-wa901nd-v2 | \ + tl-wdr3500 | \ tl-wdr4300 | \ tl-wr703n | \ tl-wr741nd | \ diff --git a/target/linux/ar71xx/config-3.7 b/target/linux/ar71xx/config-3.7 index a13cf98..80e0e81 100644 --- a/target/linux/ar71xx/config-3.7 +++ b/target/linux/ar71xx/config-3.7 @@ -63,6 +63,7 @@ CONFIG_ATH79_MACH_TL_MR3020=y CONFIG_ATH79_MACH_TL_MR3X20=y CONFIG_ATH79_MACH_TL_WA901ND=y CONFIG_ATH79_MACH_TL_WA901ND_V2=y +CONFIG_ATH79_MACH_TL_WDR3500=y CONFIG_ATH79_MACH_TL_WDR4300=y CONFIG_ATH79_MACH_TL_WR1041N_V2=y CONFIG_ATH79_MACH_TL_WR1043ND=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c new file mode 100644 index 000..05fe83d --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c @@ -0,0 +1,153 @@ +/* + * TP-LINK TL-WDR3500 board support + * + * Copyright (C) 2012 Gabor Juhos juh...@openwrt.org + * Copyright (C) 2013 Gui Iribarren g...@altermundi.net + * + * 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 linux/pci.h +#include linux/phy.h +#include linux/gpio.h +#include linux/platform_device.h +#include linux/ath9k_platform.h +#include linux/ar8216_platform.h + +#include asm/mach-ath79/ar71xx_regs.h + +#include common.h +#include dev-ap9x-pci.h +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-m25p80.h +#include dev-spi.h +#include dev-usb.h +#include dev-wmac.h +#include machtypes.h + +#define WDR3500_GPIO_LED_USB1 11 +#define WDR3500_GPIO_LED_WLAN2G13 +#define WDR3500_GPIO_LED_SYSTEM14 +#define WDR3500_GPIO_LED_QSS 15 + +#define WDR3500_GPIO_BTN_WPS 16 +#define WDR3500_GPIO_BTN_RFKILL17 + +#define WDR3500_GPIO_USB1_POWER22 + +#define WDR3500_KEYS_POLL_INTERVAL 20 /* msecs */ +#define WDR3500_KEYS_DEBOUNCE_INTERVAL (3 * WDR3500_KEYS_POLL_INTERVAL) + +#define WDR3500_MAC0_OFFSET0 +#define WDR3500_MAC1_OFFSET6 +#define WDR3500_WMAC_CALDATA_OFFSET0x1000 +#define WDR3500_PCIE_CALDATA_OFFSET0x5000 + +static const char *wdr3500_part_probes[] = { + tp-link, + NULL, +}; + +static struct flash_platform_data wdr3500_flash_data = { +
[OpenWrt-Devel] [PATCHv3] [ar71xx] add support for TL-WDR3500
PATCHv3 changelog: * I hate whitespace. v2 is broken, sorry for the noise. PATCHv2 changelog: * got ethernet almost right: eth1 = wan, eth0 = lan ports, reversed * added board to sysupgrade support WDR3500 is similar to WDR3600 except it doesn't have gigabit ethernet, and has only 1 USB port. So, this patch (over r35162) adds a new board type, based on mach-tl-wdr4300.c but replacing ethernet config with one franken-based on mach-tl-wr841n-v8.c a huge thanks goes out to Paul Fertser for hours of tireless advice! Pending issues: * Leds are not working at all (except power and wlan_5g) * LAN switch ethernet ports are reversed with respect to case label. [Label] - soft device [LAN1] - eth0.4 [LAN2] - eth0.3 [LAN3] - eth0.2 [LAN4] - eth0.1 Anyone with experience fixing those details that cares to help, will be much appreciated! Thanks-to: Paul Fertser fercer...@gmail.com Signed-off-by: Gui Iribarren g...@altermundi.net --- target/linux/ar71xx/base-files/lib/ar71xx.sh |6 + .../ar71xx/base-files/lib/upgrade/platform.sh |1 + target/linux/ar71xx/config-3.7 |1 + .../ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c | 153 target/linux/ar71xx/generic/profiles/tp-link.mk|4 +- target/linux/ar71xx/image/Makefile |3 +- .../610-MIPS-ath79-openwrt-machines.patch | 27 +++- 7 files changed, 185 insertions(+), 10 deletions(-) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 31b6dde..a11c1c3 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -123,6 +123,9 @@ tplink_board_detect() { 342000*) model=TP-Link TL-MR3420 ;; + 35*) + model=TP-Link TL-WDR3500 + ;; 36*) model=TP-Link TL-WDR3600 ;; @@ -366,6 +369,9 @@ ar71xx_board_detect() { *TL-WA901ND v2) name=tl-wa901nd-v2 ;; + *TL-WDR3500) + name=tl-wdr3500 + ;; *TL-WDR3600/4300/4310) name=tl-wdr4300 ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 3d5efdb..a952a9b 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -158,6 +158,7 @@ platform_check_image() { tl-wa7510n | \ tl-wa901nd | \ tl-wa901nd-v2 | \ + tl-wdr3500 | \ tl-wdr4300 | \ tl-wr703n | \ tl-wr741nd | \ diff --git a/target/linux/ar71xx/config-3.7 b/target/linux/ar71xx/config-3.7 index a13cf98..80e0e81 100644 --- a/target/linux/ar71xx/config-3.7 +++ b/target/linux/ar71xx/config-3.7 @@ -63,6 +63,7 @@ CONFIG_ATH79_MACH_TL_MR3020=y CONFIG_ATH79_MACH_TL_MR3X20=y CONFIG_ATH79_MACH_TL_WA901ND=y CONFIG_ATH79_MACH_TL_WA901ND_V2=y +CONFIG_ATH79_MACH_TL_WDR3500=y CONFIG_ATH79_MACH_TL_WDR4300=y CONFIG_ATH79_MACH_TL_WR1041N_V2=y CONFIG_ATH79_MACH_TL_WR1043ND=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c new file mode 100644 index 000..05fe83d --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c @@ -0,0 +1,153 @@ +/* + * TP-LINK TL-WDR3500 board support + * + * Copyright (C) 2012 Gabor Juhos juh...@openwrt.org + * Copyright (C) 2013 Gui Iribarren g...@altermundi.net + * + * 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 linux/pci.h +#include linux/phy.h +#include linux/gpio.h +#include linux/platform_device.h +#include linux/ath9k_platform.h +#include linux/ar8216_platform.h + +#include asm/mach-ath79/ar71xx_regs.h + +#include common.h +#include dev-ap9x-pci.h +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-m25p80.h +#include dev-spi.h +#include dev-usb.h +#include dev-wmac.h +#include machtypes.h + +#define WDR3500_GPIO_LED_USB1 11 +#define WDR3500_GPIO_LED_WLAN2G13 +#define WDR3500_GPIO_LED_SYSTEM14 +#define WDR3500_GPIO_LED_QSS 15 + +#define WDR3500_GPIO_BTN_WPS 16 +#define WDR3500_GPIO_BTN_RFKILL17 + +#define WDR3500_GPIO_USB1_POWER22 + +#define WDR3500_KEYS_POLL_INTERVAL 20 /* msecs */ +#define WDR3500_KEYS_DEBOUNCE_INTERVAL (3 * WDR3500_KEYS_POLL_INTERVAL) + +#define WDR3500_MAC0_OFFSET0 +#define WDR3500_MAC1_OFFSET6 +#define WDR3500_WMAC_CALDATA_OFFSET0x1000 +#define WDR3500_PCIE_CALDATA_OFFSET0x5000 + +static const char *wdr3500_part_probes[] = { + tp-link, + NULL,