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

news2024/11/14 19:52:06

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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2071509.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

五子棋理解C++思想

双人五子棋项目目录&#xff1a; class Game { public:Game();void init();bool waitPlayerPutChess(Player* player, int& oldi, int& oldj);void draw();void play();bool isOver(int playerId);public:int whoWin -1; // 谁赢了&#xff08;0&#xff1a;白棋&a…

【题解】【模拟】—— [CSP-J 2023] 一元二次方程

【题解】【模拟】—— [CSP-J 2023] 一元二次方程 [CSP-J 2023] 一元二次方程题目背景题目描述输入格式输出格式输入输出样例输入 #1输出 #1 提示 1.题意解析2.AC代码 [CSP-J 2023] 一元二次方程 戳我查看题目&#xff08;洛谷&#xff09; 题目背景 众所周知&#xff0c;对…

共享文件操作记录如何查看?这种方法帮你轻松实现

查看共享文件操作记录&#xff0c;可以通过以下几种方法实现&#xff1a; 一、利用操作系统的文件访问记录功能 在Windows操作系统中&#xff0c;可以利用“事件查看器”来查看共享文件的访问记录。事件查看器是Windows内置的一个工具&#xff0c;用于记录系统中发生的各种事…

50个必知的ChatGPT学术论文指令:提升研究效率,强烈推荐收藏!

随着AI技术的发展&#xff0c;AI已经成为学术创作的强大工具。如果你还不了解如何利用AI润色你的论文&#xff0c;那么这篇文章将为你提供极大的帮助。我们精心整理了50个顶级ChatGPT学术论文指令&#xff0c;强烈建议你加以利用&#xff01; 这些指令非常实用&#xff0c;能显…

线性表的顺序表示—插入操作

线性表的顺序表示—插入操作 插入代码 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define InitSize 15 // 初始化扩容长度 #define MaxSize 100typedef struct {int data[MaxSize]; // 申请空间&#xff08;静态&#xff09;int lengt…

探索ISP自动曝光技术:工作原理与应用(一)

在现代数码相机和智能手机中&#xff0c;图像信号处理器&#xff08;ISP&#xff09;是负责将传感器捕捉到的原始数据转换成高质量图像的重要组件。而在ISP的众多功能中&#xff0c;自动曝光&#xff08;Auto Exposure, AE&#xff09;是确保拍摄出清晰、明亮且细节丰富照片的关…

QT Quick QML 实例之定制 TableView

QT Quick QML 实例之定制 TableView 一、演示二、C关键步骤1. beginInsertRows()&#xff08;用户插入行&#xff09;2. roleNames() &#xff08;表格中列映射&#xff09;3. data() &#xff08;用户获取数据&#xff09;4. headerData() &#xff08;表头&#xff09;5. fla…

20240824给飞凌OK3588-C的核心板刷Ubuntu22.04后适配SONY索尼的HDMI OUT的机芯8530

20240824给飞凌OK3588-C的核心板刷Ubuntu22.04后适配SONY索尼的HDMI OUT的机芯8530 2024/8/24 16:33 echo 8 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio8/direction echo 1 > /sys/class/gpio/gpio8/value 1、HDMI IN 4K 2024/7/25 18:01 v4l2-ctl -…

文件—python

一、文件编码 对于同一份文件&#xff0c;人的视角和计算机的视角是不相同的&#xff0c;人看到的是文字&#xff0c;计算机看到的0和1组成的编码。因为计算机只能识别0和1&#xff0c;无法直接识别文字&#xff0c;那我们是如何在电脑上看到文字的呢&#xff1f; 计算机按照一…

C++的动态数组vector番外之capacity

今日诗词&#xff1a; 爱他明月好&#xff0c;憔悴也相关。 西风多少恨&#xff0c;吹不散眉弯。 ——《临江仙寒柳》【清】纳兰容若 目录 引言 正文 string中的和vector中的capacity有什么区别 vector扩容时内存分配的策略是什么&#xff1f; capacity在vector中的表现如…

基于无人机边沿相关 ------- IBUS、SBUS协议和PPM信号

