OpenWrt Forum Archive

Topic: Optimized and feature rich trunk build for select routers

The content of this topic has been archived between 20 Aug 2014 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Great. Thx.

Pls let me ask.
Flash sysupgrade - install lucy - configure (i can just use the settings from this build as example wifi in config/network) - alls from scratch (thats OK for me).
And if i like to go back - flash arokh build clean and later restore backup made as the first step?

Any experience with lede? Make it sense to check or wait for first release?
regards

Hexxer2 wrote:

Flash sysupgrade - install lucy - configure (i can just use the settings from this build as example wifi in config/network) - alls from scratch (thats OK for me).
And if i like to go back - flash arokh build clean and later restore backup made as the first step?

Sounds right. All the settings are the same in principle. If you make a backup for your current Openwrt settings first, there should be no problem reverting to those after a re-flash of Arokh's if you want to return.

But as settings defaults (e.g. in firewall) do change every now and then, it makes sense in general to re-build settings from scratch every 6 months or so.

Hexxer2 wrote:

Any experience with lede? Make it sense to check or wait for first release?

I am currently using LEDE as my main system. Almost all the active Openwrt devs seem to have moved there, so changes in the old Openwrt trunk are mostly backports from LEDE by the remaining devs. (There has been some original development lately, but not much.) And packages & LuCI feeds are common, so the same things are found in both Openwrt and LEDE.

Thanks a lot. Will try this in the near future. A complete build like this will be a dream smile

Changed today - feels a bit better. Not sure what it is and if its real big_smile

Thanks again for advice

HI! Could you give me a hint on a strangswan issue? Build r49166 with default ipsec.conf (I generated certs for my ddns via “vpn.sh buildserver”– that the only modification I made). The issue: the tunnel establishes OK, but there is no traffic in it. The log looks like that (1.1.1.1 – IPSec host, 2.2.2.2 – iOS client):

Tue Oct 18 09:50:18 2016 daemon.info : 14[NET] received packet: from 2.2.2.2[22012] to 1.1.1.1[500] (416 bytes)
Tue Oct 18 09:50:18 2016 daemon.info : 14[ENC] parsed IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ]
Tue Oct 18 09:50:18 2016 daemon.info : 14[IKE] 2.2.2.2 is initiating an IKE_SA
Tue Oct 18 09:50:18 2016 authpriv.info : 14[IKE] 2.2.2.2 is initiating an IKE_SA
Tue Oct 18 09:50:18 2016 daemon.info : 14[IKE] remote host is behind NAT
Tue Oct 18 09:50:18 2016 daemon.info : 14[IKE] sending cert request for "CN=CERTNAME"
Tue Oct 18 09:50:18 2016 daemon.info : 14[ENC] generating IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) CERTREQ N(MULT_AUTH) ]
Tue Oct 18 09:50:18 2016 daemon.info : 14[NET] sending packet: from 1.1.1.1[500] to 2.2.2.2[22012] (465 bytes)
Tue Oct 18 09:50:19 2016 daemon.info : 12[NET] received packet: from 2.2.2.2[16060] to 1.1.1.1[4500] (972 bytes)
Tue Oct 18 09:50:19 2016 daemon.info : 12[ENC] parsed IKE_AUTH request 1 [ IDi N(INIT_CONTACT) IDr AUTH CERT CPRQ(ADDR DHCP DNS MASK ADDR6 DHCP6 DNS6) N(ESP_TFC_PAD_N) N(NON_FIRST_FRAG) SA TSi TSr ]
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] received end entity cert "CN=LOGIN"
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG] looking for peer configs matching 1.1.1.1[DDNSHOST]...2.2.2.2[LOGIN]
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG] selected peer config 'ikev2'
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG]   using certificate "CN=LOGIN"
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG]   using trusted ca certificate "CN=CERTNAME"
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG]   reached self-signed root ca with a path length of 0
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] authentication of 'LOGIN' with RSA signature successful
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] received ESP_TFC_PADDING_NOT_SUPPORTED, not using ESPv3 TFC padding
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] authentication of 'DDNSHOST' (myself) with RSA signature successful
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] IKE_SA ikev2[18] established between 1.1.1.1[DDNSHOST]...2.2.2.2[LOGIN]
Tue Oct 18 09:50:19 2016 authpriv.info : 12[IKE] IKE_SA ikev2[18] established between 1.1.1.1[DDNSHOST]...2.2.2.2[LOGIN]
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] scheduling reauthentication in 9960s
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] maximum IKE_SA lifetime 10500s
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] sending end entity cert "CN=DDNSHOST"
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] peer requested virtual IP %any
Tue Oct 18 09:50:19 2016 daemon.info : 12[CFG] reassigning offline lease to 'LOGIN'
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] assigning virtual IP 10.1.3.1 to peer 'LOGIN'
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] peer requested virtual IP %any6
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] no virtual IP found for %any6 requested by 'LOGIN'
Tue Oct 18 09:50:19 2016 daemon.info : 12[IKE] CHILD_SA ikev2{5} established with SPIs c5d32b60_i 0b2626dd_o and TS 0.0.0.0/0 === 10.1.3.1/32
Tue Oct 18 09:50:19 2016 daemon.info : 12[ENC] generating IKE_AUTH response 1 [ IDr CERT AUTH CPRP(ADDR DNS) SA TSi TSr N(AUTH_LFT) ]
Tue Oct 18 09:50:19 2016 daemon.info : 12[NET] sending packet: from 1.1.1.1[4500] to 2.2.2.2[16060] (892 bytes)
Tue Oct 18 09:50:49 2016 daemon.info : 08[IKE] sending DPD request
Tue Oct 18 09:50:49 2016 daemon.info : 08[ENC] generating INFORMATIONAL request 0 [ ]
Tue Oct 18 09:50:49 2016 daemon.info : 08[NET] sending packet: from 1.1.1.1[4500] to 2.2.2.2[16060] (76 bytes)
Tue Oct 18 09:50:49 2016 daemon.info : 05[NET] received packet: from 2.2.2.2[16060] to 1.1.1.1[4500] (76 bytes)
Tue Oct 18 09:50:49 2016 daemon.info : 05[ENC] parsed INFORMATIONAL response 0 [ ]

