Hi Experts:
I using RTOS SDK 07.03 and evm board.
We use BCM89834 to connect to port 1 of CPSW9G, and the phy has been linked, but I ping the directly connected PC through the eth1 network card, which is set on the same network segment, and the pings cannot be communicated with each other. I searched the forum and found that I can view the relevant packets through the script, the script is as follows
#!/bin/bash # change the value of port variable for the MAC port which you are facing issue on port=0 oport=$(( $port + $port )) offset="0x$oport""00" var=$(( 16#$(devmem2 0x0c03A034 | tail -n1 -c9) )) echo "PORT0 good Tx frames = $var" var=$(( 16#$(devmem2 $( printf "0x%X\n" $(( 0x0c03a034 + $offset )) ) | tail -n1 -c9) )) echo "PORT$port good Tx frames = $var" var=$(( 16#$(devmem2 $( printf "0x%X\n" $(( 0x0c03a000 + $offset )) ) | tail -n1 -c9) )) echo "PORT$port good Rx frames = $var" var=$(( 16#$(devmem2 0x0c03A000 | tail -n1 -c9) )) echo "PORT0 good Rx frames = $var" var=$(( 16#$(devmem2 0x0c03A028 | tail -n1 -c9) )) echo "PORT0 ALE drop frames = $var" var=$(( 16#$(devmem2 $( printf "0x%X\n" $(( 0x0c03a028 + $offset )) ) | tail -n1 -c9) )) echo "PORT$port ALE drop frames = $var"
Execute the script on the board as follows,ifconfig shows the same result。And I also executed the check CPSW9G state script provided by ti to get the SGMII link status
What is the problem in this situation, and how can I further debug it?