20240824给飞凌OK3588-C的核心板刷Ubuntu22.04并安装iperf3测试网速

本文主要是介绍20240824给飞凌OK3588-C的核心板刷Ubuntu22.04并安装iperf3测试网速,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

20240824给飞凌OK3588-C的核心板刷Ubuntu22.04并安装iperf3测试网速
2024/8/24 9:24


缘起,通过千兆交换机接入外网,开机之后发现以太网异常,多上电几次就会发现以太网也能用。

缘由:由于自制的飞凌的OK3588-C的核心板的底板对空间要求高/敏感,并且对网速要求不高,百兆即可满足要求。
也就直接使用千兆网卡芯片RTL8211F-CG的百兆模式了,4线,节省一半的面积!
当然,你也可呢过会说,直接使用百兆网卡芯片不就得了?
你是对的,由于网卡芯片MAC/PHY的严重降价,你已经找不到纯粹的百兆网卡芯片了,直接上千兆,降级到百兆使用。

现象:飞凌的OK3588-C的核心板通过底板的RTL8211F-CG和电脑直连,可以让USB转千兆网卡协商成为百兆模式!
链接速度(接受/传输 ):100/100 (Mbps)
飞凌的OK3588-C的核心板通过底板的RTL8211F-CG经交换机中转,确认协商异常:(还是千兆模式)【Linux R4/Buildroot】


Z:\ok3588c_ubuntu2204\OK3588_Linux_fs\kernel\arch\arm64\boot\dts\rockchip\OK3588-C-common.dtsi
&dp0_in_vp2 {
    status = "disabled";
};

&mdio0 {
    rgmii_phy0: phy@1 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <0x1>;
    };
};

&mdio1 {
    rgmii_phy1: phy@1 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <0x2>;
    };
};

&gmac0 {
    /* Use rgmii-rxid mode to disable rx delay inside Soc */
    phy-mode = "rgmii-rxid";
    clock_in_out = "output";

    snps,reset-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
    snps,reset-active-low;
    /* Reset time is 20ms, 100ms for rtl8211f */
    snps,reset-delays-us = <0 20000 100000>;

    pinctrl-names = "default";
    pinctrl-0 = <&gmac0_miim
             &gmac0_tx_bus2
             &gmac0_rx_bus2
             &gmac0_rgmii_clk
             &gmac0_rgmii_bus>;

    tx_delay = <0x44>;
    /* rx_delay = <0x4f>; */

    phy-handle = <&rgmii_phy0>;
    status = "disabled";
};

&gmac1 {
    /* Use rgmii-rxid mode to disable rx delay inside Soc */
    phy-mode = "rgmii-rxid";
    clock_in_out = "output";

    snps,reset-gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
    snps,reset-active-low;
    /* Reset time is 20ms, 100ms for rtl8211f */
    snps,reset-delays-us = <0 20000 100000>;

    pinctrl-names = "default";
    pinctrl-0 = <&gmac1_miim
             &gmac1_tx_bus2
             &gmac1_rx_bus2
             &gmac1_rgmii_clk
             &gmac1_rgmii_bus>;

    tx_delay = <0x44>;
    /* rx_delay = <0x4f>; */

    phy-handle = <&rgmii_phy1>;
    status = "okay";
};