After that dead peer request repeats continuously as if there is no activity in the tunnel.

It feels like I’m missing something obvious here, that's why I'm asking.

(Last edited by mirridius on 19 Oct 2016, 10:50)

@guenti Any hope to have builds for Archer C5 like the builds for WDR4900? I see you updates regularly your WDR4900 builds on the Dropbox folder.

Wondering if anyone could give me a little help.  I have a WNDR4300 that I recently upgraded to the latest build here (49166).  Unfortunately, MWAN3 doesn't seem to recognize my tun interface for my external OpenVPN service.  I have posted a message on the MWAN3 thread, but was wondering if anyone here has been able to get MWAN3 to work with a tun interface.  Any help would be appreciated?

Is home.snoozie.xyz/index.php/s/8uBhJjp9cj5Qcij running? I'm trying to access it, but it's not responding all the time. I want to upgrade my C7v2 to LEDE - Is it possible to upload to an mirror? Thank you!

(Last edited by centaurian on 30 Oct 2016, 21:24)

Has anyone compiled this fine build for the Buffalo WZR-HP-AG300H and/or WZR-600DHP routers? How's it running?

Im on lede but i guess i find the pros here, sry

Guess its not a problem on a Archer C7 V2 (from 2014). But i see this at boot.

root@Archer-Lede:~# dmesg | grep ath10
[   52.778547] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   52.999452] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[   53.010335] ath10k_pci 0000:01:00.0: Falling back to user helper
[   53.089194] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[   53.098555] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2
[   53.109081] ath10k_pci 0000:01:00.0: Falling back to user helper
[   59.851910] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   59.861309] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   59.874386] ath10k_pci 0000:01:00.0: firmware ver 10.2.4.70.54 api 5 features no-p2p,raw-mode,mfp crc32 9d340dd9
[   59.884820] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   59.895417] ath10k_pci 0000:01:00.0: Falling back to user helper
[   59.973165] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   59.989842] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   61.096358] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
root@Archer-Lede:~# reboot
root@Archer-Lede:~#

Is tha a problem anymore?

Hi arokh, crew, long overdue I switched from a old cerowrt setup, good to see so much progress by you all, that's much appreciated.

My home router is a vdsl2 fritzbox with native ipv6, my office router a 3700v2 with your latest build connected downstream of the fritzbox (over a transparent wifi bridge but that is not of influence here). All went well including ipv6 until I tried to create a roaming wifi network "wlnwifi" on the home subnet (thus the wan side at the office). No matter what I do, I can't get both ipv6 and this wan-wifi bridge to work. Best I could do was to create a new unmanaged interface WLN bridged to eth1 and Master "wlnwifi" as br-wnl and added to the "wan" firewall zone. This works, clients connected to "wlnwifi" get served an ip from the home subnet. Unfortunately this breaks ipv6 on wan somehow. Any other attempts to bridge "wlnwifi" to the wan and/or the wan6 interface directly breaks dhcp, 4 and 6 and even gives some spontaneous reboots. sad

