Qualcomm Fast Path For LEDE

I'm having trouble with 5GHZ on Archer C7v2 as well. It says "Wireless is disabled or not associated" and some of the settings are blank.

/etc/config/wireless seems normal except for this line:

config wifi-device 'radio0'

        option path 'pci0000:01/0000:01:00.0'

Which is quite a bit different than what is showing for radio1. I tried using the value from radio1 for radio0, but that ended up killing both of them. So not sure if relevant or not...

But as far as the channel chosen and all that, I kept settings from previous build and they still seem correct, so it's not that.

1 Like

Somewhere here

echo Add QCA Repo
wget https://source.codeaurora.org/quic/qsdk/oss/system/openwrt/plain/include/local-development.mk -P ./include/
sed -i 's|git describe --dirty|git describe|g' ./include/local-development.mk
sed -i 's|$(TOPDIR)/qca/src/$(PKG_NAME)|$(TOPDIR)/package/qca/$(PKG_NAME)/src|g' ./include/local-development.mk
echo 'src-git ssdk https://source.codeaurora.org/quic/qsdk/oss/system/feeds/ssdk.git' >> ./feeds.conf.default
echo 'src-git shortcutfe https://source.codeaurora.org/quic/qsdk/oss/system/feeds/shortcut-fe.git;release/endive_mips' >> ./feeds.conf.default

Patches related to Fast Path
895-SFE-support-kernel.patch
896-SFE-kernel-driver.patch
897-SFE-export-tcp-no-window-check.patch
898-SFE-enable-disable-acceleration.patch
899-SFE-patch-package-makefile.patch
900-SFE-use-aligned-headers-disable-debug.patch

A good move is to include this feature to main tree after proper testing

Did you try nuking wireless and start over?
Use the GUI to config

Ok I did further testing.
On MIPS24Kc architecture if the headers are assumed aligned performance dropped
From
Approximately 650Mbps to 580Mbps
Conclusion only on MIPS24Kc architecture should the the headers be packed and unaligned
Otherwise performance will drop.
On MIPS74kc architecture headers should be align as default in Linux Kernel. There is a performance boost
That is the reason why I kept different tree because the same stuff different effects on different Architecture

Conclusion
WR1043NDv1
Original NAT: 250Mbps (Average)
Original Packet Per Sec (1500Bytes MTU): (25010001000)/(15008) = 20.8Kpps
Fast Path NAT: 650Mbps (Average)
Fast Path Packet Per Sec (1500byte MTU): (650
10001000)/(15008) = 54.1Kpps
Improvement = 260%

Time to go back to the rubbish heap and pick up your old routers
I still remember those saying you need higher end router...what a load of bollocks instead of improving code opt for the easy way of doughing out extra cash.

5 Likes

The mode, band, channel, and width are uneditable through the GUI. It looks like this

Is it because there's no ath10k drivers on this build (as far as I can tell?). It doesn't come up in my software list as being installed.

Yea this is correct I don't have ath10k routers
Check and include ath10K drivers

I tried installing kmod-ath10k but the kernel versions between the build and the package aren't lined up apparently. Does that mean it has to be built with it or is there some way of installing it afterward? Or should I use a different ath10k altogether?

Because lede developers tag each Kernel Config with a hash so there will be a mismatch since I optimize some kernel configuration as well.
when you ssh in and login
using lsmod
do you see ath10k kernel modules?

Nope, no ath10k listed

Ok that explains everything.
I will rebuild and fix it, it will get the enable align improvement as well since I already checked in the changes

Anyway we need to bump kernel version soon
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.74

mm: larger stack guard gap, between vmas

commit 1be7107fbe18eed3e319a6c3e83c78254b693acb upstream
CVE-2017-1000364
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-1000364

Do you guys use
kmod-ath10k
or
kmod-ath10k-ct
never mind I build both you choose
https://github.com/gwlim/Openwrt_Firmware/tree/master/Fast-Path/Jun-2017/TP-Link%20Archer%20C7v2

Refresh Kernel and Rebuild all image with the last Fast Path Optimizations

@gwlim Is your current fast path enabled TL-1043NDv1 firmware stable enough for daily usage?

I experimented with the image from April, however the router seemed low on memory, caused random reboots and the web interface had long loading times (It has the default amount of RAM).

Either way, huge thank you for continuing to support the old models and for porting stuff.

I remember back then I did a build with ZRAM that cause that because ZRAM takes up a lot of RAM.
Subsequently I removed ZRAM which solved the issue.
Is the April build before or after that?
I have no issues with my WR1043ND because I solder on 64MB of RAM (not expecting you to do that)
You can try disabling some startups in the startup tab beyond that either I make a build to disable Kernel exports to cut down on memory but you will not be able to install any additional package.
There is limitations on what I can do to help because if you compare LEDE now to OpenWRT then, we have a lot of new stuff that is "basic" to the router like procd, logd etc, all this takes up memory when you run top you can see that.

Back up your config try this, analyze RAM usage I will see what I can do.
I strongly recommend you to try this because of the improvement in NAT and Wireless.
You must know that before this the router was actually having issues doing Wireless FullSpeed because of insufficient computing power.
After this wireless speeds can match up to my WDR4300

@gwlim, I just wanted to extend a quick thank you to you for all your work. It's exciting following this thread.

1 Like

No problem thanks :grin:

1 Like

According to https://github.com/gwlim/Openwrt_Firmware/search?q=zram&type=Commits&utf8=✓ you removed ZRAM in the end of 2014. The LEDE build I tried was LEDE-17.01/April-2017-Image, so I guess ZRAM is out of the question.
I don't need any addtional packages and tried using the necessary services only, but it didn't improve the situation.
Right now I run the Barrier_Breaker/Dec-2015-Image which works perfectly fine.

I'll try to experiment with the fast path version in the next few days. Do you need any other command output or log files apart from top?

The spirit is willing, but the hardware is weak. :slight_smile:

What services do you need for your router?
I will include that and drop the rest