&i2c2 {


Microsoft Windows [版本 10.0.22621.3296]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
# nethogs
/bin/sh: 1: nethogs: not found
# apt install nethogs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  nethogs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.6 kB of archives.
After this operation, 75.8 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 nethogs arm64 0.8.6-3 [30.6 kB]
Fetched 30.6 kB in 12s (2,520 B/s)
Selecting previously unselected package nethogs.
(Reading database ... 137554 files and directories currently installed.)
Preparing to unpack .../nethogs_0.8.6-3_arm64.deb ...
Unpacking nethogs (0.8.6-3) ...
Setting up nethogs (0.8.6-3) ...
Processing triggers for man-db (2.10.2-1) ...
#


# nethogs
Ethernet link detected
NetHogs version 0.8.6-3

    PID USER     PROGRAM                    DEV         SENT      RECEIVED
   2369 root     iperf3                     eth0      165.085    9327.676 KB/sec
      ? root     unknown TCP                            0.000       0.000 KB/sec

  TOTAL                                               165.085    9327.676 KB/sec


Microsoft Windows [版本 10.0.22621.3296]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>iperf3
'iperf3' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\QQ>cd C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64

C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>
C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64
C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>iperf3 -c 192.168.3.240 -i 1 -t 200
'iperf3' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>dir
 驱动器 C 中的卷是 Windows
 卷的序列号是 40EF-1196

 C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64 的目录

2024/07/31  15:44    <DIR>          .
2024/07/31  15:44    <DIR>          ..
2015/09/22  12:16           962,579 cygstdc++-6.dll
2015/09/22  12:16         3,382,958 cygwin1.dll
2015/09/22  12:16           455,792 iperf.exe
2015/09/22  12:16               225 客户端 iperf.bat
2015/09/22  13:46               157 服务器端 iperf.bat
               5 个文件      4,801,711 字节
               2 个目录  4,307,832,832 可用字节

C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>iperf -c 192.168.3.240 -i 1 -t 200
Connecting to host 192.168.3.240, port 5201
[  4] local 192.168.3.96 port 3233 connected to 192.168.3.240 port 5201

[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  11.1 MBytes  93.1 Mbits/sec
[  4]   1.00-2.00   sec  11.0 MBytes  92.4 Mbits/sec
[  4]   2.00-3.00   sec  10.5 MBytes  88.1 Mbits/sec
[  4]   3.00-4.00   sec  11.2 MBytes  94.1 Mbits/sec
[  4]   4.00-5.00   sec  10.6 MBytes  89.2 Mbits/sec
[  4]   5.00-6.00   sec  11.2 MBytes  94.6 Mbits/sec
[  4]   6.00-7.01   sec  11.4 MBytes  94.6 Mbits/sec
[  4]   7.01-8.00   sec  11.1 MBytes  93.9 Mbits/sec
[  4]   8.00-9.00   sec  11.2 MBytes  94.3 Mbits/sec
[  4]   9.00-10.00  sec  11.2 MBytes  94.5 Mbits/sec
[  4]  10.00-11.00  sec  11.4 MBytes  95.3 Mbits/sec
[  4]  11.00-12.00  sec  11.0 MBytes  92.7 Mbits/sec
[  4]  12.00-13.01  sec  11.4 MBytes  94.8 Mbits/sec
[  4]  13.01-14.00  sec  11.1 MBytes  93.9 Mbits/sec
[  4]  14.00-15.00  sec  10.4 MBytes  86.8 Mbits/sec
[  4]  15.00-16.01  sec  11.0 MBytes  91.8 Mbits/sec
[  4]  16.01-17.00  sec  10.9 MBytes  91.6 Mbits/sec
[  4]  17.00-18.01  sec  10.6 MBytes  89.0 Mbits/sec
[  4]  18.01-19.00  sec  10.8 MBytes  90.2 Mbits/sec
[  4]  19.00-20.01  sec  10.8 MBytes  89.8 Mbits/sec
[  4]  20.01-21.00  sec  11.1 MBytes  94.0 Mbits/sec
[  4]  21.00-22.00  sec  11.0 MBytes  91.9 Mbits/sec
[  4]  22.00-23.00  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  23.00-24.00  sec  10.9 MBytes  91.4 Mbits/sec
[  4]  24.00-25.00  sec  10.6 MBytes  89.1 Mbits/sec
[  4]  25.00-26.01  sec  11.0 MBytes  91.3 Mbits/sec
[  4]  26.01-27.01  sec  11.1 MBytes  93.3 Mbits/sec
[  4]  27.01-28.01  sec  11.1 MBytes  93.6 Mbits/sec
[  4]  28.01-29.00  sec  10.9 MBytes  91.6 Mbits/sec
[  4]  29.00-30.00  sec  11.2 MBytes  94.4 Mbits/sec
[  4]  30.00-31.00  sec  11.2 MBytes  94.3 Mbits/sec
[  4]  31.00-32.00  sec  11.2 MBytes  94.4 Mbits/sec
[  4]  32.00-33.00  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  33.00-34.00  sec  11.2 MBytes  94.0 Mbits/sec
[  4]  34.00-35.00  sec  10.8 MBytes  90.5 Mbits/sec
[  4]  35.00-36.00  sec  11.0 MBytes  92.0 Mbits/sec
[  4]  36.00-37.00  sec  11.4 MBytes  95.6 Mbits/sec
[  4]  37.00-38.00  sec  11.2 MBytes  94.3 Mbits/sec
[  4]  38.00-39.01  sec  11.1 MBytes  93.1 Mbits/sec
[  4]  39.01-40.00  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  40.00-41.01  sec  11.2 MBytes  94.2 Mbits/sec
[  4]  41.01-42.00  sec  11.2 MBytes  94.9 Mbits/sec
[  4]  42.00-43.00  sec  11.1 MBytes  93.3 Mbits/sec
[  4]  43.00-44.01  sec  11.4 MBytes  94.8 Mbits/sec
[  4]  44.01-45.01  sec  10.6 MBytes  89.3 Mbits/sec
[  4]  45.01-46.00  sec  10.9 MBytes  91.6 Mbits/sec
[  4]  46.00-47.00  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  47.00-48.00  sec  10.9 MBytes  91.2 Mbits/sec
[  4]  48.00-49.00  sec  11.2 MBytes  94.1 Mbits/sec
[  4]  49.00-50.01  sec  11.0 MBytes  91.9 Mbits/sec
[  4]  50.01-51.01  sec  11.2 MBytes  94.5 Mbits/sec
[  4]  51.01-52.00  sec  11.2 MBytes  94.7 Mbits/sec
[  4]  52.00-53.00  sec  11.2 MBytes  94.5 Mbits/sec
[  4]  53.00-54.01  sec  11.0 MBytes  91.4 Mbits/sec
[  4]  54.01-55.00  sec  10.5 MBytes  88.9 Mbits/sec
[  4]  55.00-56.01  sec  11.2 MBytes  93.9 Mbits/sec
[  4]  56.01-57.00  sec  11.1 MBytes  93.7 Mbits/sec
[  4]  57.00-58.00  sec  11.4 MBytes  95.5 Mbits/sec
[  4]  58.00-59.01  sec  11.2 MBytes  93.7 Mbits/sec
[  4]  59.01-60.00  sec  11.1 MBytes  93.9 Mbits/sec
[  4]  60.00-61.01  sec  11.1 MBytes  92.9 Mbits/sec
[  4]  61.01-62.00  sec  10.9 MBytes  91.8 Mbits/sec
[  4]  62.00-63.00  sec  11.1 MBytes  93.2 Mbits/sec
[  4]  63.00-64.01  sec  11.2 MBytes  94.0 Mbits/sec
[  4]  64.01-65.00  sec  10.5 MBytes  88.6 Mbits/sec
[  4]  65.00-66.01  sec  11.2 MBytes  93.6 Mbits/sec
[  4]  66.01-67.00  sec  11.1 MBytes  93.7 Mbits/sec
[  4]  67.00-68.00  sec  11.1 MBytes  93.6 Mbits/sec
[  4]  68.00-69.00  sec  11.0 MBytes  92.1 Mbits/sec
[  4]  69.00-70.01  sec  11.2 MBytes  93.9 Mbits/sec
[  4]  70.01-71.00  sec  11.0 MBytes  92.6 Mbits/sec
[  4]  71.00-72.01  sec  11.2 MBytes  93.7 Mbits/sec
[  4]  72.01-73.00  sec  11.2 MBytes  95.4 Mbits/sec
[  4]  73.00-74.01  sec  11.2 MBytes  93.9 Mbits/sec
[  4]  74.01-75.00  sec  10.2 MBytes  86.2 Mbits/sec
[  4]  75.00-76.01  sec  11.2 MBytes  94.0 Mbits/sec
[  4]  76.01-77.00  sec  11.2 MBytes  94.8 Mbits/sec
[  4]  77.00-78.00  sec  11.1 MBytes  93.1 Mbits/sec
[  4]  78.00-79.00  sec  11.1 MBytes  93.6 Mbits/sec
[  4]  79.00-80.00  sec  11.2 MBytes  94.3 Mbits/sec
[  4]  80.00-81.01  sec  11.4 MBytes  95.1 Mbits/sec
[  4]  81.01-82.00  sec  11.0 MBytes  92.7 Mbits/sec
[  4]  82.00-83.01  sec  11.4 MBytes  95.0 Mbits/sec
[  4]  83.01-84.00  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  84.00-85.00  sec  10.5 MBytes  88.4 Mbits/sec
[  4]  85.00-86.01  sec  10.9 MBytes  90.7 Mbits/sec
[  4]  86.01-87.01  sec  11.1 MBytes  93.5 Mbits/sec
[  4]  87.01-88.00  sec  11.1 MBytes  93.7 Mbits/sec
[  4]  88.00-89.00  sec  11.0 MBytes  92.1 Mbits/sec
[  4]  89.00-90.00  sec  11.0 MBytes  92.6 Mbits/sec
[  4]  90.00-91.01  sec  11.4 MBytes  94.7 Mbits/sec
[  4]  91.01-92.00  sec  11.2 MBytes  95.0 Mbits/sec
[  4]  92.00-93.01  sec  11.2 MBytes  94.0 Mbits/sec
[  4]  93.01-94.00  sec  11.0 MBytes  92.6 Mbits/sec
[  4]  94.00-95.01  sec  10.4 MBytes  86.7 Mbits/sec
[  4]  95.01-96.00  sec  11.2 MBytes  94.7 Mbits/sec
[  4]  96.00-97.00  sec  11.1 MBytes  93.1 Mbits/sec
[  4]  97.00-98.00  sec  11.0 MBytes  92.5 Mbits/sec
[  4]  98.00-99.00  sec  11.1 MBytes  93.4 Mbits/sec
[  4]  99.00-100.00 sec  11.1 MBytes  93.2 Mbits/sec
[  4] 100.00-101.00 sec  11.4 MBytes  95.3 Mbits/sec
[  4] 101.00-102.00 sec  11.1 MBytes  93.7 Mbits/sec
[  4] 102.00-103.01 sec  11.1 MBytes  92.6 Mbits/sec
[  4] 103.01-104.00 sec  11.1 MBytes  93.7 Mbits/sec
[  4] 104.00-105.00 sec  10.2 MBytes  86.0 Mbits/sec
[  4] 105.00-106.01 sec  11.2 MBytes  93.8 Mbits/sec
[  4] 106.01-107.00 sec  11.1 MBytes  93.9 Mbits/sec
[  4] 107.00-108.01 sec  11.1 MBytes  92.9 Mbits/sec
[  4] 108.01-109.00 sec  11.1 MBytes  94.0 Mbits/sec
[  4] 109.00-110.00 sec  11.2 MBytes  94.2 Mbits/sec
[  4] 110.00-111.00 sec  11.2 MBytes  94.6 Mbits/sec
[  4] 111.00-112.00 sec  11.0 MBytes  92.3 Mbits/sec
[  4] 112.00-113.01 sec  11.0 MBytes  91.7 Mbits/sec
[  4] 113.01-114.00 sec  10.8 MBytes  90.5 Mbits/sec
[  4] 114.00-115.00 sec  10.5 MBytes  88.3 Mbits/sec
[  4] 115.00-116.00 sec  11.1 MBytes  93.2 Mbits/sec
[  4] 116.00-117.01 sec  11.1 MBytes  92.8 Mbits/sec
[  4] 117.01-118.00 sec  11.2 MBytes  94.9 Mbits/sec
[  4] 118.00-119.00 sec  10.9 MBytes  91.1 Mbits/sec
[  4] 119.00-120.00 sec  11.4 MBytes  95.4 Mbits/sec
[  4] 120.00-121.00 sec  11.0 MBytes  92.3 Mbits/sec
[  4] 121.00-122.00 sec  11.4 MBytes  95.4 Mbits/sec
[  4] 122.00-123.01 sec  11.2 MBytes  94.0 Mbits/sec
[  4] 123.01-124.01 sec  11.0 MBytes  92.6 Mbits/sec
[  4] 124.01-125.00 sec  10.6 MBytes  89.4 Mbits/sec
[  4] 125.00-126.00 sec  11.2 MBytes  94.4 Mbits/sec
[  4] 126.00-127.01 sec  11.2 MBytes  93.8 Mbits/sec
[  4] 127.01-128.00 sec  11.2 MBytes  95.0 Mbits/sec
[  4] 128.00-129.00 sec  11.2 MBytes  94.3 Mbits/sec
[  4] 129.00-130.01 sec  11.2 MBytes  94.0 Mbits/sec
[  4] 130.01-131.00 sec  11.2 MBytes  94.9 Mbits/sec
[  4] 131.00-132.01 sec  10.9 MBytes  90.3 Mbits/sec
[  4] 132.01-133.00 sec  11.0 MBytes  93.0 Mbits/sec
[  4] 133.00-134.00 sec  11.1 MBytes  93.1 Mbits/sec
[  4] 134.00-135.00 sec  10.5 MBytes  88.4 Mbits/sec
[  4] 135.00-136.00 sec  11.2 MBytes  94.3 Mbits/sec
[  4] 136.00-137.00 sec  11.4 MBytes  95.1 Mbits/sec
[  4] 137.00-138.00 sec  11.0 MBytes  92.7 Mbits/sec
[  4] 138.00-139.01 sec  11.0 MBytes  91.7 Mbits/sec
[  4] 139.01-140.01 sec  11.2 MBytes  94.5 Mbits/sec
[  4] 140.01-141.01 sec  11.1 MBytes  93.4 Mbits/sec
[  4] 141.01-142.00 sec  11.4 MBytes  95.5 Mbits/sec
[  4] 142.00-143.00 sec  11.0 MBytes  92.4 Mbits/sec
[  4] 143.00-144.00 sec  11.0 MBytes  92.3 Mbits/sec
[  4] 144.00-145.01 sec  10.4 MBytes  86.6 Mbits/sec
[  4] 145.01-146.01 sec  11.1 MBytes  93.4 Mbits/sec
[  4] 146.01-147.00 sec  11.1 MBytes  93.7 Mbits/sec
[  4] 147.00-148.00 sec  10.6 MBytes  89.4 Mbits/sec
[  4] 148.00-149.01 sec  11.0 MBytes  91.6 Mbits/sec
[  4] 149.01-150.00 sec  11.0 MBytes  93.0 Mbits/sec
[  4] 150.00-151.00 sec  11.1 MBytes  93.3 Mbits/sec
[  4] 151.00-152.00 sec  11.1 MBytes  93.3 Mbits/sec
[  4] 152.00-153.01 sec  10.5 MBytes  87.6 Mbits/sec
[  4] 153.01-154.00 sec  11.2 MBytes  94.9 Mbits/sec
[  4] 154.00-155.00 sec  10.4 MBytes  87.2 Mbits/sec
[  4] 155.00-156.01 sec  11.4 MBytes  94.9 Mbits/sec
[  4] 156.01-157.00 sec  10.9 MBytes  91.6 Mbits/sec
[  4] 157.00-158.00 sec  11.2 MBytes  94.2 Mbits/sec
[  4] 158.00-159.00 sec  11.2 MBytes  94.5 Mbits/sec
[  4] 159.00-160.00 sec  11.4 MBytes  95.2 Mbits/sec
[  4] 160.00-161.01 sec  11.1 MBytes  93.1 Mbits/sec
[  4] 161.01-162.00 sec  11.0 MBytes  92.4 Mbits/sec
[  4] 162.00-163.00 sec  10.5 MBytes  88.4 Mbits/sec
[  4] 163.00-164.00 sec  10.8 MBytes  89.8 Mbits/sec
[  4] 164.00-165.00 sec  10.6 MBytes  89.1 Mbits/sec
[  4] 165.00-166.01 sec  11.4 MBytes  94.9 Mbits/sec
[  4] 166.01-167.00 sec  11.2 MBytes  94.9 Mbits/sec
[  4] 167.00-168.01 sec  11.0 MBytes  92.0 Mbits/sec
[  4] 168.01-169.00 sec  10.9 MBytes  91.6 Mbits/sec
[  4] 169.00-170.01 sec  11.4 MBytes  94.7 Mbits/sec
[  4] 170.01-171.00 sec  11.1 MBytes  94.0 Mbits/sec
[  4] 171.00-172.01 sec  11.2 MBytes  94.0 Mbits/sec
[  4] 172.01-173.00 sec  10.9 MBytes  91.9 Mbits/sec
[  4] 173.00-174.01 sec  10.4 MBytes  86.4 Mbits/sec
[  4] 174.01-175.01 sec  10.8 MBytes  89.9 Mbits/sec
[  4] 175.01-176.00 sec  11.1 MBytes  94.2 Mbits/sec
[  4] 176.00-177.00 sec  11.2 MBytes  94.5 Mbits/sec
[  4] 177.00-178.01 sec  11.2 MBytes  93.7 Mbits/sec
[  4] 178.01-179.01 sec  10.8 MBytes  89.8 Mbits/sec
[  4] 179.01-180.00 sec  11.0 MBytes  93.2 Mbits/sec
[  4] 180.00-181.01 sec  11.4 MBytes  94.6 Mbits/sec
[  4] 181.01-182.00 sec  11.1 MBytes  94.1 Mbits/sec
[  4] 182.00-183.01 sec  11.2 MBytes  93.8 Mbits/sec
[  4] 183.01-184.01 sec  11.2 MBytes  94.3 Mbits/sec
[  4] 184.01-185.01 sec  10.8 MBytes  90.3 Mbits/sec
[  4] 185.01-186.00 sec  10.8 MBytes  90.5 Mbits/sec
[  4] 186.00-187.00 sec  11.1 MBytes  93.3 Mbits/sec
[  4] 187.00-188.01 sec  11.4 MBytes  94.9 Mbits/sec
[  4] 188.01-189.01 sec  11.1 MBytes  93.3 Mbits/sec
[  4] 189.01-190.00 sec  11.1 MBytes  94.0 Mbits/sec
[  4] 190.00-191.00 sec  11.2 MBytes  94.2 Mbits/sec
[  4] 191.00-192.00 sec  11.1 MBytes  93.2 Mbits/sec
[  4] 192.00-193.00 sec  10.5 MBytes  88.3 Mbits/sec
[  4] 193.00-194.00 sec  10.8 MBytes  90.1 Mbits/sec
[  4] 194.00-195.01 sec  10.6 MBytes  88.7 Mbits/sec
[  4] 195.01-196.01 sec  11.2 MBytes  94.4 Mbits/sec
[  4] 196.01-197.01 sec  11.2 MBytes  94.3 Mbits/sec
[  4] 197.01-198.00 sec  11.0 MBytes  92.5 Mbits/sec
[  4] 198.00-199.00 sec  10.8 MBytes  90.2 Mbits/sec
[  4] 199.00-200.00 sec  11.2 MBytes  94.4 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-200.00 sec  2.16 GBytes  92.7 Mbits/sec                  sender
[  4]   0.00-200.00 sec  2.16 GBytes  92.7 Mbits/sec                  receiver

iperf Done.

C:\iperfjuwcxngj3.0.11\iperf局域网测性能工具3.0.11\iperf-3.0.11-win64>


root@ok3588:~# 
root@ok3588:~# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.3.96, port 3232
[  5] local 192.168.3.240 port 5201 connected to 192.168.3.96 port 3233
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  10.4 MBytes  87.2 Mbits/sec                  
[  5]   1.00-2.00   sec  11.0 MBytes  92.2 Mbits/sec                  
[  5]   2.00-3.00   sec  10.5 MBytes  87.9 Mbits/sec                  
[  5]   3.00-4.00   sec  11.3 MBytes  94.8 Mbits/sec                  
[  5]   4.00-5.00   sec  10.6 MBytes  88.5 Mbits/sec                  
[  5]   5.00-6.00   sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]   6.00-7.00   sec  11.3 MBytes  94.6 Mbits/sec                  
[  5]   7.00-8.00   sec  11.2 MBytes  93.9 Mbits/sec                  
[  5]   8.00-9.00   sec  11.2 MBytes  94.3 Mbits/sec                  
[  5]   9.00-10.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  10.00-11.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  11.00-12.00  sec  11.1 MBytes  92.9 Mbits/sec                  
[  5]  12.00-13.00  sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]  13.00-14.00  sec  11.2 MBytes  94.3 Mbits/sec                  
[  5]  14.00-15.00  sec  10.6 MBytes  88.9 Mbits/sec                  
[  5]  15.00-16.00  sec  10.8 MBytes  90.4 Mbits/sec                  
[  5]  16.00-17.00  sec  10.8 MBytes  90.9 Mbits/sec                  
[  5]  17.00-18.00  sec  10.8 MBytes  90.3 Mbits/sec                  
[  5]  18.00-19.00  sec  10.6 MBytes  88.8 Mbits/sec                  
[  5]  19.00-20.00  sec  10.8 MBytes  90.9 Mbits/sec                  
[  5]  20.00-21.00  sec  11.1 MBytes  92.8 Mbits/sec                  
[  5]  21.00-22.00  sec  11.0 MBytes  91.9 Mbits/sec                  
[  5]  22.00-23.00  sec  11.2 MBytes  93.6 Mbits/sec                  
[  5]  23.00-24.00  sec  11.0 MBytes  91.9 Mbits/sec                  
[  5]  24.00-25.00  sec  10.6 MBytes  88.6 Mbits/sec                  
[  5]  25.00-26.00  sec  10.9 MBytes  91.2 Mbits/sec                  
[  5]  26.00-27.00  sec  11.3 MBytes  94.6 Mbits/sec                  
[  5]  27.00-28.00  sec  11.0 MBytes  92.4 Mbits/sec                  
[  5]  28.00-29.00  sec  11.0 MBytes  92.1 Mbits/sec                  
[  5]  29.00-30.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  30.00-31.00  sec  11.1 MBytes  93.4 Mbits/sec                  
[  5]  31.00-32.00  sec  11.3 MBytes  94.6 Mbits/sec                  
[  5]  32.00-33.00  sec  11.1 MBytes  93.3 Mbits/sec                  
[  5]  33.00-34.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  34.00-35.00  sec  10.7 MBytes  89.7 Mbits/sec                  
[  5]  35.00-36.00  sec  11.2 MBytes  94.0 Mbits/sec                  
[  5]  36.00-37.00  sec  11.2 MBytes  93.6 Mbits/sec                  
[  5]  37.00-38.00  sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]  38.00-39.00  sec  11.1 MBytes  93.1 Mbits/sec                  
[  5]  39.00-40.00  sec  11.2 MBytes  93.9 Mbits/sec                  
[  5]  40.00-41.00  sec  11.2 MBytes  93.6 Mbits/sec                  
[  5]  41.00-42.00  sec  11.3 MBytes  94.8 Mbits/sec                  
[  5]  42.00-43.00  sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]  43.00-44.00  sec  11.3 MBytes  94.4 Mbits/sec                  
[  5]  44.00-45.00  sec  10.6 MBytes  88.5 Mbits/sec                  
[  5]  45.00-46.00  sec  11.0 MBytes  92.0 Mbits/sec                  
[  5]  46.00-47.00  sec  11.1 MBytes  93.1 Mbits/sec                  
[  5]  47.00-48.00  sec  10.9 MBytes  91.1 Mbits/sec                  
[  5]  48.00-49.00  sec  11.3 MBytes  94.8 Mbits/sec                  
[  5]  49.00-50.00  sec  11.0 MBytes  92.1 Mbits/sec                  
[  5]  50.00-51.00  sec  11.2 MBytes  93.8 Mbits/sec                  
[  5]  51.00-52.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  52.00-53.00  sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]  53.00-54.00  sec  10.9 MBytes  91.7 Mbits/sec                  
[  5]  54.00-55.00  sec  10.6 MBytes  88.6 Mbits/sec                  
[  5]  55.00-56.00  sec  11.2 MBytes  94.3 Mbits/sec                  
[  5]  56.00-57.00  sec  11.3 MBytes  94.4 Mbits/sec                  
[  5]  57.00-58.00  sec  11.2 MBytes  94.3 Mbits/sec                  
[  5]  58.00-59.00  sec  11.2 MBytes  93.7 Mbits/sec                  
[  5]  59.00-60.00  sec  11.3 MBytes  94.6 Mbits/sec                  
[  5]  60.00-61.00  sec  11.1 MBytes  92.9 Mbits/sec                  
[  5]  61.00-62.00  sec  11.1 MBytes  93.3 Mbits/sec                  
[  5]  62.00-63.00  sec  10.9 MBytes  91.6 Mbits/sec                  
[  5]  63.00-64.00  sec  11.1 MBytes  93.3 Mbits/sec                  
[  5]  64.00-65.00  sec  10.6 MBytes  89.1 Mbits/sec                  
[  5]  65.00-66.00  sec  11.1 MBytes  93.1 Mbits/sec                  
[  5]  66.00-67.00  sec  11.3 MBytes  94.5 Mbits/sec                  
[  5]  67.00-68.00  sec  11.2 MBytes  93.6 Mbits/sec                  
[  5]  68.00-69.00  sec  10.9 MBytes  91.4 Mbits/sec                  
[  5]  69.00-70.00  sec  11.2 MBytes  94.1 Mbits/sec                  
[  5]  70.00-71.00  sec  11.2 MBytes  93.6 Mbits/sec                  
[  5]  71.00-72.00  sec  11.1 MBytes  93.3 Mbits/sec                  
[  5]  72.00-73.00  sec  11.3 MBytes  94.8 Mbits/sec                  
[  5]  73.00-74.00  sec  11.2 MBytes  93.8 Mbits/sec                  
[  5]  74.00-75.00  sec  10.3 MBytes  86.3 Mbits/sec                  
[  5]  75.00-76.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  76.00-77.00  sec  11.2 MBytes  93.8 Mbits/sec                  
[  5]  77.00-78.00  sec  11.2 MBytes  94.3 Mbits/sec                  
[  5]  78.00-79.00  sec  11.0 MBytes  92.5 Mbits/sec                  
[  5]  79.00-80.00  sec  11.3 MBytes  94.4 Mbits/sec                  
[  5]  80.00-81.00  sec  11.3 MBytes  94.9 Mbits/sec                  
[  5]  81.00-82.00  sec  11.1 MBytes  93.4 Mbits/sec                  
[  5]  82.00-83.00  sec  11.2 MBytes  94.2 Mbits/sec                  
[  5]  83.00-84.00  sec  11.2 MBytes  93.8 Mbits/sec                  
[  5]  84.00-85.00  sec  10.5 MBytes  88.1 Mbits/sec                  
[  5]  85.00-86.00  sec  10.9 MBytes  91.2 Mbits/sec                  
[  5]  86.00-87.00  sec  11.1 MBytes  92.9 Mbits/sec                  
[  5]  87.00-88.00  sec  11.2 MBytes  94.0 Mbits/sec                  
[  5]  88.00-89.00  sec  11.0 MBytes  91.9 Mbits/sec                  
[  5]  89.00-90.00  sec  11.1 MBytes  93.3 Mbits/sec                  
[  5]  90.00-91.00  sec  11.2 MBytes  94.2 Mbits/sec                  
[  5]  91.00-92.00  sec  11.3 MBytes  94.7 Mbits/sec                  
[  5]  92.00-93.00  sec  11.3 MBytes  94.7 Mbits/sec                  
[  5]  93.00-94.00  sec  11.1 MBytes  93.2 Mbits/sec                  
[  5]  94.00-95.00  sec  10.2 MBytes  85.4 Mbits/sec                  
[  5]  95.00-96.00  sec  11.3 MBytes  94.7 Mbits/sec                  
[  5]  96.00-97.00  sec  11.1 MBytes  93.4 Mbits/sec                  
[  5]  97.00-98.00  sec  11.1 MBytes  92.9 Mbits/sec                  
[  5]  98.00-99.00  sec  11.0 MBytes  92.6 Mbits/sec                  
[  5]  99.00-100.00 sec  11.2 MBytes  94.1 Mbits/sec                  
[  5] 100.00-101.00 sec  11.3 MBytes  94.4 Mbits/sec                  
[  5] 101.00-102.00 sec  11.2 MBytes  93.9 Mbits/sec                  
[  5] 102.00-103.00 sec  11.3 MBytes  94.8 Mbits/sec                  
[  5] 103.00-104.00 sec  10.9 MBytes  91.3 Mbits/sec                  
[  5] 104.00-105.00 sec  10.3 MBytes  86.1 Mbits/sec                  
[  5] 105.00-106.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 106.00-107.00 sec  11.2 MBytes  93.7 Mbits/sec                  
[  5] 107.00-108.00 sec  11.3 MBytes  94.7 Mbits/sec                  
[  5] 108.00-109.00 sec  10.9 MBytes  91.3 Mbits/sec                  
[  5] 109.00-110.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 110.00-111.00 sec  11.3 MBytes  94.5 Mbits/sec                  
[  5] 111.00-112.00 sec  10.9 MBytes  91.8 Mbits/sec                  
[  5] 112.00-113.00 sec  11.0 MBytes  92.5 Mbits/sec                  
[  5] 113.00-114.00 sec  10.7 MBytes  89.6 Mbits/sec                  
[  5] 114.00-115.00 sec  10.5 MBytes  88.2 Mbits/sec                  
[  5] 115.00-116.00 sec  11.2 MBytes  93.7 Mbits/sec                  
[  5] 116.00-117.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 117.00-118.00 sec  11.0 MBytes  92.4 Mbits/sec                  
[  5] 118.00-119.00 sec  10.9 MBytes  91.6 Mbits/sec                  
[  5] 119.00-120.00 sec  11.3 MBytes  94.8 Mbits/sec                  
[  5] 120.00-121.00 sec  11.1 MBytes  92.9 Mbits/sec                  
[  5] 121.00-122.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 122.00-123.00 sec  11.2 MBytes  94.2 Mbits/sec                  
[  5] 123.00-124.00 sec  11.1 MBytes  92.9 Mbits/sec                  
[  5] 124.00-125.00 sec  10.6 MBytes  88.9 Mbits/sec                  
[  5] 125.00-126.00 sec  11.2 MBytes  94.3 Mbits/sec                  
[  5] 126.00-127.00 sec  11.3 MBytes  94.6 Mbits/sec                  
[  5] 127.00-128.00 sec  11.3 MBytes  94.4 Mbits/sec                  
[  5] 128.00-129.00 sec  11.2 MBytes  94.1 Mbits/sec                  
[  5] 129.00-130.00 sec  11.2 MBytes  94.1 Mbits/sec                  
[  5] 130.00-131.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 131.00-132.00 sec  10.8 MBytes  90.2 Mbits/sec                  
[  5] 132.00-133.00 sec  11.2 MBytes  94.0 Mbits/sec                  
[  5] 133.00-134.00 sec  11.0 MBytes  92.1 Mbits/sec                  
[  5] 134.00-135.00 sec  10.6 MBytes  89.1 Mbits/sec                  
[  5] 135.00-136.00 sec  11.2 MBytes  94.1 Mbits/sec                  
[  5] 136.00-137.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 137.00-138.00 sec  11.0 MBytes  92.7 Mbits/sec                  
[  5] 138.00-139.00 sec  11.0 MBytes  92.6 Mbits/sec                  
[  5] 139.00-140.00 sec  11.1 MBytes  93.4 Mbits/sec                  
[  5] 140.00-141.00 sec  11.2 MBytes  94.0 Mbits/sec                  
[  5] 141.00-142.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 142.00-143.00 sec  11.1 MBytes  93.5 Mbits/sec                  
[  5] 143.00-144.00 sec  10.9 MBytes  91.3 Mbits/sec                  
[  5] 144.00-145.00 sec  10.3 MBytes  86.5 Mbits/sec                  
[  5] 145.00-146.00 sec  11.2 MBytes  94.0 Mbits/sec                  
[  5] 146.00-147.00 sec  11.1 MBytes  93.5 Mbits/sec                  
[  5] 147.00-148.00 sec  10.7 MBytes  89.4 Mbits/sec                  
[  5] 148.00-149.00 sec  10.9 MBytes  91.0 Mbits/sec                  
[  5] 149.00-150.00 sec  11.1 MBytes  92.9 Mbits/sec                  
[  5] 150.00-151.00 sec  11.3 MBytes  94.4 Mbits/sec                  
[  5] 151.00-152.00 sec  11.0 MBytes  92.1 Mbits/sec                  
[  5] 152.00-153.00 sec  10.6 MBytes  88.7 Mbits/sec                  
[  5] 153.00-154.00 sec  11.2 MBytes  94.2 Mbits/sec                  
[  5] 154.00-155.00 sec  10.7 MBytes  90.0 Mbits/sec                  
[  5] 155.00-156.00 sec  10.9 MBytes  91.8 Mbits/sec                  
[  5] 156.00-157.00 sec  11.2 MBytes  93.8 Mbits/sec                  
[  5] 157.00-158.00 sec  11.0 MBytes  92.5 Mbits/sec                  
[  5] 158.00-159.00 sec  11.2 MBytes  94.4 Mbits/sec                  
[  5] 159.00-160.00 sec  11.3 MBytes  94.8 Mbits/sec                  
[  5] 160.00-161.00 sec  11.1 MBytes  93.1 Mbits/sec                  
[  5] 161.00-162.00 sec  11.1 MBytes  93.1 Mbits/sec                  
[  5] 162.00-163.00 sec  10.6 MBytes  88.5 Mbits/sec                  
[  5] 163.00-164.00 sec  10.7 MBytes  89.3 Mbits/sec                  
[  5] 164.00-165.00 sec  11.0 MBytes  92.4 Mbits/sec                  
[  5] 165.00-166.00 sec  10.9 MBytes  91.2 Mbits/sec                  
[  5] 166.00-167.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 167.00-168.00 sec  11.1 MBytes  92.8 Mbits/sec                  
[  5] 168.00-169.00 sec  10.9 MBytes  91.7 Mbits/sec                  
[  5] 169.00-170.00 sec  11.2 MBytes  93.9 Mbits/sec                  
[  5] 170.00-171.00 sec  11.2 MBytes  94.2 Mbits/sec                  
[  5] 171.00-172.00 sec  11.2 MBytes  93.8 Mbits/sec                  
[  5] 172.00-173.00 sec  11.0 MBytes  92.6 Mbits/sec                  
[  5] 173.00-174.00 sec  10.5 MBytes  87.9 Mbits/sec                  
[  5] 174.00-175.00 sec  11.2 MBytes  93.9 Mbits/sec                  
[  5] 175.00-176.00 sec  10.5 MBytes  87.9 Mbits/sec                  
[  5] 176.00-177.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 177.00-178.00 sec  11.1 MBytes  93.4 Mbits/sec                  
[  5] 178.00-179.00 sec  10.8 MBytes  90.9 Mbits/sec                  
[  5] 179.00-180.00 sec  11.0 MBytes  92.2 Mbits/sec                  
[  5] 180.00-181.00 sec  11.3 MBytes  94.5 Mbits/sec                  
[  5] 181.00-182.00 sec  11.2 MBytes  94.4 Mbits/sec                  
[  5] 182.00-183.00 sec  11.2 MBytes  94.4 Mbits/sec                  
[  5] 183.00-184.00 sec  11.3 MBytes  94.4 Mbits/sec                  
[  5] 184.00-185.00 sec  11.2 MBytes  94.0 Mbits/sec                  
[  5] 185.00-186.00 sec  10.3 MBytes  86.1 Mbits/sec                  
[  5] 186.00-187.00 sec  11.2 MBytes  93.8 Mbits/sec                  
[  5] 187.00-188.00 sec  11.3 MBytes  94.5 Mbits/sec                  
[  5] 188.00-189.00 sec  11.1 MBytes  93.2 Mbits/sec                  
[  5] 189.00-190.00 sec  11.3 MBytes  94.9 Mbits/sec                  
[  5] 190.00-191.00 sec  11.1 MBytes  93.3 Mbits/sec                  
[  5] 191.00-192.00 sec  11.2 MBytes  93.9 Mbits/sec                  
[  5] 192.00-193.00 sec  10.5 MBytes  88.4 Mbits/sec                  
[  5] 193.00-194.00 sec  10.7 MBytes  89.4 Mbits/sec                  
[  5] 194.00-195.00 sec  11.2 MBytes  93.8 Mbits/sec                  
[  5] 195.00-196.00 sec  10.6 MBytes  89.2 Mbits/sec                  
[  5] 196.00-197.00 sec  11.3 MBytes  94.6 Mbits/sec                  
[  5] 197.00-198.00 sec  11.0 MBytes  92.5 Mbits/sec                  
[  5] 198.00-199.00 sec  10.8 MBytes  90.8 Mbits/sec                  
[  5] 199.00-200.00 sec  11.1 MBytes  93.5 Mbits/sec                  
[  5] 200.00-200.07 sec   822 KBytes  94.5 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-200.07 sec  2.16 GBytes  92.7 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------


