OpenWrt Forum Archive

Topic: Update on Linksys WRT1900AC support

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

nitroshift wrote:
roberto_MCF wrote:

Hello everyone , I have a problem with openwrt , basically I can not use the / etc / config / network command always makes me permission denied , also if I try to connect to the router via telnet tells me impossible to connect . And I had to press the button until restet rear load the factory firmware . E tested version of davidc502 and has no switch config un Luci web.

"network" is a file located at /etc/config, you can only edit it with vi, vim, nano or any other text editing package because it hasn't the "x" flag set and it shouldn't either. The "x" flag means it's an executable file.

nitroshift

but vi / etc / config / network . I can not see the map vlan , only the wan , dhcp , lan and wan6 appears . and looking the command to switch on openwrt , access denied .

mrfrezee wrote:

To all using my builds/repo, here's the way to avoid package signature errors:

cd /tmp
wget --no-check-certificate https://openwrt.nc-network.io/key-build.pub
opkg-key add key-build.pub

And verify you have these three keys in /etc/opkg/keys/ (mine is 1d0b95c9177a4e79)

root@net002:~# ls /etc/opkg/keys/
1422a575501506f0  1d0b95c9177a4e79  af22f7a88858c8e9

FYI, i'm building another firmware with some modification (see Changelog on my webpage). Compile should be finished tomorrow afternoon.


So far so good. 5gh and 2.4 ghz wifi working. I'm going to set up openvpn sometime this week.

roberto_MCF wrote:

but vi / etc / config / network . I can not see the map vlan , only the wan , dhcp , lan and wan6 appears . and looking the command to switch on openwrt , access denied .

Because there are no vlan's defined. You need to define any vlan's you need.

nitroshift

I saw a patch to enable hardware crypto.  Would the existing openSSL based packages be able to make use of this? i.e. hw accelerated openVPN

Did have anyone the problem, that after a reboot the router didn't come up correctly?
I had this problem with a trunk image (kernel 4.1) and yesterday also with trunk and kernel 4.4.6 (compiled without nand patch).

Most time the reboot works without any problems. The first time it happened i thought i made a configuration mistake, but yesterday when i rebooted the router after 6 days uptime, i didn't changed anything.

After the reboot 192.168.1.1 is pingable, ssh asks for a password but doesn't let me in, luci isn't accessable (bad gateway error) and wifi doesn't come up - so i had to switch to secondary boot and flash new.

Is it possible that the problem occurs because of nand timeouts?

(Last edited by con on 3 Apr 2016, 11:55)

nitroshift wrote:
roberto_MCF wrote:

but vi / etc / config / network . I can not see the map vlan , only the wan , dhcp , lan and wan6 appears . and looking the command to switch on openwrt , access denied .

Because there are no vlan's defined. You need to define any vlan's you need.

nitroshift

It would be nice but I insist that I can not access settings . I can not define anything if I have restricted command .

@davidc502 Might your next construction include luci config switch?

(Last edited by roberto_MCF on 3 Apr 2016, 13:39)

roberto_MCF wrote:
nitroshift wrote:
roberto_MCF wrote:

but vi / etc / config / network . I can not see the map vlan , only the wan , dhcp , lan and wan6 appears . and looking the command to switch on openwrt , access denied .

Because there are no vlan's defined. You need to define any vlan's you need.

nitroshift

It would be nice but I insist that I can not access settings . I can not define anything if I have restricted command .

After you login run the following commands and report back:

root@mamba4:~# id
uid=0(root) gid=0(root)

root@mamba4:~# ls -l /etc/config/network
-rw-r--r--    1 root     root           721 Mar 27 09:07 /etc/config/network
disleos wrote:

Has anyone had any issues with their recent trunk builds and the 1900ac v1 LED's?

The only LED's I have listed available under /sys/class/leds is mamba:white:power. I assumed it was just a trunk change that went awry, but given I haven't seen anyone mention it in this thread yet, I suspect I've broken something sad

Any ideas?

Got the same problem. On the v1, the TLC5911xx seems to work only on 4.4.x.
Edit: see https://dev.openwrt.org/ticket/21825

nitroshift wrote:

something's broken on your end.

I disagree, i got the same issue and the tlc5911xx.ko was correctly loaded. Got it working by switching to 4.4.6

con wrote:

Did have anyone the problem, that after a reboot the router didn't come up correctly?
[...]
Is it possible that the problem occurs because of nand timeouts?

Look like the NAND timeout issue to me. You can confirm it if you have a TTL/USB or similar.

(Last edited by mrfrezee on 3 Apr 2016, 14:14)

chrismrutherford wrote:

I saw a patch to enable hardware crypto.  Would the existing openSSL based packages be able to make use of this? i.e. hw accelerated openVPN

I'll test/rework this patch tomorrow and include it in my builds if it works.

roberto_MCF wrote:

@davidc502 Might your next construction include luci config switch?

Check mine, i think im compiling with swconfig support by default. If not, you can link your device to my repo and install it manually.

mrfrezee wrote:
chrismrutherford wrote:

I saw a patch to enable hardware crypto.  Would the existing openSSL based packages be able to make use of this? i.e. hw accelerated openVPN

