FriendlyElec NanoPi R5S resources

2023/07/29

Tags: Linux

This is a list of information and resources about the NanoPi R5S from FriendlyElec and using it as a router, which is what I’m currently doing. I’m running it using an image built using pyavitz’s Debian Image Builder as there is currently no support in mainline Armbian.

Resources

https://www.friendlyelec.com/index.php?route=product/product&product_id=287

https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S

https://forum.armbian.com/forum/185-nanopi-r5s/

https://github.com/armbian/build/pull/4247

https://github.com/pyavitz/debian-image-builder

https://dietpi.com/

https://fasterdata.es.net/host-tuning/linux/

https://www.jeffgeerling.com/blog/2021/check-your-driver-faster-linux-25g-networking-realtek-rtl8125b

Distro comparison

The original FriendlyElec provided distribution used the kernel provided by RockChip which has massively diverged from kernel mainline.

echo 1 > /sys/class/net/eth0/napi_defer_hard_irqs
echo 20000 > /sys/class/net/eth0/gro_flush_timeout
echo 0000:01:00.0 > /sys/bus/pci/drivers/r8169/unbind
echo 0001:01:00.0 > /sys/bus/pci/drivers/r8169/unbind
modprobe r8125

FirewallD

You may simply delete the files containing the customized zone rules from /etc/firewalld/zones (or /usr/etc/firewalld/zones, depending on the distribution). After that, reload firewalld with firewall-cmd –complete-reload

nmcli con add type ethernet con-name “lan1” ifname eth0 ipv4.addresses 192.168.2.1/24 nmcli con mod lan1 ipv4.method manual nmcli con up lan1

Routing table netstat -rn

zoomer 192.168.2.2 sudo ip route add 192.168.1.0/24 via 192.168.2.1 dev eth1

nanopi 192.168.2.1 192.168.1.23

orinoco 192.168.1.1 ip route add 192.168.2.0/24 via 192.168.1.23 dev enp2s0