Re: [OpenWrt-Devel] [Patch] [ar71xx] added support for TL-WA830RE V2

2014-07-12 Thread Fredrik Jonson
Hello, I'm sorry John, I do not understand what you mean, with your comment. /Fjonson ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [Patch] [ar71xx] added support for TL-WA830RE V2

2014-07-12 Thread John Crispin
On 12/07/2014 11:20, Fredrik Jonson wrote: > Hello, > > I'm sorry John, I do not understand what you mean, with your > comment. > > /Fjonson ___ > openwrt-devel mailing list openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman

[OpenWrt-Devel] [PATCH] lantiq: configure uboot-envtools on BTHOMEHUBV2B and make it work correctly on other lantiq boards

2014-07-12 Thread Ben Mulvihill
Generate the configuration file for uboot-envtools on BTHOMEHUBV2B. Adds the specific parameters for the BTHOMEHUBV2B and also fixes an incorrect path which would have affected other lantiq boards as well (currently only the GIGASX76X). Signed-off-by: Ben Mulvihill --- --- a/package/boot/uboot-e

[OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-12 Thread Sergey Ryazanov
Main goals of this series: * Simplify interface between arch code and SoC drivers * Simplify internal realization of arch code * Make code consistent with mainstream kernel rules and practice Sergey Ryazanov (17): atheros[ar2315-wdt]: rename config symbol atheros: use correct address space

[OpenWrt-Devel] [PATCH 05/17] atheros[ar231x-eth]: update MAC and PHY reset method

2014-07-12 Thread Sergey Ryazanov
Pass reset_set and reset_clear callback functions pointers via platform_data instead of reset register address. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 49 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 24 ---

[OpenWrt-Devel] [PATCH 01/17] atheros[ar2315-wdt]: rename config symbol

2014-07-12 Thread Sergey Ryazanov
Rename config symbol to AR2315_WDT to avoid confusion with other Atheros SoCs. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- target/linux/atheros/patches-3.10/130-watchdog.patch | 11 ++- 2 files changed, 7 insertions(+), 6 deletions(-)

[OpenWrt-Devel] [PATCH 07/17] atheros: pass UART IRQ number via function argument

2014-07-12 Thread Sergey Ryazanov
UART IRQ number could be different for different SoCs, so make them configurable. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.

[OpenWrt-Devel] [PATCH 02/17] atheros: use correct address space and pointer type for register access

2014-07-12 Thread Sergey Ryazanov
Make sparse happy :) Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 36ad7c8..

[OpenWrt-Devel] [PATCH 06/17] atheros[ar231x-eth]: move driver to atheros subdirectory

2014-07-12 Thread Sergey Ryazanov
Move driver code to respective vendor subdirectory and fix config symbol name. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/config-3.10 | 2 +- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 59 +++--- .../patches-3.10/220-enet_micrel_workaroun

[OpenWrt-Devel] [PATCH 04/17] atheros[ar2315-wdt]: update I/O handling

2014-07-12 Thread Sergey Ryazanov
* Pass iomem and IRQ via platform device resources * Remap iomem and use iowrite32 accessor function Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 17 +++- .../linux/atheros/patches-3.10/130-watchdog.patch | 45 -- 2 files chan

[OpenWrt-Devel] [PATCH 03/17] atheros[ar2315-wdt]: update interrupt handling

2014-07-12 Thread Sergey Ryazanov
Acknowledge watchdog interrupt in arch irq dispatcher and remove odd watchdog enable call from probe function. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 7 --- target/linux/atheros/patches-3.10/130-watchdog.patch | 5 + 2 files changed, 5 i

[OpenWrt-Devel] [PATCH 11/17] atheros: use irq_set_chained_handler()

2014-07-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 34 +++--- .../atheros/patches-3.10/105-ar2315_pci.patch | 6 ++-- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/ta

[OpenWrt-Devel] [PATCH 10/17] atheros: simplify AR2315 misc IRQ (un)masking

2014-07-12 Thread Sergey Ryazanov
Currently AR5312 misc IRQ numbers are used for AR2315+ chips, what cause us to use switch-case to map IRQ number to ISR bit. Introduce AR2315 specific misc IRQs set and simplify interrupt (un)mask operation. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch |

[OpenWrt-Devel] [PATCH 08/17] atheros: move AR2315 misc IRQ dispatching to separate function

2014-07-12 Thread Sergey Ryazanov
Align code with AR5312 realization. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 47 -- .../atheros/patches-3.10/105-ar2315_pci.patch | 15 +++ 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/target/linux/at

[OpenWrt-Devel] [PATCH 13/17] atheros[ar231x-eth]: pass phys address of I/O memory via platform res

2014-07-12 Thread Sergey Ryazanov
Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 20 ++-- .../atheros/patches-3.10/110-ar2313_ethernet.patch | 19 --- .../patches-3.10/220-enet_micrel_workaround.patch| 6 +++--- 3 files changed, 21 insertions(+), 24

