Ipq806x NSS build (Netgear R7800 / TP-Link C2600 / Linksys EA8500)

Ah, okay. I checked and don’t have dnsmasq-full installed. I use vlan’s together with AdGuardHome

New fix by @Ansuel here

Nothing related :frowning: just a missing sysfs entry

2 Likes

For about a month I see a lot of this log entries on a R7800 that uses pppoe.

daemon.warn dnsmasq-dhcp[1]: DHCP packet received on eth0.2 which has no address

PPPoE does not use DHCP for IP address acquisition. Did you accidentally enable DHCP server for your PPPoE/eth0.2 interface?

config dhcp 'wan'                                          
        option interface 'wan'                             
        option ignore '1'           <- disable it

I have this

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option localservice '1'
	option ednspacket_max '1232'
	option confdir '/tmp/dnsmasq.d'
	option sequential_ip '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option leasetime '12h'
	option dhcpv4 'server'
	option limit '90'
	list ra_flags 'none'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

CC @ACwifidude, @tishipp and @pattagghiu

I got home from holiday on Monday evening, yesterday I wanted to checkout the PPPoE fixes with the build I remotely made but found out I made a mistake somewhere because the ath10k-ct driver was in the build where I expected the mainline ath10k driver. I noticed the PPPoE fixes are now also included in the 22.03 repo from @ACwifidude, where a rebase was 2 days old and I also noticed Ansuel had a recent commit in 22.03 that was just a day old. So I cloned the 22.03 repo from ACwifidude, rebased on the latest 22.03-RC6 commits and built a new image yesterday. That finished somewhere last night. I first flashed it to my dumb AP R7800, all seemed fine. Half an hour ago I flashed it to my router R7800. I can confirm that the fixes from @tishipp for getting NSS offloading with PPPoE connections work! :star_struck:

I verified numerous times running speedtest (the tui-based version of Ookla) from my NAS and while gaining the advertised speeds up- and download without breaking a sweat on my router according to top and htop. Running it on my MBP via Wifi also gave me the same advertised speeds easily. I did notice some rise in CPU usage but that was from softirq's needed to handle the WiFi traffic to my MBP. CPU usage stayed around 30% to 35% when doing Ookla's Speedtest via WiFi while getting the advertised 500Mbit/s for download and topping to 630Mbit/s for upload. So very nice.

I'll keep NSS fq_codel disabled for a while to see how these patches hold with stability. At a later time I'll try NSS fq_codel, but let 's assess stability first. :crossed_fingers:

Very happy so far, good to know (and see) the CPU's of my R7800 aren't struggling anymore to get the most of both the WAN connection and serving that via WiFi :+1:

2 Likes

Well... reporting back after a few hours on... stability. Not good. I've had around 3 or 4 random reboots in the last 1 to 2 hours. At first I discovered I had to disable packet steering first, because that might cause strange things when handing over traffic from and to NSS cores. I enabled that when I discovered NSS for PPPoE wasn't working for kernel 5.10 to get some speed back. After I disabled packet steering, I kept getting random reboots.

I do see a lot of these now:

Aug 24 13:27:21 OpenWrt kernel: [ 2529.839785] ath10k_warn: 114 callbacks suppressed
Aug 24 13:27:21 OpenWrt kernel: [ 2529.839795] ath10k_pci 0001:01:00.0: SWBA overrun on vdev 1, skipped old beacon
Aug 24 13:27:21 OpenWrt kernel: [ 2529.843492] ath10k_pci 0001:01:00.0: SWBA overrun on vdev 2, skipped old beacon
Aug 24 13:27:21 OpenWrt kernel: [ 2529.850990] ath10k_pci 0001:01:00.0: SWBA overrun on vdev 0, skipped old beacon
Aug 24 13:27:21 OpenWrt kernel: [ 2529.857903] ath10k_pci 0001:01:00.0: SWBA overrun on vdev 1, skipped old beacon

Sadly nothing is stored in /sys/fs/pstore so I can only guess to the real cause but it seems very much related to NSS of you ask me. I could try building a new image based of on master with NSS and the PPPoE fixes but one would say that with the 22.03 release running on RC6 it would seem pretty stable by now. I've disabled irqbalance just now to see how that goes.

