Adding OpenWrt support for QNAP QHora-301W

root@QNAP:~# mdio 90000.mdio-1
 DEV      PHY-ID  LINK
0x00  0x00000000  down
0x08  0x00000000  down
0x10  0x004dd0b1  up
0x11  0x004dd0b1  up
0x12  0x004dd0b1  up
0x13  0x004dd0b1  up
0x14  0x004dd0b1  down
0x15  0x04820a05  down
root@QNAP:~# mdio 90000.mdio-1 mmd 0:4 raw 0xC441
0x0008

root@QNAP:~# mdio 90000.mdio-1 mmd 0x15:4 0xC441
0x0000
root@QNAP:~# mdio 90000.mdio-1 mmd 0x15:4 0xC440
0x0000
root@QNAP:~# mdio 90000.mdio-1 mmd 0x15:4 0xC442
0x0000

@robimarko Is this the needed info?
@rmandrad
With kernel 6.6.92 (latest build I have before switching to kernel 6.12) 10g-2 port doesn't work (device connected to it cannot get link) but there is no error message at all.
With kernel 6.12, 10g ports are reversed 10g-1 doesn't work with message autoneg time out but 10g-2 works OK.
Firmware load fails on 6.12 when I have device connected to the 10g-1 port at boot.
The registers are the same on k6.6 and 6.12.

2 Likes

those registers show the same on my qnap with 6.12

i agree it makes no sense ... but this is the only way I am able to get the ports working! ...

Hm, its rather weird that autoneg times out since its clearly enabled as 0xC441 is set to 0x8

1 Like

So for now a big warning to those who actively use 10G ports about future upgrades. Too bad if this device is stuck at this point.

Well, somebody has gotta debug this, I dont have the time currently to work on this

2 Likes

Yea, just to put the flag, the issues started around this commit on kernel 6.6.
@Ansuel

I think it's a pcie problem, because I have an ipq8072a using the 6.6 kernel and both PCIs are working fine. One of the pcie connections
root@openwrt:~# lspci
0000:00:00.0 PCI bridge: Qualcomm Technologies, Inc Device 1002
0000:01:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
0001:00:00.0 PCI bridge: Qualcomm Technologies, Inc MDM9x55 LTE Modem [Snapdragon X16]
root@openwrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.83 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.83 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 2c7c:0801 Quectel RM520N-GL
Bus 002 Device 003: ID 2c7c:0801 Quectel RM520N-GL
Bus 003 Device 001: ID 1d6b:0002 Linux 6.6.83 xhci-hcd xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux 6.6.83 xhci-hcd xHCI Host Controller
Bus 004 Device 002: ID 2c7c:0801 Quectel RM520N-GL
Bus 005 Device 001: ID 1d6b:0002 Linux 6.6.83 xhci-hcd xHCI Host Controller
Bus 006 Device 001: ID 1d6b:0003 Linux 6.6.83 xhci-hcd xHCI Host Controller
root@openwrt:~#
But after I used the 6.12 kernel, the Quectel RM520N-GL USB could not be recognized.

I created an issue on github.

2 Likes