Any help or pointer is very welcome, cheers, add

I want to install kmod-video-uvc on Tplink Archer C7. Unfortunately, this package is not available. I tried to compile the sources (http://luci.subsignal.org/~trondah/latest-src.tar.xz) but the compile failed to fetch the dnscrypt sources.
How can i get the kmod-video-uvc package?

Hi all,
Arokh mentions

Source tarball

For other routers just download the source tarball, copy one of profiles/* to .config, run make menuconfig and select your router as a target. Go to "advanced configuration" and deselect "target options". Exit, save, run make V=99.
To make it easier, there's a build.sh script which automatically starts a build with one of the supplied profiles.

would this work for an x86_64 build? as i would like to test this in a virtual environment first before i look to purchasing a router.

Seems to me the images haven't been updated for quite a while, yet there's sporadic discussion on these builds. Are they being hosted elsewhere?

lukano wrote:

These builds have dnscrypt enabled by default, so namebench may be detecting the dns intercepts.

If you want to disable it, I believe you would need to do the following;

- in Network > DHCP & DNS > remove the entry for "127.0.0.1#5300" (edit ; also be sure to add in your own DNS servers here in lieu of the localhost dnscrypt-proxy).
- under System > Startup, disable the dnscrypt-proxy service.
- also under System > Startup, restart dnsmasq once the first two steps have been done.

Thanks a lot for this, finally fast loading sites again.

I was having the same painfully slow "resolving host" when trying to visit websites. I suspected DNScrypt as it wasn't available until i upgraded to the latest build including it.

I think it's a better idea to have DNScrypt disabled by default and use the Google DNS servers.

Hello,

I installed the latest version of arokh r49166 on Archer C7.
I changed all repos to these from 3,717 post but I can not find minidlna package. Where can I find minidlna?

Thanks in advance.

looks like the mwan3 package might be a little buggy, with this version.
i am getting this issue when trying to add a openvpn tun as a mwan3 interface
https://github.com/openwrt/packages/issues/3486

Does anyone have faced the issue of blocking Bonjour announcement via openvpn on the latest firmware? I tried mdns and avahi, but there is still no announcement on the remote end. It seems to me that 224.0.0.251:5353 is somehow blocked by openvpn...

Thanks for help in advance

Just curios if anyone perform a test on VPN performance to check the throughput on OpenVPN or IKEv1, IKEv2 for this build on X8 R8000 or WRT1900ac?

I am thinking to compile my own for an Atheros based router D-Link DIR-825
Found these instructions on Page 1:


For other routers just download the source tarball, copy one of profiles/* to .config, run make menuconfig and select your router as a target. Go to "advanced configuration" and deselect "target options". Exit, save, run make V=99.

Downloaded and extracted source tarball, found "profiles" folder, my router is not listed there.
Any suggestion how to proceed from here ?
Thanks!

went ahead and put "one" of the profiles into /config/ and did "make menuconfig" and selected my router model there......SAVED
than did "make" ....got an ERROR and than "make clean" and "make -j1 V=s"
here is the output  when started failing:


gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
cc1: some warnings being treated as errors
Makefile:1387: recipe for target 'libglib_2_0_la-gdate.lo' failed
make[10]: *** [libglib_2_0_la-gdate.lo] Error 1
make[10]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:1934: recipe for target 'all-recursive' failed
make[9]: *** [all-recursive] Error 1
make[9]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:953: recipe for target 'all' failed
make[8]: *** [all] Error 2
make[8]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:1046: recipe for target 'all-recursive' failed
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/glib'
Makefile:770: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/glib'
Makefile:707: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1'
Makefile:463: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1'
Makefile:39: recipe for target '/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/.built' failed
make[3]: *** [/home/jm/Downloads/trunk/build_dir/host/pkg-config-0.29.1/.built] Error 2
make[3]: Leaving directory '/home/jm/Downloads/trunk/tools/pkg-config'
tools/Makefile:134: recipe for target 'tools/pkg-config/compile' failed
make[2]: *** [tools/pkg-config/compile] Error 2
make[2]: Leaving directory '/home/jm/Downloads/trunk'
tools/Makefile:133: recipe for target '/home/jm/Downloads/trunk/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy' failed
make[1]: *** [/home/jm/Downloads/trunk/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/jm/Downloads/trunk'
/home/jm/Downloads/trunk/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2

Any suggestion ?
Thanks!

(Last edited by jenom on 24 Mar 2017, 18:43)

Tried it on a different Linux box:
Linux lenovo-pc 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux
and here is the result when errors started showing up:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -I/home/user/trunk/staging_dir/host/include -I/home/user/trunk/staging_dir/host/usr/include -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -fvisibility=hidden -O2 -I/home/user/trunk/staging_dir/host/include -I/home/user/trunk/staging_dir/host/usr/include -MT libglib_2_0_la-gdate.lo -MD -MP -MF .deps/libglib_2_0_la-gdate.Tpo -c gdate.c -o libglib_2_0_la-gdate.o
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~

cc1: some warnings being treated as errors
Makefile:1387: recipe for target 'libglib_2_0_la-gdate.lo' failed
make[10]: *** [libglib_2_0_la-gdate.lo] Error 1
make[10]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:1934: recipe for target 'all-recursive' failed
make[9]: *** [all-recursive] Error 1
make[9]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:953: recipe for target 'all' failed
make[8]: *** [all] Error 2
make[8]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1/glib/glib'
Makefile:1046: recipe for target 'all-recursive' failed
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1/glib'
Makefile:770: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1/glib'
Makefile:707: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1'
Makefile:463: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/user/trunk/build_dir/host/pkg-config-0.29.1'
Makefile:39: recipe for target '/home/user/trunk/build_dir/host/pkg-config-0.29.1/.built' failed
make[3]: *** [/home/user/trunk/build_dir/host/pkg-config-0.29.1/.built] Error 2
make[3]: Leaving directory '/home/user/trunk/tools/pkg-config'
tools/Makefile:134: recipe for target 'tools/pkg-config/compile' failed
make[2]: *** [tools/pkg-config/compile] Error 2
make[2]: Leaving directory '/home/user/trunk'
tools/Makefile:133: recipe for target '/home/user/trunk/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy' failed
make[1]: *** [/home/user/trunk/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/user/trunk'
/home/user/trunk/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2

Bolded where error showed up, however I have no clue how to fix it or how to proceed from here !
If anybody managed to compile without any error, I would like to hear what Linux kernel & gcc & g++ & libglib & make versions they used.
Thanks!

(Last edited by jenom on 26 Mar 2017, 20:02)

Jenom , you are using ancient sources.  Musl 1.1.14 is not used by current trunk sources.
(Possibly you are using the abandoned git.openwrt.org for sources.)

Got the source file from Page 1 on this thread:

http://luci.subsignal.org/~trondah/latest-src.tar.xz

Found a very simple solution for my gdate problem.
Since this  patch contains only few lines:

https://dev.openwrt.org/browser/trunk/t … ?rev=49342

I manually edited /build_dir/host/pkg-conf-0.29.1/glib/glib/gdate.c file using "geany"

patch shows in column a previous line number, and in column b new line number
So I just copied and pasted as shown in patch, renamed original as "gdate.c-old" and saved file as "gdate.c"

Compilation now not complaining anymore about gdate !
--------------------------------------------------------------------------------------------------------------------------------------------------

Now it runs for about 10 minutes and stop with this FATAL ERROR:


configuration written to .config
#
*** Default configuration is based on 'sandbox_defconfig'
make[4]: Leaving directory '/home/user/trunk/build_dir/host/u-boot-2014.10'
make -C /home/user/trunk/build_dir/host/u-boot-2014.10 tools-only  HOSTCFLAGS="-I/home/user/trunk/staging_dir/host/include -I/home/user/trunk/staging_dir/host/usr/include  -O2 -I/home/user/trunk/staging_dir/host/include -I/home/user/trunk/staging_dir/host/usr/include " HOSTLDFLAGS="-L/home/user/trunk/staging_dir/host/lib -L/home/user/trunk/staging_dir/host/usr/lib "
make[4]: Entering directory '/home/user/trunk/build_dir/host/u-boot-2014.10'
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
In file included from include/linux/compiler.h:54:0,
                 from /home/user/trunk/build_dir/host/u-boot-2014.10/arch/sandbox/include/asm/bitops.h:20,
                 from include/linux/bitops.h:110,
                 from /home/user/trunk/build_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
#include gcc_header(__GNUC__)
                              ^
compilation terminated.

Looks like it is missing a compiler-gcc6.h file ?
I thought, I have everything installed what needed.
Where it supposed to come from ?

Thanks