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.

Enabling cryptodev support for openssl does nothing for me, the engine simply won't show up.

root@OpenWrt ~# openssl version -a
OpenSSL 1.0.2d 9 Jul 2015
built on: reproducible build, date unspecified
platform: linux-ppc-openwrt
options:  bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) blowfish(ptr) 
compiler: powerpc-openwrt-linux-musl-gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_musl-1.1.10/usr/include -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_musl-1.1.10/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_musl-1.1.10/usr/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_musl-1.1.10/include -znow -zrelro -DHAVE_CRYPTODEV -DOPENSSL_NO_ERR -DTERMIOS -Os -pipe -mcpu=8548 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -O2 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DVPAES_ASM
OPENSSLDIR: "/etc/ssl"
root@OpenWrt ~# openssl engine
(dynamic) Dynamic engine loading support
root@OpenWrt ~# lsmod | grep cryptodev
cryptodev              12360  4 
root@OpenWrt ~# lsmod | grep ocf
ocf                    20539  2 cryptosoft

Going to try with uClibc maybe that works better.

Did a clean build with uClibc, no change. I do have /dev/crypto and openssl has been compiled with support for it:

root@OpenWrt ~# strings /usr/lib/libcrypto.so.1.0.0 | grep -i cryptodev
ENGINE_load_cryptodev
ENGINE_setup_bsd_cryptodev
cryptodev_rc4
cryptodev_3des_cbc
cryptodev_des_cbc
cryptodev_bf_cbc
cryptodev_cast_cbc
cryptodev_aes_cbc
cryptodev_aes_192_cbc
cryptodev_aes_256_cbc
cryptodev_ctrl: unknown command %d
cryptodev
BSD cryptodev engine
cryptodev DH method
cryptodev DSA method
cryptodev RSA method
compiler: powerpc-openwrt-linux-uclibcspe-gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_uClibc-1.0.4/usr/include -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_uClibc-1.0.4/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_uClibc-1.0.4/usr/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_uClibc-1.0.4/include -znow -zrelro -DHAVE_CRYPTODEV -DOPENSSL_NO_ERR -DTERMIOS -Os -pipe -mcpu=8548 -mspe=yes -mabi=spe -mfloat-gprs=double -mhard-float -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -O2 -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DVPAES_ASM

But the engine does not show up. My best guess is that it's currently broken with either the 4.1 kernel, or with the latest openssl library. From what I can gather this code doesn't get used a lot and has bugs. I tried the ocf implementation as well with no luck.

Too bad, huge OpenVPN speedup would be nice smile

Thanks for trying. Never mind. With the above aes-ppc.pl patch the OpenVPN numbers should be far better than the stock version. Alphasparc has a similar patch in bis builds but this falls back to C code and not the even better assembler core.

Markus

Here's my latest score with uClibc:

| r46541 | 1.0.2d | 75964990 | 81707590 | 38163370 | 21985420 | 15164160 | 5524430 | 32340470 | 29271520 | 25452820 | 18.5 | 712.7 68.3 | 57.7 |

Huge increase in AES speed indeed. Valentt will be happy he was chasing these numbers tongue

The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
blowfish cbc     24538.80k    28196.12k    29139.01k    29471.61k    29596.01k
aes-128 cbc      21660.84k    24566.74k    25621.87k    25894.40k    25857.03k
aes-192 cbc      19853.62k    21721.51k    22371.30k    22838.03k    22484.37k
aes-256 cbc      17507.53k    19339.52k    19945.60k    20215.29k    20110.39k

Still slightly slower than BF-CBC (OpenVPN default), but now you should be able to get roughly the same throughput with AES-128.

(Last edited by arokh on 2 Aug 2015, 08:32)

OK, I got OCF cryptodev working:

| r46541 | 1.0.2d | 108506760 | 69118600 | 38479140 | 22166140 | 15238290 | 5536860 | 32215110 | 28374450 | 25315820 | 18.5 | 628.6 67.8 | 55.7 |

Full output:

