OpenWrt Forum Archive

Topic: Build for WNDR3700/WNDR3800

The content of this topic has been archived between 9 Jul 2013 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

GethroC wrote:

I'm having a bit of trouble with the adblock script, and receive the following error:

user.notice adblock[4359] error: outdated adblock configuration found, please use latest version from '/etc/adblock/adblock.conf.default', rc: 125

Also, I could not find any discussion in this topic area about DNSSEC, have you considered adding this to the build?

The adblock error is due to changes in the adblock default config format in 1.1.0 (or 1.1.1?) and a sysupgrade from older version with preserved settings, whichaction has saved the old adblock config that is now incompatible.
You need to copy the new default adblock config as the new config, just like the error message says...:
   cp /etc/adblock/adblock.conf.default /etc/config/adblock

I have not included DNSSEC as I have no need for it (and I am not sure that it works already so well that it is beneficial).

(Last edited by hnyman on 11 May 2016, 09:40)

i noticed the look and feel of setting up wireless security with luci on both trunk and lede is different looking than cc.  cc does not display all the other data fields that are not needed when setting wpa2 personal.  both trunk and lede show many other fields needed to set up wpa/wpa2 enterprise when setting up wpa2 personal.

wrtboy wrote:

i noticed the look and feel of setting up wireless security with luci on both trunk and lede is different looking than cc.  cc does not display all the other data fields that are not needed when setting wpa2 personal.  both trunk and lede show many other fields needed to set up wpa/wpa2 enterprise when setting up wpa2 personal.

Hmm. I think that on my router I see rather similar fields on CC15.05.1 build and the trunk & LEDE builds.

In any case, I have made no modifications in my build those those options, so any possible differencies are coming from Openwrt itself.

hnyman wrote:

Hmm. I think that on my router I see rather similar fields on CC15.05.1 build and the trunk & LEDE builds.

few more observations.  the wireless security luci views are similar between cc and trunk/lede when flashing with "keep settings" but the luci view difference is only revealed when flashing without "keep settings."   configuring wpa2 personal with aes from scratch becomes interesting.  this is observed on wndr3700v2 with firefox when flashing trunk or lede without "keep settings."

EDIT:  wireless security luci views on lede r318 behaved normal even without "keep settings."  the difference could be coming from openwrt itself.

(Last edited by wrtboy on 23 May 2016, 14:10)

lede-r266-20160516 is the first build with Linux kernel 4.4. Devs have finally been able to bump ar71xx from 4.1 to 4.4. However, I had to drop the experimental "cake" qdisc from the build, as it has compilation problems with 4.4

EDIT: in build lede-r268 the cake qdisc is included again.

(Last edited by hnyman on 17 May 2016, 19:06)

hnyman wrote:

lede-r266-20160516 is the first build with Linux kernel 4.4. Devs have finally been able to bump ar71xx from 4.1 to 4.4. However, I had to drop the experimental "cake" qdisc from the build, as it has compilation problems with 4.4

EDIT: in build lede-r268 the cake qdisc is included again.

Tried the latest lede build today, when I try to install an ipk manually I'm getting a complaint about incorrect architecture, but these ipk work fine on openwrt builds, any ideas?

tradesmail wrote:

Tried the latest lede build today, when I try to install an ipk manually I'm getting a complaint about incorrect architecture, but these ipk work fine on openwrt builds, any ideas?

And where did you download the ipk that you are trying to install? Hopefully from the LEDE download site...
LEDE has a slightly different architecture, where there is much less platform specific (ar71xx/generic) packages and much more packages shared by the processor platform (34kc for WNDR3700 build). You might be hitting an effect of that.
https://downloads.lede-project.org/snap … x/generic/
https://downloads.lede-project.org/snap … mips_34kc/

built-in opkg should download from the correct place.

(Last edited by hnyman on 23 May 2016, 18:47)

hnyman wrote:
tradesmail wrote:

Tried the latest lede build today, when I try to install an ipk manually I'm getting a complaint about incorrect architecture, but these ipk work fine on openwrt builds, any ideas?

And where did you download the ipk that you are trying to install? Hopefully from the LEDE download site...
LEDE has a slightly different architecture, where there is much less platform specific (ar71xx/generic) packages and much more packages shared by the processor platform (34kc for WNDR3700 build). You might be hitting an effect of that.
https://downloads.lede-project.org/snap … x/generic/
https://downloads.lede-project.org/snap … mips_34kc/

built-in opkg should download from the correct place.


I'm trying to install Shadowsocks-libev from here, https://sourceforge.net/projects/openwr … ks-libev/, this url is blocked here in China so I was trying to install the ipk manually.

(Last edited by tradesmail on 24 May 2016, 01:12)

Hi, testing your build r401 on wndr3700v1.
Cant use other than low chans on 5GHz, get this in logs.
What could be the issue?
Edit: it was well explained in wiki: https://wiki.openwrt.org/doc/uci/wireless
Something new to me...

Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): DFS start_dfs_cac() failed, -1
Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): Interface initialization failed
Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): hostapd_free_hapd_data: Interface wlan1 wasn't started

Here is the config. With chan 36 it works fine.

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11a'
        option path 'pci0000:00/0000:00:12.0'
        option country '00'
        option htmode 'HT40'
        option channel '52'
        option txpower '17'

config wifi-iface
        option device 'radio1'
        option mode 'ap'
        option ssid 'SID'
        option network 'lan'
        option encryption 'psk2'
        option key 'password'
        option wps_pushbutton '0'

here is iw list for chan 52, so it should be usable...

                        * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 648 sec)
                          DFS CAC time: 60000 ms
                        * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
                          DFS state: usable (for 648 sec)
                          DFS CAC time: 60000 ms

Seems it is working in HT20 mode also on chan 52.
But I need to reboot if I used above config, otherwise getting this error

Fri May 27 15:24:04 2016 daemon.notice netifd: radio1 (5059): nl80211: Could not configure driver mode
Fri May 27 15:24:04 2016 daemon.notice netifd: radio1 (5059): nl80211 driver initialization failed.
Fri May 27 15:24:04 2016 daemon.notice netifd: radio1 (5059): hostapd_free_hapd_data: Interface wlan1 wasn't started

(Last edited by Bogey on 27 May 2016, 14:58)

Bogey wrote:

Edit: it was well explained in wiki: https://wiki.openwrt.org/doc/uci/wireless
Something new to me...

Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): DFS start_dfs_cac() failed, -1
Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): Interface initialization failed
Fri May 27 15:00:32 2016 daemon.notice netifd: radio1 (1699): hostapd_free_hapd_data: Interface wlan1 wasn't started

Here is the config. With chan 36 it works fine.
...
Seems it is working in HT20 mode also on chan 52.

My build has the default radio packages, so there is nothing build-specific.
Apparently the issue "DFS with ath9k only supports 20MHz channel width" is well-known and documented in the wiki, as you said: https://wiki.openwrt.org/doc/uci/wirele … _detection

(Last edited by hnyman on 2 Jun 2016, 10:06)

Hello,
Can anybody tell,how to modify ART Partition ,or maybe compile my own.

fawazahmed0 wrote:

Hello,
Can anybody tell,how to modify ART Partition ,or maybe compile my own.

Ask that in a separate thread. Nothing to do with my build.

r582 contains also few experimental scripts for SQM, utilising the newer features in the cake qdisc.
(The scripts are from a new "sqm-scripts-extra" package.)

While trying to get some funky switch configuration working involving creating a bridge across two (or more) vlans I encountered this bug on the latest wndr3700 image:
https://dev.openwrt.org/ticket/8701

I have manually adjusted the /lib/network/switch.sh file with the information listed in that ticket and that has solved the issue.

Maybe it is an idea to get the solution as listed in that ticket included into the wndr3700 build. Because the support of fid in vlan configurations is model/hardware depended it can not be included as a standard OpenWRT fix currently

just to be clear here is the diff between the standard version and my adjusted version

--- /rom/lib/network/switch.sh
+++ /overlay/upper/lib/network/switch.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 # Copyright (C) 2009 OpenWrt.org
+#
+# added extra function based on https://dev.openwrt.org/ticket/8701

 setup_switch_dev() {
        local name
@@ -7,9 +9,25 @@
        name="${name:-$1}"
        [ -d "/sys/class/net/$name" ] && ifconfig "$name" up
        swconfig dev "$name" load network
+      config_foreach fid_switch_vlan switch_vlan
 }

 setup_switch() {
        config_load network
        config_foreach setup_switch_dev switch
 }
+
+# newly added KD
+
+fid_switch_vlan() {
+        local fid vlan
+
+        config_get fid "$1" fid
+        config_get vlan "$1" vlan
+        config_get device "$1" device
+
+        if [[ -n "$fid" ]]; then
+                swconfig dev $device vlan $vlan set fid $fid
+        fi
+}
+

and then I manually added the following lines to the relevant /etc/config/network sections

config switch_vlan
        option device 'switch0'
        option fid '2'
        option vlan '2'
        option ports '1 5t'

so here the FID is set to 2 for this vlan. Ideally you also make it possible to set the FID via the Luci interface for the switch when changing the switch configuration but I'm not capable of doing that :-)

Without this change to the way the switch is setup it is not possible to setup a bridged interface that is bridging two or more vlans. The reason why I wanted that is so that I can very easily capture all traffic going to a specific host connected to a port using tcpdump for debugging purposes. So now I can hookup a host to port 3 (as listed on the wndr3700 it self) and than it is considered as part of the LAN (so br-lan) and then run tcpdump -i eth0.2 to capture all trafic to that device only.

You could possibly also do that with filters on MAC or IP .. but this is a generic solution and can work with any host now.

I understood that using this setup makes the network throughput a bit slower .. but that does not matter to me now.

Kees D.

- r49379 / r583: Change Luci to use Openssl instead of Polarssl

Apparently the newest Chrome does not like certain versions of the Polarssl library that is the default used by Luci for https connections. Chrome may refuse https connections to Luci. I will change all my builds to use Openssl instead, as the library is included in my build in any case.

discussion at:
https://forum.openwrt.org/viewtopic.php … 06#p327806
https://github.com/openwrt/luci/issues/736

manual fix in a live router is:

opkg update
opkg remove --force-depends libustream-polarssl
opkg install libustream-openssl
/etc/init.d/uhttpd restart

EDIT:
Jow has apparently fixed the Polarssl-Chrome problem in LEDE side: https://git.lede-project.org/?p=source. … e94d3f80cb

(Last edited by hnyman on 11 Jun 2016, 07:57)

There is no actual development happening in the Openwrt DD trunk itself, but still I made a new trunk build to fix the PolarSSL issue and to get the adblock & bcp38 updates from the packages feed.

fawazahmed0 wrote:

Hello,
Can anybody tell,how to modify ART Partition ,or maybe compile my own.

I just wanted to change regulatory db.

I got it anyway, to edit ART Partition you have to use hex editor to edit values,but it is impossible to edit this way.

Better Approach:
Enable CONFIG_ATH_USER_REGD

To change set  CONFIG_ATH_USER_REGD  go to make menuconfig ,press '/'  and then type regd and see where it's location inside menuconfig(In my case kernel modules-->Wireless Drivers--> kmod-ath) and then go to kmod-ath and press and enter ,you will get submenu and selet force atheros drivers to respect the .........

And also Edit /package/kernel/mac80211/files/regdb.txt   to settings you want and compile.

Done

Hello,
I want to use different kernel for my build ,I am doing it by
editing target/linux/ar71xx/Makefile to the kernel version I want and then,
'make target/linux/clean'

But the problem is every time I run 'make V=s -j 7'  ,its asking for kernel configuration questions,But I want I to use default openwrt kernel configuration

How can I do it?

fawazahmed0 wrote:

I want to use different kernel for my build ,I am doing it by
editing target/linux/ar71xx/Makefile to the kernel version I want and then,
'make target/linux/clean'

But the problem is every time I run 'make V=s -j 7'  ,its asking for kernel configuration questions,But I want I to use default openwrt kernel configuration

How can I do it?

The question has nothing to do with my build. Please ask that in a new thread (or search the forum for the same question, as it has been asked several times earlier...).

But a few pointers: changing kernel is rather complicated as you need to adjust the kernel config and patches (both generic and platform-specific), too. include/kernel-version.mk defines the available kernel versions and the platform's (ar71xx) Makefile selects one of those. The selection is limited by the config & patches available for the platform.

@hynman

I have been using your OpenWRT build for a few months and just switched to your Lede build. Since I can't seem to find a forum on lede-project are you going to continue to maintain this thread with new Lede builds moving forward?

Sorry if you answered this before, I looked through the thread and it wasn't apparent to me.

I'd like to switch to the Lede build, but need to make sure the WDS bug is fixed, reported here.
https://dev.openwrt.org/ticket/22228
Any suggestions on how to track or report that bug in Lede?

hnyman wrote:
fawazahmed0 wrote:

I want to use different kernel for my build ,I am doing it by
editing target/linux/ar71xx/Makefile to the kernel version I want and then,
'make target/linux/clean'

But the problem is every time I run 'make V=s -j 7'  ,its asking for kernel configuration questions,But I want I to use default openwrt kernel configuration

How can I do it?

The question has nothing to do with my build. Please ask that in a new thread (or search the forum for the same question, as it has been asked several times earlier...).

But a few pointers: changing kernel is rather complicated as you need to adjust the kernel config and patches (both generic and platform-specific), too. include/kernel-version.mk defines the available kernel versions and the platform's (ar71xx) Makefile selects one of those. The selection is limited by the config & patches available for the platform.

Thanks for your reply,
I just wanted to do it because,all kmod packages in repository(CC) are for 3.18.23,but the current openwrt.git(CC) has 3.18.29 kernel version with it.
Anyway I have to use trunk now ,as it gets updated always,I have also downloaded all packages ,just in case repository(trunk) gets changed

WheresWaldo wrote:

I have been using your OpenWRT build for a few months and just switched to your Lede build. Since I can't seem to find a forum on lede-project are you going to continue to maintain this thread with new Lede builds moving forward?

Currently I am still using this thread to comment all three builds, LEDE, Openwrt DD trunk CC15.05. There is no LEDE forum, yet, like you noticed, so this is the best place to continue commenting the builds.

Currently LEDE seems to have all the development activity while Openwrt has the traditional brand. There has been no development in the Openwrt for over a month as (almost) all active core devs left for LEDE, but it is still possible that there might be some kind of reconciliation and the projects might re-merge.

(I have done the new trunk builds just get some packages updated and to correct the Luci polarssl/chrome bug. Otherwise there would have been no point in compiling a new DD trunk version.)

johnthomas00 wrote:

I'd like to switch to the Lede build, but need to make sure the WDS bug is fixed, reported here.
https://dev.openwrt.org/ticket/22228
Any suggestions on how to track or report that bug in Lede?

That bug is fixed in LEDE since today, with b67af71181daac3b502fd58d04c021615a23ea39 (there have been further updates and patches on top of that).

Sorry, posts 1451 to 1450 are missing from our archive.