工具/软件:
大家好、我已经阅读了基本的以太网调试指南、RX 无法获取数据包。
ifconfig 显示 0 个 Rx 数据包、但 ethtool 显示了 Rx 数据包(0 个 CRC 错误)
“相关问题“几乎是相同的、没有得到解决。
davinci_mdio 8000f00.mdio:DaVinci MDIO 修订版 17.7、总线频率 1000000
davinci_mdio 8000f00.mdio:phy[0]:器件 8000f00.mdio:00、驱动程序 Micrel KSZ8081 或 KSZ8091
am65-cpsw-Nuss 8000000.Ethernet eth0:PHY [8000f00.MDIO:00]驱动程序[Micrel KSZ8081 或 KSZ8091](IRQ=POLL)
ethtool -S eth0
NIC 统计信息:
P0_Rx_GOOD_FRAMES:39
P0_Rx_BROADCAST_FRAMES:10.
P0_Rx_MULTICAST_FRAMES:29
P0_Rx_CRC_ERRORS:0
P0_Rx_NEUM_FRAMES:0
P0_Rx_undersize_frames:0
P0_R0_ALE_DROP:0
P0_R0_ALE_ULALORY_DROP:0
P0_Rx_八 位位组:6551
P0_RTX_GOOD_FRAMES:0
P0_RTX_broadcast_frames:0
P0_RTX_MULTICAST_FRAMES:0
P0_TX_八 位位组:0
P0_RTX_64B_FRAMES:8.
P0_TX_65_TO_127B_FRAMES:12
P0_R128_TO_255B_FRAMES:9.
P0_R256_TO_511B_FRAMES:10.
P0_TX_512_TO_1023B_FRAMES:0
P0_RTX_1024B_FRAMES:0
P0_NET_COBOTS:6551
P0_Rx_Bottom_fifo_drop:0
P0_Rx_PORT_MASK_DROP:0
P0_Rx_top_fifo_drop:0
P0_Rale_Rate_Limit_drop:0
P0_R0_ALE_VID_ENTRY_DROP:0
P0_ALE_DA_eq_sa_drop:0
P0_ALE_BLOCK_DROP:0
P0_ALE_SECURE_DROP:0
P0_ALE_AUTH_DROP:0
P0_ALE_UNKNOWN_UCAST:0
P0_Rale_unknown_ucast_bytes:0
P0_ALE_UNKNOWN_mcast:0
P0_Rale_unknown_mcast_bytes:0
P0_ALE_UNKNOWN_bcast:0
P0_Rale_unknown_bcast_bytes:0
P0_ALE_POL_MATCH:0
P0_ALE_POL_MATCH_RED:0
P0_Rale_pol_match_黄色:0
P0_ALE_mcast_sa_drop:0
P0_ALE_DUAL_VLAN_DROP:0
P0_Rale_len_err_drop:0
P0_ALE_IP_NEXT_HDR_Drop:0
P0_Rale_IPV4_FRAG_DROP:0
P0_RTX_mem_protect_err:0
P0_RTX_pri0:0
P0_RTX_pri1:0
P0_RTX_pri2:0
P0_RTX_pri3:0
P0_RTX_pri4:0
P0_RTX_pri5:0
P0_RTX_pri6:0
P0_RTX_pri7:0
P0_RTX_pri0_bcnt:0
P0_RTX_pri1_bcnt:0
P0_RTX_pri2_bcnt:0
P0_RTX_pri3_bcnt:0
P0_RTX_pri4_bcnt:0
P0_RTX_pri5_bcnt:0
P0_RTX_pri6_bcnt:0
P0_RTX_pri7_bcnt:0
P0_RTX_pri0_DROP:0
P0_RTX_pri1_DROP:0
P0_RTX_pri2_DROP:0
P0_RTX_pri3_DROP:0
P0_RTX_pri4_DROP:0
P0_RTX_pri5_DROP:0
P0_RTX_pri6_DROP:0
P0_RTX_pri7_drop:0
P0_RTX_pri0_DROP_bcnt:0
P0_RTX_pri1_DROP_bcnt:0
P0_RTX_pri2_DROP_bcnt:0
P0_RTX_pri3_DROP_bcnt:0
P0_RTX_pri4_DROP_bcnt:0
P0_RTX_pri5_DROP_bcnt:0
P0_RTX_pri6_DROP_bcnt:0
P0_RTX_pri7_drop_bcnt:0
RX_GOOD_FRAMES:0
RX_BROADCAST_FRAMES:0
RX_MULTICAST_FRAMES:0
RX_PAUSE_FRAMES:0
RX_CRC_ERRORS:0
RX_ALIGN_CODE_ERRORS:0
RX_OMNIGLE_FRAMES:0
RX_Jabber_frames:0
rx_undersize_frames:0
rx_partitions:0
ALE_DROP:0
ALE_OVERLIFN_DROP:0
RX_八 位位组:0
tx_good_frames:39
tx_broadcast_frames:10.
TX_MULTICAST_FRAMES:29
tx_pause_frames:0
tx_defered_frames:0
tx_conflict_frames:0
tx_single_coll_frames:0
tx_mult_coll_frames:0
tx_overtravel_conflicts:0
tx_lay_conflicts:0
RX_IPG_ERROR:0
tx_carrier_sense_errors:0
TX_COBOTS:6551
TX_64B_FRAMES:8.
TX_65_TO_127B_FRAMES:12
TX_128_TO_255B_FRAMES:9.
TX_256_TO_511B_FRAMES:10.
TX_512_TO_1023B_FRAMES:0
TX_1024B_FRAMES:0
NET_COBOTS:6551
rx_bottom_fifo_drop:0
RX_PORT_MASK_DROP:0
rx_top_fifo_drop:0
ALE_RATE_LIMIT_DROP:0
ALE_VID_ENGLISION_DROP:0
ale_da_eq_sa_drop:0
ALE_BLOCK_DROP:0
ALE_SECURE_DROP:0
ALE_AUTH_DROP:0
ALE_UNKNOWN_UCAST: 0
ALE_UNKNOWN_ucast_bytes:0
ALE_UNKNOWN_mcast:0
ALE_UNKNOWN_mcast_bytes:0
ALE_UNKNOWN_bcast:0
ALE_UNKNOWN_bcast_bytes:0
ALE_POL_MATCH:0
ALE_pol_match_red:0
ALE_pol_match_yellow:0
ale_mcast_sa_drop:0
ALE_DUAL_VLAN_DROP:0
ale_len_err_drop:0
ALE_IP_NEXT_HDR_Drop:0
ALE_IPV4_FRAG_DROP:0
iet_rx_assembly_err:0
IET_rx_assembly_ok:0
IET_rx_SMD_err:0
iET_rx_frag:0
IET_TX_HOLD:0
iET_TX_frag:0
tx_mem_protect_err:0
tx_pri0:39
tx_pri1:0
tx_pri2:0
tx_pri3:0
tx_pri4:0
tx_pri5:0
tx_pri6:0
tx_pri7:0
tx_pri0_bcnt:6551
tx_pri1_bcnt:0
tx_pri2_bcnt:0
tx_pri3_bcnt:0
tx_pri4_bcnt:0
tx_pri5_bcnt:0
tx_pri6_bcnt:0
tx_pri7_bcnt:0
tx_pri0_drop:0
tx_pri1_drop:0
tx_pri2_drop:0
tx_pri3_drop:0
tx_pri4_drop:0
tx_pri5_drop:0
tx_pri6_drop:0
tx_pri7_drop:0
tx_pri0_drop_bcnt:0
tx_pri1_drop_bcnt:0
tx_pri2_drop_bcnt:0
tx_pri3_drop_bcnt:0
tx_pri4_drop_bcnt:0
tx_pri5_drop_bcnt:0
tx_pri6_drop_bcnt:0
tx_pri7_drop_bcnt:0
ifconfig
eth0:标志=4163 MTU 1500
iNet 192.168.10.2 网络掩码 255.255.255.0 广播 192.168.10.255
inet6 fe80:::3495:db76:42 ed:e4bc prefixlen 64 scoeid 0x20
以太网 00:22:33:44:55:66 txqueuelen 1000(以太网)
RX 数据包 0 字节 0 (0.0 B)
RX 错误 0 丢弃 0 溢出 0 帧 0
TX 数据包 37 字节 5956 (5.8KiB)
TX 错误 0 丢弃 0 溢出 0 载波 0 冲突 0
journalctl | grep eth0
systemd-networkd[640]:eth0:根据可能不可预测的接口名称找到匹配的网络/etc/systemd/network/09-eth.network。
systemd-networkd[640]:eth0:使用/etc/systemd/network/09-eth.network.配置
systemd-networkd[640]:eth0:根据可能不可预测的接口名称找到匹配的网络/etc/systemd/network/09-eth.network。
内核:am65-cpsw-Nuss 8000000.Ethernet eth0:PHY [8000f00.MDIO:00]驱动程序[Micrel KSZ8081 或 KSZ8091](IRQ=POLL)
内核:am65-cpsw-Nuss 8000000.Ethernet eth0:配置 phy/RMII 链路模式
systemd-networkd[640]:eth0:链路接通
网络管理器[639]: [170909793.7933]管理器:(eth0):新以太网设备 (/org/freedesktop/NetworkManager/Devices/2)
网络管理器[639]: [1709097993.7950]设备 (eth0):状态更改:未管理->不可用(原因“管理“、sys-iface-state:“外部“)
内核:am65-cpsw-Nuss 8000000.Ethernet eth0:链路接通 — 100Mbps/full — 流控制 Rx/TX
systemd-networkd[640]:eth0:获得的载体
systemd-networkd[640]:eth0:根据可能不可预测的接口名称找到匹配的网络/etc/systemd/network/09-eth.network。
网络管理器[639]: [1709097997.7505]器件 (eth0):载波:已连接链路
网络管理器[639]: [170909797.7558]器件 (eth0):状态更改:不可用->已断开连接(原因“载波已更改“、sys-iface-state:“已管理“)
网络管理器[639]: [170909797.7717]设备 (eth0):激活:启动连接“有线连接 1“(f8480399-f7c6-39b9-8f60-468fbfe01893)
网络管理器[639]: [170909797.7722]器件 (eth0):状态更改:断开连接->准备(原因“无“、sys-iface-state:“已管理“)
网络管理器[639]: [170909797.7741]器件 (eth0):状态更改:准备->配置(原因“无“、sys-iface-state:“管理“)
网络管理器[639]: [170909797.7812]器件 (eth0):状态更改:config -> ip-config(原因“无“、sys-iface-state:“管理“)
Avahi-daemon[624]:在地址为 fe80::3495:db76:42ed:e4bc 的接口 eth0.ipv6 上加入 mDNS 多播组。
avahi-daemon[624]:用于 mDNS 的新相关接口 eth0.ipv6。
Avahi-daemon[624]:在 eth0 上注册 fe80:::3495:db76:42ed:e4bc 的新地址记录。*。
avahi-daemon[624]:在地址为 192.168.10.2 的接口 eth0.IPv4 上加入 mDNS 多播组。
网络管理器[639]: [17090979997.9627]设备 (eth0):状态更改:ip-config -> ip-check(原因“无“、sys-iface-state:“已管理“)
Avahi-daemon[624]:用于 mDNS 的新相关接口 eth0.IPv4。
Avahi-daemon[624]:在 eth0.IPv4 上注册 192.168.10.2 的新地址记录。
网络管理器[639]: [17090979997.9700]器件 (eth0):状态更改:ip-check ->次要(原因“无“、sys-iface-state:“管理“)
网络管理器[639]: [17090979997.9709]器件 (eth0):状态更改:辅助->已激活(原因“无“、sys-iface-state:“已管理“)
网络管理器[639]: [17090979997.9742] device (eth0):激活:成功、设备已激活。
systemd-networkd[640]:eth0:获得 IPv6LL
我使用的是直接连接到 PC 的交叉电缆、PC 配置为 192.168.10.1 和 255.255.255.0 掩码。