Could the SWBA overrun messages from the ath10k driver be related to the random reboots?

1 Like

I currently run the build from @vochong based om master (with ksmbd) and after 5 days of work it rebooted today.
At the moment I'm compiling my own lighter build based on master removing some stuff I don't need. Let's see how it goes.

5 days is a lot more than 20 to 30 minutes between reboots. And it's even doing ksmbd. I've attached my build manifest. Perhaps there's a strange package conflict in relation to NSS or the attempt to get rid of iptables in favor of nftables but because of my package selection I get an unstable dependency somewhere?

I've cloned @ACwifidude 's 22.03 repository and rebased to upstream 22.03 which got me version r19641+30-ecd8f7e294.

my build manifest
6in4 - 28
6rd - 12
6to4 - 13
base-files - 1489-r19641+30-ecd8f7e294
block-mount - 2022-06-02-93369be0-2
busybox - 1.35.0-3
ca-bundle - 20211016-1
ca-certificates - 20211016-1
cgi-io - 2022-08-10-901b0f04-21
collectd - 5.12.0-33
collectd-mod-conntrack - 5.12.0-33
collectd-mod-cpu - 5.12.0-33
collectd-mod-cpufreq - 5.12.0-33
collectd-mod-dhcpleases - 5.12.0-33
collectd-mod-entropy - 5.12.0-33
collectd-mod-exec - 5.12.0-33
collectd-mod-interface - 5.12.0-33
collectd-mod-iwinfo - 5.12.0-33
collectd-mod-load - 5.12.0-33
collectd-mod-memory - 5.12.0-33
collectd-mod-network - 5.12.0-33
collectd-mod-ping - 5.12.0-33
collectd-mod-rrdtool - 5.12.0-33
collectd-mod-sqm - 5.12.0-33
collectd-mod-thermal - 5.12.0-33
collectd-mod-uptime - 5.12.0-33
collectd-mod-wireless - 5.12.0-33
cryptsetup - 2.4.3-2
curl - 7.83.1-3
dawn - 2022-07-24-9e8060ea-1
dnsmasq - 2.86-14
dropbear - 2022.82-2
e2fsprogs - 1.46.5-1
ethtool - 5.16-1
f2fs-tools - 1.14.0-3
f2fsck - 1.14.0-3
firewall4 - 2022-06-17-15c38317-2
fstools - 2022-06-02-93369be0-2
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2021-08-03-205defb5-2
hostapd-common - 2022-01-16-cff80b4f-9
hostapd-utils - 2022-01-16-cff80b4f-9
htop - 3.2.1-1
igmpproxy - 0.3-1
ip6tables-mod-nat - 1.8.7-7
iptables-mod-ipopt - 1.8.7-7
iptables-mod-physdev - 1.8.7-7
iptables-zz-legacy - 1.8.7-7
irqbalance - 1.9.0-4
iwinfo - 2022-08-13-705d3b5c-1
jansson4 - 2.13.1-2
jshn - 2022-05-15-d2223ef9-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.10.136-1-5c6bd1af90eec383cff6fd5a2f9f6159
kmod-ata-ahci - 5.10.136-1
kmod-ata-ahci-platform - 5.10.136-1
kmod-ata-core - 5.10.136-1
kmod-bonding - 5.10.136-1
kmod-br-netfilter - 5.10.136-1
kmod-cdrom - 5.10.136-1
kmod-crypto-acompress - 5.10.136-1
kmod-crypto-aead - 5.10.136-1
kmod-crypto-arc4 - 5.10.136-1
kmod-crypto-authenc - 5.10.136-1
kmod-crypto-cbc - 5.10.136-1
kmod-crypto-ccm - 5.10.136-1
kmod-crypto-cmac - 5.10.136-1
kmod-crypto-crc32 - 5.10.136-1
kmod-crypto-crc32c - 5.10.136-1
kmod-crypto-ctr - 5.10.136-1
kmod-crypto-deflate - 5.10.136-1
kmod-crypto-des - 5.10.136-1
kmod-crypto-ecb - 5.10.136-1
kmod-crypto-echainiv - 5.10.136-1
kmod-crypto-gf128 - 5.10.136-1
kmod-crypto-hash - 5.10.136-1
kmod-crypto-hmac - 5.10.136-1
kmod-crypto-kpp - 5.10.136-1
kmod-crypto-lib-chacha20 - 5.10.136-1
kmod-crypto-lib-chacha20poly1305 - 5.10.136-1
kmod-crypto-lib-curve25519 - 5.10.136-1
kmod-crypto-lib-poly1305 - 5.10.136-1
kmod-crypto-manager - 5.10.136-1
kmod-crypto-md4 - 5.10.136-1
kmod-crypto-md5 - 5.10.136-1
kmod-crypto-misc - 5.10.136-1
kmod-crypto-null - 5.10.136-1
kmod-crypto-rng - 5.10.136-1
kmod-crypto-seqiv - 5.10.136-1
kmod-crypto-sha1 - 5.10.136-1
kmod-crypto-sha256 - 5.10.136-1
kmod-crypto-sha512 - 5.10.136-1
kmod-crypto-user - 5.10.136-1
kmod-crypto-xts - 5.10.136-1
kmod-cryptodev - 5.10.136+1.12-ipq806x-1
kmod-dax - 5.10.136-1
kmod-dm - 5.10.136-1
kmod-dnsresolver - 5.10.136-1
kmod-fs-cifs - 5.10.136-1
kmod-fs-exfat - 5.10.136-1
kmod-fs-exportfs - 5.10.136-1
kmod-fs-ext4 - 5.10.136-1
kmod-fs-f2fs - 5.10.136-1
kmod-fs-hfs - 5.10.136-1
kmod-fs-hfsplus - 5.10.136-1
kmod-fs-msdos - 5.10.136-1
kmod-fs-nfs - 5.10.136-1
kmod-fs-nfs-common - 5.10.136-1
kmod-fs-nfs-v3 - 5.10.136-1
kmod-fs-nfs-v4 - 5.10.136-1
kmod-fs-vfat - 5.10.136-1
kmod-fs-xfs - 5.10.136-1
kmod-fuse - 5.10.136-1
kmod-gpio-button-hotplug - 5.10.136-3
kmod-ifb - 5.10.136-1
kmod-ip6tables - 5.10.136-1
kmod-ipsec - 5.10.136-1
kmod-ipt-conntrack - 5.10.136-1
kmod-ipt-core - 5.10.136-1
kmod-ipt-ipopt - 5.10.136-1
kmod-ipt-nat - 5.10.136-1
kmod-ipt-nat6 - 5.10.136-1
kmod-ipt-physdev - 5.10.136-1
kmod-iptunnel - 5.10.136-1
kmod-iptunnel4 - 5.10.136-1
kmod-keys-encrypted - 5.10.136-1
kmod-keys-trusted - 5.10.136-1
kmod-leds-gpio - 5.10.136-1
kmod-lib-crc-ccitt - 5.10.136-1
kmod-lib-crc16 - 5.10.136-1
kmod-lib-crc32c - 5.10.136-1
kmod-lib-zlib-deflate - 5.10.136-1
kmod-lib-zlib-inflate - 5.10.136-1
kmod-nf-conntrack - 5.10.136-1
kmod-nf-conntrack-netlink - 5.10.136-1
kmod-nf-conntrack6 - 5.10.136-1
kmod-nf-flow - 5.10.136-1
kmod-nf-ipt - 5.10.136-1
kmod-nf-ipt6 - 5.10.136-1
kmod-nf-log - 5.10.136-1
kmod-nf-log6 - 5.10.136-1
kmod-nf-nat - 5.10.136-1
kmod-nf-nat6 - 5.10.136-1
kmod-nf-reject - 5.10.136-1
kmod-nf-reject6 - 5.10.136-1
kmod-nfnetlink - 5.10.136-1
kmod-nft-core - 5.10.136-1
kmod-nft-fib - 5.10.136-1
kmod-nft-nat - 5.10.136-1
kmod-nft-offload - 5.10.136-1
kmod-nls-base - 5.10.136-1
kmod-nls-cp1250 - 5.10.136-1
kmod-nls-cp437 - 5.10.136-1
kmod-nls-cp850 - 5.10.136-1
kmod-nls-iso8859-1 - 5.10.136-1
kmod-nls-iso8859-15 - 5.10.136-1
kmod-nls-utf8 - 5.10.136-1
kmod-nss-ifb - 5.10.136-1
kmod-oid-registry - 5.10.136-1
kmod-phy-qcom-ipq806x-usb - 5.10.136-1
kmod-ppp - 5.10.136-1
kmod-pppoe - 5.10.136-1
kmod-pppox - 5.10.136-1
kmod-pstore - 5.10.136-1
kmod-qca-nss-drv - 5.10.136+809a00de-2
kmod-qca-nss-drv-pppoe - 5.10.136+740d0102-2
kmod-qca-nss-drv-qdisc - 5.10.136+740d0102-2
kmod-qca-nss-ecm-standard - 5.10.136+9228212b-1
kmod-qca-nss-gmac - 5.10.136+9b74deef-1
kmod-ramoops - 5.10.136-1
kmod-random-core - 5.10.136-1
kmod-reed-solomon - 5.10.136-1
kmod-sched-cake - 5.10.136-1
kmod-sched-core - 5.10.136-1
kmod-scsi-core - 5.10.136-1
kmod-sit - 5.10.136-1
kmod-slhc - 5.10.136-1
kmod-tpm - 5.10.136-1
kmod-udptunnel4 - 5.10.136-1
kmod-udptunnel6 - 5.10.136-1
kmod-usb-core - 5.10.136-1
kmod-usb-dwc3 - 5.10.136-1
kmod-usb-dwc3-qcom - 5.10.136-1
kmod-usb-ehci - 5.10.136-1
kmod-usb-ledtrig-usbport - 5.10.136-1
kmod-usb-ohci - 5.10.136-1
kmod-usb-storage - 5.10.136-1
kmod-usb-storage-uas - 5.10.136-1
kmod-usb-xhci-hcd - 5.10.136-1
kmod-usb2 - 5.10.136-1
kmod-usb3 - 5.10.136-1
kmod-wireguard - 5.10.136-1
libaio - 0.3.112-2
libblkid1 - 2.37.3-3
libblobmsg-json20220515 - 2022-05-15-d2223ef9-1
libc - 1.2.3-4
libcomerr0 - 1.46.5-1
libcurl4 - 7.83.1-3
libdevmapper - 2.03.15-1
libext2fs2 - 1.46.5-1
libf2fs6 - 1.14.0-3
libgcc1 - 11.2.0-4
libgcrypt - 1.9.4-1
libgpg-error - 1.45-1
libip4tc2 - 1.8.7-7
libip6tc2 - 1.8.7-7
libiptext0 - 1.8.7-7
libiptext6-0 - 1.8.7-7
libiwinfo-data - 2022-08-13-705d3b5c-1
libiwinfo-lua - 2022-08-13-705d3b5c-1
libiwinfo20210430 - 2022-08-13-705d3b5c-1
libjson-c5 - 0.15-2
libjson-script20220515 - 2022-05-15-d2223ef9-1
libltdl7 - 2.4.6-2
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2022-07-08-6e68a106-1
liblucihttp0 - 2022-07-08-6e68a106-1
libmbedtls12 - 2.28.0-1
libmnl0 - 1.0.5-1
libncurses6 - 6.3-1
libnftnl11 - 1.2.1-1
libnghttp2-14 - 1.44.0-1
libnl-tiny1 - 2021-11-21-8e0555fb-1
libopenssl-conf - 1.1.1q-1
libopenssl-devcrypto - 1.1.1q-1
libopenssl1.1 - 1.1.1q-1
liboping - 1.10.0-3
libpopt0 - 1.16-2
libpthread - 1.2.3-4
libreadline8 - 8.1-1
librrd1 - 1.0.50-5
librt - 1.2.3-4
libss2 - 1.46.5-1
libtirpc - 1.3.2-1
libubox20220515 - 2022-05-15-d2223ef9-1
libubus-lua - 2022-06-01-2bebf93c-1
libubus20220601 - 2022-06-01-2bebf93c-1
libuci-lua - 2021-10-22-f84f49f0-6
libuci20130104 - 2021-10-22-f84f49f0-6
libuclient20201210 - 2021-05-14-6a6011df-1
libucode20220322 - 2022-06-01-b211ca0e-1
libustream-openssl20201210 - 2022-01-16-868fd881-1
libuuid1 - 2.37.3-3
libwrap - 7.6-4
libxtables12 - 1.8.7-7
logd - 2021-08-03-205defb5-2
lua - 5.1.5-10
luasocket - 2019-04-21-733af884-1
luci - git-20.074.84698-ead5e81
luci-app-commands - git-21.099.45379-36959dc
luci-app-dawn - git-21.282.29102-4a78122
luci-app-firewall - git-22.089.67563-7e3c1b4
luci-app-nlbwmon - git-21.183.06323-fb52e86
luci-app-opkg - git-22.154.41881-28e92e3
luci-app-sqm - git-21.164.25180-005c09a
luci-app-statistics - git-22.115.68420-46794ea
luci-app-wireguard - git-21.322.66896-8ae208d
luci-base - git-22.213.35949-d09fbe0
luci-compat - git-22.069.45071-03bb0e2
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-json - git-18.184.37844-cde13dc
luci-lib-jsonc - git-22.097.61921-7513345
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.193.51183-f19d41c
luci-mod-status - git-22.189.48501-6731190
luci-mod-system - git-22.140.66206-02913be
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ppp - git-21.158.38888-88b9d84
luci-proto-wireguard - git-22.213.40001-18e6040
luci-ssl-openssl - git-17.031.53232-b6341bd
luci-theme-bootstrap - git-22.141.59265-d8ecf48
luci-theme-openwrt-2020 - git-21.343.57805-13949cb
lvm2 - 2.03.15-1
mkf2fs - 1.14.0-3
mtd - 26
netifd - 2022-06-01-39ef9fe1-1
nfs-utils - 2.5.4-4
nftables-json - 1.0.2-2
nlbwmon - 2021-09-01-d82c910c-1
ntfs-3g - 2021.8.22-2-fuseint
odhcp6c - 2022-08-05-7d21e8d8-18
odhcpd-ipv6only - 2022-03-22-860ca900-1
openssl-util - 1.1.1q-1
openwrt-keyring - 2022-03-25-62471e69-3
opkg - 2022-02-24-d038e5b6-1
ppp - 2.4.9.git-2021-01-04-3
ppp-mod-pppoe - 2.4.9.git-2021-01-04-3
procd - 2022-06-01-7a009685-1
procd-seccomp - 2022-06-01-7a009685-1
procd-ujail - 2022-06-01-7a009685-1
prometheus-node-exporter-lua - 2022.06.12-1
prometheus-node-exporter-lua-nat_traffic - 2022.06.12-1
prometheus-node-exporter-lua-netstat - 2022.06.12-1
prometheus-node-exporter-lua-openwrt - 2022.06.12-1
prometheus-node-exporter-lua-wifi - 2022.06.12-1
prometheus-node-exporter-lua-wifi_stations - 2022.06.12-1
rpcd - 2022-02-07-909f2a04-1
rpcd-mod-file - 2022-02-07-909f2a04-1
rpcd-mod-iwinfo - 2022-02-07-909f2a04-1
rpcd-mod-luci - 20210614
rpcd-mod-rrdns - 20170710
rrdtool1 - 1.0.50-5
sqm-scripts - 1.5.1-nss
swconfig - 12
tc-tiny - 5.15.0-3
terminfo - 6.3-1
ubi-utils - 2.1.4-1
uboot-envtools - 2022.01-30
ubox - 2021-08-03-205defb5-2
ubus - 2022-06-01-2bebf93c-1
ubusd - 2022-06-01-2bebf93c-1
uci - 2021-10-22-f84f49f0-6
uclient-fetch - 2021-05-14-6a6011df-1
ucode - 2022-06-01-b211ca0e-1
ucode-mod-fs - 2022-06-01-b211ca0e-1
ucode-mod-ubus - 2022-06-01-b211ca0e-1
ucode-mod-uci - 2022-06-01-b211ca0e-1
uhttpd - 2022-02-07-2f8b1360-1
uhttpd-mod-lua - 2022-02-07-2f8b1360-1
uhttpd-mod-ubus - 2022-02-07-2f8b1360-1
umdns - 2021-05-13-b777a0b5-5
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
wireguard-tools - 1.0.20210424-3
wpad-openssl - 2022-01-16-cff80b4f-9
xtables-legacy - 1.8.7-7
zlib - 1.2.11-6