I'll test/rework this patch tomorrow and include it in my builds if it works.

roberto_MCF wrote:

@davidc502 Might your next construction include luci config switch?

Check mine, i think im compiling with swconfig support by default. If not, you can link your device to my repo and install it manually.


I tried your version and not switch brings config is true that was on the list of modules, but Luci was not anywhere. The truth is I'm very green in openwrt and modules not be installed independently. If you tell me that module is and how to install, I test. So I ask you to someone who can create an image, do also with config switch in luci. At least for the novice.

(Last edited by roberto_MCF on 3 Apr 2016, 14:45)

@roberto What's your hardware version ?

Edit: Found it in one of your previous post (ACS). I'm looking for a valid switch conf.

(Last edited by mrfrezee on 3 Apr 2016, 15:01)

mrfrezee wrote:

@roberto What's your hardware version ?

WRT1900acs (Shelby)

mrfrezee wrote:
roberto_MCF wrote:

@davidc502 Might your next construction include luci config switch?

Check mine, i think im compiling with swconfig support by default. If not, you can link your device to my repo and install it manually.

I have linked to mrfrezee sources, so you can install his packages because they are compatible with kernel 4.4.6.. Or you can install his image which comes with it.

roberto_MCF wrote:
mrfrezee wrote:

@roberto What's your hardware version ?

WRT1900acs (Shelby)

With my build, could you paste the result of:

swconfig dev switch0 help

Also would you mind linking your /etc/config/network file ? (take care to replace every ISP related confidential settings, like your user/pass if any)

Thanks

(Last edited by mrfrezee on 3 Apr 2016, 16:16)

mrfrezee wrote:
roberto_MCF wrote:
mrfrezee wrote:

@roberto What's your hardware version ?

WRT1900acs (Shelby)

With my build, could you paste the result of:

swconfig dev switch0 help

Also would you mind linking your /etc/config/network file ? (take care to replace every ISP related confidential settings, like your user/pass if any)

Thanks


I would love to but the /etc/config/network command I have restricted it tells me access denied. so it is impossible to give more details.

cat /etc/config/network

Run the command above..

roberto_MCF wrote:

I would love to but the /etc/config/network command I have restricted it tells me access denied. so it is impossible to give more details.

It's not a command, its a configuration file, you can read it with less or cat like this:

root@openwrt:~# cat /etc/config/network