root@OpenWrt ~# openssl speed -engine cryptodev md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed
engine "cryptodev" set.
Doing md5 for 3s on 16 size blocks: 70181 md5's in 0.76s
Doing md5 for 3s on 64 size blocks: 68627 md5's in 0.68s
Doing md5 for 3s on 256 size blocks: 66408 md5's in 0.70s
Doing md5 for 3s on 1024 size blocks: 58280 md5's in 0.55s
Doing md5 for 3s on 8192 size blocks: 25638 md5's in 0.30s
Doing sha1 for 3s on 16 size blocks: 594369 sha1's in 2.82s
Doing sha1 for 3s on 64 size blocks: 537151 sha1's in 2.89s
Doing sha1 for 3s on 256 size blocks: 396843 sha1's in 2.88s
Doing sha1 for 3s on 1024 size blocks: 197096 sha1's in 2.92s
Doing sha1 for 3s on 8192 size blocks: 34188 sha1's in 2.92s
Doing sha256 for 3s on 16 size blocks: 1313313 sha256's in 2.91s
Doing sha256 for 3s on 64 size blocks: 770955 sha256's in 2.93s
Doing sha256 for 3s on 256 size blocks: 352144 sha256's in 2.95s
Doing sha256 for 3s on 1024 size blocks: 110853 sha256's in 2.95s
Doing sha256 for 3s on 8192 size blocks: 15025 sha256's in 2.96s
Doing sha512 for 3s on 16 size blocks: 511055 sha512's in 2.95s
Doing sha512 for 3s on 64 size blocks: 511409 sha512's in 2.97s
Doing sha512 for 3s on 256 size blocks: 184901 sha512's in 2.96s
Doing sha512 for 3s on 1024 size blocks: 64074 sha512's in 2.96s
Doing sha512 for 3s on 8192 size blocks: 8983 sha512's in 2.96s
Doing des cbc for 3s on 16 size blocks: 2565704 des cbc's in 2.96s
Doing des cbc for 3s on 64 size blocks: 687789 des cbc's in 2.96s
Doing des cbc for 3s on 256 size blocks: 175833 des cbc's in 2.98s
Doing des cbc for 3s on 1024 size blocks: 44197 des cbc's in 2.97s
Doing des cbc for 3s on 8192 size blocks: 5501 des cbc's in 2.96s
Doing des ede3 for 3s on 16 size blocks: 986624 des ede3's in 2.97s
Doing des ede3 for 3s on 64 size blocks: 253346 des ede3's in 2.96s
Doing des ede3 for 3s on 256 size blocks: 64056 des ede3's in 2.98s
Doing des ede3 for 3s on 1024 size blocks: 16005 des ede3's in 2.96s
Doing des ede3 for 3s on 8192 size blocks: 2000 des ede3's in 2.97s
Doing aes-128 cbc for 3s on 16 size blocks: 4835943 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 64 size blocks: 1418580 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 256 size blocks: 366581 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 1024 size blocks: 93751 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 11727 aes-128 cbc's in 2.96s
Doing aes-192 cbc for 3s on 16 size blocks: 4368311 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 64 size blocks: 1249554 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 256 size blocks: 324548 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 1024 size blocks: 82297 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 8192 size blocks: 10381 aes-192 cbc's in 2.98s
Doing aes-256 cbc for 3s on 16 size blocks: 3962860 aes-256 cbc's in 2.95s
Doing aes-256 cbc for 3s on 64 size blocks: 1126952 aes-256 cbc's in 2.96s
Doing aes-256 cbc for 3s on 256 size blocks: 289119 aes-256 cbc's in 2.97s
Doing aes-256 cbc for 3s on 1024 size blocks: 73673 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 8192 size blocks: 9193 aes-256 cbc's in 2.88s
Doing 2048 bit private rsa's for 10s: 180 2048 bit private RSA's in 9.71s
Doing 2048 bit public rsa's for 10s: 6217 2048 bit public RSA's in 9.89s
Doing 2048 bit sign dsa's for 10s: 672 2048 bit DSA signs in 9.91s
Doing 2048 bit verify dsa's for 10s: 548 2048 bit DSA verify in 9.84s
OpenSSL 1.0.2d 9 Jul 2015
built on: reproducible build, date unspecified
options:bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) blowfish(ptr) 
compiler: powerpc-openwrt-linux-uclibcspe-gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_uClibc-1.0.4/usr/include -I/home/trondah/build/trunk/staging_dir/target-powerpc_8540_uClibc-1.0.4/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_uClibc-1.0.4/usr/include -I/home/trondah/build/trunk/staging_dir/toolchain-powerpc_8540_gcc-4.9-linaro_uClibc-1.0.4/include -znow -zrelro -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -DOPENSSL_NO_ERR -DTERMIOS -Os -pipe -mcpu=8548 -mspe=yes -mabi=spe -mfloat-gprs=double -mhard-float -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -O2 -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DVPAES_ASM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               1477.49k     6459.01k    24286.35k   108506.76k   700088.32k
sha1              3372.31k    11895.39k    35274.93k    69118.60k    95913.73k
des cbc          13868.67k    14871.11k    15105.12k    15238.29k    15224.39k
des ede3          5315.15k     5477.75k     5502.80k     5536.86k     5516.50k
aes-128 cbc      26052.22k    30568.73k    31597.55k    32215.11k    32455.26k
aes-192 cbc      23532.99k    26926.42k    27974.51k    28374.45k    28537.30k
aes-256 cbc      21493.48k    24366.53k    24920.69k    25315.82k    26148.98k
sha256            7220.96k    16839.97k    30558.94k    38479.14k    41582.70k
sha512            2771.82k    11020.26k    15991.44k    22166.14k    24861.06k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.053944s 0.001591s     18.5    628.6
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.014747s 0.017956s     67.8     55.7

