My reference is as follows: https://forums.developer.nvidia.com/t/how-to-replace-net-phy-of-xavier/77574
Then I want to ask the path of the device tree file corresponding to jetson-agx-xavier 32g, as well as the file name, whether it is consistent with the file path I modified, I am afraid that the modification will not take effect.
Here is the path to the file I modified:
./hardware/nvidia/platform/t19x/common/kernel-dts/t19x-common-platforms/tegra194-platforms-eqos.dtsi.
Contents modified by the tegra194-platforms-eqos.dtsi file:
ethernet@2490000 {
interrupts = <0 194 0x4>, /* common /
<0 186 0x4>, / tx0 /
<0 190 0x4>; / rx0 /
/ rxq_enable_ctrl =
* 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>;
//add
nvidia,phy-reset-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 5) 1>;
phy-mode = “rgmii-id”;
phy-handle = <&phy>;
//add
fixed-link {
speed = <1000>;
full-duplex;
};
//nvidia,max-platform-mtu = <16383>;mdio { compatible = "nvidia,eqos-mdio"; #address-cells = <1>; #size-cells = <0>; phy: phy@0 { //add compatible = "microchip,ksz9896"; reg = <0>; interrupt-parent = <&tegra_main_gpio>; interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>; //add microchip,copper-mode; /* Setup LED[2] as interrupt pin (active low) */ //add microchip,reg-init = <0x03 0x12 0x7fff 0x880>; }; };
};
How do I enable fixed-link? For platforms that support device trees, simply add a fixed-link child node to the Mac device node.
I modified whether the device tree file corresponds to jetson-agx-xavier’s platform by modifying this tegra194-platforms-eqos.dtsi
The file is still tegra194-p2888-0001-p2822-0000.dts
File.
Use the KSZ9896 PHY to replace the Jetson-AGX-Xavier PHY driver via the MDIO interface
The network ping on jetson is not working, can the senior take a look for me? Thank you.