-- EDIT --
3 hours later after I disabled irqbalance my router rebooted again. I'm back to a master image without the PPPoE fixes for NSS that was stable during my holiday.

I tried to compile my own build for R7800.
I've left only these rows in the first section of the diffconfig file.

# Use "make defconfig" to expand this to a full .config
CONFIG_TARGET_ipq806x=y
CONFIG_TARGET_ipq806x_generic=y
CONFIG_TARGET_ipq806x_generic_DEVICE_netgear_r7800=y

Are other rows necessary because the final image generated was only for DEVICE_arris_tr4400-v2

cp your diffconfig to .config -- then "make defconfig"

I've used the commands from second post

./scripts/feeds update -a && ./scripts/feeds install -a && cp diffconfig .config && make defconfig && ./scripts/getver.sh

make -j2

but then .config is

#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
CONFIG_HOST_OS_LINUX=y
# CONFIG_HOST_OS_MACOS is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ath79 is not set
# CONFIG_TARGET_bcm27xx is not set
# CONFIG_TARGET_bcm53xx is not set
# CONFIG_TARGET_bcm47xx is not set
# CONFIG_TARGET_bcm4908 is not set
# CONFIG_TARGET_bcm63xx is not set
# CONFIG_TARGET_bmips is not set
# CONFIG_TARGET_octeon is not set
# CONFIG_TARGET_gemini is not set
# CONFIG_TARGET_mpc85xx is not set
# CONFIG_TARGET_mxs is not set
# CONFIG_TARGET_lantiq is not set
# CONFIG_TARGET_malta is not set
# CONFIG_TARGET_pistachio is not set
# CONFIG_TARGET_mvebu is not set
# CONFIG_TARGET_kirkwood is not set
# CONFIG_TARGET_mediatek is not set
# CONFIG_TARGET_ramips is not set
# CONFIG_TARGET_at91 is not set
# CONFIG_TARGET_tegra is not set
# CONFIG_TARGET_layerscape is not set
# CONFIG_TARGET_qoriq is not set
# CONFIG_TARGET_imx is not set
# CONFIG_TARGET_octeontx is not set
# CONFIG_TARGET_oxnas is not set
# CONFIG_TARGET_armvirt is not set
# CONFIG_TARGET_ipq40xx is not set
CONFIG_TARGET_ipq806x=y
# CONFIG_TARGET_realtek is not set
# CONFIG_TARGET_rockchip is not set
# CONFIG_TARGET_archs38 is not set
# CONFIG_TARGET_omap is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_zynq is not set
# CONFIG_TARGET_x86 is not set
CONFIG_TARGET_ipq806x_generic=y
# CONFIG_TARGET_MULTI_PROFILE is not set
CONFIG_TARGET_ipq806x_generic_DEVICE_arris_tr4400-v2=y
# CONFIG_TARGET_ipq806x_generic_DEVICE_askey_rt4230w-rev6 is not set
# CONFIG_TARGET_ipq806x_generic_DEVICE_asrock_g10 is not set
# CONFIG_TARGET_ipq806x_generic_DEVICE_buffalo_wxr-2533dhp is not set
# CONFIG_TARGET_ipq806x_generic_DEVICE_compex_wpq864 is not set
# CONFIG_TARGET_ipq806x_generic_DEVICE_edgecore_ecw5410 is not set