(Last edited by arokh on 2 Aug 2015, 08:56)

Fine. Did you already include kernel md5 ppc module?

Yes, I did. The md5 score went from 75964990 to 108506760.

There's a decrease in SHA1 score though.

EDIT: Still only got 20/20 Mbps with AES-128 through OpenVPN.

Was hoping for a better result than that, but even if it uses the kernel for crypto it's still much slower than IPsec. OpenVPN is userland and needs raw CPU power more than anything.

Here's the build if anybody would like to try:

http://enduser.subsignal.org/~trondah/w … cryptodev/

(Last edited by arokh on 2 Aug 2015, 09:54)

Did you enable cryptodev in OpenVPN too? Parameter "engine cryptodev".

(Last edited by birnenschnitzel on 2 Aug 2015, 11:09)

Yes I did, and changed cipher to AES-128-CBC.

Not that strange if you think about it. The OpenSSL library can use cryptodev for the encryption but it still have to push the data through the tun interfaces, most likely the speed gains from the kernel are lost on the way. I would think that if you got dedicated SSL hardware and a fast CPU, it would make OpenVPN blazing fast.

I'll try the checksum function as well, as you say there probably won't be a huge difference. Maybe faster WAN/LAN?

Next build is coming up:

r46541:
- Support for USB tethering of Android/iOS devices
- mwan3 for load balancing and failover two or more WAN connections
- Simply plug in your device, enable tethering and enable the mwan3 WAN/USB interfaces
- iOS has a different interface, needs to be changed under Network -> Interfaces -> USB -> Phsyical Settings
- Increased OpenSSL AES speed for PPC / WDR4900

(Last edited by arokh on 2 Aug 2015, 14:19)

What ports do you need to open for strongSwan ?
I've got a bit of a rubbish set up where my ISP makes me use their router in front of the tp-link...

UDP 500 and 4500.

