Netgear X10 (R9000)

Tested with current master, works.
Don't use radio0, this is Wilocity Wil6210 802.11, and was never tested by me.
radio1 and radio2 can scan and channel analysis works.

What I found on a rebuild and clean install was that 5GHz scan worked until I enabled the radio. Here are the logs as noted. I have not had time to look at the source code yet. Any pointers would be appreciated but this is not a show stopper for me.

Failed 5GHz scan (radio enabled):

System Log:
Tue Dec  7 14:33:58 2021 daemon.notice netifd: Wireless device 'radio1' is now up

Kernel Log:
[ 1600.596896] ath10k_pci 0001:03:00.0: mac flush null vif, drop 0 queues 0xffff
[ 1600.616756] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 1600.623204] br-lan: port 3(wlan1) entered blocking state
[ 1600.628525] br-lan: port 3(wlan1) entered forwarding state


Successful 5GHz scan (radio disabled):

System Log:
Tue Dec  7 14:26:20 2021 daemon.notice netifd: Wireless device 'radio1' is now down
Tue Dec  7 14:27:30 2021 kern.warn kernel: [ 2121.331702] ath10k_pci 0001:03:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
Tue Dec  7 14:27:30 2021 kern.warn kernel: [ 2121.339188] ath10k_pci 0001:03:00.0: msdu-desc: 2500  skid: 32
Tue Dec  7 14:27:30 2021 kern.info kernel: [ 2121.420146] ath10k_pci 0001:03:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
Tue Dec  7 14:27:30 2021 kern.info kernel: [ 2121.431044] ath10k_pci 0001:03:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
Tue Dec  7 14:27:31 2021 kern.info kernel: [ 2121.809287] ath10k_pci 0001:03:00.0: rts threshold -1
Tue Dec  7 14:27:31 2021 kern.warn kernel: [ 2121.814868] ath10k_pci 0001:03:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4

Kernel Log:
[ 2121.331702] ath10k_pci 0001:03:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[ 2121.339188] ath10k_pci 0001:03:00.0: msdu-desc: 2500  skid: 32
[ 2121.420146] ath10k_pci 0001:03:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[ 2121.431044] ath10k_pci 0001:03:00.0: wmi print 'free: 84920 iram: 13156 sram: 11224'
[ 2121.809287] ath10k_pci 0001:03:00.0: rts threshold -1
[ 2121.814868] ath10k_pci 0001:03:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4

Update 1: I found this recent patch that is potentially related to issues with failed spectral scans:

package/kernel/ath10k-ct/patches/300-ath10k-ct-Fix-spectral-scan-NULL-pointer.patch

It looks to me as if this is included in my current build but I also found this setting in menuconfig:

Kernel modules -> Wireless Drivers -> kmod-ath -> Atheros wireless debugging

When I selected this as a possible help in finding my issue another option appeared:

Kernel modules -> Wireless Drivers -> kmod-ath -> Atheros spectral scan support

Selecting this option and compiling did not yield any change in scanning on 5GHz. I'll poke around in my logs to see if anything new pops up.

1 Like

Impressive to read this thread. Is your firmware ready to be used for 'regular' users? I'll be needing VPN client functionality, VLAN (fibre ISP) and of course 1Gb Ethernet + Fast Wifi 2.4 / 5.0

Can I go for it or should I hold off and buy a new router altogether? Appreciated!

:slight_smile:

I'm using it for more than half a year now as my main router. And very happy with it.
VPN, Samba, WLAN, Transmission, and more.

1 Like

Nice. SPF+ working too? Wanna hook it up to my 10Gb switch and looking for new wifi routers with a 10Gb LAN port... It's hard to come by and not cheap : )

SFP+ is one thing that nobody tested/fixed. I have no use for SFP+ at the moment, that probably explains why nobody took care of it :slight_smile:

2 Likes

While not implemented at my home yet, the main reason I once bought this at a way too high price was for the 10Gb Ethernet port. Looking around, 10Gb + good wifi still is hard to find.

I'm willing to test for you guys (I have a big ass enterprise 10Gb RJ45/SFP+ switch already installed). I do have to order an SFP+ cable then to test it all out. And looking at this thread I think I will have great support going forward.

BUT I'm also looking at this nice find: QNAP QHora-301W and I like that they update the router a lot, it even automatically reboots! SO... My choices now are;

  1. flash my R9000
  2. spent 300 Euro.

And the choice might be decided by a simple feature: will your firmware also automatically upgrade OR will I have to follow this thread for years to come, telnetting my router for each update? Security is kinda important to me too :slight_smile:

Appreciated!

whaaa :laughing: you can use sysupgrade! I'm upgrading my routter via LuCI, just regular OpenWRT update.

1 Like

I would be interested in your findings.
A couple of weeks ago i had weird issues with 5GHz but this week was always superb, no issues so far.

Scanning with wlan1 devices works via SSH:
iw dev wlan1 scan

What is your 5GHz configuration, nothing unusual ?

:slight_smile: alright that might be worth the effort and save myself 300 euro.

I'll look up again htf I continue now. It's probably not as easy as logging in to the default web interface, upload firmware, reboot?

