Adding OpenWrt support for QNAP QHora-301W

Great work by @robimarko and @kirdes and others for getting things working for this QNAP QHora-301W device.

I was wondering, has someone already done any power measurements on these?
like, idle consumption without cables connected, idle with 2x 1GbE connected, idle with 2x 10GbE connected for example? And maybe some when doing benchmarks?
Would be interesting to know I think.

Doubt anybody did that

According to heise.de review it's 12 watts with both 10G links active.

I'm guessing a single 10G link is about 2- 3 watts alone.

I found some documentation on the ssdk_sh command - hope it helps
https://github.com/augin/mips74k-ar71xx-lede-patch/blob/master/Atheros_S17_Switch_ssdk_user_guide_rev14.pdf))

there is also a FAQ with examples https://github.com/gwlim/mips74k-ar71xx-lede-patch/blob/lede-17.01/S17-FAQ-20110524.pdf

further info on using ethtool with aquantia
https://github.com/Aquantia/AQtion/blob/master/README.txt

2 Likes

I've been running a build from ipq807x-5.15-pr branch for a few days and noticed the following:

1.) The 5GHZ radio goes offline after a few hours, it usually becomes available after a restart of the Generic 802.11acaxn device.

2.) The 2 x10G ports appear to support 1G/10G. When connected to a 5G NIC, eth4 negotiates and connects at 1G speed while eth5 does not connect at all, probably due to a known issue with eth5 which does not support 1G but 5G worked earlier on 5.10. When connected to 10G NIC, both ports (eth4 and eth5) work just fine. I have not tested 2.5G connection yet.

Does anyone know what logs I can look at to understand what actually happens to the 5GHZ WIFI? System/Kernel logs do not contain useful information.

Regarding the 2 x 10G ports, has any one here had a similar observation and is there a workaround?

I never had a problem with the 5 Ghz wifi, what does the log say? I guess it's related to DFS....

Regarding the 10G ports:

Yes I was having the same problem. After the boot, 5G and 2.5G modes are missing in the advertised modes (you can see that with "ethtool eth4/5)
Though the 5G and 2.5G are still in the supported modes.

Workaround:

ethtool -s eth4 advertise 18000000E102C

(18000000E102C is the sum of all supported modes in hex, see https://www.man7.org/linux/man-pages/man8/ethtool.8.html - advertise N)

Now 5G and 2.5G modes are back in the advertised modes.

I don't know the reason for this behaviour, maybe there was a change in the aquantia driver.

3 Likes

Thanks a bunch @kirdes

Hmm, that is a weird one.

If they arent being advertised, its probably getting restricted by the kernel/phylink somewhere.

Maybe this change is the reason:

https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git/commit/?h=v5.15-rt&id=d7fe6be43cfaaa10a9cc48a5baf202c387caeefd

If I have some time later, i can revert that change and check if the 10G ports advertising 2.5G and 5G by default.

That commit probably only exposes the issue, it itself only asks Phylink whether those are allowed and if not stops the advertisement in HW.

You are right about the DFS channel, my Wifi got disabled again. This time I see the following on the logs

kern.info kernel: [ .....] device wlan0 left promiscuous mode
kern.info kernel: [ .....] br-lan: port 3(wlan0) entered disabled state
daemon.notice netifd: Network device 'wlan0' link is down
daemon.notice hostapd: wlan0: interface state DISABLED->COUNTRY_UPDATE
daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->HT_SCAN
daemon.err hostapd: could not get valid channel
daemon.notice hostapd: wlan0: interface state HT_SCAN->DFS
kern.info kernel: [ .....] br-lan: port 3(wlan0) entered disabled state

Although I'm located in the EU, I had to set my 5GHz Wifi config as shown below.
My country code (SE) never works:

Country code - IN India, Operation frequency - AX 100(5500 Mhz) 160 Mhz

Would you know what configuration to use in the EU that works and avoids the DFS channel issue.

Don't use 160Mhz wide channels, it's not possible to avoid DFS then.

1 Like

Hi everyone

thx to @bitthief we now have a repo that fully supports the qca nss/ecm/crypto

here's his repo - https://github.com/bitthief/openwrt/commits/ipq807x-5.15

I am currently running it for a few days after minor changes on the qnap dts to include his nss dtsi

i pushed my own changes to github https://github.com/rmandrad/openwrt/tree/qnap-ipq807x-bitthief

Feel free to try it ... either using @bitthief repo or mine (note this is for my own use case ... i don't use ppoe and a very straightforward use case of house router ... although i am using mwan3 to up the restriction of my isp provider of 1gb lan router).

just personally want to say thank you to @bitthief for all his efforts.

i use 160Mhz with no problems so far

try the US reg

1 Like

I installed snapshot 9a205ee from rmandrad's repo into two of my ax3600 802.11s mesh nodes and also in one qnap mesh node, no problems observed yet. Keep you informed.

1 Like

I'm running the latest release (2022-8-18) from https://github.com/robimarko/openwrt/releases
reporting that everything that I use works fine except for the USB printing... looks like there is no kmod-usb-printer module for this router yet. For anyone just getting started, I followed these instructions https://github.com/robimarko/openwrt/commit/c88c69fbe0c04c01e4b41fc3f38c639ed8d57743 and reflashed the sysupgrade image from the web GUI after completing the instructions. For whatever reason it wasn't saving nvram but the reflash fixed that. Also I had to build an initramfs image for the initial flash because the ones on github are missing losetup and opkg was missing something to install it.

Hope that this helps.

Hello again!
Since the last time I wrote I used the build from @robimarko-s repo as a daily driver on my qhora. Everything worked perfectly at 2.5G speeds, but after upgrading to the latest build, the 10G ports only advertise themselves as 1G and 10G ports. The auto negotiation doesn’t work for 2.5G nor 5G. Using a custom build with ethtool I can force 2.5G and everything works. Does anyone have an idea for a better fix?
Thanks in advance!

Did you try the flashing the new firmware for the ethernet ports? the mbn file on github linked in the instructions that I used? I posted a link to them in the post above yours. Direct link following -> https://github.com/kirdesde/nbg7815_gpl/blob/master/target/linux/ipq/ipq807x_64/prebuilt_images/AQR_ethphyfw.mbn Be sure to backup your mtd partition 10 before flashing it... I did not as I screwed up the command. If you have the stock firmware mbn could you please post it somewhere for me?

Also does anyone know what the default boot command(s) is? I should have checked that before editing it for the new firmware.

It's probably related to this:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/net/phy/aquantia_main.c?h=v5.15.62&id=d7fe6be43cfaaa10a9cc48a5baf202c387caeefd

This would mean that kernel is restricting the advertised speeds for whatever reason.