Z:\ok3588c_ubuntu2204\OK3588_Linux_fs\kernel\drivers\net\ethernet\stmicro\stmmac\stmmac_main.c
static void stmmac_validate(struct phylink_config *config,
                unsigned long *supported,
                struct phylink_link_state *state)
{
    struct stmmac_priv *priv = netdev_priv(to_net_dev(config->dev));
    __ETHTOOL_DECLARE_LINK_MODE_MASK(mac_supported) = { 0, };
    __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
    int tx_cnt = priv->plat->tx_queues_to_use;
    int max_speed = priv->plat->max_speed;

    phylink_set(mac_supported, 10baseT_Half);
    phylink_set(mac_supported, 10baseT_Full);
    phylink_set(mac_supported, 100baseT_Half);
    phylink_set(mac_supported, 100baseT_Full);
    phylink_set(mac_supported, 1000baseT_Half);
    phylink_set(mac_supported, 1000baseT_Full);
    phylink_set(mac_supported, 1000baseKX_Full);
    phylink_set(mac_supported, 100baseT1_Full);
    phylink_set(mac_supported, 1000baseT1_Full);

    phylink_set(mac_supported, Autoneg);
    phylink_set(mac_supported, Pause);
    phylink_set(mac_supported, Asym_Pause);
    phylink_set_port_modes(mac_supported);