If you're not familiar with OpenWRT and/or Linux in general, i suggest you to read the wiki. Our builds are made for people who doesn't know how (or doesn't want) to build the source code themselves and are still very experimental/unstable. They require a little bit more knowledge than configuring solely by the LuCI Web Interface. You might softbrick your router, especially when working with VLANs, where an slight error can lead to see yourself locked out of the router (it happens frequently, even to me).

I speak for myself but i build theses packages and theses firmware (wich increase my electricity bill btw) to help the community building a better OpenWRT firmwares for the next release. The more people who can test experimental builds, patches, drivers and modules, the better we can find bugs and improve the software. I'm really happy to see more people joining the community and always ready to help them but it's very time consuming to go back to the basics.

(Last edited by mrfrezee on 3 Apr 2016, 18:14)

mrfrezee wrote:
con wrote:

Did have anyone the problem, that after a reboot the router didn't come up correctly?
[...]
Is it possible that the problem occurs because of nand timeouts?

Look like the NAND timeout issue to me. You can confirm it if you have a TTL/USB or similar.

Thanks mrfrezee, i compiled a new image with NAND Patch and will give it a try.

@davidc502 and mrfreeze,

As an fyi, there is an existing forum for Community Releases / Announcements.  Just in case you want to share with others not knowing or participating with this particular thread.

(Last edited by kirkgbr on 3 Apr 2016, 18:58)

@mrfreeze
Re: crytpo patch
This came through a little over 2 weeks back as noted here.

Just cloned and compiled again with the new .17 wifi driver and the mvneta-hwbm patch.......

This isn't scientific, but seems that wifi degrades over time with the mvneta-hwbm patch. Day before yesterday I compiled without the patch, and wifi speeds stayed high. I didn't keep it on the router long enough to tell what would happen over a longer period of time, but I may come back to it.

It's just a thought.

With respect to the crypto patch, here are some results.  I thought I already had the hardware crypto acceleration figured out, but I figured I'd play with the patch nitroshift linked. Results below.

Summary:  The first 3 tests are on the same unit, different configs.  Pretty similar performance in all cases so either I don't have something configured correctly to utilize the new patch or I really already had the hooks in correctly.

Summary 2:  The ACS is a significant performance boost over the AC V1.

I'm curious to see others' results.  The benchmark test is from:  https://wiki.openwrt.org/doc/howto/benchmark.openssl

Suggestions welcome.

WRT1900ACV1 (original - crypto enabled but kmod-cryptodev omitted)

The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               3919.04k    12942.52k    50038.36k   111872.00k   175590.06k
sha1              3578.38k    10766.21k    24531.88k    32392.42k    38888.71k
des cbc          17009.59k    14717.40k    19040.85k    19180.54k    19202.05k
des ede3          5448.61k     6690.15k     6741.67k     6751.23k     6761.13k
aes-128 cbc      23519.65k    29076.12k    27784.39k    29386.75k    31585.62k
aes-192 cbc      21715.61k    25879.21k    27354.71k    27720.70k    27863.72k
aes-256 cbc      19501.17k    19452.16k    24619.26k    24921.77k    25034.75k
sha256            5033.26k    12509.42k    23378.01k    29813.08k    32342.02k
sha512            1227.03k     3599.94k     6797.83k     9978.88k    11236.69k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.059880s 0.001658s     16.7    603.0
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.016336s 0.019343s     61.2     51.7

WRT1900ACV1 (patch for v7 mvebu cesa - crypto enabled but kmod-cryptodev omitted)

type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               3893.52k    15767.62k    50557.00k   103449.34k   160911.15k
sha1              3603.52k    10843.48k    24628.23k    29980.52k    41549.82k
des cbc          15680.92k    15505.46k    19072.60k    19198.63k    19193.86k
des ede3          6537.94k     6697.39k     6737.83k     6758.74k     6758.40k
aes-128 cbc      23527.13k    24227.16k    30939.36k    31430.66k    28853.43k
aes-192 cbc      21496.98k    25846.62k    27133.90k    27502.75k    27701.56k
aes-256 cbc      16242.34k    23426.54k    24619.32k    24936.45k    24993.79k
sha256            5077.11k    12622.85k    23374.85k    29852.67k    32317.44k
sha512            1229.23k     4928.66k     7171.16k     9900.03k    10235.89k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.059583s 0.001640s     16.8    609.9
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.017118s 0.019783s     58.4     50.5

WRT1900ACV1 (patch for v7 mvebu cesa - crypto enabled and kmod-cryptodev included)

type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               3816.02k    15824.91k    50914.98k   114588.68k   178812.25k
sha1              3623.06k    10911.96k    25118.77k    36703.53k    42401.13k
des cbc          17020.26k    18508.91k    18955.35k    19082.92k    19117.40k
des ede3          6564.88k     6663.68k     6744.36k     6747.10k     6756.35k
aes-128 cbc      23744.24k    28996.22k    30867.11k    31339.52k    31487.32k
aes-192 cbc      21717.79k    25804.27k    27322.54k    27755.88k    27781.80k
aes-256 cbc      19502.92k    23382.10k    24588.71k    24889.34k    24958.29k
sha256            5084.36k    12670.37k    23542.15k    29870.76k    32470.11k
sha512            1236.81k     4974.08k     7269.37k    10143.50k    11220.31k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.060180s 0.001546s     16.6    647.0
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.016139s 0.019268s     62.0     51.9

WRT1900ACS (patch for v7 mvebu cesa - crypto enabled and kmod-cryptodev included)

type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               9589.71k    33065.11k    97222.29k   168946.35k   222761.51k
sha1              6620.08k    18383.19k    38048.85k    52215.10k    58398.04k
des cbc          24182.52k    25267.63k    25670.96k    25637.55k    25612.37k
des ede3          9296.06k     9548.32k     9555.99k     9588.61k     9545.46k
aes-128 cbc      36824.24k    40463.06k    42189.23k    42546.00k    42530.13k
aes-192 cbc      32774.28k    35516.74k    36562.62k    36810.75k    36625.64k
aes-256 cbc      29292.19k    31629.38k    32732.21k    32841.05k    32901.80k
sha256            7302.57k    17023.68k    30489.86k    38166.19k    41529.88k
sha512            1741.23k     7023.30k    10131.78k    13934.96k    15643.99k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.033966s 0.000901s     29.4   1110.2
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.009205s 0.011290s    108.6     88.6
anomeome wrote:

@mrfreeze
Re: crytpo patch
This came through a little over 2 weeks back as noted here.

Thanks, i didn't saw it back then. Just toggled the flag to yes. I'm gonna push it to my public releases for the next build.

(Last edited by mrfrezee on 3 Apr 2016, 22:54)

Wrt1900acV1, os - Debian

type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               4354.99k    15880.61k    49688.41k   105716.74k   155235.65k
sha1              4954.30k    16846.91k    44448.64k    76141.27k    95876.64k
des cbc          15546.34k    18212.02k    18968.74k    19446.28k    19450.46k
des ede3          6089.09k     6547.85k     6629.71k     6658.05k     6710.82k
aes-128 cbc      30534.93k    41220.06k    45634.68k    46538.90k    46472.48k
aes-192 cbc      27442.41k    35560.27k    38198.28k    38956.18k    39094.20k
aes-256 cbc      25498.28k    32269.29k    35026.37k    35284.56k    35563.24k
sha256            7235.36k    18195.70k    34274.29k    44778.45k    48580.21k
sha512            2487.06k     9932.20k    14635.22k    19926.42k    22584.93k
                  sign    verify    sign/s verify/s
rsa 2048 bits 0.038902s 0.001208s     25.7    828.2
                  sign    verify    sign/s verify/s
dsa 2048 bits 0.011925s 0.014054s     83.9     71.2

Why distinctions?