news 2026/6/10 17:44:49

20251213给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】系统时适配ETH1实测网速936 Mbits/sec

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
20251213给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】系统时适配ETH1实测网速936 Mbits/sec

cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/pinmux-pins
cat /sys/kernel/debug/gpio


20251213给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】系统时适配ETH1实测网速936 Mbits/sec
2025/12/13 9:24

缘起:飞凌OK3588-C开发板跑Rockchip原厂的Buildroot【linux-6.1】系统时,适配ETH1接口的网卡。


当你把荣品RD-RK3588开发板重新适配一把,就相当于从头做了一个项目:【荣品RD-RK3588开发板】。
当然,开发板的功能都是好的,你免除了调试的过程,也就没有解决相关硬件出错的经验/机会了!


1、
Y:\new_disk_4t\wyb\RD-RK3588\rk3588_linux6.1_release_v1.2.0_20241220\kernel-6.1\arch\arm64\boot\dts\rockchip\rk3588-evb7-v11.dtsi

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

snps,reset-gpio = <&gpio3 RK_PB7 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 = <0x43>;
/* rx_delay = <0x3f>; */

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

修改为:

&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";
};


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

修改为:

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


cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/pinmux-pins
cat /sys/kernel/debug/gpio

2、刷机开发板OK3588-C后,没有eth0/eth1,根据以前的经验比对GPIO口的复用!