    /* Cut down 1G if asked to */
    if ((max_speed > 0) && (max_speed < 1000)) {
        phylink_set(mask, 1000baseT_Full);
        phylink_set(mask, 1000baseX_Full);
    } else if (priv->plat->has_xgmac) {
        if (!max_speed || (max_speed >= 2500)) {
            phylink_set(mac_supported, 2500baseT_Full);
            phylink_set(mac_supported, 2500baseX_Full);
        }
        if (!max_speed || (max_speed >= 5000)) {
            phylink_set(mac_supported, 5000baseT_Full);
        }
        if (!max_speed || (max_speed >= 10000)) {
            phylink_set(mac_supported, 10000baseSR_Full);
            phylink_set(mac_supported, 10000baseLR_Full);
            phylink_set(mac_supported, 10000baseER_Full);
            phylink_set(mac_supported, 10000baseLRM_Full);
            phylink_set(mac_supported, 10000baseT_Full);
            phylink_set(mac_supported, 10000baseKX4_Full);
            phylink_set(mac_supported, 10000baseKR_Full);
        }
        if (!max_speed || (max_speed >= 25000)) {
            phylink_set(mac_supported, 25000baseCR_Full);
            phylink_set(mac_supported, 25000baseKR_Full);
            phylink_set(mac_supported, 25000baseSR_Full);
        }
        if (!max_speed || (max_speed >= 40000)) {
            phylink_set(mac_supported, 40000baseKR4_Full);
            phylink_set(mac_supported, 40000baseCR4_Full);
            phylink_set(mac_supported, 40000baseSR4_Full);
            phylink_set(mac_supported, 40000baseLR4_Full);
        }
        if (!max_speed || (max_speed >= 50000)) {
            phylink_set(mac_supported, 50000baseCR2_Full);
            phylink_set(mac_supported, 50000baseKR2_Full);
            phylink_set(mac_supported, 50000baseSR2_Full);
            phylink_set(mac_supported, 50000baseKR_Full);
            phylink_set(mac_supported, 50000baseSR_Full);
            phylink_set(mac_supported, 50000baseCR_Full);
            phylink_set(mac_supported, 50000baseLR_ER_FR_Full);
            phylink_set(mac_supported, 50000baseDR_Full);
        }
        if (!max_speed || (max_speed >= 100000)) {
            phylink_set(mac_supported, 100000baseKR4_Full);
            phylink_set(mac_supported, 100000baseSR4_Full);
            phylink_set(mac_supported, 100000baseCR4_Full);
            phylink_set(mac_supported, 100000baseLR4_ER4_Full);
            phylink_set(mac_supported, 100000baseKR2_Full);
            phylink_set(mac_supported, 100000baseSR2_Full);
            phylink_set(mac_supported, 100000baseCR2_Full);
            phylink_set(mac_supported, 100000baseLR2_ER2_FR2_Full);
            phylink_set(mac_supported, 100000baseDR2_Full);
        }
    }

