Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Aaron Z
On Tue, Nov 28, 2017 at 9:20 AM, Ronaldo Afonso
 wrote:
>   Hi all,
>   What does it take for a commit to be merged into a stable branch?
>   The thing is ... I really would like to have TL-WR842N Hardware version 3
> running on CC. I noticed that this hardware is already working on trunk
> (master) since last year but not merged into CC yet.
>   How can I help that merge being done?
Unless it is a security fix (such as the recent Krack vunerability),
updates such as adding a new hardware build are not backported into a
stable release.
That platform should be there in the next stable release of OpenWrt
(presumably the first post-remerge release).
It will probbaly not be backported to CC, but it is currently
available in LEDE's 17.0.4 stable release (see:
https://lede-project.org/toh/hwdata/tp-link/tp-link_tl-wr842n_v3 for
links).
If you don't know, LEDE is a fork of OpenWrt which is in the process
of re-merging with OpenWrt. That is where most of the recent
development has happened.

Aaron Z
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
— Robert Heinlein, Time Enough for Love
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Thomas Endt
disregard that, I didn’t notice that you already had references that.

 

Von: Thomas Endt [mailto:tm...@gmx.de] 
Gesendet: Dienstag, 28. November 2017 21:35
An: 'Ronaldo Afonso'; 'Zoltan HERPAI'
Cc: 'OpenWrt Development List'
Betreff: AW: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be 
merged into Chaos Calmer

 

This might be of interest:

https://git.lede-project.org/?p=source.git;a=commit;h=0b45bec22c59cc6e6b2fa71dc9a88386c5587132

 

 

 

Von: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] Im Auftrag 
von Ronaldo Afonso
Gesendet: Dienstag, 28. November 2017 20:25
An: Zoltan HERPAI
Cc: OpenWrt Development List
Betreff: Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be 
merged into Chaos Calmer

 

 Hi Zoltan,

 First of all, thanks for you replay.

 Following is what I have tried to to:


1) I tried doing a simple "git merge d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2" 
... but that resulted in a LOT of errors.

2) So, I decided to look more closely at the commit and manually ported what 
had being done. Following is the git status and git diff on the CC branch ...

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git status
On branch chaos_calmer
Your branch is up-to-date with 'origin/chaos_calmer'.
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)

modified:   target/linux/ar71xx/base-files/etc/diag.sh
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/02_network
modified:   target/linux/ar71xx/base-files/lib/ar71xx.sh
modified:   target/linux/ar71xx/base-files/lib/upgrade/platform.sh
modified:   target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
modified:   target/linux/ar71xx/image/Makefile
modified:   
target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch

no changes added to commit (use "git add" and/or "git commit -a")
ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git diff
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 623e2a43b5..85f1e3eab6 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -280,6 +280,7 @@ get_status_led() {
tl-wr841n-v11 | \
tl-wa830re-v2 | \
tl-wr842n-v2 | \
+tl-wr841n-v3 | \
tl-wr941nd | \
tl-wr941nd-v5)
status_led="tp-link:green:system"
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 91f5875c2f..03f01c4050 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -519,6 +519,16 @@ tl-wr842n-v2)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
 
+tl-wr842n-v3)
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" 
"0x10"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" 
"0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" 
"0x04"
+   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-wa801nd-v2 | \
 tl-wa901nd-v3)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
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 032c671341..0558c0f33d 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -439,6 +439,7 @@ tl-wr741nd |\
 tl-wr741nd-v4 |\
 tl-wr841n-v7 |\
 tl-wr841n-v9 |\
+tl-wr842n-v3 |\
 tl-wr841n-v11 |\
 whr-g301n |\
 whr-hp-g300n |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 1eb608..904ff4b10f 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -821,6 +821,9 @@ ar71xx_board_detect() {
*"TL-WR842N/ND v2")
name="tl-wr842n-v2"
;;
+   *"TL-WR842N/ND v3")
+   name="tl-wr842n-v3"
+   ;;
*TL-WR941ND)
name="tl-wr941nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index fda7bc417c..bf1e0d295e 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -361,6 +361,7 @@ platform_check_image() {
tl-wr841n-v9 | \
tl-wr841n-v11 | \

Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Thomas Endt
This might be of interest:

