Use the KSZ9896 PHY to replace the Jetson-AGX-Xavier PHY

@WayneWWW,你好,最后这个c.dts是在板子上反编译出来的,修改的地方主要是:

#include <dt-bindings/gpio/tegra194-gpio.h>

/ {
        ethernet@2490000 {
		interrupts =	<0 194 0x4>,    /* common */
				<0 186 0x4>,    /* tx0 */
				<0 190 0x4>;    /* rx0 */
		/* rxq_enable_ctrl = <rx0 rx1 rx2 rx3>
		 * 0x0 = Not enabled, 0x1 = Enabled for AV
		 * 0x2 = Enabled for Legacy, 0x3 = Reserved
		 */
		nvidia,rxq_enable_ctrl = <2>;
		nvidia,num-dma-chans = <1>;
		nvidia,dma-chans = <0>;
		nvidia,num-mtl-queues = <1>;
		nvidia,mtl-queues = <0>;
		nvidia,rx-queue-prio = <0x2>;
		nvidia,tx-queue-prio = <0x0>;
		/* 0=enable, 1=disable */
		nvidia,pause_frames = <0>;
		/* no reset GPIO */
		//nvidia,phy-reset-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 5) 0>;
		phy-mode = "rgmii-id";
		nvidia,max-platform-mtu = <16383>;
		nvidia,if-name = "ethsw0";
		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	thermal-zones {
		CPU-therm {
			trips {
				MAKE_EQOS_TRIP(m40, -40000, 5000);
				MAKE_EQOS_TRIP(m5, -5000, 5000);
				MAKE_EQOS_TRIP(p30, 30000, 5000);
				MAKE_EQOS_TRIP(p65, 65000, 5000);
				MAKE_EQOS_TRIP(p100, 100000, 5000);
			};

			cooling-maps {
				MAP_EQOS(m40, 1);
				MAP_EQOS(m5, 2);
				MAP_EQOS(p30, 3);
				MAP_EQOS(p65, 4);
				MAP_EQOS(p100, 5);
			};
		};
	};
};

去掉了mdio节点和注释了phy的部分

ok 麻煩回答跟測試剩下的項目


ok, please reply the rest questions and test.

@WayneWWW,好的,谢谢你的指导。现在遇到的主要问题是网络ping不通,通过网线连接笔记本和板子,显示网络不可达,还有就是没有自动分配IP,只能手动分配IP,可能是RGMII 没有设置delay?还是防火墙?我先测试一下剩下的项目。

this is ethtool -S eth0:
ethtool_test.txt (8.3 KB)

請問在手動分配IP的情況下能ping到switch上其他裝置嗎?


Are you able to ping other devices after you assign the IP manually?

这是jetson的test:
tcpdump_test.txt (2.4 KB)
ifconfig.txt (2.3 KB)
这是笔记本的test:
ifconfig_host.txt (1.8 KB)
tcpdump_host_test.txt (83.9 KB)

ok ,我手动分配ip

手动分配ip也不能ping到其他设备

請問你的手動分配ip是指所有接在switch上的device都進行手動分配嗎?

没有,我就在switch分配了eth0的ip,一共是四个网口,但是我只用了一个网口连接到我的笔记本

請問現在有幾個裝置接在同一個switch上面?

notebook -swtich - jetson AGX 這樣嗎?

ethtool_test.txt (8.4 KB)
ifconfig.txt (1.8 KB)
tcpdump_test.txt (11.2 KB)
这是分配ip后,jetson的test

notebook -swtich - jetson AGX 对的,可以看到原理图
ACU.pdf (414.8 KB)
暂时用的是笔记本,后面主要接激光雷达

那請問你notebook那邊的ip有手動配置嗎? 麻煩兩端(notebook/jetson)都用手動配置先

有的
ifconfig_host.txt (1.8 KB)
ifconfig.txt (1.8 KB)

我都设置为192.168.2. 的网段

請問一下可以在現在這個狀況下 (兩邊都手動設置ip) 再進行一次ping + tcpdump測試+ ethtool結果嗎
不太確定你一開始上傳的那份的測試情境.

一开始的是没有分配ip,ping + tcpdump測試+ ethtool的結果,后面都是在分配ip之后的test

我也可以再测试一次

稍等我一下

1 Like