文章目录 一、IBUS协议二、SBUS协议三、PPM信号 一、IBUS协议 IBUS&#xff08;Intelligent Bus&#xff09;是一种用于电子设备之间通信的协议&#xff0c;采用串行通信方式&#xff0c;允许多设备通过单一数据线通信&#xff0c;较低延迟&#xff0c;支持多主机和从机结构&a…

redis | Django小项目之Mysql数据库和Redis缓存的应用

Django小项目 需求整体架构图技术细节环境配置各文件配置settings.pyurls.pyviews.pyuser_update.html 结果相关代码补充r.hgetall(cacahe_key)new_data {k.decode():v.decode() for k,v in data.items()} 需求 整体架构图 技术细节 环境配置 django-admin startprojrct rmysi…

WIFI 应用层代码

1.0 定义枚举类型 typedef enum {WIFI_COMM_WAIT, // AT 等待命令WIFI_COMM_OK, // AT 命令完成WIFI_COMM_FALL, // AT 命令失败 }WifiCommState_t; 注&#xff1a;该枚举类型的作用是&#xff0c;定义三个成员变量&#xff0c;分别表示AT指令等待发送&#xff0c;AT指令…

unity游戏开发——(细)深入解析 Unity 地形系统:从基础到高级应用

Unity游戏开发 “好读书&#xff0c;不求甚解&#xff1b;每有会意&#xff0c;便欣然忘食。” 本文目录&#xff1a; Unity游戏开发 Unity游戏开发前言深入解析 Unity 地形系统&#xff1a;从基础到高级应用一、初识 Unity 地形系统1. 地形尺寸与分辨率 二、地形编辑工具详解1…

下拉菜单 匹配搜索

操作版本&#xff1a;Excel 2010 下拉菜单 涉及到的函数&#xff1a; INDIRECT函数&#xff1a;返回由文本字符串指定的引用 原文链接 一级下拉菜单 方法一&#xff1a;手动输入 选中要制作下拉菜单的单元格区域&#xff0c;单击【数据】-【数据有效性】-【序列】&#…

15.CentOS7升级内核

升级内核 1.配置镜像源 vim /etc/yum.repos.d/elrepo.repo[elrepo] nameelrepo baseurlhttps://mirrors.aliyun.com/elrepo/archive/kernel/el7/x86_64 gpgcheck0 enabled12.备份 cd /etc/yum.repos.d/ mv local.repo repo.bak/ 3.清缓存 yum clean all 4.升级内核 yum ins…

背部筋膜炎最好的恢复办法

背部筋膜炎是由于寒冷、精神紧张、潮湿或慢性劳损等因素造成的背部肌筋膜和肌组织发生水肿、纤维变性和渗出&#xff0c;其主要症状包括&#xff1a; 1、疼痛&#xff1a;患者通常会出现背部疼痛&#xff0c;这种疼痛在着凉或劳累时可能会加重。晨起时疼痛可能尤为明显&#x…

将两对象(重复属性不替换)合并成一个对象

将这两个对象合并成一个对象 const obj1 {"configType": "all","config": {"a":1} };const obj2 {"target_cluster": "dev-0821","type": "import","config": {"connector…

攻防世界-web题型-4星难度汇总-个人wp

Confusion1 进入页面查看源代码&#xff0c;发现有两个提示 访问第一个源码里面有个 /opt/flag_1de36dff62a3a54ecfbc6e1fd2ef0ad1.txt /opt/salt_b420e8cfb8862548e68459ae1d37a1d5.txt 不过我发现好像是只要访问404页面都有这两个。。。 另外这两个admin和login页面都没用…

如何把照片转换成PDF格式?分享3种好用的PDF转换方法

在数字化的时代中&#xff0c;各种格式的文件已经是我们平时办公中不可或缺的一部分&#xff0c;其中尤其是以图片、PDF这两种文件使用的最多&#xff0c;图片能够更加直观的表现内容&#xff0c;而PDF文档因其稳定性、兼容性等特性&#xff0c;也在办公中有独特的优势&#xf…