    /* Half-Duplex can only work with single queue */
    if (tx_cnt > 1) {
        phylink_set(mask, 10baseT_Half);
        phylink_set(mask, 100baseT_Half);
        phylink_set(mask, 1000baseT_Half);
    }

    linkmode_and(supported, supported, mac_supported);
    linkmode_andnot(supported, supported, mask);

    linkmode_and(state->advertising, state->advertising, mac_supported);
    linkmode_andnot(state->advertising, state->advertising, mask);

    /* If PCS is supported, check which modes it supports. */
    stmmac_xpcs_validate(priv, &priv->hw->xpcs_args, supported, state);
}

修改为:

static void stmmac_validate(struct phylink_config *config,
                unsigned long *supported,
                struct phylink_link_state *state)
{
    struct stmmac_priv *priv = netdev_priv(to_net_dev(config->dev));
    __ETHTOOL_DECLARE_LINK_MODE_MASK(mac_supported) = { 0, };
    __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
    int tx_cnt = priv->plat->tx_queues_to_use;
    int max_speed = priv->plat->max_speed;

    phylink_set(mac_supported, 10baseT_Half);
    phylink_set(mac_supported, 10baseT_Full);
    phylink_set(mac_supported, 100baseT_Half);
    phylink_set(mac_supported, 100baseT_Full);
    //phylink_set(mac_supported, 1000baseT_Half);
    //phylink_set(mac_supported, 1000baseT_Full);
    //phylink_set(mac_supported, 1000baseKX_Full);
    phylink_set(mac_supported, 100baseT1_Full);
    //phylink_set(mac_supported, 1000baseT1_Full);

    phylink_set(mac_supported, Autoneg);
    phylink_set(mac_supported, Pause);
    phylink_set(mac_supported, Asym_Pause);
    phylink_set_port_modes(mac_supported);