Interesting. I get
command failed: Resource busy (-16)

That seems consistent with what I see in the LuCI gui. I do get a valid report back from wlan2 which is also consistent with the gui.

All that I have set on the 5GHz channel is a channel, an SSID and security. Here are the entries from the Wireless config:

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'soc/fd800000.pcie-external0/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:03.0/0001:03:00.0'
	option band '5g'
	option country 'US'
	option channel '60'
	option cell_density '0'
	option htmode 'VHT20'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'home_network'
	option encryption 'psk2'
	option key '*********'

my config

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11a'ˋ
        option path 'soc/fd800000.pcie-external0/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:03.0/0001:03:00.0'
        option htmode 'VHT80'
        option country 'US‘
        option cell_density '0'
        option disabled '0'
        option channel '100'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'home_network'
        option encryption 'psk2'
        option key 'secret'

Does anyone have a link on how to start flashing? I might be in over my head for now :slight_smile:

I assume you are talking about the first flash of OpenWRT where no OpenWRT is yet installed.

There are basically 2 options:

  1. Use Netgear's firmware to flash OpenWRT factory image (was reported here as working)
  2. Use Netgear's TFTP Factory Flash (used by me to flash my routers)

https://kb.netgear.com/000059633/How-to-upload-firmware-to-a-NETGEAR-router-using-TFTP-client?language=en_US

Use "*factory.img" file.

When my router is in factory mode, i usually do this on Linux:

tftp-hpa -v -m binary 192.168.1.1 -c put openwrt-alpine-generic-netgear_xr700-squashfs-factory.img

Once OpenWRT is installed, you can use LuCI or sysupgrade to update OpenWRT.

How to enter factory mode:

  1. Power off router
  2. Press and hold reset button at the back
  3. Still hold the button pressed and power on router
  4. Hold the button pressed for 20 seconds
2 Likes

I need your help guys

I am currently using the first LAN port (switch0 port2) as trunk port to an AP. Then second LAN port (switch0 port1) is assigned to VLAN 200, for access to media streaming via VPN. I have 3 VLANS (1, 100, 200), my configuration (/etc/config/network) is shown below and this config has worked for over 2 months without any issues.

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '2t 4 6 0t'

config switch_vlan
	option device 'switch0'
	option vlan '100'
	option ports '2t 0t'

config switch_vlan
	option device 'switch0'
	option vlan '200'
	option ports '1 2t 0t'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option ports '3 5t'

config switch
	option name 'switch1'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch1'
	option vlan '1'
	option ports '0 1 2 3 4 5 6t'
-----------------------------------------------------```

Now, I want switch0 (ports1 and 2) to be trunk ports to 2 APs, then I want to add switch-port2 to VLAN 100 and switch1-port2 to VLAN 200.

I have tried different approaches such as the config shown below but for some reason, I am unable assign any switch1 ports to VLANs 100 or 200. 

```------------Failed switch config--------------
config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '0t 1t 2t 4 6'

config switch_vlan
	option device 'switch0'
	option vlan '100'
	option ports '0t 1t 2t'

config switch_vlan
	option device 'switch0'
	option vlan '200'
	option ports '0t 1t 2t'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option ports '3 5t'

config switch
	option name 'switch1'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch1'
	option vlan '1'
	option ports '0t 3 4 5 6t'

config switch_vlan
	option device 'switch1'
	option vlan '100'
	option ports '0t 2 6t'

config switch_vlan
	option device 'switch1'
	option vlan '200'
	option ports '0t 1 6t'
-------------------------------------------------------```

Any ideas why the above does not work, could you please help out with this issue?

I am making a new build again with all of the above stuff that has been accumulated over this thread.

However, I am running into an issue which is inhibiting me from building.


make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/lua'
time: package/utils/lua/download#0.20#0.10#0.27
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/mtd-utils'
time: package/utils/mtd-utils/download#0.23#0.06#0.27
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/system/usign'
time: package/system/usign/download#0.30#0.10#0.36
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/e2fsprogs'
time: package/utils/e2fsprogs/download#0.28#0.09#0.35
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/usbmode'
time: package/utils/usbmode/download#0.28#0.06#0.31
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/jsonfilter'
time: package/utils/jsonfilter/download#0.35#0.08#0.41
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/utils/util-linux'
time: package/utils/util-linux/download#0.29#0.09#0.35
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/network/utils/bpftools'
time: package/network/utils/bpftools/lib/download#0.96#0.13#1.14
make[2]: Nothing to be done for 'download'.
make[2]: Leaving directory '/home/ubuntu/openwrt/package/kernel/linux'
time: package/kernel/linux/download#2.14#0.21#2.40

And there it gets stuck. I have tried to re-run this several times with the exact same issue.

Now, I have no idea what is going on but I thought I post this here in hope of anyone knowing more than I do (which isn't hard).

We recently changed switch configuration, i think it was in the August of 2021.
Does your firmware contain this change ?

1 Like

Hmm, the output you posted doesn't show anything irregular, i think.

I know, the only issue is that it never continues. It gets stuck and does not proceed.

Did you Disable the failsafe when building?

Now I'm no expert, but when @egorenar was helping me with things this was the only thing that did the trick.