使用Nano自带的RTL8111网络加载失败问题

NVIDIA工程师,您好:
我在我们的customizable板卡上测试遇到一个问题:

当我在PCIE C9上接了一个5G网络设备后,我的Nano核心板上自带的那个RTL8111网卡无法生成网络节点。并在log最后报错:
rtl8111_errLog.txt (102.9 KB)

当我去掉PCIE C9上的设备后,RTL8111工作正常,网络通信也正常。

设备树配置:
pcie@141e0000 {
/*
* C7 x1
*/
status = “okay”;
phys = <&p2u_gbe_0>;
phy-names = “p2u-0”;
};

pcie@140c0000 {
	/*
	 * C9 x1
	 */
	status = "okay";
	phys = <&p2u_gbe_1>;
	phy-names = "p2u-0";
};

pcie@140a0000 {/* C8 - Ethernet */
	status = "okay";

	nvidia,pex-wake-gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(L, 2) GPIO_ACTIVE_LOW>;
};

ODMDATA配置:
ODMDATA="gbe-uphy-config-9,hsstp-lane-map-3,hsio-uphy-config-0";

lspci查看rtl8111 pci识别正常:
nvidia@nvidia:~$ lspci
0004:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1)
0004:01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809
0008:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1)
0008:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
0009:00:00.0 PCI bridge: NVIDIA Corporation Device 229c (rev a1)
0009:01:00.0 Wireless controller: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)

ifconfig -a:
nvidia@nvidia:~$ ifconfig -a
dummy0: flags=130<BROADCAST,NOARP> mtu 1500
ether 26:47:3d:73:e5:82 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

l4tbr0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether f6:6c:94:aa:5b:bd txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2739 bytes 171930 (171.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2739 bytes 171930 (171.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pcie0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::f561:fdfe:2d64:ecf8 prefixlen 64 scopeid 0x20
ether 6e:34:13:ee:a0:21 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 89 bytes 15320 (15.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pcie1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::3e2f:8a5b:3a7b:c9f7 prefixlen 64 scopeid 0x20
ether 42:e7:5f:04:be:0e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 89 bytes 15020 (15.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pcie2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::bcc9:e309:4340:8770 prefixlen 64 scopeid 0x20
ether de:35:6c:f0:e7:89 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 91 bytes 15420 (15.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pcie3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::9771:f938:c2bf:3a32 prefixlen 64 scopeid 0x20
ether 32:18:5f:35:2d:69 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 92 bytes 15570 (15.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

rndis0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f6:6c:94:aa:5b:bd txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

sipa_dummy0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::3126:f0f0:89a3:54e7 prefixlen 64 scopeid 0x20
ether 16:26:82:28:97:c3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 91 bytes 15460 (15.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f6:6c:94:aa:5b:bf txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

nvidia@nvidia:~$

這不是device tree的問題. 是你kernel image跟kernel modules版本沒有匹配

1 Like

好的,谢谢你的回复。
我只替换了Image,没有替换/lib/modules/, 问题解决了,再次感谢。

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.