the diffconfig is

# Use "make defconfig" to expand this to a full .config
CONFIG_TARGET_ipq806x=y
CONFIG_TARGET_ipq806x_generic=y
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7800=y

# exfat is patented
CONFIG_BUILD_PATENTED=y

# NSS Drivers
CONFIG_PACKAGE_kmod-qca-nss-drv=y
CONFIG_PACKAGE_kmod-qca-nss-ecm-standard=y
CONFIG_PACKAGE_kmod-qca-nss-gmac=y
CONFIG_PACKAGE_MAC80211_NSS_SUPPORT=y
CONFIG_PACKAGE_kmod-qca-nss-drv-qdisc=y
CONFIG_PACKAGE_kmod-nss-ifb=y
CONFIG_PACKAGE_kmod-qca-nss-drv-pppoe=y
CONFIG_PACKAGE_kmod-qca-nss-drv-l2tpv2=y
CONFIG_PACKAGE_kmod-qca-nss-drv-tunipip6=y
# CONFIG_PACKAGE_kmod-qca-nss-cfi-cryptoapi is not set
# CONFIG_PACKAGE_kmod-qca-nss-crypto is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-capwapmgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-dtlsmgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-gre is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-ipsecmgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-lag-mgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-map-t is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-pptp is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-profile is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-pvxlanmgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-tun6rd is not set
# CONFIG_PACKAGE_kmod-qca-nss-drv-vlan-mgr is not set
# CONFIG_PACKAGE_kmod-qca-nss-ecm-noload is not set
# CONFIG_PACKAGE_kmod-qca-nss-ecm-premium is not set
# CONFIG_PACKAGE_kmod-qca-nss-ecm-premium-noload is not set

