[LEDE-DEV] [PATCH] ramips: add support for GL-inet GL-MT300N-V2

2017-05-04 Thread kysonlok
This patch adds supports for the GL-inet GL-MT300N-V2. Specification: - SoC: MT7628AN - Flash: 16 MiB (W25Q128FVSG) - RAM: 512 MiB DDR - Ethernet: 1 x WAN (10/100/1000Mbps) and 1 x LAN (10/100 Mbps) - USB: 1 x USB 2.0 port - Button: 2 x switch button, 1 x reset button - LED: 3 x LEDS - UART: 1 x U

Re: [LEDE-DEV] Proper way to deal with "dual firmware" ar71xx devices

2017-05-04 Thread Bjørn Mork
Mathias Kresin writes: > I had a similar problem with the dual image feature of brnboot in > lantiq. It resulted in the following two patches: > > https://git.lede-project.org/d7438ce3152e2e0dc1678dcb24ca050dbc2733c8 > https://git.lede-project.org/60ac4852745c69ae13a770dc343b648925b73ca2 > > Sinc

Re: [LEDE-DEV] Proper way to deal with "dual firmware" ar71xx devices

2017-05-04 Thread Mathias Kresin
2017-04-23 20:40 GMT+02:00 Bjørn Mork : Hello, Many devices make use of "dual firmware" configurations, splitting the available flash and allowing two complete and independent installations. This works fine for devices like the Linksys WRT1900AC etc, where the boot loader make sure the kernel

Re: [LEDE-DEV] [PATCH] ramips: Add support for GL-MT300N-V2

2017-05-04 Thread Thomas Endt
> -Ursprüngliche Nachricht- > von Piotr Dymacz > Gesendet: Donnerstag, 4. Mai 2017 10:30 > > Hello, > > Please, make sure to add a proper SoB line as described in "Submitting > patches": [1]. > > Also, could you please include in your commit message short description > about the hardware

Re: [LEDE-DEV] [PATCH] ramips: Add support for GL-MT300N-V2

2017-05-04 Thread Mathias Kresin
Hey kysonlok, thanks a lot for your contribution. Find my comments inline. 04.05.2017 08:41, kysonlok: This patches adds support for GL-MT300N-V2 router. Signed-off-by: kysonlok We have a realname policy for signed off by lines. --- target/linux/ramips/base-files/etc/board.d/01_leds |

Re: [LEDE-DEV] RFC: files included in initramfs images

2017-05-04 Thread Mathias Kresin
Hey Daniel, Hey Thomas, following my toughs regarding backports of commits to stable. 04.05.2017 17:53, Daniel Golle: When it came to backport this to lede-17.01 I noticed that several boards have been added to master since and are not yet present in the lede-17.01 branch. Also the ZBT WG3526 h

[LEDE-DEV] Zyxel NBG4615 v1/v2

2017-05-04 Thread Zdeno K.
Hello, will be this two routers ever supported (NBG4615 v1/v2)? On site is written "possible to support" but its pretty old, will it be ever? Thanks ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/

Re: [LEDE-DEV] RFC: files included in initramfs images (was: [PATCH] ramips: enable ramdisk for mt7621)

2017-05-04 Thread Daniel Golle
Hi everyone, I found another quick solution to the problem which was to reduce the amount of packages in the default profile of MT7621. See commit d17cb4a68a45 in the master branch. When it came to backport this to lede-17.01 I noticed that several boards have been added to master since and are no

[LEDE-DEV] [PATCH v2 8/9] firewall3: display the section type for UBUS rules

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu It gives the ability to display the section type for rules pushed via procd services and netifd interface firewall data. Signed-off-by: Pierre Lebleu --- ubus.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/ubus.c b/ubus.c i

[LEDE-DEV] [PATCH v2 7/9] firewall3: add UBUS support for include scripts

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu It gives the ability to include scripts via procd services and netifd interface firewall data. Signed-off-by: Pierre Lebleu --- Notes: v1->v2: - remove the assignements within the "if" - add a new function check_include() - use warn_section() rather than warn() inc

[LEDE-DEV] [PATCH v2 4/9] firewall3: add UBUS support for redirect sections

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu It gives the ability to create redirect rules via procd services and netifd interface firewall data. Signed-off-by: Pierre Lebleu --- Notes: v1->v2: - remove the assignements within the "if" - add a new function check_redirect() - use warn_section() rather than warn(

[LEDE-DEV] [PATCH v2 9/9] firewall3: add check_snat() function

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu The snat rule check is done by a function to avoid the walking through the list twice. Signed-off-by: Pierre Lebleu --- snats.c | 182 +++ 1 file changed, 90 insertions(+), 92 deletions(-) diff --git a/snats.c b/

[LEDE-DEV] [PATCH v2 6/9] firewall3: add UBUS support for ipset sections

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu It gives the ability to create ipset rules via procd services and netifd interface firewall data. Signed-off-by: Pierre Lebleu --- Notes: v1->v2: - remove the assignements within the "if" - add a new function check_ipset() - use warn_section() rather than warn() ip

[LEDE-DEV] [PATCH v2 2/9] firewall3: replace warn_rule() by warn_section()

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu Replace the wan_rule() by warn_section() in order to make it reusable by the other section type. Signed-off-by: Pierre Lebleu --- rules.c | 37 ++--- utils.h | 10 ++ 2 files changed, 24 insertions(+), 23 deletions(-) diff --git

[LEDE-DEV] [PATCH v2 5/9] firewall3: add UBUS support for forwarding sections

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu It gives the ability to create forward rules via procd services and netifd interface firewall data. Signed-off-by: Pierre Lebleu --- Notes: v1->v2: - remove the assignements within the "if" - add a new function check_forward() - use warn_section() rather than warn()

[LEDE-DEV] [PATCH v2 3/9] firewall3: add fw3_attr_parse_name_type() function

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu Move the name and type parsing out of the rule file in order to make it reusable by others. Signed-off-by: Pierre Lebleu --- rules.c | 16 +++- snats.c | 16 +++- utils.c | 19 +++ utils.h |3 +++ 4 files changed, 36 inserti

[LEDE-DEV] [PATCH v2 1/9] firewall3: check the return value of fw3_parse_options()

2017-05-04 Thread pme . lebleu
From: Pierre Lebleu The return value of fw3_parse_options() should be checked. Signed-off-by: Pierre Lebleu --- Notes: v1->v2: - do not make the fw3_parse_options() error fatal defaults.c |3 ++- forwards.c |3 ++- includes.c |3 ++- ipsets.c |3 ++- zones.c|3 ++

Re: [LEDE-DEV] [PATCH] ramips: Add support for GL-MT300N-V2

2017-05-04 Thread Piotr Dymacz
Hello, Please, make sure to add a proper SoB line as described in "Submitting patches": [1]. Also, could you please include in your commit message short description about the hardware and how to install LEDE on it? Have a look at the recent ramips board additions for some examples: [2]. [1