Hi, i have not experience in compile openwrt for Ax3600.I try compile from github robimarko, and display this error. o by omni.c (perl).

*CC [M]  /home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/pppoe/nss_connmgr_pppoe.o*
*/home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/pppoe/nss_connmgr_pppoe.c: In function 'nss_connmgr_pppoe_connect':*
*/home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/pppoe/nss_connmgr_pppoe.c:290:12: error: implicit declaration of function 'bond_get_id'; did you mean 'find_get_pid'? [-Werror=implicit-function-declaration]*
*   bondid = bond_get_id(opt.dev);*
*            ^~~~~~~~~~~*
*            find_get_pid*
*cc1: all warnings being treated as errors*
*make[6]: *** [scripts/Makefile.build:280: /home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/pppoe/nss_connmgr_pppoe.o] Error 1*
*make[5]: *** [scripts/Makefile.build:497: /home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/pppoe] Error 2*
*make[4]: *** [Makefile:1822: /home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1] Error 2*
*make[4]: Leaving directory '/home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/linux-5.10.58'*
*make[3]: *** [Makefile:62: /home/xx/Proyectos/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/qca-nss-clients-2021-04-29-b93c72c1/.built] Error 2*
*make[3]: Leaving directory '/home/xx/Proyectos/openwrt/feeds/nss_packages/qca/qca-nss-clients'*
*time: package/feeds/nss_packages/qca-nss-clients/compile#1.23#0.38#1.59*
*    ERROR: package/feeds/nss_packages/qca-nss-clients failed to build.*
*make[2]: *** [package/Makefile:116: package/feeds/nss_packages/qca-nss-clients/compile] Error 1*
*make[2]: Leaving directory '/home/xx/Proyectos/openwrt'*
*make[1]: *** [package/Makefile:110: /home/xx/Proyectos/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2*
*make[1]: Leaving directory '/home/koji/Proyectos/openwrt'*
*make: *** [/home/xx/Proyectos/openwrt/include/toplevel.mk:230: world] Error 2*

Could you disable kmod-bonding in make menuconfig -> Kernel modules -> Network support and try again ?

2 Likes

For me WAN (PPPoE) is still working fine with the latest build on the AX9000.

But I'm using one of the 1G Switch ports as WAN and the 2.5G port as LAN (and this is working fine as well)

@robimarko @Ansuel just out of curiosity, to test NSS 11.4, do we need any modifications, or we can just replace the firmware? I am happy to do some tests if its just a binary swap.

All of the code is already based on 11.4, its just that @Ansuel managed to patch it to work with 11.3 FW.
So you can just swap the firmware

Think we should also recompile the modules to target 11.4

Yeah, the NSS firmware version the nss-drv makefile should be updated

What serial/UART settings do you use for this board?

Baud rate: 115200 and 8N1.

…and, most importantly, 1.8V!

2 Likes

I am using a 1.8V UART adapter. Already tried 115200 8N1, and many other settings but just don't get any output at all from the bootloader on this board. I have to wait until Linux has booted before I get busybox via UART. Strangely, if I disconnect GND, I get some garbage output, but regardless of what setting I use I get nothing readable.

You have uart_en=1 set in nvram?

I did that, both cores loads successfully, but the offload function (at least for PPPoE) is gone. At least it loads all 4 cores more or less equally, and I can still get near gigabit speeds.

MOD: checking the NSS stats confirms that only RX offload works for IPv4 and PPPoE.

I am also running the 512MB patch for 3+ days now, and there was no OOM.

You also need to change the version it targets in the nss-drv makefile as its set for 11.3.
Honestly, I am surprised that this rats nest was not broken even earlier with a kernel update.

Yep, that fixed it, offload is working again.

I tried NSS 11.4 with @Ansuel 's wifi patches, but they don't seem to work anymore.

[   12.034056] ath11k c000000.wifi: nss init soc nss if_num 203
[   12.034313] ath11k c000000.wifi: NSS SOC Initialization Failed :-22
[   12.038804] ath11k c000000.wifi: failed to setup nss driver interface-22
[   12.047050] ath11k c000000.wifi: failed to create pdev core: -22

I guess we need to wait

I noticed a weird thing maybe related. I have a hand made 1.8V adapter and if TX is connected the device doesn't boot at all, if I connect TX after the orange LED is ON then everything is OK.

BTW, another thing is to check if HW and SW flow control are disabled, depending on your OS and UART client.

Yes I have to check why it doesn't work

Hi, I've been testing this for a couple days now, so far AP functionality seems fine, the only problem I've experienced is that sysupgrade bricks the device (using this to recover, still waiting for shipping on 1.8V UART dongles). Is sysupgrade supposed to work at the moment?

(Also, I see there's no "Switch" pane in LuCI, and every Ethernet port appears as an individual one. Is that the new Distributed Switch Architecture thing exposing switch ports the same as if they were different NICs? So the usual Linux VLANs that LuCI calls "software" in device dropdowns are in fact HW offloaded, right?)

No, that's QCA's own idea of a driver.