[OpenWrt-Devel] [PATCH 15/17] atheros[uart]: use 32-bit aligned I/O

2014-07-12 Thread Sergey Ryazanov
Use 32-bit aligned I/O and update base UART address (remove +3 offset). Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch| 6 +++--- target/linux/atheros/patches-3.10/101-early-printk-support.patch | 4 ++-- 2 files changed, 5 insertions(+), 5 d

[OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Sergey Ryazanov
Pass PHY I/O memory region via platform resources and remap them unconditionally. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 57 ++ .../atheros/patches-3.10/110-ar2313_ethernet.patch | 48 +++--- .../patches-3.10/220-en

[OpenWrt-Devel] [PATCH 12/17] atheros: simplify gpiolib realization

2014-07-12 Thread Sergey Ryazanov
Each SoCs generation has own independent gpiolib realization, so we have no reason to keep these realizations in semiuniversal form. Following modifications are made: * Remove valid_mask field * Remove ar231x_gpio_chip structure * Rename AR2315_GPIO_CR to AR2315_GPIO_DIR * Fix count of AR5312 G

[OpenWrt-Devel] [PATCH 09/17] atheros: rename some interrupt control handlers

2014-07-12 Thread Sergey Ryazanov
Rename interrupt control handlers to be consistent with operation names and add IRQ chips names. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 45 --- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/target/linux/atheros

[OpenWrt-Devel] [PATCH 16/17] atheros[uart]: pass only physical I/O mem address to 8250 driver

2014-07-12 Thread Sergey Ryazanov
Pass only physical address to 8250 serial port driver and set flag to remap I/O memory inside the driver. Also fix AR5312 UART base address definition, which seems specified already mapped. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.10/100-board.patch | 11 +-- 1 f

[OpenWrt-Devel] [PATCH 17/17] atheros: update macroses names

2014-07-12 Thread Sergey Ryazanov
Use AR2315_ prefix for macroses specific to AR2315/AR2316/AR2317 chips, use AR5312_ prefix for macroses specific to AR5312/AR2312/AR2313 chips, and use AR231X_ prefix for common macroses. This patch should not cause any functional changes, only make clear which macros is common and which macros is

[OpenWrt-Devel] [Patch] [ar71xx] added support for TL-WA830RE V2

2014-07-12 Thread Fredrik Jonson
Corrected patch ath79 insted of auth79. Sorry. Signed-off-by: Fredrik Jonson --- target/linux/ar71xx/base-files/etc/diag.sh | 1 + .../ar71xx/base-files/etc/uci-defaults/01_leds | 5 + .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/

Re: [OpenWrt-Devel] [PATCH 00/17] atheros: I/O cleanups

2014-07-12 Thread Sergey Ryazanov
2014-07-12 17:33 GMT+04:00 Sergey Ryazanov : > Main goals of this series: > * Simplify interface between arch code and SoC drivers > * Simplify internal realization of arch code > * Make code consistent with mainstream kernel rules and practice > Forgot to say, that this series extensively teste

[OpenWrt-Devel] Symmetric MultiProcessing broken for IXP4xx arch.

2014-07-12 Thread Carlos Ferreira
I'm having an issue with OpenWRT trunk where it seems that SMP (Symmetric MultiProcessing) is marked as being Broken, for the IXP4xx arch and I'm trying to compile netmap for the Cambria SBC. Netmap requires the kernel to have SMP active. Can anyone tell me

Re: [OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Felix Fietkau
On 2014-07-12 15:33, Sergey Ryazanov wrote: > Pass PHY I/O memory region via platform resources and remap them > unconditionally. > > Signed-off-by: Sergey Ryazanov > diff --git a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch > b/target/linux/atheros/patches-3.10/110-ar2313_ethern

Re: [OpenWrt-Devel] Symmetric MultiProcessing broken for IXP4xx arch.

2014-07-12 Thread Felix Fietkau
On 2014-07-12 16:29, Carlos Ferreira wrote: > I'm having an issue with OpenWRT trunk where it seems > that SMP (Symmetric MultiProcessing) is marked as being Broken, for the > IXP4xx arch and I'm trying to compile netmap > for the Cambria SBC. Netmap > requ

Re: [OpenWrt-Devel] Symmetric MultiProcessing broken for IXP4xx arch.

2014-07-12 Thread Carlos Ferreira
Yes I know that, but the thing is, for the 3.10 kernel, CONFIG_RPS depends on CONFIG_SMP. CONFIG_RPS enables the definition of real_num_rx_queues field for the netdev_rx_queue struct (netdevice.h). Netmap requires the existence of the real_num_rx_queues field. I cannot compile it CONFIG_RPS is not

Re: [OpenWrt-Devel] Symmetric MultiProcessing broken for IXP4xx arch.

2014-07-12 Thread Felix Fietkau
On 2014-07-12 16:51, Carlos Ferreira wrote: > Yes I know that, but the thing is, for the 3.10 kernel, CONFIG_RPS > depends on CONFIG_SMP. > CONFIG_RPS enables the definition of real_num_rx_queues field for the > netdev_rx_queue struct (netdevice.h). Netmap requires the existence of > the real_num_

Re: [OpenWrt-Devel] Symmetric MultiProcessing broken for IXP4xx arch.

2014-07-12 Thread Carlos Ferreira
Well, like I said, beyond Linux 3.14 kernel version, the field is defined if CONFIG_SYSFS is active. I will contact the netmap developers to see if they are available to update the source. On 12 July 2014 15:58, Felix Fietkau wrote: > On 2014-07-12 16:51, Carlos Ferreira wrote: > > Yes I know

Re: [OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Sergey Ryazanov
2014-07-12 18:37 GMT+04:00 Felix Fietkau : > On 2014-07-12 15:33, Sergey Ryazanov wrote: >> Pass PHY I/O memory region via platform resources and remap them >> unconditionally. >> >> Signed-off-by: Sergey Ryazanov > >> diff --git a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch >> b/

Re: [OpenWrt-Devel] [PATCH 14/17] atheros[ar231x-eth]: pass PHY I/O memory via device resources

2014-07-12 Thread Felix Fietkau
On 2014-07-12 17:16, Sergey Ryazanov wrote: > 2014-07-12 18:37 GMT+04:00 Felix Fietkau : >> On 2014-07-12 15:33, Sergey Ryazanov wrote: >>> Pass PHY I/O memory region via platform resources and remap them >>> unconditionally. >>> >>> Signed-off-by: Sergey Ryazanov >> >>> diff --git a/target/linux/

[OpenWrt-Devel] Squirrel instead of Lua?

2014-07-12 Thread valent.turko...@gmail.com
Hi devs, after listening to Amp Hour podcast ep 202 [1], interview With Brandon Harris from Electric Imp, which was impressive I heard something really alarming. Whey were using Lua in their product previous to launch, but they were so strongly againgst shipping it with Lua because they realized t

[OpenWrt-Devel] [PATCH V2 1/2] brcm63xx: Add support for Comtrend VR-3025u

2014-07-12 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Signed off by: José Vázquez Fernández --- diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index a04f4a5..1d42d47 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-de

[OpenWrt-Devel] [PATCH V2 2/2] brcm63xx: Add support for Comtrend VR-3025un

2014-07-12 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Signed off by: José Vázquez Fernández --- diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index 1d42d47..aa32099 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-de

[OpenWrt-Devel] [PATCH 1/2] firmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)

2014-07-12 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/tools/firmware-utils/Makefile b/tools/firmware-utils/Makefile index 64eccdd..d5cfdaa 100644 --- a/tools/firmware-utils/Makefile +++ b/tools/firmware-utils/Makefile @@ -49,6 +49,7 @@ define Host/Compile $(call cc,mkchkimg) $(cal

[OpenWrt-Devel] [PATCH 2/2] brcm63xx: Add support for ZyXEL P870HW-51a v2

2014-07-12 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index aa32099..964f5ba 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/br

Re: [OpenWrt-Devel] Squirrel instead of Lua?

2014-07-12 Thread Rafał Miłecki
On 12 July 2014 23:13, valent.turko...@gmail.com wrote: > They found Squirrel [2], so first question that popped into my mind > was - is there Squirrel for OpenWrt. And from what I have seen so far > there is not. > > Has anybody used Squirrel? Would it make sense to look into it and > would it be

[OpenWrt-Devel] How to properly add an unreachable route?

2014-07-12 Thread Dave Taht
I have been trying to simplify my babel setup. I have 8 /27s out of a single /24 that I would like not to have to expose to the universe. I have 172.21.2.0/27, 172.21.2.64/27 etc on each of the 8 devices I have. But there is no need to export each /27, as these are out of a single /24. The way t

Re: [OpenWrt-Devel] Squirrel instead of Lua?

2014-07-12 Thread Paul Sokolovsky
Hello, On Sat, 12 Jul 2014 23:13:37 +0200 "valent.turko...@gmail.com" wrote: > Hi devs, > after listening to Amp Hour podcast ep 202 [1], interview With Brandon > Harris from Electric Imp, which was impressive I heard something > really alarming. > > Whey were using Lua in their product previou

Re: [OpenWrt-Devel] How to properly add an unreachable route?

2014-07-12 Thread Gui Iribarren
On 12/07/14 20:10, Dave Taht wrote: > I have been trying to simplify my babel setup. I have > 8 /27s out of a single /24 that I would like not > to have to expose to the universe. > > I have 172.21.2.0/27, 172.21.2.64/27 etc > on each of the 8 devices I have. > > But there is no need to export ea

[OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1

2014-07-12 Thread Cezary Jackiewicz
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/