NanoPI R6S with OpenWRT

https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R6S#Unbricking_Method

The documentation already says how to use the MASK button.

The discussion above is about using the MASK button to activate OpenWrt Failsafe mode (it is a different thing from what you referred to).

I guess it can't, it's an ADC button.

If this PR https://github.com/openwrt/openwrt/pull/17638 gets merged the reset button can be used for failsafe.

1 Like

Anybody else felt instability and poor performance with the Kmod-r8125 driver? As well as the rss version? I recently switched to kmod-r8169 driver and my network stability has been a lot better. Despite me having a 2000mb download speed I couldn’t stand the constant instability with the r8125 driver while gaming. The moment I switched to kmod-r8169, gaming felt so much more cleaner. I don’t know how these have a relation to gaming performance but over all it just seems more better for my network…weird..

Which OpenWrt version are you using? Have you installed Kmod-r8125 manually? I am asking this because I am running a snapshot of 24.10 from Dec 12th (between rc2 and rc3) and it has kmod-r8169 by default (and I have not noticed any stability issue at all).

root@router:~# opkg list | grep kmod-r8
kmod-r8169 - 6.6.63-r1

I am waiting for the final 24.10.0 to update again (probably by next week).

I’m running 24.10 rc6 and decided to keep the default driver which is r8169. Other times before downloading the rc images I would delete r8169 and use 8125. All this time since having the r6s I’ve used 8125. Always felt gaming to be horrible on it not knowing why. Until finally last night I decided to try the r8169 driver and gaming felt better

1 Like

@Rome2 - what are your net-smp-affinity settings for 8125-rss? Also be interesting to see your 8169 file also. Thanks

I was using @StarWhiz opti file from github. Still didn’t see any benefit whatsoever as I was having weird performance while gaming. A lot of delay. R8169 felt amazing and I just don’t know why. Has r8125 been reported with bugs? And I just installed the r8169 file. Didn’t bother touching the net smp affinity file after that.

In my case, on R6C, I am using r8125-rss and limiting irq to bigcore (CPU4,5,6,7). I have had no complaints about performance. interested in discussion about r8169.

I am not too inclined on how to do irq optimizations so I don’t bother doing it myself. But yes it is quite weird that r8169 seemed far more stable on my nano pi r6s

Forgot to mention that with r8125 I was getting inconsistent jitter numbers and ping numbers with sqm active. Huge spikes between tests. with r8169 didn’t experience that at all

Since we are here discussing unbrick methods:

1 Like

Since I am using Cake SQM, I devised a way to distribute CPU power well by allocating irq of the relevant interface to bigcore.

Ahhh I see. However that is for your R6C. Perhaps you have a way for the R6S?

Unfortunately, I don't have an R6S. I don't know if there is a 2.5GbE tuning for high-speed lines like yours, where the WAN side is 2.5Gb and the ISP is 2Gb, but I think it would be good to use bigcore well by looking at the CPU load.
I use the taskset command to assign littelcore to processes other than packet communication, such as collectd and dropbear.

What sort of numbers were you getting?

It appears that I somehow managed to install both 8125 and 8169 (on rc2), but I also built an image with a huge amount of packages. I'm not sure how the system behaves or which one wins in this case, but I've been happy with my performance; ping is low, bufferbloat results are great, and throughput is ~850 on my 1g connection. I'm using cake sqm, irqbalance, set the cpu frequencies to max, and updated 40-net-smp-affinity.

root@OpenWrt:~# opkg list | grep kmod-r8
kmod-r8101 - 6.6.63.1.039.00-r2 - Realtek RTL8101 PCI Fast Ethernet driver
kmod-r8125 - 6.6.63.9.014.01-r1 - Realtek RTL8125 PCI 2.5 Gigabit Ethernet driver
kmod-r8125-rss - 6.6.63.9.014.01-r1 - Realtek RTL8125 PCI 2.5 Gigabit Ethernet driver (RSS)
kmod-r8126 - 6.6.63.10.014.01-r1 - Realtek RTL8126 PCI 5 Gigabit Ethernet driver
kmod-r8126-rss - 6.6.63.10.014.01-r1 - Realtek RTL8126 PCI 5 Gigabit Ethernet driver (RSS)
kmod-r8168 - 6.6.63.8.054.00-r1 - Realtek RTL8168 PCI Gigabit Ethernet driver
kmod-r8169 - 6.6.63-r1 - Kernel modules for RealTek RTL-8169 PCI Gigabit Ethernet adapters

Here are results of a speedtest run for anyone interested:

Idle Latency:     7.87 ms   (jitter: 1.84ms, low: 4.24ms, high: 7.96ms)
    Download:   849.58 Mbps (data used: 435.5 MB)                                                   
                  7.37 ms   (jitter: 1.77ms, low: 4.85ms, high: 23.52ms)
      Upload:   850.92 Mbps (data used: 1.0 GB)                                                   
                  3.95 ms   (jitter: 0.43ms, low: 3.29ms, high: 20.47ms)
 Packet Loss:     0.0%

Edit: I just realized I ran the wrong opkg command. I only have kmod-r8125-rss installed.

so when i would test for bufferbloat i would get crazy numbers...well crazy numbers for my connection since ive tested bufferbloat before having this r6s. my ping should around 15ms-19ms average since i have decent routing from my isp. but with that driver i would get spikes up to 40ms and percentile numbers for jitter spiking beyond 40ms (which never would happen before this router). i just tested my bufferbloat with qosmate active and my average unloaded ping was 15ms and that is during congestion peak hour and this is with the kmod-r8169 driver. idk why r8125 doesnt get along w my router

is your eth0 which is 1g lan using the gmac driver??

and i know the numbers i listed are decent but these were consistent spikes for me since i know what my numbers looked like pre-r6s usage. whole idea of sqm is to keep numbers consistent to ensure there is no sudden ping spikes and jitter spikes but with the r8125 it was not doing that

Based on the following I'm thinking it's 8125, but I don't really know how to check. According to Luci I don't use eth0 and instead use eth2 for lan.

root@OpenWrt:~# lspci
0003:30:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3588 (rev 01)
0003:31:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
0004:40:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3588 (rev 01)
0004:41:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)

Edit: I just realized I ran the wrong opkg command. I only have kmod-r8125-rss installed.