Software Environment: R35.6.0 Hardware Environment: Jetson AGX Orin connected to YT8521 PHY via RGMII. The PC and Orin are on the same network segment, directly connected via an Ethernet cable.
Issue:
When pinging the PC from Orin, Wireshark on the PC can capture the ARP request packets sent by Orin. However, the ARP reply packets from the PC are not received by Orin. Using an oscilloscope to monitor the RGMII Rx signal shows that data is being transmitted.
Checked the statistics of eth0 using ethtool -S eth0, and found that the counters related to reception (rx) did not increase.
After executing ifconfig eth0 up/down, checked the interrupt count using cat /proc/interrupts | grep eth0, and observed that the interrupt count increased. When the Ethernet status changes, the corresponding Ethernet interrupt count will increase.
Consistent with the phenomenon described in the following post:
The image above shows the result of my command cat /proc/interrupts | grep eth , which is printed by me. Compared to the results printed by other developers, the output is missing the part highlighted in red as shown below.
I understand. I modified the following two files, and the detailed modifications can be found in the previous reply. tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi
Is the register address and value read for soc_gpio17_pg4 as ENET_INT_N correct? As shown in the figure below, according to the TRM manual, only the input function is enabled?
Viewing the flashing log, the file used is tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi . Previously, the wrong file tegra234-mb1-bct-pinmux-p3701-0000.dtsi was modified, which resulted in an error as shown in the image below.
sudo cat /sys/kernel/debug/gpio | grep PG
gpio-347 (PGG.00 )
gpio-383 (PG.00 |force-recovery ) in hi IRQ ACTIVE LOW
gpio-384 (PG.01 |temp-alert ) in hi IRQ
gpio-385 (PG.02 |sleep ) in hi IRQ ACTIVE LOW
gpio-386 (PG.03 ) gpio-387 (PG.04 )
gpio-388 (PG.05 |phy_reset ) out hi
gpio-389 (PG.06 )
gpio-390 (PG.07 |cd ) in hi IRQ
Your error log does not have this thing as screenshot mentioned.
Which log is correct? That is why you should stop sharing screenshot, because they are lacking of context and not clear at all.
Also, are you sure the device tree running on the board matches to what you flashed? I don’t care about how the original file looks like now. Check the dts file converted from dtb file and also check /proc/device-tree on your device.
The previous modification was made to the file tegra234-mb1-bct-pinmux-p3701-0000.dtsi, which led to the error shown in the screenshot. After synchronizing the changes to the file tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi, the error disappeared, indicating that the actual file in use is tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi.
Below are the dts files and the devicetree compressed package: sudo dtc -I dtb -O dts -o devicetree_gen.dts /boot/dtb/kernel_tegra234-p3701-005-p3737-000.dtb devicetree_gen.dts.txt (552.1 KB)
sudo tar -cvf devicetree.tar /sys/firmware/devicetree devicetree_2.zip (397.6 KB)