# Longer waiting for failsafe button push
CONFIG_IMAGEOPT=y
CONFIG_PREINITOPT=y
CONFIG_TARGET_PREINIT_TIMEOUT=5

# Busybox tweaks
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_FLAGS=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_REGEXP=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_WINCH=y

# Add-on programs
CONFIG_PACKAGE_irqbalance=y
CONFIG_DROPBEAR_ECC=y
# CONFIG_PACKAGE_openvpn-openssl=y
CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_kmod-cryptodev=y
CONFIG_PACKAGE_libopenssl-devcrypto=y
CONFIG_PACKAGE_kmod-dnsresolver=y
CONFIG_PACKAGE_kmod-ramoops=y
CONFIG_PACKAGE_kmod-pstore=y
CONFIG_PACKAGE_kmod-reed-solomon=y
CONFIG_PACKAGE_kmod-pppol2tp=y
CONFIG_PACKAGE_ds-lite=y

1 Like

Try:

CONFIG_TARGET_ipq806x=y
CONFIG_TARGET_ipq806x_generic=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_ipq806x_generic_DEVICE_netgear_r7800=y

At least this is how it is working here (probably a workaround and not the final solution).

1 Like

That seems to generate the proper .config.
Thanks.

pppoe and l2tpv2 use same lock.
l2tpv2 may effects pppoe behavier.
disable qca-nss-drv-l2tpv2 you may get pppoe stability.

2 Likes

@sppmaster

I have built a new master snapshot image with only the PPPoE patch from tishipp. His L2TPv2 and DS-Lite patches were removed, and no required kernel drivers for these removed patches were included in the build. Basically this is a build with only the PPPoE patch and the kernel driver module "kmod-qca-nss-drv-pppoe". The rest is the default ACwifidude's package settings plus the additional ksmbd-related packages for you.

The rebase is up to August 25's master commit HEAD. The mainline ath10k firmware v157 is included.

The build also included my change for nlbwmon memory allocation issue
and the following ondemand governor changes that seem to work reliably on my setup. My sampling_rate setting is actually derived based on a formula recommended by kernel.org, using the CPU transient latency of the Krait cores in R7800. You should remove any existing CPU governor-related settings you might have set in /etc/rc.local, as my build will automatically set them as follows:

# Enable ondemand governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 75000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
3 Likes

Hi @directnupe,

Have you got any issue with the build? Any random reboot issue for you?

Thanks.

@sppmaster

And for people wanting PPPoE NSS-offloading but cannot put up with the random reboots in 22.03 / Master branches, I have built a 21.02-based image in which I backported all AQL/ATF fixes by Felix in 22.03/Master, so the WIFI high latency issues should no longer be seen in 21.02. The image was also built with the mainline ath10k firmware v157.

The image has all the changes I mentioned above for my master build, except that it has none of Tishipp's patches. It uses the original PPPoE offloading patch in @ACwifidude's 21.02 branch. The rebase is also up to the commit HEAD on August 25 2022.

3 Likes

Awesome, great work! I’m eager to try @tishipp ’s advice and remove the other 2 patches but my NAS’ build time is long, since it’s a 7 year old x86_64 based board designed for low power usage. I also run about 30 Docker images on that which is fine, but that doesn’t leave much headroom for building an OpenWRT image. I might just grab one of your images and install the additional packages myself. Saves me about a day of waiting time :smirk:

But also very nice that you’ve backported the fixes from Felix to 21.02 :+1: since the 21.02 NSS builds were rock solid