    /* Cut down 1G if asked to */
    if ((max_speed > 0) && (max_speed < 1000)) {
        phylink_set(mask, 1000baseT_Full);
        phylink_set(mask, 1000baseX_Full);
    } else if (priv->plat->has_xgmac) {
        if (!max_speed || (max_speed >= 2500)) {
            phylink_set(mac_supported, 2500baseT_Full);
            phylink_set(mac_supported, 2500baseX_Full);
        }
        if (!max_speed || (max_speed >= 5000)) {
            phylink_set(mac_supported, 5000baseT_Full);
        }
        if (!max_speed || (max_speed >= 10000)) {
            phylink_set(mac_supported, 10000baseSR_Full);
            phylink_set(mac_supported, 10000baseLR_Full);
            phylink_set(mac_supported, 10000baseER_Full);
            phylink_set(mac_supported, 10000baseLRM_Full);
            phylink_set(mac_supported, 10000baseT_Full);
            phylink_set(mac_supported, 10000baseKX4_Full);
            phylink_set(mac_supported, 10000baseKR_Full);
        }
        if (!max_speed || (max_speed >= 25000)) {
            phylink_set(mac_supported, 25000baseCR_Full);
            phylink_set(mac_supported, 25000baseKR_Full);
            phylink_set(mac_supported, 25000baseSR_Full);
        }
        if (!max_speed || (max_speed >= 40000)) {
            phylink_set(mac_supported, 40000baseKR4_Full);
            phylink_set(mac_supported, 40000baseCR4_Full);
            phylink_set(mac_supported, 40000baseSR4_Full);
            phylink_set(mac_supported, 40000baseLR4_Full);
        }
        if (!max_speed || (max_speed >= 50000)) {
            phylink_set(mac_supported, 50000baseCR2_Full);
            phylink_set(mac_supported, 50000baseKR2_Full);
            phylink_set(mac_supported, 50000baseSR2_Full);
            phylink_set(mac_supported, 50000baseKR_Full);
            phylink_set(mac_supported, 50000baseSR_Full);
            phylink_set(mac_supported, 50000baseCR_Full);
            phylink_set(mac_supported, 50000baseLR_ER_FR_Full);
            phylink_set(mac_supported, 50000baseDR_Full);
        }
        if (!max_speed || (max_speed >= 100000)) {
            phylink_set(mac_supported, 100000baseKR4_Full);
            phylink_set(mac_supported, 100000baseSR4_Full);
            phylink_set(mac_supported, 100000baseCR4_Full);
            phylink_set(mac_supported, 100000baseLR4_ER4_Full);
            phylink_set(mac_supported, 100000baseKR2_Full);
            phylink_set(mac_supported, 100000baseSR2_Full);
            phylink_set(mac_supported, 100000baseCR2_Full);
            phylink_set(mac_supported, 100000baseLR2_ER2_FR2_Full);
            phylink_set(mac_supported, 100000baseDR2_Full);
        }
    }

    /* Half-Duplex can only work with single queue */
    if (tx_cnt > 1) {
        phylink_set(mask, 10baseT_Half);
        phylink_set(mask, 100baseT_Half);
        phylink_set(mask, 1000baseT_Half);
    }

    linkmode_and(supported, supported, mac_supported);
    linkmode_andnot(supported, supported, mask);

    linkmode_and(state->advertising, state->advertising, mac_supported);
    linkmode_andnot(state->advertising, state->advertising, mask);

    /* If PCS is supported, check which modes it supports. */
    stmmac_xpcs_validate(priv, &priv->hw->xpcs_args, supported, state);
}


