[OpenWrt-Devel] [PATCH] [netifd/scripts] support numeric and symbolic values for signal in proto_kill_command()
[netifd/scripts] support numeric and symbolic values for signal in proto_kill_command() instead of let the caller do the conversion of symbolic to numeric, do the conversion internally - the old mode (numeric) is still supported Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- scripts/netifd-proto.sh | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index ce316c4..6625053 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -286,11 +286,22 @@ proto_run_command() { } proto_kill_command() { - local interface=$1; shift + local interface=$1 + local signal=$2 json_init json_add_int action 2 - [ -n $1 ] json_add_int signal $1 + + case $signal in + [0-9]|[0-9][0-9]) + json_add_int signal $signal + ;; + [a-zA-Z]*) + signal=$( kill -l $signal ) + json_add_int signal $signal + ;; + esac + _proto_notify $interface } -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [netifd/scripts] support numeric and symbolic values for signal in proto_kill_command()
Hi Bastian, On 16/10/2014 08:37, Bastian Bittorf wrote: [netifd/scripts] support numeric and symbolic values for signal in proto_kill_command() instead of let the caller do the conversion of symbolic to numeric, do the conversion internally - the old mode (numeric) is still supported looking at the code and your subject they dont match. to me it seems that what you want to say is make netifd scripts recognize signal strings such as INT/TERM/KILL/... John Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- scripts/netifd-proto.sh | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index ce316c4..6625053 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -286,11 +286,22 @@ proto_run_command() { } proto_kill_command() { - local interface=$1; shift + local interface=$1 + local signal=$2 json_init json_add_int action 2 - [ -n $1 ] json_add_int signal $1 + + case $signal in + [0-9]|[0-9][0-9]) + json_add_int signal $signal + ;; + [a-zA-Z]*) + signal=$( kill -l $signal ) + json_add_int signal $signal + ;; + esac + _proto_notify $interface } ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [netifd/proto/dhcp.sh] directly use signal name
[netifd/proto/dhcp.sh] directly use signal name in proto_dhcp_renew() we call proto_kill_command, which now supports symbolic names directly, so conversion unneeded. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/network/config/netifd/files/lib/netifd/proto/dhcp.sh |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index 6668b49..b3e09e2 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -59,9 +59,9 @@ proto_dhcp_setup() { proto_dhcp_renew() { local interface=$1 - # SIGUSR1 forces udhcpc to renew its lease - local sigusr1=$(kill -l SIGUSR1) - [ -n $sigusr1 ] proto_kill_command $interface $sigusr1 + + # forces udhcpc to renew its lease + proto_kill_command $interface SIGUSR1 } proto_dhcp_teardown() { -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [odhcp6c/scripts] directly use signal name
[odhcp6c/scripts] directly use signal name in proto_dhcp_renew() we call proto_kill_command, which now supports symbolic names directly, so conversion unneeded. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/network/ipv6/odhcp6c/files/dhcpv6.sh |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh index 5914abe..5637381 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh @@ -83,9 +83,9 @@ proto_dhcpv6_setup() { proto_dhcpv6_renew() { local interface=$1 - # SIGUSR1 forces odhcp6c to renew its lease - local sigusr1=$(kill -l SIGUSR1) - [ -n $sigusr1 ] proto_kill_command $interface $sigusr1 + + # forces odhcp6c to renew its lease + proto_kill_command $interface SIGUSR1 } proto_dhcpv6_teardown() { -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()
[netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... instead of let the caller do the conversion of symbolic to numeric (e.g. SIGUSR1 - 16), do the conversion internally - the old mode (numeric) is still supported Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- scripts/netifd-proto.sh | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index ce316c4..6625053 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -286,11 +286,22 @@ proto_run_command() { } proto_kill_command() { - local interface=$1; shift + local interface=$1 + local signal=$2 json_init json_add_int action 2 - [ -n $1 ] json_add_int signal $1 + + case $signal in + [0-9]|[0-9][0-9]) + json_add_int signal $signal + ;; + [a-zA-Z]*) + signal=$( kill -l $signal ) + json_add_int signal $signal + ;; + esac + _proto_notify $interface } -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1] ar71xx: add support for WNXT01/Springmole Boards
WNXT01/Springmole is a family of OEM boards designed by Wi-Next. This patch adds the core files needed by openwrt to support them. See: http://www.winext.eu http://www.springmole.com Signed-off-by: Massimiliano Galanti massimiliano.galanti at winext.eu --- target/linux/ar71xx/base-files/lib/ar71xx.sh |6 + .../ar71xx/files/arch/mips/ath79/mach-wnxt01.c | 304 .../ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c | 133 + .../728-MIPS-ath79-add-springmole-support.patch| 36 +++ 4 files changed, 479 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c create mode 100644 target/linux/ar71xx/patches-3.10/728-MIPS-ath79-add-springmole-support.patch diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 378a619..6f08c94 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -737,6 +737,12 @@ ar71xx_board_detect() { *ZCN-1523H-5) name=zcn-1523h-5 ;; + *Wi-Next 01 Board) + name=wnxt01 + ;; + *Wi-Next 01 LC Board) + name=wnxt01lc + ;; *EmbWir-Dorin) name=ew-dorin ;; diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c new file mode 100644 index 000..61a643d --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c @@ -0,0 +1,304 @@ +/* + * Wi-Next WNXT01 board support + * + * Copyright (C) 2014 Wi-Next i...@winext.eu + * + * 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/mtd/mtd.h +#include linux/mtd/partitions.h + +#include linux/i2c.h +#include linux/i2c-algo-bit.h +#include linux/i2c-gpio.h + +#include linux/spi/mcp23s08.h +#include linux/i2c/ads1015.h +//#include linux/rtc/ds1307.h + +#include linux/spi/spi.h +#include linux/spi/flash.h +#include linux/spi/mmc_spi.h +#include linux/mmc/host.h +#include linux/platform_device.h +#include linux/ar8216_platform.h + +#include asm/mach-ath79/ath79.h + +#include asm/gpio.h + +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-spi.h +#include dev-usb.h +#include machtypes.h +#include pci.h + +#define WNXT01_GPIO_I2C_SDA12 +#define WNXT01_GPIO_I2C_SCL14 + +static struct i2c_gpio_platform_data i2c_device_platdata = { + .sda_pin= WNXT01_GPIO_I2C_SDA, + .scl_pin= WNXT01_GPIO_I2C_SCL, + .scl_is_output_only = 1, +}; + +static struct platform_device i2c_gpio_device = { + .name = i2c-gpio, + .id = 0, + .dev= { + .platform_data = i2c_device_platdata, + }, +}; + +static struct mcp23s08_platform_data mcp23s08_platdata = { + .chip = { + { + .is_present = 1, + .pullups = (1 4 | 1 5), + }, + }, + .base = 20, +}; + +#define WNXT01_GPIO_EXP0 20 +#define WNXT01_GPIO_EXP1 21 +#define WNXT01_GPIO_EXP2 22 +#define WNXT01_GPIO_EXP3 23 + +#define WNXT01_GPIO_BTN0 24 +#define WNXT01_GPIO_BTN1 25 +#define WNXT01_GPIO_SDEN 26 +#define WNXT01_GPIO_USEN 27 + +static struct ads1015_platform_data ads1015_platdata = { + .channel_data = { + [4] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [5] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [6] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [7] = { .enabled = true, .pga = 1, .data_rate = 0 }, + } +}; + +//static struct ds1307_platform_data ds1307_platform_data = { +// .trickle_charger_setup = 0, +//}; + +static struct i2c_board_info i2c_devs[] __initdata = { + { + I2C_BOARD_INFO(mcp23008, 0x20), + .platform_data = mcp23s08_platdata, + }, + { + I2C_BOARD_INFO(ads1015, 0x48), + .platform_data = ads1015_platdata, + }, + { + I2C_BOARD_INFO(ds1339, 0x68), + //.platform_data = ds1307_platform_data, + }, +}; + +static struct ath79_spi_controller_data ath79_spi0_cdata = +{ + .cs_type = ATH79_SPI_CS_TYPE_INTERNAL, + .cs_line = 0, +}; + +static struct ath79_spi_controller_data ath79_spi1_cdata = +{ + .cs_type = ATH79_SPI_CS_TYPE_INTERNAL, + .cs_line = 1, +}; + +static struct flash_platform_data pb92_flash_data = { + .name = ar7240-nor0, +}; + +#include
Re: [OpenWrt-Devel] [PATCH 1/1] ar71xx: add support for WNXT01/Springmole Boards
sorry this patch has issues. dont' consider it. i'll repost it once fixed. 2014-10-16 9:48 GMT+02:00 Massimiliano Galanti massimiliano.gala...@winext.eu: WNXT01/Springmole is a family of OEM boards designed by Wi-Next. This patch adds the core files needed by openwrt to support them. See: http://www.winext.eu http://www.springmole.com Signed-off-by: Massimiliano Galanti massimiliano.galanti at winext.eu --- target/linux/ar71xx/base-files/lib/ar71xx.sh |6 + .../ar71xx/files/arch/mips/ath79/mach-wnxt01.c | 304 .../ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c | 133 + .../728-MIPS-ath79-add-springmole-support.patch| 36 +++ 4 files changed, 479 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c create mode 100644 target/linux/ar71xx/patches-3.10/728-MIPS-ath79-add-springmole-support.patch diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 378a619..6f08c94 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -737,6 +737,12 @@ ar71xx_board_detect() { *ZCN-1523H-5) name=zcn-1523h-5 ;; + *Wi-Next 01 Board) + name=wnxt01 + ;; + *Wi-Next 01 LC Board) + name=wnxt01lc + ;; *EmbWir-Dorin) name=ew-dorin ;; diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c new file mode 100644 index 000..61a643d --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c @@ -0,0 +1,304 @@ +/* + * Wi-Next WNXT01 board support + * + * Copyright (C) 2014 Wi-Next i...@winext.eu + * + * 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/mtd/mtd.h +#include linux/mtd/partitions.h + +#include linux/i2c.h +#include linux/i2c-algo-bit.h +#include linux/i2c-gpio.h + +#include linux/spi/mcp23s08.h +#include linux/i2c/ads1015.h +//#include linux/rtc/ds1307.h + +#include linux/spi/spi.h +#include linux/spi/flash.h +#include linux/spi/mmc_spi.h +#include linux/mmc/host.h +#include linux/platform_device.h +#include linux/ar8216_platform.h + +#include asm/mach-ath79/ath79.h + +#include asm/gpio.h + +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-spi.h +#include dev-usb.h +#include machtypes.h +#include pci.h + +#define WNXT01_GPIO_I2C_SDA12 +#define WNXT01_GPIO_I2C_SCL14 + +static struct i2c_gpio_platform_data i2c_device_platdata = { + .sda_pin= WNXT01_GPIO_I2C_SDA, + .scl_pin= WNXT01_GPIO_I2C_SCL, + .scl_is_output_only = 1, +}; + +static struct platform_device i2c_gpio_device = { + .name = i2c-gpio, + .id = 0, + .dev= { + .platform_data = i2c_device_platdata, + }, +}; + +static struct mcp23s08_platform_data mcp23s08_platdata = { + .chip = { + { + .is_present = 1, + .pullups = (1 4 | 1 5), + }, + }, + .base = 20, +}; + +#define WNXT01_GPIO_EXP0 20 +#define WNXT01_GPIO_EXP1 21 +#define WNXT01_GPIO_EXP2 22 +#define WNXT01_GPIO_EXP3 23 + +#define WNXT01_GPIO_BTN0 24 +#define WNXT01_GPIO_BTN1 25 +#define WNXT01_GPIO_SDEN 26 +#define WNXT01_GPIO_USEN 27 + +static struct ads1015_platform_data ads1015_platdata = { + .channel_data = { + [4] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [5] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [6] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [7] = { .enabled = true, .pga = 1, .data_rate = 0 }, + } +}; + +//static struct ds1307_platform_data ds1307_platform_data = { +// .trickle_charger_setup = 0, +//}; + +static struct i2c_board_info i2c_devs[] __initdata = { + { + I2C_BOARD_INFO(mcp23008, 0x20), + .platform_data = mcp23s08_platdata, + }, + { + I2C_BOARD_INFO(ads1015, 0x48), + .platform_data = ads1015_platdata, + }, + { + I2C_BOARD_INFO(ds1339, 0x68), + //.platform_data = ds1307_platform_data, + }, +}; + +static struct ath79_spi_controller_data ath79_spi0_cdata = +{ + .cs_type =
Re: [OpenWrt-Devel] miniupnpd state loss
Your change completely disables reloading which breaks in case of wan switching to a different interface or if lan interfaces are coming up. I commited a change https://github.com/openwrt-routing/packages/commit/8bc38fccc73b40e9599b897e335f2e7a5a67e879 which should avoid restarts in case wan interface flakes but stays the same. Please test and let me know if this solves your issue. Still miniunpd needs to be restarted in certain cases as noted above, this will cause loss of state however this problem must be resolved upstream as the program doesn't suppport a change of external or addition of internal interfaces without a restart. Cheers, Steven ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] lantiq vr9 and fxs
Hi to all, by manually setting correcly gpio like on original board with devmem: root@OpenWrt:/# /etc/init.d/tapidemo start eth1 ITM version 0.0.0.27. Compiled for EASY80910 with FXO (Slic121). Filesystem firmware binary used (/lib/firmware/voice_ar9_firmware.bin). VMMC [version 0x 0, type 0x 7, channels 2] ready! FW Version 2.1 VMMC Driver version 1.9.0.3 Using board EASY80910 with: - CID support: ETSI FSK, Europe (standard 1). - VAD support: IFX_TAPI_ENC_VAD_NOVAD - no voice activity detection. - LEC support: IFX_TAPI_WLEC_TYPE_NE - LEC using fixed window. No Echo Suppressor. - Debug level: HIGH. - Transparent fax/modem and T.38 transmission support. Dialing sequences for different call types: a) Local connection: c b) Extern connection: 0iiic c) PCM connection: 09iiic d) FXO connection: 05d e) FEATURE selection first digit must be 'STAR (*), afterthat feature number (4 digits). f) CONFERENCING first digit must be 'HASH (#)', afterthat normal dialing sequence, g) Extern connection with full ip: 0*xxx*xxx*xxx*xxx*dcc - each part separated with STAR (*), Legend: c - channel number started from 1 (1 means channel 0). iii - lowest part of external board IP address (a.b.c.iii) d - FXO channel, started from 1 (1 means channel 0). xxx*xxx*xxx*xxx - external board IP address (xxx.xxx.xxx.xxx) FXS channels calling table: | Dial | Board | Phone channel | || |1 | EASY80910 |0 | |2 | EASY80910 |1 | Stay tuned... (for the moment watchdog disabled, like has ben done on falcon patches) Regards Eddi ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/1v2] ar71xx: add support for WNXT01/Springmole Boards
WNXT01/Springmole is a family of OEM boards designed by Wi-Next. This patch adds the core files needed by openwrt to support them. See: http://www.winext.eu http://www.springmole.com Signed-off-by: Massimiliano Galanti massimiliano.galanti at winext.eu --- target/linux/ar71xx/base-files/lib/ar71xx.sh |6 + .../ar71xx/files/arch/mips/ath79/mach-wnxt01.c | 304 .../ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c | 133 + .../728-MIPS-ath79-add-springmole-support.patch| 36 +++ 4 files changed, 479 insertions(+) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01lc.c create mode 100644 target/linux/ar71xx/patches-3.10/728-MIPS-ath79-add-springmole-support.patch diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 378a619..6f08c94 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -737,6 +737,12 @@ ar71xx_board_detect() { *ZCN-1523H-5) name=zcn-1523h-5 ;; + *Wi-Next 01 Board) + name=wnxt01 + ;; + *Wi-Next 01 LC Board) + name=wnxt01lc + ;; *EmbWir-Dorin) name=ew-dorin ;; diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c new file mode 100644 index 000..61a643d --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnxt01.c @@ -0,0 +1,304 @@ +/* + * Wi-Next WNXT01 board support + * + * Copyright (C) 2014 Wi-Next i...@winext.eu + * + * 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/mtd/mtd.h +#include linux/mtd/partitions.h + +#include linux/i2c.h +#include linux/i2c-algo-bit.h +#include linux/i2c-gpio.h + +#include linux/spi/mcp23s08.h +#include linux/i2c/ads1015.h +//#include linux/rtc/ds1307.h + +#include linux/spi/spi.h +#include linux/spi/flash.h +#include linux/spi/mmc_spi.h +#include linux/mmc/host.h +#include linux/platform_device.h +#include linux/ar8216_platform.h + +#include asm/mach-ath79/ath79.h + +#include asm/gpio.h + +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-spi.h +#include dev-usb.h +#include machtypes.h +#include pci.h + +#define WNXT01_GPIO_I2C_SDA12 +#define WNXT01_GPIO_I2C_SCL14 + +static struct i2c_gpio_platform_data i2c_device_platdata = { + .sda_pin= WNXT01_GPIO_I2C_SDA, + .scl_pin= WNXT01_GPIO_I2C_SCL, + .scl_is_output_only = 1, +}; + +static struct platform_device i2c_gpio_device = { + .name = i2c-gpio, + .id = 0, + .dev= { + .platform_data = i2c_device_platdata, + }, +}; + +static struct mcp23s08_platform_data mcp23s08_platdata = { + .chip = { + { + .is_present = 1, + .pullups = (1 4 | 1 5), + }, + }, + .base = 20, +}; + +#define WNXT01_GPIO_EXP0 20 +#define WNXT01_GPIO_EXP1 21 +#define WNXT01_GPIO_EXP2 22 +#define WNXT01_GPIO_EXP3 23 + +#define WNXT01_GPIO_BTN0 24 +#define WNXT01_GPIO_BTN1 25 +#define WNXT01_GPIO_SDEN 26 +#define WNXT01_GPIO_USEN 27 + +static struct ads1015_platform_data ads1015_platdata = { + .channel_data = { + [4] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [5] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [6] = { .enabled = true, .pga = 1, .data_rate = 0 }, + [7] = { .enabled = true, .pga = 1, .data_rate = 0 }, + } +}; + +//static struct ds1307_platform_data ds1307_platform_data = { +// .trickle_charger_setup = 0, +//}; + +static struct i2c_board_info i2c_devs[] __initdata = { + { + I2C_BOARD_INFO(mcp23008, 0x20), + .platform_data = mcp23s08_platdata, + }, + { + I2C_BOARD_INFO(ads1015, 0x48), + .platform_data = ads1015_platdata, + }, + { + I2C_BOARD_INFO(ds1339, 0x68), + //.platform_data = ds1307_platform_data, + }, +}; + +static struct ath79_spi_controller_data ath79_spi0_cdata = +{ + .cs_type = ATH79_SPI_CS_TYPE_INTERNAL, + .cs_line = 0, +}; + +static struct ath79_spi_controller_data ath79_spi1_cdata = +{ + .cs_type = ATH79_SPI_CS_TYPE_INTERNAL, + .cs_line = 1, +}; + +static struct flash_platform_data pb92_flash_data = { + .name = ar7240-nor0, +}; + +#include
[OpenWrt-Devel] How to config/enable the WAN/LAN on RG100A with OpenWRT-14.07?
Hi, Guys I compiled and built one images for BRCM63XX/RG100A router, and reflash it into the router successfully. The LAN br-lan is working be default. However how can I enable the WAN for eth0 and eth1? Thanks in advance. Here is my router information as below: - BARRIER BREAKER (14.07, r42801) - * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffeean irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao - root@OpenWrt:~# ifconfig br-lanLink encap:Ethernet HWaddr 00:1F:A3:11:C5:3B inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18976 errors:0 dropped:759 overruns:0 frame:0 TX packets:7775 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1654007 (1.5 MiB) TX bytes:1465626 (1.3 MiB) eth0 Link encap:Ethernet HWaddr 00:1F:A3:11:C5:3A inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:16 eth1 Link encap:Ethernet HWaddr 00:1F:A3:11:C5:3B inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4441 errors:0 dropped:0 overruns:0 frame:0 TX packets:7164 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:572769 (559.3 KiB) TX bytes:1114723 (1.0 MiB) Interrupt:14 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:847761 errors:0 dropped:0 overruns:0 frame:0 TX packets:847761 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:57710690 (55.0 MiB) TX bytes:57710690 (55.0 MiB) wlan0 Link encap:Ethernet HWaddr 00:1F:A3:11:C5:3C UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14693 errors:0 dropped:0 overruns:0 frame:0 TX packets:11144 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1367505 (1.3 MiB) TX bytes:1712674 (1.6 MiB) -- _ __ _ _ ___| |__ ___ _ __ __ _ / _(_)___| |__ |_ / '_ \ / _ \ '_ \ / _` | | |_| / __| '_ \ / /| | | | __/ | | | (_| | | _| \__ \ | | | /___|_| |_|\___|_| |_|\__, | |_| |_|___/_| |_| |___/ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] kirkwood: add support for Linksys EA3500
Support for the Linksys EA3500. Here's the patch, and I entered the basic device info (including the serial console connections) on the wiki at http://wiki.openwrt.org/toh/linksys/ea3500 . Hope it can be of use to someone else, I know I've been waiting a long while to run OpenWRT on my router! -Dan Signed-off-by: Dan Walters d...@walters.io --- package/boot/uboot-envtools/files/kirkwood | 1 + .../kirkwood/base-files/etc/uci-defaults/01_leds | 3 + .../base-files/etc/uci-defaults/02_network | 3 + target/linux/kirkwood/base-files/lib/kirkwood.sh | 4 + target/linux/kirkwood/image/Makefile | 3 + .../linux/kirkwood/patches-3.14/170-ea3500.patch | 164 + target/linux/kirkwood/profiles/115-router.mk | 16 ++ 7 files changed, 194 insertions(+) create mode 100644 target/linux/kirkwood/patches-3.14/170-ea3500.patch diff --git a/package/boot/uboot-envtools/files/kirkwood b/package/boot/uboot-envtools/files/kirkwood index ef6c113..b15b8f9 100644 --- a/package/boot/uboot-envtools/files/kirkwood +++ b/package/boot/uboot-envtools/files/kirkwood @@ -14,6 +14,7 @@ touch /etc/config/ubootenv board=$(kirkwood_board_name) case $board in +ea3500 | \ ea4500 | \ ib62x0 | \ pogo_e02) diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds index 07c1a0e..41191f7 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds @@ -13,6 +13,9 @@ case $board in ucidef_set_led_default health status:green:health 1 ucidef_set_led_default fault status:orange:fault 1 ;; +ea3500) + ucidef_set_led_default power ea3500:green:power 1 + ;; ea4500) ucidef_set_led_default health ea4500:white:health 1 ucidef_set_led_default pulse ea4500:white:pulse 1 diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index e795d65..bc7e793 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -40,6 +40,9 @@ case $board in pogo_e02) set_lan_dhcp eth0 ;; +ea3500) + ucidef_set_interfaces_lan_wan eth0 eth1 + ;; ea4500) ucidef_set_interfaces_lan_wan eth0 eth1 ;; diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh index ba080f4..323a997 100755 --- a/target/linux/kirkwood/base-files/lib/kirkwood.sh +++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh @@ -29,6 +29,10 @@ kirkwood_board_detect() { name=pogo_e02 ;; + Linksys EA3500) + name=ea3500 + ;; + Linksys EA4500) name=ea4500 ;; diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index e3c6f0b..3852cac 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -117,6 +117,9 @@ Image/InstallKernel/Template/Generic=$(call Image/InstallKernel/Template) Image/BuildKernel/Template/DOCKSTAR=$(call Image/BuildKernel/Template,dockstar) Image/InstallKernel/Template/DOCKSTAR=$(call Image/InstallKernel/Template,dockstar) +Image/BuildKernel/Template/EA3500=$(call Image/BuildKernel/Template,ea3500) +Image/InstallKernel/Template/EA3500=$(call Image/InstallKernel/Template,ea3500) + Image/BuildKernel/Template/EA4500=$(call Image/BuildKernel/Template,ea4500) Image/InstallKernel/Template/EA4500=$(call Image/InstallKernel/Template,ea4500) diff --git a/target/linux/kirkwood/patches-3.14/170-ea3500.patch b/target/linux/kirkwood/patches-3.14/170-ea3500.patch new file mode 100644 index 000..155d9fc --- /dev/null +++ b/target/linux/kirkwood/patches-3.14/170-ea3500.patch @@ -0,0 +1,164 @@ +diff -ruN a/arch/arm/boot/dts/kirkwood-ea3500.dts b/arch/arm/boot/dts/kirkwood-ea3500.dts +--- a/arch/arm/boot/dts/kirkwood-ea3500.dts1969-12-31 19:00:00.0 -0500 b/arch/arm/boot/dts/kirkwood-ea3500.dts2014-10-13 15:13:15.695625124 -0500 +@@ -0,0 +1,149 @@ ++/* ++ * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500 ++ * ++ * (c) 2013 Jonas Gorski j...@openwrt.org ++ * (c) 2013 Deutsche Telekom Innovation Laboratories ++ * (c) 2014 Luka Perkov l...@openwrt.org ++ * (c) 2014 Dan Walters d...@walters.io ++ * ++ * This file is licensed under the terms of the GNU General Public ++ * License version 2. This program is licensed as is without any ++ * warranty of any kind, whether express or implied. ++ */ ++ ++/dts-v1/; ++ ++#include kirkwood.dtsi ++#include kirkwood-6282.dtsi ++ ++/ { ++ model = Linksys EA3500; ++ compatible = linksys,ea3500, marvell,kirkwood-88f6282, marvell,kirkwood; ++ ++ memory { ++ device_type = memory; ++
Re: [OpenWrt-Devel] [PATCH] kirkwood: add support for Linksys EA3500
Just a minor one in the dts... Cheers, Karl P On Wed, Oct 15, 2014 at 09:11:39AM -0500, Dan Walters wrote: Support for the Linksys EA3500. Here's the patch, and I entered the basic device info (including the serial console connections) on the wiki at http://wiki.openwrt.org/toh/linksys/ea3500 . Hope it can be of use to someone else, I know I've been waiting a long while to run OpenWRT on my router! diff --git a/target/linux/kirkwood/patches-3.14/170-ea3500.patch b/target/linux/kirkwood/patches-3.14/170-ea3500.patch new file mode 100644 index 000..155d9fc --- /dev/null +++ b/target/linux/kirkwood/patches-3.14/170-ea3500.patch @@ -0,0 +1,164 @@ +diff -ruN a/arch/arm/boot/dts/kirkwood-ea3500.dts b/arch/arm/boot/dts/kirkwood-ea3500.dts +--- a/arch/arm/boot/dts/kirkwood-ea3500.dts 1969-12-31 19:00:00.0 -0500 b/arch/arm/boot/dts/kirkwood-ea3500.dts 2014-10-13 15:13:15.695625124 -0500 +@@ -0,0 +1,149 @@ ++/* ++ * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500 ++ * ++ * (c) 2013 Jonas Gorski j...@openwrt.org ++ * (c) 2013 Deutsche Telekom Innovation Laboratories ++ * (c) 2014 Luka Perkov l...@openwrt.org ++ * (c) 2014 Dan Walters d...@walters.io ++ * ++ * This file is licensed under the terms of the GNU General Public ++ * License version 2. This program is licensed as is without any ++ * warranty of any kind, whether express or implied. ++ */ ++ ++/dts-v1/; ++ ++#include kirkwood.dtsi ++#include kirkwood-6282.dtsi ++ ++/ { ++model = Linksys EA3500; ++compatible = linksys,ea3500, marvell,kirkwood-88f6282, marvell,kirkwood; ++ ++memory { ++device_type = memory; ++reg = 0x 0x400; ++}; ++ ++chosen { ++bootargs = console=ttyS0,115200n8 earlyprintk; ++}; ++ ++mbus { ++pcie-controller { ++status = okay; ++ ++pcie@1,0 { ++status = okay; ++}; ++ ++pcie@2,0 { ++status = okay; ++}; ++}; ++}; ++ ++ocp@f100 { ++pinctrl: pinctrl@1 { ++pmx_led_green_power: pmx-led-green-power { ++marvell,pins = mpp7; ++marvell,function = gpo; Shouldn't that really be gpio? ++}; ++pmx_btn_wps: pmx-btn-wps { ++marvell,pins = mpp47; ++marvell,function = gpio; ++}; ++pmx_btn_reset: pmx-btn-reset { ++marvell,pins = mpp48; ++marvell,function = gpio; ++}; ++}; ++ ++rtc@10300 { ++status = disabled; ++}; ++ ++serial@12000 { ++status = okay; ++}; ++ ++}; ++ ++gpio_keys { ++compatible = gpio-keys; ++#address-cells = 1; ++#size-cells = 0; ++pinctrl-0 = pmx_btn_wps pmx_btn_reset ; Why are there spaces around the here? (and below) I don't see that in any of the other dts files for pinctrl on http://lxr.free-electrons.com/source/arch/arm/boot/dts/kirkwood-*** for instance. ++pinctrl-names = default; ++ ++button@15 { ++label = WPS Button; ++linux,code = KEY_WPS_BUTTON; ++gpios = gpio1 15 GPIO_ACTIVE_LOW; ++}; ++ ++button@16 { ++label = Reset Button; ++linux,code = KEY_RESTART; ++gpios = gpio1 16 GPIO_ACTIVE_LOW; ++}; ++}; ++ ++gpio-leds { ++compatible = gpio-leds; ++pinctrl-0 = pmx_led_green_power ; # this one here. ++pinctrl-names = default; ++ ++green-power { ++label = ea3500:green:power; ++gpios = gpio0 7 GPIO_ACTIVE_HIGH; ++}; ++}; ++}; ++ ++nand { ++status = okay; ++pinctrl-0 = pmx_nand; ++pinctrl-names = default; ++ ++partition@0 { ++label = u-boot; ++reg = 0x000 0x8; ++read-only; ++}; ++ ++partition@8 { ++label = u-boot environment; ++reg = 0x8 0x2; ++}; ++ ++partition@20 { ++label = kernel; ++reg = 0x20 0x20; ++}; ++ ++partition@40 { ++label = root; ++reg = 0x40 0x120; ++}; ++}; ++ ++mdio { ++status = okay; ++}; ++ ++eth0 { ++status = okay; ++ethernet0-port@0 { ++speed = 1000; ++duplex = 1; ++}; ++}; ++
Re: [OpenWrt-Devel] [PATCH] [kernel] kernel: add missing symbols for 3.14
On Tue, Oct 14, 2014 at 6:59 AM, John Crispin blo...@openwrt.org wrote: these should really go into the at91 config file. the CONFIG_AT91_* ones for sure but most likely also the others. So I tracked down the real problem. It's in configs/Config-kernel.in: ,[ Config-kernel.in ]- | [...] | 72 config KERNEL_DEBUG_LL_UART_NONE | 73 bool | 74 default n | 75 depends on arm | 76 | 77 config KERNEL_DEBUG_LL | 78 bool | 79 default n | 80 depends on arm | 81 select KERNEL_DEBUG_LL_UART_NONE | 82 help | 83 ARM low level debugging. | [...] `- The issue is that selecting KERNEL_DEBUG_LL then forces KERNEL_DEBUG_LL_UART_NONE, which ends up clobbering my configuration. Quite honestly, there are many more choices than the ones I was interested in, but the depend on specific architectures and whatnot. So I think the best course is to do this: diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 51cc31f..a25aece 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -69,16 +69,10 @@ config KERNEL_DEBUG_INFO help This will compile your kernel and modules with debug information. -config KERNEL_DEBUG_LL_UART_NONE - bool - default n - depends on arm - config KERNEL_DEBUG_LL bool default n depends on arm - select KERNEL_DEBUG_LL_UART_NONE help ARM low level debugging. And then platforms configure the setting however they need it. Does that seem acceptable? -John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] kirkwood: add support for Linksys EA3500
Hi Karl! On Thu, Oct 16, 2014, at 09:55 AM, Karl Palsson wrote: Just a minor one in the dts... ++ ocp@f100 { ++ pinctrl: pinctrl@1 { ++ pmx_led_green_power: pmx-led-green-power { ++ marvell,pins = mpp7; ++ marvell,function = gpo; Shouldn't that really be gpio? I wondered about that too, but in Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt, the possible functions for mpp7 are listed as: mpp7 7gpo, pex(rsto), spi(cs), ptp(trig) I just copied it from the EA4500 dts, and have tested that the LED works, so seems to be correct. ++ gpio_keys { ++ compatible = gpio-keys; ++ #address-cells = 1; ++ #size-cells = 0; ++ pinctrl-0 = pmx_btn_wps pmx_btn_reset ; Why are there spaces around the here? (and below) I don't see that in any of the other dts files for pinctrl on http://lxr.free-electrons.com/source/arch/arm/boot/dts/kirkwood-*** for instance. Indeed, looks like a lot of the kirkwood dts files have some spaces around the pinctrl stuff, but probably shouldn’t have them. I just copied that part from the ea4500. I’ll remove them. Thanks for taking a look! -Dan ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [kernel] kernel: add missing symbols for 3.14
On 16/10/2014 17:08, John Szakmeister wrote: On Tue, Oct 14, 2014 at 6:59 AM, John Crispin blo...@openwrt.org wrote: these should really go into the at91 config file. the CONFIG_AT91_* ones for sure but most likely also the others. So I tracked down the real problem. It's in configs/Config-kernel.in: ,[ Config-kernel.in ]- | [...] | 72 config KERNEL_DEBUG_LL_UART_NONE | 73 bool | 74 default n | 75 depends on arm | 76 | 77 config KERNEL_DEBUG_LL | 78 bool | 79 default n | 80 depends on arm | 81 select KERNEL_DEBUG_LL_UART_NONE | 82 help | 83 ARM low level debugging. | [...] `- The issue is that selecting KERNEL_DEBUG_LL then forces KERNEL_DEBUG_LL_UART_NONE, which ends up clobbering my configuration. Quite honestly, there are many more choices than the ones I was interested in, but the depend on specific architectures and whatnot. So I think the best course is to do this: diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 51cc31f..a25aece 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -69,16 +69,10 @@ config KERNEL_DEBUG_INFO help This will compile your kernel and modules with debug information. -config KERNEL_DEBUG_LL_UART_NONE - bool - default n - depends on arm - config KERNEL_DEBUG_LL bool default n depends on arm - select KERNEL_DEBUG_LL_UART_NONE help ARM low level debugging. And then platforms configure the setting however they need it. Does that seem acceptable? -John thanks for the detailed analyses, i will have a look at this tomorrow. John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [kernel] kernel: add missing symbols for 3.14
On 10/14/2014 03:59 AM, John Crispin wrote: these should really go into the at91 config file. the CONFIG_AT91_* ones for sure but most likely also the others. The others seems like candidate for the generic kernel config to me, since they are shared by more than one ARM platform. earlyprintk on ARM is kind of a pita though since you always need to select which UART implementation/location you want, maybe we should just remove the earlyprintk selection for ARM entirely. On 11/10/2014 07:51, John Szakmeister wrote: --- Without these, my earlyprintk configuration was being lost. -John target/linux/generic/config-3.14 | 5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/generic/config-3.14 b/target/linux/generic/config-3.14 index 830efff..5f16281 100644 --- a/target/linux/generic/config-3.14 +++ b/target/linux/generic/config-3.14 @@ -240,6 +240,8 @@ CONFIG_ARPD=y # CONFIG_ASYNC_TX_DMA is not set # CONFIG_AT76C50X_USB is not set # CONFIG_AT803X_PHY is not set +# CONFIG_AT91_DEBUG_LL_DBGU0 is not set +# CONFIG_AT91_DEBUG_LL_DBGU1 is not set # CONFIG_ATA is not set # CONFIG_ATAGS is not set CONFIG_ATAGS_PROC=y @@ -770,6 +772,9 @@ CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_KOBJECT_RELEASE is not set # CONFIG_DEBUG_LIST is not set # CONFIG_DEBUG_LL is not set +# CONFIG_DEBUG_LL_UART_8250 is not set +# CONFIG_DEBUG_LL_UART_NONE is not set +# CONFIG_DEBUG_LL_UART_PL01X is not set # CONFIG_DEBUG_LOCKDEP is not set # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set # CONFIG_DEBUG_LOCK_ALLOC is not set ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Wiki 502 Bad Gateway!
Hello guys, there is a error. signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [base-files] /lib/netifd/dhcp.script - only call firewall, if installed
[base-files] /lib/netifd/dhcp.script - only call firewall, if installed we dont use fw3, so i was wondering about error-messages in syslog about fw3. check if 'fw3' is in place, before calling it. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/network/config/netifd/files/lib/netifd/dhcp.script |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script index 90fa6d3..2030fd5 100755 --- a/package/network/config/netifd/files/lib/netifd/dhcp.script +++ b/package/network/config/netifd/files/lib/netifd/dhcp.script @@ -50,7 +50,10 @@ setup_interface () { ip6rd=${ip6rd#* } local ip6rdbr=${ip6rd%% *} - [ -n $ZONE ] || ZONE=$(fw3 -q network $INTERFACE) + [ -z $ZONE ] { + [ -e '/sbin/fw3' ] ZONE=$(fw3 -q network $INTERFACE) + } + [ -z $IFACE6RD -o $IFACE6RD = 1 ] IFACE6RD=${INTERFACE}_6rd json_init -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [odhcp6c] script: only call firewall, if installed
[odhcp6c] script: only call firewall, if installed we dont use fw3, so i was wondering about error-messages in syslog about fw3. check if 'fw3' is in place, before calling it. Signed-off-by: Bastian Bittorf bitt...@bluebottle.com --- package/network/ipv6/odhcp6c/files/dhcpv6.script |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index 1acad19..6c47132 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -111,7 +111,9 @@ setup_interface () { MAPRULE=$LW4O6 fi - [ -n $ZONE ] || ZONE=$(fw3 -q network $INTERFACE) + [ -z $ZONE ] { + [ -e '/sbin/fw3' ] ZONE=$(fw3 -q network $INTERFACE) + } if [ $IFACE_MAP != 0 -a -n $MAPTYPE -a -n $MAPRULE ]; then [ -z $IFACE_MAP -o $IFACE_MAP = 1 ] IFACE_MAP=${INTERFACE}_map -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Consider enabling HTTPS for wiki.openwrt.org
I'm unable to access http://wiki.openwrt.org. It seems that the wiki site is down. Is there any maintenance to the wiki? If it's because of maintenance, I suggest to implement tls over http (https) to secure data integrity. So that, editing and viewing OpenWrt wiki will be more convenient. I feel bad when editing OpenWrt wiki without https, because I'm behind a transparent http proxy. I often get error messages about invalid proxy requests when I attempt to save my editing work. My only hope for OpenWrt web admin is to consider https for wiki.openwrt.org site. Thanks. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] miniupnpd state loss
Hi Steve, The solution works great. I have tested it. Thanks Kevin -Original Message- From: Steven Barth [mailto:cy...@openwrt.org] Sent: Thursday, October 16, 2014 4:48 AM To: openwrt-devel@lists.openwrt.org Cc: Kao Kevin Subject: Re: [OpenWrt-Devel] miniupnpd state loss Your change completely disables reloading which breaks in case of wan switching to a different interface or if lan interfaces are coming up. I commited a change https://github.com/openwrt-routing/packages/commit/8bc38fccc73b40e9599b897e335f2e7a5a67e879 which should avoid restarts in case wan interface flakes but stays the same. Please test and let me know if this solves your issue. Still miniunpd needs to be restarted in certain cases as noted above, this will cause loss of state however this problem must be resolved upstream as the program doesn't suppport a change of external or addition of internal interfaces without a restart. Cheers, Steven ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] miniupnpd state loss
Steve, Thanks for the fix. I had also experienced this issue. Do you know if it is possible to back-port the fix BB14.07?? Regards, Luis Garcia On Thu, Oct 16, 2014 at 2:20 PM, Kao Kevin kevin@technicolor.com wrote: Hi Steve, The solution works great. I have tested it. Thanks Kevin -Original Message- From: Steven Barth [mailto:cy...@openwrt.org] Sent: Thursday, October 16, 2014 4:48 AM To: openwrt-devel@lists.openwrt.org Cc: Kao Kevin Subject: Re: [OpenWrt-Devel] miniupnpd state loss Your change completely disables reloading which breaks in case of wan switching to a different interface or if lan interfaces are coming up. I commited a change https://github.com/openwrt-routing/packages/commit/8bc38fccc73b40e9599b897e335f2e7a5a67e879 which should avoid restarts in case wan interface flakes but stays the same. Please test and let me know if this solves your issue. Still miniunpd needs to be restarted in certain cases as noted above, this will cause loss of state however this problem must be resolved upstream as the program doesn't suppport a change of external or addition of internal interfaces without a restart. Cheers, Steven ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Error compiling rpcd in openwrt (r42926)
Hi, I'm getting compile error while compiling rpcd in openwrt for MT7620A based router. I'm using the latest source code (r42926) and kernel 3.14.18. I'm getting similar error from both Linux and mac os x machines. Any idea, how to solve this issue? ERROR LOG: /*/ ... ... /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:59:2: error: unknown type name 'json_tokener' json_tokener *tok; ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call_stdout_cb': /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:86:3: error: implicit declaration of function 'json_tokener_parse_ex' [-Werror=implicit-function-declaration] c-obj = json_tokener_parse_ex(c-tok, buf, len); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:86:10: error: assignment makes pointer from integer without a cast [-Werror] c-obj = json_tokener_parse_ex(c-tok, buf, len); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:3: error: implicit declaration of function 'json_tokener_get_error' [-Werror=implicit-function-declaration] if (json_tokener_get_error(c-tok) != json_tokener_continue) ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:41: error: 'json_tokener_continue' undeclared (first use in this function) if (json_tokener_get_error(c-tok) != json_tokener_continue) ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:41: note: each undeclared identifier is reported only once for each function it appears in /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call_finish_cb': /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:107:40: error: 'json_tokener_success' undeclared (first use in this function) if (json_tokener_get_error(c-tok) == json_tokener_success) ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:111:4: error: implicit declaration of function 'json_object_get_type' [-Werror=implicit-function-declaration] if (json_object_get_type(c-obj) == json_type_object ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:111:40: error: 'json_type_object' undeclared (first use in this function) if (json_object_get_type(c-obj) == json_type_object ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:115:4: error: implicit declaration of function 'json_object_put' [-Werror=implicit-function-declaration] json_object_put(c-obj); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:123:2: error: implicit declaration of function 'json_tokener_free' [-Werror=implicit-function-declaration] json_tokener_free(c-tok); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call': /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:147:2: error: implicit declaration of function 'json_tokener_new' [-Werror=implicit-function-declaration] c-tok = json_tokener_new(); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:147:9: error: assignment makes pointer from integer without a cast [-Werror] c-tok = json_tokener_new(); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_parse_exec': /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:262:2: error: unknown type name 'json_tokener' json_tokener *tok; ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:267:6: error: assignment makes pointer from integer without a cast [-Werror] tok = json_tokener_new(); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:274:9: error: assignment makes pointer from integer without a cast [-Werror] jsobj = json_tokener_parse_ex(tok, outbuf, len); ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:276:38: error: 'json_tokener_continue' undeclared (first use in this function) if (json_tokener_get_error(tok) == json_tokener_continue) ^ /Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:279:38: error: 'json_tokener_success' undeclared (first use in this function)