hzyitc / openwrt-redmi-ax3000

Openwrt for Redmi AX3000 / Xiaomi CR880x / Xiaomi CR881x
Other
423 stars 87 forks source link

R81 (AX3000 works but not tested at all) #17

Open SlimRG opened 1 year ago

SlimRG commented 1 year ago

But I have only 15 MB for Apps

baysonfox commented 1 year ago

But I have only 15 MB for Apps

需要刷入扩容分区表(MIBIB).

baysonfox commented 1 year ago

@hzyitc 我补充一下 AX3000 RA81的 兼容性情况: 镜像使用 ipq50xx-qsdk-kernel-5.4-openwrt-21.02-qsdk-11.5.05.841.1029 2023-06-08 10:03:31 UTC(+00:00)

启动过程中dmesg: https://gist.github.com/baysonfox/454873fb47d4276241b92487c231a632 (刷了自定义的扩容分区表,不知有无影响)

hzyitc commented 1 year ago

NSS NAT无法使用(具体表现为iperf3测速时最好只能跑到620Mbps,且 CPU 满载)

单纯的nat还是PPPoE? 路由上跑的iperf3还是外部设备?如果是外部设备,连的是wifi还是有线。

soapmancn commented 1 year ago

NSS NAT无法使用(具体表现为iperf3测速时最好只能跑到620Mbps,且 CPU 满载)

单纯的nat还是PPPoE? 路由上跑的iperf3还是外部设备?如果是外部设备,连的是wifi还是有线。

R81可以刷了吗!

baysonfox commented 1 year ago

NSS NAT无法使用(具体表现为iperf3测速时最好只能跑到620Mbps,且 CPU 满载)

单纯的nat还是PPPoE? 路由上跑的iperf3还是外部设备?如果是外部设备,连的是wifi还是有线。

目前是纯 NAT (PPPoE还未进行测试), 路由上用iperf3作为服务端和客户端都进行了测试, 作为服务端时速度在 825Mbps 左右, 且比较稳定. 但作为客户端时速度会有较大波动(869Mbps - 602Mbps), 对端设备是一台J4125的机器, 使用1Gbps的网卡进行有线连接. (感觉有种类似“暖机”的情况?在部分情况下某次测试最开始的速度可能只有300-400Mbps, 之后速度会回到正常状态.)

作为服务端进行测试:

-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 192.168.1.3, port 55666
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.3 port 55676
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   104 MBytes   874 Mbits/sec
[  5]   1.00-2.00   sec   108 MBytes   909 Mbits/sec
[  5]   2.00-3.00   sec  76.8 MBytes   642 Mbits/sec
[  5]   3.00-4.00   sec  78.3 MBytes   658 Mbits/sec
[  5]   4.00-5.00   sec   108 MBytes   905 Mbits/sec
[  5]   5.00-6.00   sec   106 MBytes   891 Mbits/sec
[  5]   6.00-7.00   sec   105 MBytes   881 Mbits/sec
[  5]   7.00-8.00   sec   109 MBytes   912 Mbits/sec
[  5]   8.00-9.00   sec  97.9 MBytes   822 Mbits/sec
[  5]   9.00-10.00  sec  96.7 MBytes   811 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   990 MBytes   830 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201 (test #2)
-----------------------------------------------------------
Accepted connection from 192.168.1.3, port 53598
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.3 port 53608
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  99.4 MBytes   832 Mbits/sec
[  5]   1.00-2.00   sec   104 MBytes   875 Mbits/sec
[  5]   2.00-3.00   sec  98.6 MBytes   827 Mbits/sec
[  5]   3.00-4.00   sec  97.3 MBytes   816 Mbits/sec
[  5]   4.00-5.00   sec  97.0 MBytes   814 Mbits/sec
[  5]   5.00-6.01   sec  96.9 MBytes   807 Mbits/sec
[  5]   6.01-7.01   sec  85.5 MBytes   719 Mbits/sec
[  5]   7.01-8.00   sec   103 MBytes   870 Mbits/sec
[  5]   8.00-9.00   sec  98.6 MBytes   827 Mbits/sec
[  5]   9.00-10.00  sec  98.3 MBytes   825 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   979 MBytes   821 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201 (test #3)
-----------------------------------------------------------

作为客户端进行测试:

Connecting to host 192.168.1.3, port 5201
[  5] local 192.168.1.1 port 49646 connected to 192.168.1.3 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  93.1 MBytes   780 Mbits/sec    0    618 KBytes
[  5]   1.00-2.00   sec   103 MBytes   861 Mbits/sec    0    648 KBytes
[  5]   2.00-3.00   sec   104 MBytes   869 Mbits/sec    0    718 KBytes
[  5]   3.00-4.02   sec  98.2 MBytes   807 Mbits/sec    0    836 KBytes
[  5]   4.02-5.01   sec  74.9 MBytes   639 Mbits/sec    0    836 KBytes
[  5]   5.01-6.03   sec  73.9 MBytes   608 Mbits/sec    0    977 KBytes
[  5]   6.03-7.03   sec  72.0 MBytes   602 Mbits/sec    0    977 KBytes
[  5]   7.03-8.00   sec  74.8 MBytes   645 Mbits/sec    0    977 KBytes
[  5]   8.00-9.00   sec  91.7 MBytes   768 Mbits/sec    0    977 KBytes
[  5]   9.00-10.00  sec   101 MBytes   854 Mbits/sec    0   1.21 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   886 MBytes   743 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   886 MBytes   742 Mbits/sec                  receiver

root@OpenWrt:~# iperf3 -c 192.168.1.3
Connecting to host 192.168.1.3, port 5201
[  5] local 192.168.1.1 port 49660 connected to 192.168.1.3 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  77.4 MBytes   647 Mbits/sec    0    660 KBytes
[  5]   1.00-2.00   sec   101 MBytes   848 Mbits/sec    0    693 KBytes
[  5]   2.00-3.00   sec   106 MBytes   886 Mbits/sec    0    738 KBytes
[  5]   3.00-4.01   sec  60.9 MBytes   506 Mbits/sec    0    738 KBytes
[  5]   4.01-5.01   sec  62.5 MBytes   524 Mbits/sec    0    738 KBytes
[  5]   5.01-6.00   sec  86.4 MBytes   733 Mbits/sec    0    827 KBytes
[  5]   6.00-7.00   sec  76.0 MBytes   639 Mbits/sec    0   1.10 MBytes
[  5]   7.00-8.00   sec  96.2 MBytes   807 Mbits/sec    0   1.10 MBytes
[  5]   8.00-9.00   sec  86.1 MBytes   722 Mbits/sec    0   1.15 MBytes
[  5]   9.00-10.00  sec  87.5 MBytes   734 Mbits/sec    0   1.15 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   840 MBytes   704 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   839 MBytes   703 Mbits/sec                  receiver

iperf Done.

测试时的ps返回:

  PID USER       VSZ STAT COMMAND
    1 root      1392 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 IW<  [rcu_gp]
    4 root         0 IW<  [rcu_par_gp]
    6 root         0 IW<  [kworker/0:0H-kb]
    8 root         0 IW<  [mm_percpu_wq]
    9 root         0 SW   [ksoftirqd/0]
   10 root         0 IW   [rcu_preempt]
   11 root         0 SW   [migration/0]
   12 root         0 SW   [cpuhp/0]
   13 root         0 SW   [cpuhp/1]
   14 root         0 SW   [migration/1]
   15 root         0 SW   [ksoftirqd/1]
   17 root         0 IW<  [kworker/1:0H-kb]
   18 root         0 IW<  [netns]
   19 root         0 SW   [rcu_tasks_kthre]
   21 root         0 SW   [oom_reaper]
   22 root         0 IW<  [writeback]
   23 root         0 SW   [kcompactd0]
   62 root         0 IW<  [kblockd]
   63 root         0 IW<  [blkcg_punt_bio]
   64 root         0 IW<  [kworker/u5:0]
   65 root         0 SW   [watchdogd]
   66 root         0 SW   [kswapd0]
   68 root         0 IW<  [kthrotld]
   69 root         0 SW   [irq/85-smp2p]
   70 root         0 SW   [hwrng]
   72 root         0 IW<  [nvme-wq]
   73 root         0 IW<  [nvme-reset-wq]
   74 root         0 IW<  [nvme-delete-wq]
   82 root         0 SW   [irq/31-q6v5 wdo]
   83 root         0 IW<  [ipv6_addrconf]
   84 root         0 SW   [ubi_bgt0d]
   87 root         0 IW<  [kworker/0:1H-kb]
   89 root         0 IW<  [kworker/1:1H-kb]
  154 root         0 SW   [ubifs_bgt0_2]
  159 ubus      1060 S    /sbin/ubusd
  160 root       700 S    /sbin/askfirst /usr/libexec/login.sh
  194 root       812 S    /sbin/urngd
  248 root         0 IW<  [nss_data_plane_]
  249 root         0 IW<  [nss_freq_queue]
  250 root         0 IW<  [coredump_wait]
  291 root         0 IW<  [bond0]
  315 root         0 IW<  [cfg80211]
  340 root         0 IW<  [ath11k_wq]
  341 root         0 IW<  [ath11k_aux_wq]
  381 root         0 IW<  [ath11k_wq]
  382 root         0 IW<  [ath11k_aux_wq]
  664 logd      1064 S    /sbin/logd -S 64
  716 root      1956 S    /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
  965 root       864 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 1049 root         0 SW   [ECM_wifi_event]
 1050 root         0 IW<  [ecm_nss_ipv4_wo]
 1051 root         0 IW<  [ecm_nss_ipv6_wo]
 1080 root      4232 S    /usr/sbin/hostapd -s -g /var/run/hostapd/global
 1081 root      3992 S    /usr/sbin/wpa_supplicant -n -s -g /var/run/wpa_supplicant/global
 1143 root      1596 S    /sbin/netifd
 1200 root      1248 S    /usr/sbin/odhcpd
 1263 root      1104 S    /usr/sbin/crond -f -c /etc/crontabs -l 5
 1600 root       840 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth1
 2113 root      1380 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
 2526 root      1104 S<   /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org -p ntp.aliyun.com -p time1.cloud.te
 3714 root         0 IW   [kworker/u4:2-ev]
 5205 dnsmasq   3360 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
 5620 root         0 DW   [kworker/u4:3+ec]
 6259 root         0 IW   [kworker/0:1-ubi]
 6262 root         0 IW   [kworker/u4:1-ev]
 6521 root       888 R    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 6522 root      1108 S    -ash
 6667 root         0 IW   [kworker/1:2-mm_]
 6668 root         0 IW   [kworker/1:5-eve]
 6761 root         0 IW   [kworker/0:0-eve]
 7101 root      1108 S    -ash
 7784 root      1104 S    sleep 600
 7874 root      1104 S    sleep 600
 7876 root         0 IW   [kworker/u4:4-ev]
 7878 root      1100 R    ps
12489 root      1548 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 3600 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:80 -p [::]:80
17259 root      1376 S    /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S myddns_ipv6 -- start
20336 root      1080 S    /usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan lcp-echo-interval 1 lcp-echo-failure 5 lcp-echo-adaptive +ipv6 set AUTOIPV6=1 nodefaultroute usepeerdns maxfail 1 user **REDACTED**
20581 root       840 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 pppoe-wan
21061 root      1368 S    /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S myddns_ipv4 -- start
32049 root         0 DW   [kworker/u4:0+ec]
woyeshizuileye commented 10 months ago

But I have only 15 MB for Apps

需要刷入扩容分区表(MIBIB).

能分享一个吗,找了好久了,一直找不到

dnx-xy commented 6 months ago

hi, do you mind share what you have progress with Xiaomi AX3000. Would love to see how it perform

abewartech commented 1 month ago

Maybe someone wants to make a video and upload it to YouTube about how to install openWRT on R81