<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.gmail-
        {mso-style-name:gmail-;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>disregard that, I didn’t notice that you already had references that.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Thomas Endt [mailto:tmo26@gmx.de] <br><b>Gesendet:</b> Dienstag, 28. November 2017 21:35<br><b>An:</b> 'Ronaldo Afonso'; 'Zoltan HERPAI'<br><b>Cc:</b> 'OpenWrt Development List'<br><b>Betreff:</b> AW: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This might be of interest:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="https://git.lede-project.org/?p=source.git;a=commit;h=0b45bec22c59cc6e6b2fa71dc9a88386c5587132">https://git.lede-project.org/?p=source.git;a=commit;h=0b45bec22c59cc6e6b2fa71dc9a88386c5587132</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> openwrt-devel [<a href="mailto:openwrt-devel-bounces@lists.openwrt.org">mailto:openwrt-devel-bounces@lists.openwrt.org</a>] <b>Im Auftrag von </b>Ronaldo Afonso<br><b>Gesendet:</b> Dienstag, 28. November 2017 20:25<br><b>An:</b> Zoltan HERPAI<br><b>Cc:</b> OpenWrt Development List<br><b>Betreff:</b> Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'> Hi Zoltan,<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'> First of all, thanks for you replay.<o:p></o:p></p></div><div><p class=MsoNormal> Following is what I have tried to to:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>1) I tried doing a simple "git merge d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2" ... but that resulted in a LOT of errors.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>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 ...<br><br>ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git status<br>On branch chaos_calmer<br>Your branch is up-to-date with 'origin/chaos_calmer'.<br>Changes not staged for commit:<br>  (use "git add <file>..." to update what will be committed)<br>  (use "git checkout -- <file>..." to discard changes in working directory)<br><br>    modified:   target/linux/ar71xx/base-files/etc/diag.sh<br>    modified:   target/linux/ar71xx/base-files/etc/uci-defaults/01_leds<br>    modified:   target/linux/ar71xx/base-files/etc/uci-defaults/02_network<br>    modified:   target/linux/ar71xx/base-files/lib/ar71xx.sh<br>    modified:   target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br>    modified:   target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c<br>    modified:   target/linux/ar71xx/image/Makefile<br>    modified:   target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch<br><br>no changes added to commit (use "git add" and/or "git commit -a")<br>ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git diff<br>diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh<br>index 623e2a43b5..85f1e3eab6 100644<br>--- a/target/linux/ar71xx/base-files/etc/diag.sh<br>+++ b/target/linux/ar71xx/base-files/etc/diag.sh<br>@@ -280,6 +280,7 @@ get_status_led() {<br>        tl-wr841n-v11 | \<br>        tl-wa830re-v2 | \<br>        tl-wr842n-v2 | \<br>+    tl-wr841n-v3 | \<br>        tl-wr941nd | \<br>        tl-wr941nd-v5)<br>                status_led="tp-link:green:system"<br>diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds<br>index 91f5875c2f..03f01c4050 100644<br>--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds<br>+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds<br>@@ -519,6 +519,16 @@ tl-wr842n-v2)<br>        ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"<br>        ;;<br> <br>+tl-wr842n-v3)<br>+       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"<br>+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"<br>+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"<br>+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"<br>+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"<br>+       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"<br>+       ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"<br>+       ;;<br>+<br> tl-wa801nd-v2 | \<br> tl-wa901nd-v3)<br>        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"<br>diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network<br>index 032c671341..0558c0f33d 100755<br>--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network<br>+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network<br>@@ -439,6 +439,7 @@ tl-wr741nd |\<br> tl-wr741nd-v4 |\<br> tl-wr841n-v7 |\<br> tl-wr841n-v9 |\<br>+tl-wr842n-v3 |\<br> tl-wr841n-v11 |\<br> whr-g301n |\<br> whr-hp-g300n |\<br>diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh<br>index 1eb6999908..904ff4b10f 100755<br>--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh<br>+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh<br>@@ -821,6 +821,9 @@ ar71xx_board_detect() {<br>        *"TL-WR842N/ND v2")<br>                name="tl-wr842n-v2"<br>                ;;<br>+       *"TL-WR842N/ND v3")<br>+               name="tl-wr842n-v3"<br>+               ;;<br>        *TL-WR941ND)<br>                name="tl-wr941nd"<br>                ;;<br>diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br>index fda7bc417c..bf1e0d295e 100755<br>--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br>+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh<br>@@ -361,6 +361,7 @@ platform_check_image() {<br>        tl-wr841n-v9 | \<br>        tl-wr841n-v11 | \<br>        tl-wr842n-v2 | \<br>+    tl-wr842n-v3 | \<br>        tl-wr941nd | \<br>        tl-wr941nd-v5 | \<br>        tl-wr941nd-v6 | \<br>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<br>index 004f719613..f33ca2c906 100644<br>--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c<br>+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v9.c<br>@@ -1,5 +1,5 @@<br> /*<br>- *  TP-LINK TL-WR841N/ND v9/v11<br>+ *  TP-LINK TL-WR841N/ND v9/TL-WR842N/ND v3<br>  *<br>  *  Copyright (C) 2014 Matthias Schiffer <<a href="mailto:mschiffer@universe-factory.net">mschiffer@universe-factory.net</a>><br>  *  Copyright (C) 2016 Cezary Jackiewicz <<a href="mailto:cezary@eko.one.pl">cezary@eko.one.pl</a>><br>@@ -36,6 +36,20 @@<br> #define TL_WR841NV9_GPIO_BTN_RESET     12<br> #define TL_WR841NV9_GPIO_BTN_WIFI      17<br> <br>+#define TL_WR842NV3_GPIO_LED_SYSTEM    2<br>+#define TL_WR842NV3_GPIO_LED_WLAN      3<br>+#define TL_WR842NV3_GPIO_LED_WAN_RED   4<br>+#define TL_WR842NV3_GPIO_LED_WAN_GREEN 11<br>+#define TL_WR842NV3_GPIO_LED_LAN1      12<br>+#define TL_WR842NV3_GPIO_LED_LAN2      13<br>+#define TL_WR842NV3_GPIO_LED_LAN3      14<br>+#define TL_WR842NV3_GPIO_LED_LAN4      15<br>+#define TL_WR842NV3_GPIO_LED_3G                16<br>+#define TL_WR842NV3_GPIO_LED_WPS       17<br>+<br>+#define TL_WR842NV3_GPIO_BTN_RESET     1<br>+#define TL_WR842NV3_GPIO_BTN_WIFI      0<br>+<br> #define TL_WR841NV11_GPIO_LED_SYSTEM   1<br> #define TL_WR841NV11_GPIO_LED_QSS      3<br> #define TL_WR841NV11_GPIO_LED_WAN      4<br>@@ -111,6 +125,68 @@ static struct gpio_keys_button tl_wr841n_v9_gpio_keys[] __initdata = {<br>        }<br> };<br> <br>+static struct gpio_led tl_wr842n_v3_leds_gpio[] __initdata = {<br>+       {<br>+               .name           = "tp-link:green:lan1",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_LAN1,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:lan2",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_LAN2,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:lan3",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_LAN3,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:lan4",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_LAN4,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:wan",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_WAN_GREEN,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:red:wan",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_WAN_RED,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:wlan",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_WLAN,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:system",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_SYSTEM,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:3g",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_3G,<br>+               .active_low     = 1,<br>+       }, {<br>+               .name           = "tp-link:green:wps",<br>+               .gpio           = TL_WR842NV3_GPIO_LED_WPS,<br>+               .active_low     = 1,<br>+       },<br>+};<br>+<br>+static struct gpio_keys_button tl_wr842n_v3_gpio_keys[] __initdata = {<br>+       {<br>+               .desc           = "Reset button",<br>+               .type           = EV_KEY,<br>+               .code           = KEY_RESTART,<br>+               .debounce_interval = TL_WR841NV9_KEYS_DEBOUNCE_INTERVAL,<br>+               .gpio           = TL_WR842NV3_GPIO_BTN_RESET,<br>+               .active_low     = 1,<br>+       }, {<br>+               .desc           = "WIFI button",<br>+               .type           = EV_KEY,<br>+               .code           = KEY_RFKILL,<br>+               .debounce_interval = TL_WR841NV9_KEYS_DEBOUNCE_INTERVAL,<br>+               .gpio           = TL_WR842NV3_GPIO_BTN_WIFI,<br>+               .active_low     = 1,<br>+       }<br>+};<br>+<br> static struct gpio_led tl_wr841n_v11_leds_gpio[] __initdata = {<br>        {<br>                .name           = "tp-link:green:lan1",<br>@@ -183,6 +259,24 @@ static void __init tl_ap143_setup(void)<br>        ath79_register_wmac(ee, tmpmac);<br> }<br> <br>+<br>+static void __init tl_wr842n_v3_setup(void)<br>+{<br>+       tl_ap143_setup();<br>+<br>+       ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr842n_v3_leds_gpio),<br>+                                tl_wr842n_v3_leds_gpio);<br>+<br>+       ath79_register_gpio_keys_polled(1, TL_WR841NV9_KEYS_POLL_INTERVAL,<br>+                                       ARRAY_SIZE(tl_wr842n_v3_gpio_keys),<br>+                                       tl_wr842n_v3_gpio_keys);<br>+<br>+       ath79_register_usb();<br>+}<br>+<br>+MIPS_MACHINE(ATH79_MACH_TL_WR842N_V3, "TL-WR842N-v3", "TP-LINK TL-WR842N/ND v3",<br>+            tl_wr842n_v3_setup);<br>+<br> static void __init tl_wr841n_v9_setup(void)<br> {<br>        tl_ap143_setup();<br>diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile<br>index 6cbaf380d9..dbe5981c12 100644<br>--- a/target/linux/ar71xx/image/Makefile<br>+++ b/target/linux/ar71xx/image/Makefile<br>@@ -590,6 +590,13 @@ define Device/tl-wr842n-v2<br>     TPLINK_HWID := 0x8420002<br> endef<br> <br>+define Device/tl-wr842n-v3<br>+    $(Device/tplink-16mlzma)<br>+    BOARDNAME := TL-WR842N-v3<br>+    DEVICE_PROFILE := TLWR842<br>+    TPLINK_HWID := 0x08420003<br>+endef<br>+<br> define Device/tl-wr843nd-v1<br>     $(Device/tplink-4mlzma)<br>     BOARDNAME := TL-WR841N-v8<br>@@ -603,7 +610,7 @@ define Device/tl-wr847n-v8<br>     DEVICE_PROFILE := TLWR841<br>     TPLINK_HWID := 0x08470008<br> endef<br>-TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr843nd-v1 tl-wr847n-v8<br>+TARGET_DEVICES += tl-wr841n-v8 tl-wr841n-v9 tl-wr841n-v10 tl-wr841n-v11 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8<br> <br> define Device/tl-wr941nd-v5<br>     $(Device/tplink-4mlzma)<br>diff --git a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch<br>index 99e96aaf72..1a378b034d 100644<br>--- a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch<br>+++ b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch<br>@@ -1252,7 +1252,7 @@<br> +      select ATH79_DEV_WMAC<br> +<br> +config ATH79_MACH_TL_WR841N_V9<br>-+       bool "TP-LINK TL-WR841N/ND v9 support"<br>++       bool "TP-LINK TL-WR841N/ND v9/TL-WR842N/ND v3 support"<br> +       select SOC_QCA953X<br> +       select ATH79_DEV_ETH<br> +       select ATH79_DEV_GPIO_BUTTONS<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>  And when trying to build the image I got the following error message:<br><br>echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.target<br>echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.target<br>echo "# CONFIG_KALLSYMS_UNCOMPRESSED is not set" >> /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.target<br>/home/ronaldo/Linux/OpenWrt/src/openwrt/scripts/<a href="http://metadata.pl">metadata.pl</a> kconfig /home/ronaldo/Linux/OpenWrt/src/openwrt/tmp/.packageinfo /home/ronaldo/Linux/OpenWrt/src/openwrt/.config 3.18 > /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.override<br>/home/ronaldo/Linux/OpenWrt/src/openwrt/scripts/<a href="http://kconfig.pl">kconfig.pl</a> 'm+' '+' /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.target /dev/null /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.override > /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config<br>mv /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.old<br>grep -v INITRAMFS /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config.old > /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config<br>echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config<br>rm -rf /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/modules<br>export MAKEFLAGS= ; [ -d /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/user_headers ] || make -C /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84 HOSTCFLAGS="-O2 -I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/include -I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="bash" V='' CC="mips-openwrt-linux-uclibc-gcc" INSTALL_HDR_PATH=/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/user_headers headers_install<br>. /home/ronaldo/Linux/OpenWrt/src/openwrt/include/shell.sh; grep '=[ym]' /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.config | LC_ALL=C sort | md5s > /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.vermagic<br>touch /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.configured<br>rm -f /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/init<br>make -C /home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84 HOSTCFLAGS="-O2 -I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/include -I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="bash" V='' CC="mips-openwrt-linux-uclibc-gcc" all modules<br>make[5]: Entering directory '/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84'<br>scripts/kconfig/conf --silentoldconfig Kconfig<br>net/sched/Kconfig:43: warning: menuconfig statement without prompt<br>#<br># configuration written to .config<br>#<br>  CHK     include/config/kernel.release<br>  CHK     include/generated/uapi/linux/version.h<br>  CHK     include/generated/utsrelease.h<br>  CALL    scripts/checksyscalls.sh<br>  CHK     include/generated/compile.h<br>  CC      arch/mips/ath79/mach-tl-wr841n-v9.o<br>In file included from arch/mips/ath79/machtypes.h:15:0,<br>                 from arch/mips/ath79/mach-tl-wr841n-v9.c:26:<br>arch/mips/ath79/mach-tl-wr841n-v9.c:277:14: error: ''' undeclared here (not in a function)<br> MIPS_MACHINE(ATH79_MACH_TL_WR842N_V3, "TL-WR842N-v3", "TP-LINK TL-WR842N/ND v3",<br>              ^<br>./arch/mips/include/asm/mips_machine.h:33:15: note: in definition of macro 'MIPS_MACHINE'<br>  .mach_type = _type,    \<br>               ^<br>scripts/Makefile.build:257: recipe for target 'arch/mips/ath79/mach-tl-wr841n-v9.o' failed<br>make[7]: *** [arch/mips/ath79/mach-tl-wr841n-v9.o] Error 1<br>scripts/Makefile.build:402: recipe for target 'arch/mips/ath79' failed<br>make[6]: *** [arch/mips/ath79] Error 2<br>Makefile:944: recipe for target 'arch/mips' failed<br>make[5]: *** [arch/mips] Error 2<br>make[5]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84'<br>Makefile:24: recipe for target '/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.image' failed<br>make[4]: *** [/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.image] Error 2<br>make[4]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt/target/linux/ar71xx'<br>Makefile:13: recipe for target 'install' failed<br>make[3]: *** [install] Error 2<br>make[3]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt/target/linux'<br>target/Makefile:21: recipe for target 'target/linux/install' failed<br>make[2]: *** [target/linux/install] Error 2<br>make[2]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'<br>target/Makefile:17: recipe for target '/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install' failed<br>make[1]: *** [/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install] Error 2<br>make[1]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'<br>/home/ronaldo/Linux/OpenWrt/src/openwrt/include/<a href="http://toplevel.mk:181">toplevel.mk:181</a>: recipe for target 'world' failed<br>make: *** [world] Error 2<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>  So, it seems that I have to create a patch that incluces 'ATH79_MACH_TL_WR842N_V3<span class=gmail->'</span> in the file 'arch/mips/ath79/machtypes.h'.<o:p></o:p></p></div><div><p class=MsoNormal>  Does it make any sense?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>  Am I in the right direction?<br>  Can you please help me with that?<o:p></o:p></p></div><div><p class=MsoNormal>  Thanks ...<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>2017-11-28 12:38 GMT-02:00 Zoltan HERPAI <<a href="mailto:wigyori@uid0.hu" target="_blank">wigyori@uid0.hu</a>>:<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>On Tue, 28 Nov 2017, Ronaldo Afonso wrote:<o:p></o:p></p><p class=MsoNormal>  Hi all,<br><br>  What does it take for a commit to be merged into a stable branch?<br><br>  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<br>last year but not merged into CC yet.<br><br>  How can I help that merge being done?<br><br>  Thanks in advance.<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br>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.)<br><br>Thanks,<br>-w-<br><br>[1] <a href="https://github.com/openwrt/openwrt/commit/d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2" target="_blank">https://github.com/openwrt/openwrt/commit/d42ccc9f28aca96bdd7c83cfac43ae81d24bc5a2</a><br>_______________________________________________<br>openwrt-devel mailing list<br><a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br><a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><div><p class=MsoNormal>Ronaldo Afonso<o:p></o:p></p><div><p class=MsoNormal>11 9 5252 0484<o:p></o:p></p></div><div><p class=MsoNormal><a href="http://www.ronaldoafonso.com.br" target="_blank">www.ronaldoafonso.com.br</a><o:p></o:p></p></div></div></div></div></div></div></div></body></html>