I added a 443-forwarding rule, but when I try to connect from the internet I get a message that the website may be temporarily disabled or permanently moved.
Internally however it works... Is there a logfile where I can see if the router/firmware might be causing this?
(I'm running on r46541-musl)

There is already a redirect rule for TCP 443 in my build:

config redirect
    option name 'Redirect-TCP-port-443-to-1194-on-wan'
    option src 'wan'
    option src_dport '443'
    option src_ip '!192.168.102.0/24'
    option dest 'lan'
    option dest_port '1194'
    option proto 'tcp'
    option target 'DNAT'
    option reflection '0'

This is used for OpenVPN TCP fallback. If you don't need this just disable/remove the rule. In that case you should stop the OpenVPN TCP instance as well.

Hi arokh,

Thanks for you work! I use the Build r46541 on a WNDR3700 v4 (Nand) and only the Wifi 2.4 GHz device is present. I make a clean flash over tftp but the 5GHz device dont work. Do you have a tip as I Device the 5GHz to run get? Greetings and thanks Meditux

I don't have a V4 to test, but it should work fine with ath9k. Can you see both radios?

arokh wrote:

There is already a redirect rule for TCP 443 in my build:

config redirect
    option name 'Redirect-TCP-port-443-to-1194-on-wan'
    option src 'wan'
    option src_dport '443'
    option src_ip '!192.168.102.0/24'
    option dest 'lan'
    option dest_port '1194'
    option proto 'tcp'
    option target 'DNAT'
    option reflection '0'

This is used for OpenVPN TCP fallback. If you don't need this just disable/remove the rule. In that case you should stop the OpenVPN TCP instance as well.

I looked at that screen several times and completely missed it... hmm

Thanks!

Maybe I've missed something, but is there a reason that the WNDR3700(v1) isn't being catered for anymore?
I built it from source as well, and despite it saying that the 3700 profile is selected, doesnt seem to build- only the 3700v2 is there.

It's still catered for, I moved it to a new profile: wndr3700_8mb. The wndr3x00 is only for 16MB devices. It won't build unless you have CONFIG_NETGEAR_8MB set.

arokh wrote:

It's still catered for, I moved it to a new profile: wndr3700_8mb. The wndr3x00 is only for 16MB devices. It won't build unless you have CONFIG_NETGEAR_8MB set.

Interesting, I thought I had tried that profile before- must have only ticked the option in the Global Build Options.

I've got it to build now thanks. THe firmware is starting to get close to the limit of my 3700v1... thinking it might be time to upgrade, finally.

arokh wrote:

I don't have a V4 to test, but it should work fine with ath9k. Can you see both radios?

No, i see only radio0 (2.4 GHz)!

root@gateway ~# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x11ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 2412 MHz [1] (22.0 dBm)
                        * 2417 MHz [2] (26.0 dBm)
                        * 2422 MHz [3] (26.0 dBm)
                        * 2427 MHz [4] (26.0 dBm)
                        * 2432 MHz [5] (26.0 dBm)
                        * 2437 MHz [6] (26.0 dBm)
                        * 2442 MHz [7] (26.0 dBm)
                        * 2447 MHz [8] (26.0 dBm)
                        * 2452 MHz [9] (26.0 dBm)
                        * 2457 MHz [10] (26.0 dBm)
                        * 2462 MHz [11] (22.0 dBm)
                        * 2467 MHz [12] (26.0 dBm)
                        * 2472 MHz [13] (26.0 dBm)
                        * 2484 MHz [14] (26.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1, STA/AP BI must match
                 * #{ WDS } <= 2048,
                   total <= 2048, #channels <= 1, STA/AP BI must match
                 * #{ IBSS, AP, mesh point } <= 1,
                   total <= 1, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
root@gateway ~#

(Last edited by Meditux on 3 Aug 2015, 17:32)

Anything in dmesg?

No

root@gateway ~# dmesg
[    0.000000] Linux version 4.1.3 (trondah@ff0) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46541) ) #1 Mon Aug 3 03:34:04 CEST 2015
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 803e57a0, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),121856k(ubi),123904k@0x6c0000(firmware),256k(caldata_backup),-(reserved) rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 125412K/131072K available (2962K kernel code, 129K rwdata, 612K rodata, 192K init, 187K bss, 5660K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:83
[    0.000000] Clocks: CPU:560.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.007504] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.080012] pid_max: default: 32768 minimum: 301
[    0.084578] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090907] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100366] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.110436] NET: Registered protocol family 16
[    0.116006] MIPS: machine is NETGEAR WNDR3700v4
[    0.120638] ar71xx: using random MAC address for eth0
[    0.350815] Switched to clocksource MIPS
[    0.355853] NET: Registered protocol family 2
[    0.361042] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.367719] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.373888] TCP: Hash tables configured (established 1024 bind 1024)
[    0.380050] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.385673] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.391968] NET: Registered protocol family 1
[    0.396165] PCI: CLS 0 bytes, default 32
[    0.397200] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.422418] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.427996] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.439860] io scheduler noop registered
[    0.443646] io scheduler deadline registered (default)
[    0.448756] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.455296] console [ttyS0] disabled
[    0.478753] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.487043] console [ttyS0] enabled
[    0.494069] bootconsole [early0] disabled
[    0.505392] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    0.511885] nand: Micron NAND 128MiB 3,3V 8-bit
[    0.516482] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.524226] Scanning device for bad blocks
[    0.610252] mtd: ar934x-nfc: skipping zero sized partition
[    0.615835] 11 cmdlinepart partitions found on MTD device ar934x-nfc
[    0.622292] Creating 11 MTD partitions on "ar934x-nfc":
[    0.627594] 0x000000000000-0x000000040000 : "u-boot"
[    0.633581] 0x000000040000-0x000000080000 : "u-boot-env"
[    0.639756] 0x000000080000-0x0000000c0000 : "caldata"
[    0.645744] 0x0000000c0000-0x000000140000 : "pot"
[    0.651379] 0x000000140000-0x000000340000 : "language"
[    0.657381] 0x000000340000-0x0000003c0000 : "config"
[    0.663271] 0x0000003c0000-0x0000006c0000 : "traffic_meter"
[    0.669711] 0x0000006c0000-0x0000008c0000 : "kernel"
[    0.675597] 0x0000008c0000-0x000007fc0000 : "ubi"
[    0.681487] 0x0000006c0000-0x000007fc0000 : "firmware"
[    1.285855] random: nonblocking pool is initialized
[    2.409735] 0x000007fc0000-0x000008000000 : "caldata_backup"
[    2.421048] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    2.488108] libphy: ag71xx_mdio: probed
[    3.082162] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    3.093651] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.101750] NET: Registered protocol family 17
[    3.106357] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.119244] Bridge firewalling registered
[    3.123454] 8021q: 802.1Q VLAN Support v1.8
[    3.133160] UBI: auto-attach mtd8
[    3.136371] ubi0: attaching mtd8
[    4.624706] ubi0: scanning is finished
[    4.646192] ubi0: attached mtd8 (name "ubi", size 119 MiB)
[    4.651815] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.658789] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.665684] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.672758] ubi0: good PEBs: 952, bad PEBs: 0, corrupted PEBs: 0
[    4.678853] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.686191] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1128895742
[    4.695463] ubi0: available PEBs: 0, total reserved PEBs: 952, PEBs reserved for bad PEB handling: 20
[    4.704869] ubi0: background thread "ubi_bgt0d" started, PID 286
[    4.712671] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.718252] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.732629] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.740877] Freeing unused kernel memory: 192K (80400000 - 80430000)
[    6.142212] init: Console is alive
[    6.145875] init: - watchdog -
[    8.626136] usbcore: registered new interface driver usbfs
[    8.631857] usbcore: registered new interface driver hub
[    8.637354] usbcore: registered new device driver usb
[    8.649139] exFAT: Version 1.2.9
[    8.707543] SCSI subsystem initialized
[    8.717942] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.726150] ehci-platform: EHCI generic platform driver
[    8.731613] ehci-platform ehci-platform: EHCI Host Controller
[    8.737475] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    8.747606] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    8.770859] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    8.778110] hub 1-0:1.0: USB hub found
[    8.782294] hub 1-0:1.0: 1 port detected
[    8.789475] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.797248] ohci-platform: OHCI generic platform driver
[    8.807254] usbcore: registered new interface driver usb-storage
[    9.100856] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.165223] init: - preinit -
[    9.450069] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.467784] scsi host0: usb-storage 1-1:1.0
[   10.479780] scsi 0:0:0:0: Direct-Access     JetFlash Transcend 32GB   8.07 PQ: 0 ANSI: 2
[   10.491317] sd 0:0:0:0: [sda] 62750720 512-byte logical blocks: (32.1 GB/29.9 GiB)
[   10.499790] sd 0:0:0:0: [sda] Write Protect is off
[   10.504710] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   10.505417] sd 0:0:0:0: [sda] No Caching mode page found
[   10.510860] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.979819]  sda: sda1
[   10.985796] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   11.162082] eth0: link up (1000Mbps/Full duplex)
[   13.161153] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
[   13.168487] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 5 is up
[   13.956787] mount_root: loading kmods from internal overlay
[   14.464425] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 460
[   14.555177] UBIFS (ubi0:1): recovery needed
[   14.767782] UBIFS (ubi0:1): recovery completed
[   14.772410] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   14.780359] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   14.790446] UBIFS (ubi0:1): FS size: 108818432 bytes (103 MiB, 857 LEBs), journal size 5459968 bytes (5 MiB, 43 LEBs)
[   14.801218] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   14.807937] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID C349BB76-8EC4-4847-A703-3F6EF9F606A9, small LPT model
[   14.823583] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   14.843998] block: extroot: not configured
[   14.848392] UBIFS (ubi0:1): un-mount UBI device 0
[   14.853251] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[   14.864473] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 463
[   15.137551] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   15.145548] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.155638] UBIFS (ubi0:1): FS size: 108818432 bytes (103 MiB, 857 LEBs), journal size 5459968 bytes (5 MiB, 43 LEBs)
[   15.166409] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   15.173143] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID C349BB76-8EC4-4847-A703-3F6EF9F606A9, small LPT model
[   15.192637] mount_root: loading kmods from internal overlay
[   15.567239] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   15.580087] block: extroot: not configured
[   15.587053] mount_root: switching to jffs2 overlay
[   15.619190] eth0: link down
[   15.637235] procd: - early -
[   15.640268] procd: - watchdog -
[   16.128293] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   16.146045] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
[   16.158250] EXT4-fs (sda1): mounted filesystem without journal. Opts:
[   16.478091] procd: - ubus -
[   17.507833] procd: - init -
[   19.420638] NET: Registered protocol family 10
[   19.433722] Initializing XFRM netlink socket
[   19.441332] NET: Registered protocol family 15
[   19.448555] tun: Universal TUN/TAP device driver, 1.6
[   19.453745] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   19.491385] sit: IPv6 over IPv4 tunneling driver
[   19.520909] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   19.562956] Netfilter messages via NETLINK v0.30.
[   19.589411] ip_set: protocol 6
[   19.685678] u32 classifier
[   19.688439]     input device check on
[   19.692203]     Actions configured
[   19.728863] Mirror/redirect action on
[   19.752648] nf_conntrack version 0.5.0 (1962 buckets, 7848 max)
[   19.843313] Loading modules backported from Linux version master-2015-07-21-0-g47cd203
[   19.851404] Backport generated by backports.git backports-20150626-0-gc1a4168
[   19.892698] ip_tables: (C) 2000-2006 Netfilter Core Team
[   19.906922] usbcore: registered new interface driver ipheth
[   20.082214] xt_time: kernel timezone is -0000
[   20.090144] usbcore: registered new interface driver cdc_ether
[   20.139888] cfg80211: World regulatory domain updated:
[   20.145153] cfg80211:  DFS Master region: unset
[   20.149569] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   20.159467] cfg80211:   (2402000 KHz - 2494000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   20.167596] cfg80211:   (4910000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   20.267367] PPP generic driver version 2.4.2
[   20.275034] NET: Registered protocol family 24
[   20.283677] usbcore: registered new interface driver rndis_host
[   20.357793] ath: EEPROM regdomain: 0x0
[   20.357814] ath: EEPROM indicates default country code should be used
[   20.357823] ath: doing EEPROM country->regdmn map search
[   20.357845] ath: country maps to regdmn code: 0x3a
[   20.357856] ath: Country alpha2 being used: US
[   20.357866] ath: Regpair used: 0x3a
[   20.369245] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   20.372575] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[   20.379750] cfg80211: Regulatory domain changed to country: US
[   20.385723] cfg80211:  DFS Master region: FCC
[   20.389968] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   20.399865] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   20.407997] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
[   20.417627] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[   20.427266] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
[   20.435488] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   20.443619] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   30.917132] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   30.957849] device eth0.1 entered promiscuous mode
[   30.962784] device eth0 entered promiscuous mode
[   30.982729] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   31.128864] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   31.352208] eth0: link up (1000Mbps/Full duplex)
[   31.358586] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   31.420926] br-lan: port 1(eth0.1) entered forwarding state
[   31.426640] br-lan: port 1(eth0.1) entered forwarding state
[   31.432488] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   31.566525] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   32.920903] cfg80211: World regulatory domain updated:
[   32.926123] cfg80211:  DFS Master region: unset
[   32.930539] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   32.940460] cfg80211:   (2402000 KHz - 2494000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   32.948758] cfg80211:   (4910000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   33.420871] br-lan: port 1(eth0.1) entered forwarding state
[   33.517011] pppoe-wan: renamed from ppp0
[   37.484136] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   37.634248] device wlan0 entered promiscuous mode
[   38.883555] br-lan: port 2(wlan0) entered forwarding state
[   38.889199] br-lan: port 2(wlan0) entered forwarding state
[   38.895070] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   40.880870] br-lan: port 2(wlan0) entered forwarding state
root@gateway ~#

I can see both 2.4 and 5GHz frequencies there, probably something in the wireless config. Look at your system log

EDIT: Never mind, there seems to be only one radio detected in your log. Don't really know what's up with that, did you try an official snapshot?

(Last edited by arokh on 3 Aug 2015, 21:47)

Sorry, posts 2226 to 2225 are missing from our archive.