https://git.lede-project.org/?p=source.git;a=commit;h=0b45bec22c59cc6e6b2fa71dc9a88386c5587132

 

 

 

Von: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] Im Auftrag 
von Ronaldo Afonso
Gesendet: Dienstag, 28. November 2017 20:25
An: Zoltan HERPAI
Cc: OpenWrt Development List
Betreff: Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be 
merged into Chaos Calmer

 

 Hi Zoltan,

 First of all, thanks for you replay.

 Following is what I have tried to to:


1) I tried doing a simple "git merge d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2" 
... but that resulted in a LOT of errors.

2) So, I decided to look more closely at the commit and manually ported what 
had being done. Following is the git status and git diff on the CC branch ...

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git status
On branch chaos_calmer
Your branch is up-to-date with 'origin/chaos_calmer'.
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)

modified:   target/linux/ar71xx/base-files/etc/diag.sh
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/02_network
modified:   target/linux/ar71xx/base-files/lib/ar71xx.sh
modified:   target/linux/ar71xx/base-files/lib/upgrade/platform.sh
modified:   target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
modified:   target/linux/ar71xx/image/Makefile
modified:   
target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch

no changes added to commit (use "git add" and/or "git commit -a")
ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git diff
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 623e2a43b5..85f1e3eab6 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -280,6 +280,7 @@ get_status_led() {
tl-wr841n-v11 | \
tl-wa830re-v2 | \
tl-wr842n-v2 | \
+tl-wr841n-v3 | \
tl-wr941nd | \
tl-wr941nd-v5)
status_led="tp-link:green:system"
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 91f5875c2f..03f01c4050 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -519,6 +519,16 @@ tl-wr842n-v2)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
 
+tl-wr842n-v3)
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" 
"0x10"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" 
"0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" 
"0x04"
+   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-wa801nd-v2 | \
 tl-wa901nd-v3)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
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 032c671341..0558c0f33d 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -439,6 +439,7 @@ tl-wr741nd |\
 tl-wr741nd-v4 |\
 tl-wr841n-v7 |\
 tl-wr841n-v9 |\
+tl-wr842n-v3 |\
 tl-wr841n-v11 |\
 whr-g301n |\
 whr-hp-g300n |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 1eb608..904ff4b10f 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -821,6 +821,9 @@ ar71xx_board_detect() {
*"TL-WR842N/ND v2")
name="tl-wr842n-v2"
;;
+   *"TL-WR842N/ND v3")
+   name="tl-wr842n-v3"
+   ;;
*TL-WR941ND)
name="tl-wr941nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index fda7bc417c..bf1e0d295e 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -361,6 +361,7 @@ platform_check_image() {
tl-wr841n-v9 | \
tl-wr841n-v11 | \
tl-wr842n-v2 | \
+tl-wr842n-v3 | \
tl-wr941nd | \
tl-wr941nd-v5 | \
tl-wr941nd-v6 | \
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
index 004f719613..f33ca2c906 100644
--- a/target/linux/ar71xx/files/arc

Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Ronaldo Afonso
 Hi Zoltan,

 First of all, thanks for you replay.

 Following is what I have tried to to:

1) I tried doing a simple "git merge
d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2" ... but that resulted in a LOT of
errors.

2) So, I decided to look more closely at the commit and manually ported
what had being done. Following is the git status and git diff on the CC
branch ...

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git status
On branch chaos_calmer
Your branch is up-to-date with 'origin/chaos_calmer'.
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)

modified:   target/linux/ar71xx/base-files/etc/diag.sh
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
modified:   target/linux/ar71xx/base-files/etc/uci-defaults/02_network
modified:   target/linux/ar71xx/base-files/lib/ar71xx.sh
modified:   target/linux/ar71xx/base-files/lib/upgrade/platform.sh
modified:
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
modified:   target/linux/ar71xx/image/Makefile
modified:
target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch

no changes added to commit (use "git add" and/or "git commit -a")
ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git diff
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh
b/target/linux/ar71xx/base-files/etc/diag.sh
index 623e2a43b5..85f1e3eab6 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -280,6 +280,7 @@ get_status_led() {
tl-wr841n-v11 | \
tl-wa830re-v2 | \
tl-wr842n-v2 | \
+tl-wr841n-v3 | \
tl-wr941nd | \
tl-wr941nd-v5)
status_led="tp-link:green:system"
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 91f5875c2f..03f01c4050 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -519,6 +519,16 @@ tl-wr842n-v2)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;

+tl-wr842n-v3)
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0"
"0x10"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0"
"0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0"
"0x04"
+   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-wa801nd-v2 | \
 tl-wa901nd-v3)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
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 032c671341..0558c0f33d 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -439,6 +439,7 @@ tl-wr741nd |\
 tl-wr741nd-v4 |\
 tl-wr841n-v7 |\
 tl-wr841n-v9 |\
+tl-wr842n-v3 |\
 tl-wr841n-v11 |\
 whr-g301n |\
 whr-hp-g300n |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 1eb608..904ff4b10f 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -821,6 +821,9 @@ ar71xx_board_detect() {
*"TL-WR842N/ND v2")
name="tl-wr842n-v2"
;;
+   *"TL-WR842N/ND v3")
+   name="tl-wr842n-v3"
+   ;;
*TL-WR941ND)
name="tl-wr941nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index fda7bc417c..bf1e0d295e 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -361,6 +361,7 @@ platform_check_image() {
tl-wr841n-v9 | \
tl-wr841n-v11 | \
tl-wr842n-v2 | \
+tl-wr842n-v3 | \
tl-wr941nd | \
tl-wr941nd-v5 | \
tl-wr941nd-v6 | \
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
index 004f719613..f33ca2c906 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c
@@ -1,5 +1,5 @@
 /*
- *  TP-LINK TL-WR841N/ND v9/v11
+ *  TP-LINK TL-WR841N/ND v9/TL-WR842N/ND v3
  *
  *  Copyright (C) 2014 Matthias Schiffer 
  *  Copyright (C) 2016 Cezary Jackiewicz 
@@ -36,6 +36,20 @@
 #define TL_WR841NV9_GPIO_BTN_RESET 12
 #define TL_WR841NV9_GPIO_BTN_WIFI  17

+#define TL_WR842NV3_GPIO_LED_SYSTEM2
+#define TL

Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Zoltan HERPAI

On Tue, 28 Nov 2017, Ronaldo Afonso wrote:


  Hi all,

  What does it take for a commit to be merged into a stable branch?

  The thing is ... I really would like to have TL-WR842N Hardware version 3 
running on CC. I noticed that this hardware is already working on trunk 
(master) since
last year but not merged into CC yet.

  How can I help that merge being done?

  Thanks in advance.


You can try to merge this commit [1] into CC, test it out and open a 
pull-request on github against the chaos_calmer branch - expect some 
differences that'll need to be worked out manually in image/Makefile. (If 
you run into problems let me know and will try to help.)


Thanks,
-w-

[1] 
https://github.com/openwrt/openwrt/commit/d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2___
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] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Ronaldo Afonso
  Hi all,

  What does it take for a commit to be merged into a stable branch?

  The thing is ... I really would like to have TL-WR842N Hardware version 3
running on CC. I noticed that this hardware is already working on trunk
(master) since last year but not merged into CC yet.

  How can I help that merge being done?

  Thanks in advance.

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Building own kernel in OpenWRT

2017-11-28 Thread Ronaldo Afonso
 Hi Phani,

 Take a look at the "make kernel_menuconfig" or this link:
https://wiki.openwrt.org/doc/howto/build#kernel_configuration_optional

 Regards ...

2017-11-27 19:03 GMT-02:00 Phani Siriki :

> Dear All
>
> I want to change the linux kernel in my OpenWrt build.
>
> I made changes to the kernel and committed to my github account.
>
> Could someone let me know the makefiles I need to change to get the kernel
> of my own?
>
> Thanks in Advance.
>
> Best Regards
> Phani
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel