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.

JaCk0 wrote:

Is possible to build wndrnand/wndrnand_noipv6 with OC profiles? I check this post forum (https://forum.openwrt.org/viewtopic.php?id=44012) from pepe2k with successful results for AR9344 chipset.

He's an eccentric guy and unfortunately hasn't released the details of any of his research or trials on the AR9344. I found in u-boot where the macros for the PLL multipliers and CPU, AHB, and RAM dividiers are set, but I cannot find any documentation that reveals what values I'd need to input to make an overclock happen.

Didn't know it was that low. Might as well turn it up to 5000 with 82 bytes of memory consumed for every cache entry. I'll adjust in next release. Thanks for the tip smile

Has anyone experimented adding a second wireless card via usb?. I tried that with 2 different chipsets, added the right drivers and when I enable the second interface everything breaks. So I'm still trying. Anyone had any success doing that?

According to the wiki i should run "wifi detect":

Regenerate Configuration

To rebuild the configuration file, e.g. after installing a new wireless driver, remove the existing wireless configuration (if any) and use the wifi detect command with stdout redirected to the /etc/config/wireless file:

rm -f /etc/config/wireless
wifi detect > /etc/config/wireless
wifi detect gives UCI configuration entries for all installed interfaces that do not have UCI entries in /etc/config/wireless. So you can remove /etc/config/wireless and run the above again to reset your wifi configuration.


Will this break anything from this build? Like removing the tor network or something like that?

(Last edited by Panderine on 25 Mar 2015, 01:50)

Probably. But you can always try to correct it after.
Make sure to save a (textual) copy of the existing /etc/config/wireless file. You can probably copy-paste the tor-related info into the new one.

Anyway, you want to experiment, right. Just do it smile
You can always factory reset your router.

I know about it, not useful for a home router IMO

r45001 does not boot on my WNDR3700v1 (sysupgrade -n AND tftp), r44973 works fine.

tnx for the excellent work with these builds though.

Rayures wrote:

r45001 does not boot on my WNDR3700v1 (sysupgrade -n AND tftp), r44973 works fine.

tnx for the excellent work with these builds though.

r44973 doesn't exists for wndrnand, but r45001 does.  Also no changelog sad

Panderine wrote:

Has anyone experimented adding a second wireless card via usb?.

Ok seems I'm having some kind of segfault or kernel panic. When I enable an usb wifi, I loose all connectivity (and more). I can log in to LUCI but only some pages are shown (overview screen shows empty values for memory,network, etc). Also wifi sections is not responding. Performing an ifconfig from ssh to the router results in a "hung".

Is there a way to debug this? I don't see any specific error in the system or kernel log sad

@Rayures

That's odd, because it was just a rebuild. Not the first time a build has gotten borked for no reason though, so I've removed it. You don't happen to have a serial port to see what the error is? r45001 works fine on the WDR4900 though.

EDIT: possibly related to https://dev.openwrt.org/ticket/19329 which is fixed in trunk. I'll rebuild.

@Panderine

No changelog = no changes. I just rebuilt because I liked the number better smile

(Last edited by arokh on 28 Mar 2015, 11:36)

@Arokh
unfortunately no serial port (perhaps something to build soon, i am in need of a new hw hack project and if i can help the community with it :-) )

mentioned issues in the ticket was not what i encountered. I had no reboots. It just hang during boot with only 1 led active (wan). (with no wan connected....). could not reach it any way, wired and wifi, no ping, no ssh, no web, no wifi. Although, lets hope it was this issue, then a rebuild of r45069+ fixes it.

I've built this build twice and both times I've had issues with the MD5 sums of certain packages not matching. I've had to manually download said packages again manually and put them in the download folder to resolve this.

miniupnpd is one such package that always fails the md5 sum check.

hello i'm trying to install pyload on your build but i cannot do it. Always when chech systemcheck.py pycurl is missing, but i have installed.

Can someone help me?

Thanks

With the r45077 I upgraded the firmware succesfully from 45001 but it won't reset the settings properly. Also not with a clean flash on the wndr4300 , anyone else experiencing this problem?

Just thought I'd report that I tried installing the latest build r45077 - 760Mhz and it seems to have bricked the router:

NETGEAR WNDR3700 (it's a v1)

Previously it was running one of your older custom builds:
OpenWrt Chaos Calmer r43821 / LuCI Master (git-14.359.33351-5e6c33e)

Going to try some of the 800Mhz builds and go back in time until one works.

r45077 bricked my WNDR3700v1 too, the last build works.

Deleted.

(Last edited by bouwew on 30 Mar 2015, 17:39)

I just upgraded to r45144, ntp/tor/vpn working fine.

Update 2: still not sure what is happening. Apparently some files in the /etc/config directory are overwritten(??) by default OpenWrt-files...

Update: loaded r45077 again, gave me the same problem!? Wtf!
There must be an issue at my end! Will investigate further...

Tested both r45144 wdr4900_noipv6 (again) and wdr4900. Both give me the same result as before, no tor, no VPN. Most settings are basic OpenWrt.

(Last edited by bouwew on 30 Mar 2015, 18:24)

From my syslog:

Mon Mar 30 11:51:21 2015 daemon.notice netifd: Interface 'wan' is now up
Mon Mar 30 11:51:21 2015 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Mon Mar 30 11:51:22 2015 kern.info kernel: [   21.847673] fsl-gianfar soc@ffe00000:ethernet@b0000 eth0: Link is Up - 1Gbps/Full - flow control off
Mon Mar 30 11:51:22 2015 kern.info kernel: [   21.911414] br-lan: port 1(eth0.1) entered forwarding state
Mon Mar 30 11:51:23 2015 user.emerg syslog: Generating selfsigned certificate with subject 'C=DE;ST=Berlin;L=Berlin;CN=OpenWrt;' and validity 2015-03-30 11:51:20-2017-03-29 11:51:20
Mon Mar 30 11:51:24 2015 daemon.err uhttpd[2979]: socket(): Address family not supported by protocol
Mon Mar 30 11:51:24 2015 daemon.err uhttpd[2979]: socket(): Address family not supported by protocol
Mon Mar 30 11:51:24 2015 daemon.notice mactelnetd[2989]: Bound to 0.0.0.0:20561
Mon Mar 30 11:51:24 2015 daemon.notice mactelnetd[2989]: Listening on br-lan for 64:66:b3:96:70:93
Mon Mar 30 11:51:24 2015 daemon.notice mactelnetd[2989]: Listening on eth0.2 for 0:4:9f:ef:1:1
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: OpenVPN 2.3_git powerpc-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [SNAPPY] [LZ4] [EPOLL] [MH] [IPv6] built on Mar 30 2015
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: library versions: OpenSSL 1.0.2 22 Jan 2015, LZO 2.08
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: TUN/TAP device tun0 opened
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: TUN/TAP TX queue length set to 100
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: /sbin/ifconfig tun0 10.1.1.1 pointopoint 10.1.1.2 mtu 1500
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: UDPv4 link local (bound): [AF_INET][undef]:1194
Mon Mar 30 11:51:26 2015 daemon.notice openvpn(default)[3047]: UDPv4 link remote: [AF_UNSPEC]
Mon Mar 30 11:51:26 2015 daemon.err mount_root: no jffs2 marker found
Mon Mar 30 11:51:26 2015 kern.warn kernel: [   25.916624] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
Mon Mar 30 11:51:26 2015 kern.warn kernel: [   25.947125] jffs2_build_filesystem(): unlocking the mtd device... done.
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: started, version 2.72 cachesize 150
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: compile time options: no-IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack ipset no-auth DNSSEC loop-detect
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: DNS service limited to local subnets
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq-dhcp[3020]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: using local addresses only for domain lan
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: reading /tmp/resolv.conf.auto
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: using local addresses only for domain lan
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: using nameserver 212.54.44.54#53
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: using nameserver 212.54.40.25#53
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: read /etc/hosts - 1 addresses
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq[3020]: read /tmp/hosts/dhcp - 1 addresses
Mon Mar 30 11:51:26 2015 daemon.info dnsmasq-dhcp[3020]: read /etc/ethers - 0 addresses
Mon Mar 30 17:31:16 2015 authpriv.info dropbear[3114]: Not backgrounding
Mon Mar 30 17:31:21 2015 daemon.info dnsmasq-dhcp[3020]: DHCPREQUEST(br-lan) 192.168.1.101 00:1e:8c:8e:cf:a8 
Mon Mar 30 17:31:21 2015 daemon.info dnsmasq-dhcp[3020]: DHCPACK(br-lan) 192.168.1.101 00:1e:8c:8e:cf:a8 Bouwe_PC
Mon Mar 30 17:31:28 2015 kern.warn kernel: [   25.953772] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
Mon Mar 30 17:31:28 2015 kern.notice kernel: [   45.912628] jffs2: notice: (3053) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Mon Mar 30 17:31:28 2015 daemon.err miniupnpd[3127]: could not open lease file: /var/upnp.leases
Mon Mar 30 17:31:28 2015 daemon.notice miniupnpd[3127]: HTTP listening on port 5000
Mon Mar 30 17:31:28 2015 daemon.notice miniupnpd[3127]: Listening for NAT-PMP/PCP traffic on port 5351
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [NOTICE] Starting dnscrypt-proxy 1.4.3
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Initializing libsodium for optimal performance
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Generating a new key pair
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Done
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Server certificate #1408041567 received
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] This certificate looks valid
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Chosen certificate #1408041567 is valid from [2014-08-15] to [2015-08-15]
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [INFO] Server key fingerprint is 8201:4577:3D75:3934:FC25:B83C:8369:72DC:98A2:1368:AA0A:2C18:6C17:D7B4:30E8:CD63
Mon Mar 30 17:31:28 2015 daemon.err dnscrypt-proxy[3044]: [NOTICE] Proxying from 127.0.0.1:5353 to 208.67.220.220:443
Mon Mar 30 17:31:29 2015 user.notice SQM: Trying to start/stop SQM on interface lo
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [NOTICE] Starting dnscrypt-proxy 1.4.3
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Initializing libsodium for optimal performance
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Generating a new key pair
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Done
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Server certificate #1408041567 received
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] This certificate looks valid
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Chosen certificate #1408041567 is valid from [2014-08-15] to [2015-08-15]
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [INFO] Server key fingerprint is 8201:4577:3D75:3934:FC25:B83C:8369:72DC:98A2:1368:AA0A:2C18:6C17:D7B4:30E8:CD63
Mon Mar 30 17:31:30 2015 daemon.err dnscrypt-proxy[3222]: [NOTICE] Proxying from 127.0.0.1:5353 to 208.67.220.220:443
Mon Mar 30 17:31:30 2015 user.notice SQM: Trying to start/stop SQM on interface eth0.2
Mon Mar 30 17:31:30 2015 user.notice firewall: Reloading firewall due to ifup of wan6 (eth0.2)
Mon Mar 30 17:31:30 2015 daemon.info mount_root: performing overlay whiteout
Mon Mar 30 17:31:31 2015 user.emerg syslog: uci: Entry not found
Mon Mar 30 17:31:31 2015 user.emerg syslog: uci: Entry not found
Mon Mar 30 17:31:31 2015 user.emerg syslog: sh: 1: unknown operand
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [NOTICE] Starting dnscrypt-proxy 1.4.3
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Initializing libsodium for optimal performance
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Generating a new key pair
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Done
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Server certificate #1408041567 received
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] This certificate looks valid
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Chosen certificate #1408041567 is valid from [2014-08-15] to [2015-08-15]
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [INFO] Server key fingerprint is 8201:4577:3D75:3934:FC25:B83C:8369:72DC:98A2:1368:AA0A:2C18:6C17:D7B4:30E8:CD63
Mon Mar 30 17:31:31 2015 daemon.err dnscrypt-proxy[3383]: [NOTICE] Proxying from 127.0.0.1:5353 to 208.67.220.220:443
Mon Mar 30 17:31:31 2015 user.notice SQM: Trying to start/stop SQM on interface eth0.2
Mon Mar 30 17:31:31 2015 user.notice ddns-scripts[3412]: myddns_ipv6: PID '3412' started at 2015-03-30 17:31
Mon Mar 30 17:31:31 2015 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
Mon Mar 30 17:31:32 2015 user.warn ddns-scripts[3412]: myddns_ipv6: Service section disabled! - TERMINATE
Mon Mar 30 17:31:32 2015 user.warn ddns-scripts[3412]: myddns_ipv6: PID '3412' exit WITH ERROR '1' at 2015-03-30 17:31
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [NOTICE] Starting dnscrypt-proxy 1.4.3
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Initializing libsodium for optimal performance
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Generating a new key pair
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Done
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Server certificate #1408041567 received
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] This certificate looks valid
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Chosen certificate #1408041567 is valid from [2014-08-15] to [2015-08-15]
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [INFO] Server key fingerprint is 8201:4577:3D75:3934:FC25:B83C:8369:72DC:98A2:1368:AA0A:2C18:6C17:D7B4:30E8:CD63
Mon Mar 30 17:31:32 2015 daemon.err dnscrypt-proxy[3558]: [NOTICE] Proxying from 127.0.0.1:5353 to 208.67.220.220:443
Mon Mar 30 17:31:32 2015 user.notice ddns-scripts[3587]: myddns_ipv4: PID '3587' started at 2015-03-30 17:31
Mon Mar 30 17:31:32 2015 user.warn ddns-scripts[3587]: myddns_ipv4: Service section disabled! - TERMINATE
Mon Mar 30 17:31:32 2015 user.warn ddns-scripts[3587]: myddns_ipv4: PID '3587' exit WITH ERROR '1' at 2015-03-30 17:31
Mon Mar 30 17:31:33 2015 daemon.info procd: - init complete -
Mon Mar 30 17:31:42 2015 cron.err crond[2786]: time disparity of 340 minutes detected
Mon Mar 30 17:33:38 2015 daemon.warn miniupnpd[3127]: upnp_event_process_notify: connect(192.168.1.101:2869): Connection timed out
Mon Mar 30 17:33:38 2015 daemon.warn miniupnpd[3127]: upnp_event_process_notify: connect(192.168.1.101:2869): Connection timed out
Mon Mar 30 17:33:38 2015 daemon.warn miniupnpd[3127]: upnp_event_process_notify: connect(192.168.1.101:2869): Connection timed out

I wonder, do I have bad blocks in my memory chips, causing come of the files in/etc/config being overwritten by default openwrt files?
I find the following lines in the log suspicious:

Mon Mar 30 11:51:26 2015 daemon.err mount_root: no jffs2 marker found
Mon Mar 30 11:51:26 2015 kern.warn kernel: [   25.916624] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
Mon Mar 30 11:51:26 2015 kern.warn kernel: [   25.947125] jffs2_build_filesystem(): unlocking the mtd device... done.
...
...
Mon Mar 30 17:31:28 2015 kern.warn kernel: [   25.953772] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
Mon Mar 30 17:31:28 2015 kern.notice kernel: [   45.912628] jffs2: notice: (3053) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
...

No real clue what this means... sad

Fortunately, when I copy over my backup-config-files to /etc/config/ and reboot, then everything works as configured in these backup files smile

(Last edited by bouwew on 30 Mar 2015, 19:00)

45144 bricked mine after a scheduled reboot. It was running fine before.

@bouwew

The jffs2 stuff in the log is normal, first boot after a flash the overlay filesystem is erased/created. Otherwise your log seems fairly  normal and you can see openvpn is started. Tor is only started after you enable the Tor ssid.

Haven't had time to check a clean flash yet, but I upgraded from the previous release and I'm running r45144 just fine.