Adding OpenWrt support for QNAP QHora-301W

Just to report that the lan 4 labeled on the back of the router is internally tagged as eth0... also it seems I am unable to get an ip if I use any of the lan ports (1-4) from the isp

would there be anything on the dts that is causing this behavior ? only one specific port eth4 (10G) only gets an ip from the isp ... has anyone tried two wan's (wan & wanb) on this router?

@bitthief i had a go and build qnap on your repository

i have a few issues that i came across with qnap (also ax3600) namely i get a number of messages with the following

8.271971] bad descriptor dump for nss core = 0

and for all of the eth

nss-dp 3a001000.dp1 eth0: Data plane vsi assign failed

also get

 qca-nss 39400000.nss: Direct firmware load for qca-nss1.bin failed with error -2

in spite of having


-rw-r--r--    1 root     root          4476 Jul 28 12:38 regulatory.db
lrwxrwxrwx    1 root     root            33 Jul 28 12:38 qca-nss1.bin -> /lib/firmware/qca-nss1-retail.bin
-rw-r--r--    1 root     root        295196 Jul 28 12:38 qca-nss1-retail.bin
lrwxrwxrwx    1 root     root            33 Jul 28 12:38 qca-nss0.bin -> /lib/firmware/qca-nss0-retail.bin
-rw-r--r--    1 root     root        827584 Jul 28 12:38 qca-nss0-retail.bin

this could all be related to me missing merging some files from robi / yours can you help ? keen to test with nss + ecm ... ecm seems to init

34.713458] ECM init
[   34.713530] ECM database jhash random seed: 0xf77a996f
[   34.715644] ECM init complete

as nss-crypto

Has anyone noticed this warning on the Status->Firewall page

Is this something to be mindful of?

are you using mwan3 ? I do and I get a similar to yours. I don't think package has been migrated to nftables yet

Yes, I'm using mwan3. I do not remember seeing the warnings in my earlier builds that did not include mwan3.

It could be the case that the warnings are related to mwan3 which I can't really live without :slight_smile:

which ports are you using ? port 0 & 1? this seems to be the option on the stock firmware ... getting both 10g ports don't work even on the stock firmware

I am using port 0 and 1 at the moment.
I have been struggling with a more conservative port usage approach since yesterday. I tried assigning VLANs on the wan side as follows:

wan0 -> eth0.10
wan1 -> eth0.20
wan2 -> eth0.30
wan3 -> eth0.40

So that port 0 is trunk to a managed switch (Cisco SG200-08) but strange that only one of the wan interfaces would get assigned IP at a time. Not an issue from my ISP because when I use the physical ports eth0 - eth3, I am able to obtain 4x download /upload.

Note - VLANs work with the same switch on the LAN side, so should not be an issue with the switch, I even tested with a Netgear managed switch and obtained the same outcome.

I have since given up with the above VLAN approach to use only 2 port (2 x download/upload), but will appreciate some info if you are able to make any progress on the wan VLAN approach :slight_smile:

1 Like

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

1 Like

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.

2 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.