Core-1126-JD4核心板eth0 RX packet:0,无接收
使用Core-1126-JD4核心板配合自己画的底板,使用RTL8211F芯片,RV1126可以实现网络的自动识别。但是不能接收,使用ifconfig查看,RX packet:0一直为0。求解。C:\Users\Administrator\Desktop\1.png原理图:
C:\Users\Administrator\Desktop\2.png
[ 5.487692] Generic PHY stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[ 5.488389] rk_gmac-dwmac ffc40000.ethernet: rk_get_eth_addr: mac address: c6:53:1b:b3:40:b5
[ 5.488426] rk_gmac-dwmac ffc40000.ethernet: device MAC address c6:53:1b:b3:40:b5
[ 5.498453] dwmac4: Master AXI performs any burst length
[ 5.498489] rk_gmac-dwmac ffc40000.ethernet eth0: No Safety Features support found
[ 5.498518] rk_gmac-dwmac ffc40000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 5.499736] rk_gmac-dwmac ffc40000.ethernet eth0: registered PTP clock
[ 6.504589] rk_gmac-dwmac ffc40000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
能进行回环测试吗? 截图很模糊,请提供一下PDF原理图。
799959745 发表于 2021-9-8 15:31
能进行回环测试吗?
# ifconfig
eth0 Link encap:EthernetHWaddr C6:53:1B:B3:40:B5
inet addr:169.254.106.15Bcast:169.254.255.255Mask:255.255.0.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)TX bytes:9305 (9.0 KiB)
Interrupt:45
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:65536Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)
# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.166 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.081 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.083 ms
64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.060 ms
^Z+Stopped ping 127.0.0.1
# ping 169.254.106.15
PING 169.254.106.15 (169.254.106.15): 56 data bytes
64 bytes from 169.254.106.15: seq=0 ttl=64 time=0.145 ms
64 bytes from 169.254.106.15: seq=1 ttl=64 time=0.099 ms
64 bytes from 169.254.106.15: seq=2 ttl=64 time=0.071 ms
64 bytes from 169.254.106.15: seq=3 ttl=64 time=0.057 ms
^Z+Stopped ping 169.254.106.15
# ifconfig
eth0 Link encap:EthernetHWaddr C6:53:1B:B3:40:B5
inet addr:169.254.106.15Bcast:169.254.255.255Mask:255.255.0.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)TX bytes:12845 (12.5 KiB)
Interrupt:45
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:65536Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1344 (1.3 KiB)TX bytes:1344 (1.3 KiB)
原理图没什么问题,很可能是PCB走线问题。请问PCB上这些要求做了没有?
799959745 发表于 2021-9-9 10:48
原理图没什么问题,很可能是PCB走线问题。请问PCB上这些要求做了没有?
我询问一下硬件工程师,确认一下。
再问一个问题: EPHY_PMEB 这个管脚我在dts中没有找到相关的配置,是没有用吗?
谢谢。
dts 没有就不需要陪,请确认一下你自己使用的通道是否正确,通道分 m0/m1 ,还有回环测试 TX/RX 窗口延时。确认自己外部时钟还是内部时钟,这些在 sdk/doc/kernel/gmac 都有描述