错误的GPIO复用:
pin 95 (gpio2-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (gpio3-0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 97 (gpio3-1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 98 (gpio3-2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 99 (gpio3-3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 100 (gpio3-4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 101 (gpio3-5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 102 (gpio3-6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (gpio3-7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 104 (gpio3-8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 105 (gpio3-9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 106 (gpio3-10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 107 (gpio3-11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 108 (gpio3-12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 109 (gpio3-13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 110 (gpio3-14): 2-0022 (GPIO UNCLAIMED) function usb-typec group usbc0-int
pin 111 (gpio3-15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (gpio3-16): (MUX UNCLAIMED) gpio3:112
pin 113 (gpio3-17): (MUX UNCLAIMED) gpio3:113
pin 114 (gpio3-18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 115 (gpio3-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)

pin 116 (gpio3-20): fdea0000.hdmi (GPIO UNCLAIMED) function hdmi group hdmim2-tx1-cec

飞凌的linux/Buildroot R1的GPIO口的复用
pin 95 (gpio2-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (gpio3-0): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 97 (gpio3-1): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 98 (gpio3-2): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 99 (gpio3-3): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 100 (gpio3-4): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-clk
pin 101 (gpio3-5): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-clk
pin 102 (gpio3-6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (gpio3-7): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 104 (gpio3-8): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 105 (gpio3-9): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 106 (gpio3-10): dsi0-en gpio3:106 function lcd group mipi0-enable-gpio
pin 107 (gpio3-11): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 108 (gpio3-12): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 109 (gpio3-13): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 110 (gpio3-14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (gpio3-15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (gpio3-16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 113 (gpio3-17): (MUX UNCLAIMED) gpio3:113
pin 114 (gpio3-18): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-miim
pin 115 (gpio3-19): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-miim

pin 116 (gpio3-20): fea70000.can (GPIO UNCLAIMED) function can2 group can2m0-pins


GMAC1的RESET:
pin 44 (gpio1-12): (MUX UNCLAIMED) (GPIO UNCLAIMED)


Y:\new_disk_4t\wyb\RD-RK3588\rk3588_linux6.1_release_v1.2.0_20241220\kernel-6.1\arch\arm64\boot\dts\rockchip\.rk3588-evb7-v11-linux.dtb.dts.tmp

搜索:【1 12 】
“1 12 ”

&gmac1 {

phy-mode = "rgmii-rxid";
clock_in_out = "output";

snps,reset-gpio = <&gpio1 12 1>;
snps,reset-active-low;

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>;


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


&pcie2x1l0 {
reset-gpios = <&gpio1 12 0>;
status = "okay";
};


3、拿掉pcie2x1l0

&i2s7_8ch {
status = "okay";
};

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

&mipi_dcphy0 {
status = "okay";
};

&mipi_dcphy1 {
status = "disabled";
};

// 2025/12/13 10:00 wenyuanbo add close for GMAC1 RESET
//&pcie2x1l0 {
// reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
// status = "okay";
//};

&pcie30phy {
rockchip,pcie30-phymode = <PHY_MODE_PCIE_AGGREGATION>;
status = "okay";
};


4、使用iperf2进行网速测试:


[BEGIN] 2025/12/13 10:11:26
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ iperf -c 192.168.3.227 -i 1 -t 1800
------------------------------------------------------------
Client connecting to 192.168.3.227, TCP port 5001
TCP window size: 1.46 MByte (default)
------------------------------------------------------------
[ 3] local 192.168.3.116 port 49350 connected with 192.168.3.227 port 5001
\[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 113 MBytes 951 Mbits/sec

[ 3] 1.0- 2.0 sec 112 MBytes 938 Mbits/sec
[ 3] 2.0- 3.0 sec 112 MBytes 937 Mbits/sec
[ 3] 3.0- 4.0 sec 112 MBytes 935 Mbits/sec
[ 3] 4.0- 5.0 sec 111 MBytes 933 Mbits/sec
[ 3] 5.0- 6.0 sec 112 MBytes 938 Mbits/sec

[ 3] 1790.0-1791.0 sec 112 MBytes 942 Mbits/sec
[ 3] 1791.0-1792.0 sec 111 MBytes 934 Mbits/sec
[ 3] 1792.0-1793.0 sec 112 MBytes 935 Mbits/sec
[ 3] 1793.0-1794.0 sec 112 MBytes 938 Mbits/sec
[ 3] 1794.0-1795.0 sec 112 MBytes 941 Mbits/sec
[ 3] 1795.0-1796.0 sec 112 MBytes 940 Mbits/sec
[ 3] 1796.0-1797.0 sec 111 MBytes 928 Mbits/sec
[ 3] 1797.0-1798.0 sec 112 MBytes 940 Mbits/sec
[ 3] 1798.0-1799.0 sec 111 MBytes 934 Mbits/sec
[ 3] 1799.0-1800.0 sec 112 MBytes 944 Mbits/sec
[ 3] 0.0-1800.0 sec 196 GBytes 936 Mbits/sec

rootroot@rootroot-X99-Turbo:~$


版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/10 15:21:04

终极指南:5分钟快速搭建AI文本生成Web界面

终极指南&#xff1a;5分钟快速搭建AI文本生成Web界面 【免费下载链接】one-click-installers Simplified installers for oobabooga/text-generation-webui. 项目地址: https://gitcode.com/gh_mirrors/on/one-click-installers 想要体验前沿的AI文本生成技术&#xff…

作者头像 李华
网站建设 2026/6/9 21:18:39

Expo通知功能终极指南:从零到精通完整教程

Expo通知功能终极指南&#xff1a;从零到精通完整教程 【免费下载链接】expo An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web. 项目地址: https://gitcode.com/GitHub_Trending/ex/expo 还在为移动应用…

作者头像 李华
网站建设 2026/6/10 15:24:43

在SAP中,一个公司代码(Company Code)与一套“账”或“账套”的概念是强绑定的。因此,一个公司代码本身无法直接使用多个独立的总账账套

在SAP中&#xff0c;一个公司代码&#xff08;Company Code&#xff09;与一套“账”或“账套”的概念是强绑定的。因此&#xff0c;一个公司代码本身无法直接使用多个独立的总账账套。不过&#xff0c;企业有多种业务和财务报告需求&#xff0c;SAP通常通过以下几种核心组织结…

作者头像 李华
网站建设 2026/6/10 15:23:55

PrivateGPT实战:解锁企业级本地AI文档处理新纪元

PrivateGPT实战&#xff1a;解锁企业级本地AI文档处理新纪元 【免费下载链接】private-gpt 项目地址: https://gitcode.com/gh_mirrors/pr/private-gpt 你是否曾因企业敏感数据无法安全使用AI而苦恼&#xff1f;&#x1f914; 当云端AI服务成为主流&#xff0c;你的机密…

作者头像 李华
网站建设 2026/6/10 13:48:52

Guardrails终极指南:3步搭建企业级AI防护系统

Guardrails终极指南&#xff1a;3步搭建企业级AI防护系统 【免费下载链接】guardrails 项目地址: https://gitcode.com/gh_mirrors/gua/guardrails 在AI技术快速发展的今天&#xff0c;确保模型输出安全可靠已成为企业级应用的核心需求。Guardrails作为专业的AI防护框架…

作者头像 李华
网站建设 2026/6/10 0:57:14

低配电脑无法运行AI?这5个优化方案让老旧设备焕发新生

还在为电脑配置不足无法体验AI技术而烦恼&#xff1f;Paper2GUI通过创新的内存计算技术和模型优化&#xff0c;让十年前的老旧电脑也能流畅运行40AI功能。本文将为你揭秘低配电脑AI运行的技术突破&#xff0c;并提供实用的部署指南。 【免费下载链接】paper2gui Convert AI pap…

作者头像 李华