安装截屏软件异常了:
root@ok3588:~# apt install gnome-screenshot
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  gnome-screenshot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 44.5 kB of archives.
After this operation, 254 kB of additional disk space will be used.
Ign:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 gnome-screenshot arm64 41.0-2
Ign:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 gnome-screenshot arm64 41.0-2
Ign:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 gnome-screenshot arm64 41.0-2
Err:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 gnome-screenshot arm64 41.0-2
  Connection failed [IP: 185.125.190.39 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/g/gnome-screenshot/gnome-screenshot_41.0-2_arm64.deb  Connection failed [IP: 185.125.190.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@ok3588:~# gnome-
-bash: gnome-: command not found
root@ok3588:~# 
root@ok3588:~# apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease                       
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]      
Get:3 https://ppa.launchpadcontent.net/jjriek/rockchip/ubuntu jammy InRelease [18.1 kB]
Get:4 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy InRelease [18.1 kB]
Get:5 https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy InRelease [18.1 kB]                                                                                                     
Get:6 https://ppa.launchpadcontent.net/jjriek/rockchip/ubuntu jammy/main arm64 Packages [17.2 kB]                                                                                                               
Get:7 https://ppa.launchpadcontent.net/jjriek/rockchip/ubuntu jammy/main Translation-en [6,424 B]                                                                                                               
Get:8 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy/main arm64 Packages [4,972 B]                                                                                                  
Get:9 https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy/main arm64 Packages [37.5 kB]                                                                                           
Get:10 https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy/main Translation-en [15.3 kB]                                                                                          
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]                                                                                                                                  
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]                                                                                                                                   
Get:13 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 DEP-11 Metadata [423 kB]                                                                                                                           
Get:14 http://ports.ubuntu.com/ubuntu-ports jammy/main DEP-11 48x48 Icons [100.0 kB]                                                                                                                            
Get:15 http://ports.ubuntu.com/ubuntu-ports jammy/main DEP-11 64x64 Icons [148 kB]                                                                                                                              
Get:16 http://ports.ubuntu.com/ubuntu-ports jammy/main DEP-11 64x64@2 Icons [15.8 kB]                                                                                                                           
Get:17 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 DEP-11 Metadata [3,360 kB]                                                                                                                     
Get:18 http://ports.ubuntu.com/ubuntu-ports jammy/universe DEP-11 48x48 Icons [3,447 kB]                                                                                                                        
Get:19 http://ports.ubuntu.com/ubuntu-ports jammy/universe DEP-11 64x64 Icons [7,609 kB]                                                                                                                        
Get:20 http://ports.ubuntu.com/ubuntu-ports jammy/universe DEP-11 64x64@2 Icons [69.3 kB]                                                                                                                       
Get:21 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse arm64 DEP-11 Metadata [38.8 kB]                                                                                                                    
Get:22 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse DEP-11 48x48 Icons [42.7 kB]                                                                                                                       
Get:23 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse DEP-11 64x64 Icons [193 kB]                                                                                                                        
Get:24 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse DEP-11 64x64@2 Icons [214 B]                                                                                                                       
Get:25 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [1,738 kB]                                                                                                                        
Get:26 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main Translation-en [349 kB]                                                                                                                          
Get:27 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 DEP-11 Metadata [103 kB]                                                                                                                   
Get:28 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main DEP-11 48x48 Icons [37.5 kB]                                                                                                                     
Get:29 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main DEP-11 64x64 Icons [56.8 kB]                                                                                                                     
Get:30 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main DEP-11 64x64@2 Icons [29 B]                                                                                                                      
Get:31 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [1,879 kB]                                                                                                                  
Get:32 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted Translation-en [410 kB]                                                                                                                    
Get:33 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 DEP-11 Metadata [212 B]                                                                                                              
Get:34 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted DEP-11 48x48 Icons [29 B]                                                                                                                  
Get:35 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted DEP-11 64x64 Icons [29 B]                                                                                                                  
Get:36 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted DEP-11 64x64@2 Icons [29 B]                                                                                                                
Get:37 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [1,063 kB]
Get:38 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en [260 kB]                                                                                                                      
Ign:38 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en                                                                                                                               
Get:39 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 DEP-11 Metadata [338 kB]                                                                                                               
Get:40 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe DEP-11 48x48 Icons [227 kB]                                                                                                                  
Get:41 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe DEP-11 64x64 Icons [364 kB]                                                                                                                  
Get:42 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe DEP-11 64x64@2 Icons [29 B]                                                                                                                  
Get:43 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [24.9 kB]                                                                                                                   
Get:44 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse Translation-en [10.8 kB]                                                                                                                   
Get:45 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 DEP-11 Metadata [212 B]                                                                                                              
Get:46 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse DEP-11 48x48 Icons [1,867 B]                                                                                                               
Get:47 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse DEP-11 64x64 Icons [2,497 B]                                                                                                               
Get:48 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse DEP-11 64x64@2 Icons [29 B]                                                                                                                
Get:49 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [92.0 kB]                                                                                                                       
Get:50 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main Translation-en [11.1 kB]                                                                                                                       
Get:51 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 DEP-11 Metadata [3,496 B]                                                                                                                
Get:52 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main DEP-11 48x48 Icons [16.1 kB]                                                                                                                   
Get:53 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main DEP-11 64x64 Icons [21.3 kB]                                                                                                                   
Get:54 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main DEP-11 64x64@2 Icons [29 B]                                                                                                                    
Get:55 http://ports.ubuntu.com/ubuntu-ports jammy-backports/restricted arm64 DEP-11 Metadata [212 B]                                                                                                            
Get:56 http://ports.ubuntu.com/ubuntu-ports jammy-backports/restricted DEP-11 48x48 Icons [29 B]                                                                                                                
Get:57 http://ports.ubuntu.com/ubuntu-ports jammy-backports/restricted DEP-11 64x64 Icons [29 B]                                                                                                                
Get:58 http://ports.ubuntu.com/ubuntu-ports jammy-backports/restricted DEP-11 64x64@2 Icons [29 B]                                                                                                              
Get:59 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [29.8 kB]                                                                                                                   
Get:60 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe Translation-en [16.5 kB]                                                                                                                   
Get:61 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 DEP-11 Metadata [20.8 kB]                                                                                                            
Get:62 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe DEP-11 48x48 Icons [15.7 kB]                                                                                                               
Get:63 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe DEP-11 64x64 Icons [25.6 kB]                                                                                                               
Get:64 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe DEP-11 64x64@2 Icons [29 B]                                                                                                                
Get:65 http://ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse arm64 DEP-11 Metadata [212 B]                                                                                                            
Get:66 http://ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse DEP-11 48x48 Icons [29 B]                                                                                                                
Get:67 http://ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse DEP-11 64x64 Icons [29 B]                                                                                                                
Get:68 http://ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse DEP-11 64x64@2 Icons [29 B]                                                                                                              
Get:69 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [1,526 kB]                                                                                                                       
Get:70 http://ports.ubuntu.com/ubuntu-ports jammy-security/main Translation-en [290 kB]                                                                                                                         
Get:71 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 DEP-11 Metadata [43.1 kB]                                                                                                                 
Get:72 http://ports.ubuntu.com/ubuntu-ports jammy-security/main DEP-11 48x48 Icons [16.9 kB]                                                                                                                    
Get:73 http://ports.ubuntu.com/ubuntu-ports jammy-security/main DEP-11 64x64 Icons [26.5 kB]                                                                                                                    
Get:74 http://ports.ubuntu.com/ubuntu-ports jammy-security/main DEP-11 64x64@2 Icons [29 B]                                                                                                                     
Get:75 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [1,809 kB]                                                                                                                 
Get:76 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted Translation-en [398 kB]                                                                                                                   
Get:77 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 DEP-11 Metadata [208 B]                                                                                                             
Get:78 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted DEP-11 48x48 Icons [29 B]                                                                                                                 
Get:79 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted DEP-11 64x64 Icons [29 B]                                                                                                                 
Get:80 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted DEP-11 64x64@2 Icons [29 B]                                                                                                               
Get:81 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [846 kB]                                                                                                                     
Get:82 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe Translation-en [175 kB]                                                                                                                     
Get:83 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 DEP-11 Metadata [88.7 kB]                                                                                                             
Get:84 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe DEP-11 48x48 Icons [41.0 kB]                                                                                                                
Get:85 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe DEP-11 64x64 Icons [62.8 kB]                                                                                                                
Get:86 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe DEP-11 64x64@2 Icons [29 B]                                                                                                                 
Get:87 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [20.3 kB]                                                                                                                  
Get:88 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse Translation-en [7,588 B]                                                                                                                  
Get:89 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 DEP-11 Metadata [208 B]                                                                                                             
Get:90 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse DEP-11 48x48 Icons [29 B]                                                                                                                 
Get:91 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse DEP-11 64x64 Icons [29 B]                                                                                                                 
Get:92 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse DEP-11 64x64@2 Icons [29 B]                                                                                                               
Get:38 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en [260 kB]                                                                                                                      
Fetched 28.4 MB in 2min 13s (214 kB/s)                                                                                                                                                                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
411 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ok3588:~# 
root@ok3588:~# 
root@ok3588:~# apt install gnome-screenshot
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  gnome-screenshot
0 upgraded, 1 newly installed, 0 to remove and 411 not upgraded.
Need to get 44.5 kB of archives.
After this operation, 254 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 gnome-screenshot arm64 41.0-2 [44.5 kB]
Fetched 44.5 kB in 42s (1,061 B/s)                  
Selecting previously unselected package gnome-screenshot.
(Reading database ... 137536 files and directories currently installed.)
Preparing to unpack .../gnome-screenshot_41.0-2_arm64.deb ...
Unpacking gnome-screenshot (41.0-2) ...
Setting up gnome-screenshot (41.0-2) ...
Processing triggers for libglib2.0-0:arm64 (2.72.4-0ubuntu2.2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
root@ok3588:~# 
root@ok3588:~# 
root@ok3588:~# gnome-screenshot 
1.png


^C
root@ok3588:~# ls -l
total 0
root@ok3588:~# 
root@ok3588:~# ll
total 24
drwx------  4 root root 4096 Oct  7  2023 ./
drwxr-xr-x 21 root root 4096 Oct  7  2023 ../
-rw-r--r--  1 root root 3106 Oct 15  2021 .bashrc
drwx------  2 root root 4096 Aug 24 15:30 .cache/
drwx------  3 root root 4096 Oct  7  2023 .launchpadlib/
-rw-r--r--  1 root root  161 Jul  9  2019 .profile
root@ok3588:~# pwd
/root
root@ok3588:~# 
root@ok3588:~# 
root@ok3588:~# cd /
root@ok3588:/# 
root@ok3588:/# ll
total 84
drwxr-xr-x  21 root root       4096 Oct  7  2023 ./
drwxr-xr-x  21 root root       4096 Oct  7  2023 ../
lrwxrwxrwx   1 root root          7 Oct  7  2023 bin -> usr/bin/
drwxr-xr-x   2 root root       4096 Apr 18  2022 boot/
drwxr-xr-x  16 root root       5800 Oct  7  2023 dev/
drwxr-xr-x 149 root root       8192 Aug 24 15:40 etc/
drwxr-xr-x   3 root root       4096 Oct  7  2023 home/
lrwxrwxrwx   1 root root          7 Oct  7  2023 lib -> usr/lib/
drwx------   2 root root      16384 Oct  7  2023 lost+found/
drwxr-xr-x   2 root root       4096 Oct  7  2023 media/
drwxr-xr-x   2 root root       4096 Oct  7  2023 mnt/
drwxr-xr-x   3 root root       4096 Aug 24 15:08 oem/
drwxr-xr-x   2 root root       4096 Oct  7  2023 opt/
dr-xr-xr-x 355 root root          0 Jan  1  1970 proc/
drwx------   4 root root       4096 Oct  7  2023 root/
drwxr-xr-x  31 root root        900 Aug 24 15:36 run/
lrwxrwxrwx   1 root root          8 Oct  7  2023 sbin -> usr/sbin/
drwxr-xr-x   2 root root       4096 Oct  7  2023 snap/
drwxr-xr-x   2 root root       4096 Oct  7  2023 srv/
-rw-------   1 root root 2147483648 Oct  7  2023 swapfile
dr-xr-xr-x  14 root root          0 Jan  1  1970 sys/
drwxrwxrwt  18 root root        420 Aug 24 15:36 tmp/
drwxr-xr-x   5 root root       4096 Jan  1  1970 userdata/
drwxr-xr-x  11 root root       4096 Oct  7  2023 usr/
drwxr-xr-x  14 root root       4096 Oct  7  2023 var/
root@ok3588:/# gnome-screenshot 01.png
** Message: 15:42:31.595: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# gnome-screenshot 02.png
** Message: 15:43:12.178: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
root@ok3588:/# ls -l
total 76
lrwxrwxrwx   1 root root          7 Oct  7  2023 bin -> usr/bin
drwxr-xr-x   2 root root       4096 Apr 18  2022 boot
drwxr-xr-x  16 root root       5800 Oct  7  2023 dev
drwxr-xr-x 149 root root       8192 Aug 24 15:40 etc
drwxr-xr-x   3 root root       4096 Oct  7  2023 home
lrwxrwxrwx   1 root root          7 Oct  7  2023 lib -> usr/lib
drwx------   2 root root      16384 Oct  7  2023 lost+found
drwxr-xr-x   2 root root       4096 Oct  7  2023 media
drwxr-xr-x   2 root root       4096 Oct  7  2023 mnt
drwxr-xr-x   3 root root       4096 Aug 24 15:08 oem
drwxr-xr-x   2 root root       4096 Oct  7  2023 opt
dr-xr-xr-x 355 root root          0 Jan  1  1970 proc
drwx------   5 root root       4096 Aug 24 15:43 root
drwxr-xr-x  31 root root        900 Aug 24 15:36 run
lrwxrwxrwx   1 root root          8 Oct  7  2023 sbin -> usr/sbin
drwxr-xr-x   2 root root       4096 Oct  7  2023 snap
drwxr-xr-x   2 root root       4096 Oct  7  2023 srv
-rw-------   1 root root 2147483648 Oct  7  2023 swapfile
dr-xr-xr-x  14 root root          0 Jan  1  1970 sys
drwxrwxrwt  18 root root        420 Aug 24 15:36 tmp
drwxr-xr-x   5 root root       4096 Jan  1  1970 userdata
drwxr-xr-x  11 root root       4096 Oct  7  2023 usr
drwxr-xr-x  14 root root       4096 Oct  7  2023 var
root@ok3588:/# 


root@ok3588:/# 
root@ok3588:/# apt get install iperf
E: Invalid operation get
root@ok3588:/# apt install ip
ip2host                         iperf3                          ipolish                         ips                             iptotal                         ipv6pref
ipadic                          ipfm                            iportuguese                     ipset                           iptraf-ng                       ipv6toolkit
ipadic-common                   ipgrab                          ippl                            ipset-persistent                iptstate                        ipvsadm
ipband                          ipheth-utils                    ippsample                       ipsvd                           iptux                           ipwatchd
ipcalc                          ipig                            ipp-usb                         iptables                        iputils-arping                  ipwatchd-gnotify
ipcalc-ng                       ipip                            ipqalc                          iptables-converter              iputils-clockdiff               ipxe
ipe                             ipkungfu                        iprange                         iptables-converter-doc          iputils-ping                    ipxe-qemu
ipe5toxml                       ipmitool                        iproute2                        iptables-netflow-dkms           iputils-tracepath               ipxe-qemu-256k-compat-efi-roms
iperf                           ipmiutil                        iproute2-doc                    iptables-persistent             ipv6calc                        ipython3
root@ok3588:/# apt install iperf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  iperf
0 upgraded, 1 newly installed, 0 to remove and 411 not upgraded.
Need to get 116 kB of archives.
After this operation, 283 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 iperf arm64 2.1.5+dfsg1-1 [116 kB]
Fetched 116 kB in 12s (9,709 B/s)
Selecting previously unselected package iperf.
(Reading database ... 137548 files and directories currently installed.)
Preparing to unpack .../iperf_2.1.5+dfsg1-1_arm64.deb ...
Unpacking iperf (2.1.5+dfsg1-1) ...
Setting up iperf (2.1.5+dfsg1-1) ...
Processing triggers for man-db (2.10.2-1) ...
root@ok3588:/# 
root@ok3588:/# apt install iperf3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libiperf0 libsctp1
Suggested packages:
  lksctp-tools
The following NEW packages will be installed:
  iperf3 libiperf0 libsctp1
0 upgraded, 3 newly installed, 0 to remove and 411 not upgraded.
Need to get 102 kB of archives.
After this operation, 318 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libsctp1 arm64 1.0.19+dfsg-1build1 [9,318 B]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 libiperf0 arm64 3.9-1+deb11u1build0.22.04.1 [78.5 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 iperf3 arm64 3.9-1+deb11u1build0.22.04.1 [14.5 kB]                                                                                      
Fetched 102 kB in 12s (8,290 B/s)                                                                                                                                                                               
Selecting previously unselected package libsctp1:arm64.
(Reading database ... 137561 files and directories currently installed.)
Preparing to unpack .../libsctp1_1.0.19+dfsg-1build1_arm64.deb ...
Unpacking libsctp1:arm64 (1.0.19+dfsg-1build1) ...
Selecting previously unselected package libiperf0:arm64.
Preparing to unpack .../libiperf0_3.9-1+deb11u1build0.22.04.1_arm64.deb ...
Unpacking libiperf0:arm64 (3.9-1+deb11u1build0.22.04.1) ...
Selecting previously unselected package iperf3.
Preparing to unpack .../iperf3_3.9-1+deb11u1build0.22.04.1_arm64.deb ...
Unpacking iperf3 (3.9-1+deb11u1build0.22.04.1) ...
Setting up libsctp1:arm64 (1.0.19+dfsg-1build1) ...
Setting up libiperf0:arm64 (3.9-1+deb11u1build0.22.04.1) ...
Setting up iperf3 (3.9-1+deb11u1build0.22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.4) ...
root@ok3588:/# 


WinSCP也链接不了!原因待查!
WINSCP 登录 ubuntu
ubuntu 命令行截图

root@ok3588:~# 
root@ok3588:~# apt install openssh-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  openssh-client openssh-sftp-server
Suggested packages:
  keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw
The following packages will be upgraded:
  openssh-client openssh-server openssh-sftp-server
3 upgraded, 0 newly installed, 0 to remove and 408 not upgraded.
Need to get 1,314 kB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 openssh-sftp-server arm64 1:8.9p1-3ubuntu0.10 [36.8 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 openssh-server arm64 1:8.9p1-3ubuntu0.10 [413 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 openssh-client arm64 1:8.9p1-3ubuntu0.10 [863 kB]                                                                                           
Fetched 1,314 kB in 14s (97.1 kB/s)                                                                                                                                                                             
Preconfiguring packages ...
(Reading database ... 137640 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.9p1-3ubuntu0.10_arm64.deb ...
Unpacking openssh-sftp-server (1:8.9p1-3ubuntu0.10) over (1:8.9p1-3ubuntu0.4) ...
Preparing to unpack .../openssh-server_1%3a8.9p1-3ubuntu0.10_arm64.deb ...
Unpacking openssh-server (1:8.9p1-3ubuntu0.10) over (1:8.9p1-3ubuntu0.4) ...
Preparing to unpack .../openssh-client_1%3a8.9p1-3ubuntu0.10_arm64.deb ...
Unpacking openssh-client (1:8.9p1-3ubuntu0.10) over (1:8.9p1-3ubuntu0.4) ...
Setting up openssh-client (1:8.9p1-3ubuntu0.10) ...
Setting up openssh-sftp-server (1:8.9p1-3ubuntu0.10) ...
Setting up openssh-server (1:8.9p1-3ubuntu0.10) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
ssh.socket is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.10.2-1) ...
root@ok3588:~# 
root@ok3588:~# ps -e | grep ssh
   3094 ?        00:00:00 sshd
root@ok3588:~# 

root@ok3588:~# 
 

https://developer.aliyun.com/article/1512377
使用WinSCP工具,将windows文件传输到虚拟机Ubuntu系统


sudo apt-get install android-tools-adb
apt install android-tools-adb

这篇关于20240824给飞凌OK3588-C的核心板刷Ubuntu22.04并安装iperf3测试网速的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1106113

相关文章

Zookeeper安装和配置说明

一、Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式。 ■ 单机模式:Zookeeper只运行在一台服务器上,适合测试环境; ■ 伪集群模式:就是在一台物理机上运行多个Zookeeper 实例; ■ 集群模式:Zookeeper运行于一个集群上,适合生产环境,这个计算机集群被称为一个“集合体”(ensemble) Zookeeper通过复制来实现

CentOS7安装配置mysql5.7 tar免安装版

一、CentOS7.4系统自带mariadb # 查看系统自带的Mariadb[root@localhost~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64# 卸载系统自带的Mariadb[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.44-2.el7

Centos7安装Mongodb4

1、下载源码包 curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.2.1.tgz 2、解压 放到 /usr/local/ 目录下 tar -zxvf mongodb-linux-x86_64-rhel70-4.2.1.tgzmv mongodb-linux-x86_64-rhel70-4.2.1/

性能测试介绍

性能测试是一种测试方法,旨在评估系统、应用程序或组件在现实场景中的性能表现和可靠性。它通常用于衡量系统在不同负载条件下的响应时间、吞吐量、资源利用率、稳定性和可扩展性等关键指标。 为什么要进行性能测试 通过性能测试,可以确定系统是否能够满足预期的性能要求,找出性能瓶颈和潜在的问题,并进行优化和调整。 发现性能瓶颈:性能测试可以帮助发现系统的性能瓶颈,即系统在高负载或高并发情况下可能出现的问题

字节面试 | 如何测试RocketMQ、RocketMQ?

字节面试:RocketMQ是怎么测试的呢? 答: 首先保证消息的消费正确、设计逆向用例,在验证消息内容为空等情况时的消费正确性; 推送大批量MQ,通过Admin控制台查看MQ消费的情况,是否出现消费假死、TPS是否正常等等问题。(上述都是临场发挥,但是RocketMQ真正的测试点,还真的需要探讨) 01 先了解RocketMQ 作为测试也是要简单了解RocketMQ。简单来说,就是一个分

Andrej Karpathy最新采访:认知核心模型10亿参数就够了,AI会打破教育不公的僵局

夕小瑶科技说 原创  作者 | 海野 AI圈子的红人,AI大神Andrej Karpathy,曾是OpenAI联合创始人之一,特斯拉AI总监。上一次的动态是官宣创办一家名为 Eureka Labs 的人工智能+教育公司 ,宣布将长期致力于AI原生教育。 近日,Andrej Karpathy接受了No Priors(投资博客)的采访,与硅谷知名投资人 Sara Guo 和 Elad G

Centos7安装JDK1.8保姆版

工欲善其事,必先利其器。这句话同样适用于学习Java编程。在开始Java的学习旅程之前,我们必须首先配置好适合的开发环境。 通过事先准备好这些工具和配置,我们可以避免在学习过程中遇到因环境问题导致的代码异常或错误。一个稳定、高效的开发环境能够让我们更加专注于代码的学习和编写,提升学习效率,减少不必要的困扰和挫折感。因此,在学习Java之初,投入一些时间和精力来配置好开发环境是非常值得的。这将为我

【测试】输入正确用户名和密码,点击登录没有响应的可能性原因

目录 一、前端问题 1. 界面交互问题 2. 输入数据校验问题 二、网络问题 1. 网络连接中断 2. 代理设置问题 三、后端问题 1. 服务器故障 2. 数据库问题 3. 权限问题: 四、其他问题 1. 缓存问题 2. 第三方服务问题 3. 配置问题 一、前端问题 1. 界面交互问题 登录按钮的点击事件未正确绑定,导致点击后无法触发登录操作。 页面可能存在

安装nodejs环境

本文介绍了如何通过nvm(NodeVersionManager)安装和管理Node.js及npm的不同版本,包括下载安装脚本、检查版本并安装特定版本的方法。 1、安装nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash 2、查看nvm版本 nvm --version 3、安装

业务中14个需要进行A/B测试的时刻[信息图]

在本指南中,我们将全面了解有关 A/B测试 的所有内容。 我们将介绍不同类型的A/B测试,如何有效地规划和启动测试,如何评估测试是否成功,您应该关注哪些指标,多年来我们发现的常见错误等等。 什么是A/B测试? A/B测试(有时称为“分割测试”)是一种实验类型,其中您创建两种或多种内容变体——如登录页面、电子邮件或广告——并将它们显示给不同的受众群体,以查看哪一种效果最好。 本质上,A/B测