OpenWrt support - mj22226 - 05-11-2022
I'm working on OpenWrt for the Quartz64, not working yet the SATA and HDMI ports, although they are not strictly necessary to use OpenWrt.
Current build is based on patches from Peter Geis , main line kernel 5.18 and uboot v22.07-rc2.
OpenWrt Quartz64 github source code:
https://github.com/mj22226/openwrt/commits/linux-5.18
Build images:
https://github.com/mj22226/openwrt/releases/tag/rockchip-5.18
RE: OpenWrt support - CounterPillow - 05-12-2022
nice, thank you for your work!
SATA should technically work on 5.18 if a) you build with the naneng combphy driver enabled, b) you disable the USB 3 port, c) you enable the sata1 controller
Since SATA is going away in the next hardware revision due to breaking USB 3, it's probably okay to leave it out though
RE: OpenWrt support - mj22226 - 05-21-2022
I have done iperf3 performance comparisons between 3 PCIe nic that I have, intel I350 x4, intel I225 x1 and RTL8125 x2 with the server on the PC:
Code: root@OpenWrt:~# lspci
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Code: -------------------------------------------------- --------------------------------------------------
root@OpenWrt:~# iperf3 -c 192.168.1.223 | root@OpenWrt:~# iperf3 -c 192.168.1.223 --bidir
Connecting to host 192.168.1.223, port 5201 Connecting to host 192.168.1.223, port 5201
[ 5] local 192.168.1.1 port 38794 connected to 192.168.1.223 | [ 5] local 192.168.1.1 port 48362 connected to 192.168.1.223
[ ID] Interval Transfer Bitrate Retr C | [ 7] local 192.168.1.1 port 48372 connected to 192.168.1.223
[ 5] 0.00-1.00 sec 114 MBytes 958 Mbits/sec 0 | [ ID][Role] Interval Transfer Bitrate R
[ 5] 1.00-2.00 sec 111 MBytes 935 Mbits/sec 0 | [ 5][TX-C] 0.00-1.00 sec 111 MBytes 932 Mbits/sec
[ 5] 2.00-3.00 sec 112 MBytes 942 Mbits/sec 0 | [ 7][RX-C] 0.00-1.00 sec 112 MBytes 936 Mbits/sec
[ 5] 3.00-4.00 sec 112 MBytes 942 Mbits/sec 0 | [ 5][TX-C] 1.00-2.00 sec 112 MBytes 944 Mbits/sec
[ 5] 4.00-5.00 sec 112 MBytes 942 Mbits/sec 0 | [ 7][RX-C] 1.00-2.00 sec 112 MBytes 938 Mbits/sec
[ 5] 5.00-6.00 sec 112 MBytes 942 Mbits/sec 0 | [ 5][TX-C] 2.00-3.00 sec 111 MBytes 933 Mbits/sec
[ 5] 6.00-7.00 sec 112 MBytes 941 Mbits/sec 0 | [ 7][RX-C] 2.00-3.00 sec 112 MBytes 937 Mbits/sec
[ 5] 7.00-8.00 sec 112 MBytes 940 Mbits/sec 0 | [ 5][TX-C] 3.00-4.00 sec 112 MBytes 943 Mbits/sec
[ 5] 8.00-9.00 sec 112 MBytes 942 Mbits/sec 0 | [ 7][RX-C] 3.00-4.00 sec 112 MBytes 938 Mbits/sec
[ 5] 9.00-10.00 sec 112 MBytes 936 Mbits/sec 0 | [ 5][TX-C] 4.00-5.00 sec 111 MBytes 933 Mbits/sec
> [ 7][RX-C] 4.00-5.00 sec 112 MBytes 938 Mbits/sec
> [ 5][TX-C] 5.00-6.00 sec 112 MBytes 943 Mbits/sec
> [ 7][RX-C] 5.00-6.00 sec 112 MBytes 937 Mbits/sec
> [ 5][TX-C] 6.00-7.00 sec 111 MBytes 933 Mbits/sec
> [ 7][RX-C] 6.00-7.00 sec 112 MBytes 937 Mbits/sec
> [ 5][TX-C] 7.00-8.00 sec 112 MBytes 943 Mbits/sec
> [ 7][RX-C] 7.00-8.00 sec 112 MBytes 938 Mbits/sec
> [ 5][TX-C] 8.00-9.00 sec 111 MBytes 933 Mbits/sec
> [ 7][RX-C] 8.00-9.00 sec 112 MBytes 937 Mbits/sec
> [ 5][TX-C] 9.00-10.00 sec 112 MBytes 943 Mbits/sec
> [ 7][RX-C] 9.00-10.00 sec 112 MBytes 938 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr | [ ID][Role] Interval Transfer Bitrate R
[ 5] 0.00-10.00 sec 1.10 GBytes 942 Mbits/sec 0 | [ 5][TX-C] 0.00-10.00 sec 1.09 GBytes 938 Mbits/sec
[ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec | [ 5][TX-C] 0.00-10.00 sec 1.09 GBytes 936 Mbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.09 GBytes 940 Mbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.09 GBytes 937 Mbits/sec
iperf Done. iperf Done.
Intel i225 x1
Code: -------------------------------------------------- --------------------------------------------------
root@OpenWrt:~# lspci root@OpenWrt:~# lspci
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remo 00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remo
te Signal Processor (rev 01) te Signal Processor (rev 01)
01:00.0 Ethernet controller: Intel Corporation Ethernet Contr 01:00.0 Ethernet controller: Intel Corporation Ethernet Contr
oller I225-LM (rev 03) oller I225-LM (rev 03)
-------------------------------------------------- --------------------------------------------------
root@OpenWrt:~# iperf3 -c 192.168.1.218 -c 192.168.1.199 | root@OpenWrt:~# iperf3 -c 192.168.1.218 -c 192.168.1.199 --bi
Connecting to host 192.168.1.199, port 5201 Connecting to host 192.168.1.199, port 5201
[ 5] local 192.168.1.1 port 43784 connected to 192.168.1.199 | [ 5] local 192.168.1.1 port 34584 connected to 192.168.1.199
[ ID] Interval Transfer Bitrate Retr C | [ 7] local 192.168.1.1 port 34600 connected to 192.168.1.199
[ 5] 0.00-1.00 sec 278 MBytes 2.33 Gbits/sec 0 | [ ID][Role] Interval Transfer Bitrate R
[ 5] 1.00-2.00 sec 280 MBytes 2.35 Gbits/sec 0 | [ 5][TX-C] 0.00-1.00 sec 175 MBytes 1.47 Gbits/sec
[ 5] 2.00-3.00 sec 281 MBytes 2.36 Gbits/sec 0 | [ 7][RX-C] 0.00-1.00 sec 120 MBytes 1.01 Gbits/sec
[ 5] 3.00-4.00 sec 280 MBytes 2.35 Gbits/sec 0 | [ 5][TX-C] 1.00-2.00 sec 150 MBytes 1.26 Gbits/sec
[ 5] 4.00-5.00 sec 280 MBytes 2.35 Gbits/sec 0 | [ 7][RX-C] 1.00-2.00 sec 141 MBytes 1.18 Gbits/sec
[ 5] 5.00-6.00 sec 281 MBytes 2.36 Gbits/sec 0 | [ 5][TX-C] 2.00-3.00 sec 148 MBytes 1.24 Gbits/sec
[ 5] 6.00-7.00 sec 280 MBytes 2.35 Gbits/sec 0 | [ 7][RX-C] 2.00-3.00 sec 140 MBytes 1.17 Gbits/sec
[ 5] 7.00-8.00 sec 281 MBytes 2.36 Gbits/sec 0 | [ 5][TX-C] 3.00-4.00 sec 150 MBytes 1.26 Gbits/sec
[ 5] 8.00-9.00 sec 280 MBytes 2.35 Gbits/sec 0 | [ 7][RX-C] 3.00-4.00 sec 140 MBytes 1.18 Gbits/sec
[ 5] 9.00-10.00 sec 281 MBytes 2.36 Gbits/sec 0 | [ 5][TX-C] 4.00-5.00 sec 149 MBytes 1.25 Gbits/sec
> [ 7][RX-C] 4.00-5.00 sec 141 MBytes 1.18 Gbits/sec
> [ 5][TX-C] 5.00-6.00 sec 149 MBytes 1.25 Gbits/sec
> [ 7][RX-C] 5.00-6.00 sec 139 MBytes 1.17 Gbits/sec
> [ 5][TX-C] 6.00-7.00 sec 150 MBytes 1.26 Gbits/sec
> [ 7][RX-C] 6.00-7.00 sec 141 MBytes 1.18 Gbits/sec
> [ 5][TX-C] 7.00-8.00 sec 149 MBytes 1.25 Gbits/sec
> [ 7][RX-C] 7.00-8.00 sec 140 MBytes 1.17 Gbits/sec
> [ 5][TX-C] 8.00-9.00 sec 146 MBytes 1.23 Gbits/sec
> [ 7][RX-C] 8.00-9.00 sec 139 MBytes 1.16 Gbits/sec
> [ 5][TX-C] 9.00-10.00 sec 150 MBytes 1.26 Gbits/sec
> [ 7][RX-C] 9.00-10.00 sec 141 MBytes 1.18 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr | [ ID][Role] Interval Transfer Bitrate R
[ 5] 0.00-10.00 sec 2.74 GBytes 2.35 Gbits/sec 0 | [ 5][TX-C] 0.00-10.00 sec 1.48 GBytes 1.27 Gbits/sec
[ 5] 0.00-10.00 sec 2.73 GBytes 2.35 Gbits/sec | [ 5][TX-C] 0.00-10.00 sec 1.48 GBytes 1.27 Gbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.35 GBytes 1.16 Gbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.35 GBytes 1.16 Gbits/sec
iperf Done. iperf Done
Code: root@OpenWrt:~# lspci
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
01:00.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
02:03.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
02:07.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
Code: -------------------------------------------------- --------------------------------------------------
root@OpenWrt:~# iperf3 -c 192.168.1.199 | root@OpenWrt:~# iperf3 -c 192.168.1.199 --bidir
Connecting to host 192.168.1.199, port 5201 Connecting to host 192.168.1.199, port 5201
[ 5] local 192.168.1.1 port 35590 connected to 192.168.1.199 | [ 5] local 192.168.1.1 port 57102 connected to 192.168.1.199
[ ID] Interval Transfer Bitrate Retr C | [ 7] local 192.168.1.1 port 57106 connected to 192.168.1.199
[ 5] 0.00-1.01 sec 158 MBytes 1.32 Gbits/sec 0 | [ ID][Role] Interval Transfer Bitrate R
[ 5] 1.01-2.00 sec 166 MBytes 1.40 Gbits/sec 0 | [ 5][TX-C] 0.00-1.00 sec 128 MBytes 1.08 Gbits/sec
[ 5] 2.00-3.01 sec 168 MBytes 1.40 Gbits/sec 0 | [ 7][RX-C] 0.00-1.00 sec 124 MBytes 1.04 Gbits/sec
[ 5] 3.01-4.00 sec 165 MBytes 1.39 Gbits/sec 0 | [ 5][TX-C] 1.00-2.00 sec 138 MBytes 1.15 Gbits/sec
[ 5] 4.00-5.01 sec 168 MBytes 1.40 Gbits/sec 0 | [ 7][RX-C] 1.00-2.00 sec 133 MBytes 1.11 Gbits/sec
[ 5] 5.01-6.00 sec 166 MBytes 1.40 Gbits/sec 0 | [ 5][TX-C] 2.00-3.00 sec 138 MBytes 1.15 Gbits/sec
[ 5] 6.00-7.00 sec 168 MBytes 1.40 Gbits/sec 0 | [ 7][RX-C] 2.00-3.00 sec 133 MBytes 1.12 Gbits/sec
[ 5] 7.00-8.01 sec 168 MBytes 1.40 Gbits/sec 0 | [ 5][TX-C] 3.00-4.00 sec 138 MBytes 1.15 Gbits/sec
[ 5] 8.01-9.00 sec 166 MBytes 1.40 Gbits/sec 0 | [ 7][RX-C] 3.00-4.00 sec 132 MBytes 1.11 Gbits/sec
[ 5] 9.00-10.00 sec 168 MBytes 1.40 Gbits/sec 0 1 | [ 5][TX-C] 4.00-5.00 sec 138 MBytes 1.15 Gbits/sec
> [ 7][RX-C] 4.00-5.00 sec 132 MBytes 1.11 Gbits/sec
> [ 5][TX-C] 5.00-6.00 sec 138 MBytes 1.15 Gbits/sec
> [ 7][RX-C] 5.00-6.00 sec 132 MBytes 1.11 Gbits/sec
> [ 5][TX-C] 6.00-7.00 sec 136 MBytes 1.14 Gbits/sec
> [ 7][RX-C] 6.00-7.00 sec 132 MBytes 1.11 Gbits/sec
> [ 5][TX-C] 7.00-8.00 sec 139 MBytes 1.16 Gbits/sec
> [ 7][RX-C] 7.00-8.00 sec 133 MBytes 1.12 Gbits/sec
> [ 5][TX-C] 8.00-9.00 sec 138 MBytes 1.15 Gbits/sec
> [ 7][RX-C] 8.00-9.00 sec 132 MBytes 1.11 Gbits/sec
> [ 5][TX-C] 9.00-10.00 sec 139 MBytes 1.16 Gbits/sec
> [ 7][RX-C] 9.00-10.00 sec 133 MBytes 1.12 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr | [ ID][Role] Interval Transfer Bitrate R
[ 5] 0.00-10.00 sec 1.62 GBytes 1.39 Gbits/sec 0 | [ 5][TX-C] 0.00-10.00 sec 1.34 GBytes 1.15 Gbits/sec
[ 5] 0.00-10.00 sec 1.62 GBytes 1.39 Gbits/sec | [ 5][TX-C] 0.00-10.00 sec 1.33 GBytes 1.15 Gbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.29 GBytes 1.11 Gbits/sec
> [ 7][RX-C] 0.00-10.00 sec 1.29 GBytes 1.11 Gbits/sec
iperf Done. iperf Done.
|