Linux kernel Marvell 88e6122 DSA交换机驱动程序不工作IMX6
我将marvell 88e6122交换机连接到imx6,mii接口。 DSA接口已启动,但ping不起作用。想办法找到解决办法。 DTS FILE**Linux kernel Marvell 88e6122 DSA交换机驱动程序不工作IMX6,linux-kernel,switch-statement,dsa,Linux Kernel,Switch Statement,Dsa,我将marvell 88e6122交换机连接到imx6,mii接口。 DSA接口已启动,但ping不起作用。想办法找到解决办法。 DTS FILE** &fec1{ pinctrl-names="default"; pinctrl-0=<&pinctrl_enet1>; phy-mode="mii"; status="okay"; fixed-link{ speed=<100>; f
**********************linux控制台********************&fec1{ pinctrl-names="default"; pinctrl-0=<&pinctrl_enet1>; phy-mode="mii"; status="okay"; fixed-link{ speed=<100>; full-duplex; }; mdio:mdio{ #address-cells=<1>; #size-cells=<0>; switch0:switch0@0{ compatible="marvell,mv88e6122"; reg=<2>; dsa,member=<0x00x0>; ports{ #address-cells=<1>; #size-cells=<0>; port@3{ reg=<3>; label="cpu"; ethernet=<&fec1>; fixed-link{ speed=<100>; full-duplex; }; }; port@1{ reg=<1>; label="lan1"; }; port@2{ reg=<2>; label="lan2"; }; }; }; }; };
root@OpenWrt:/#ip地址添加192.168.13.233/255.255.0.0 dev lan1 root@OpenWrt:/#ip链路设置eth0 [403.715802]通用物理层固定-0:00:连接的物理层驱动程序[通用物理层](mii_总线:物理层地址=固定-0:00,irq=轮询) [403.726597]fec 2188000.ethernet eth0:链路处于上行状态-100Mbps/全流-流量控制关闭 [403.734853]IPv6:ADDRCONF(网络开发变更):eth0:link准备就绪 root@OpenWrt:/#ip链路设置lan1 [409.457395]mv88e6085 2188000.以太网-1:02 lan1:配置phy/gmii链路模式 [409.466553]8021q:将VLAN 0添加到设备lan1上的硬件筛选器 root@OpenWrt:/#mii工具lan1 lan1:1000baseT FD流量控制,链路正常 root@OpenWrt:/#平192.168.13.102 PING 192.168.13.102(192.168.13.102):56个数据字节 ^C ---192.168.13.102平统计--- 发送5个数据包,接收0个数据包,100%数据包丢失 root@OpenWrt:/#ifconfig eth0链路封装:以太网HWaddr 98:5D:AD:43:DD:38
inet6地址:fe80::9a5d:adff:fe43:dd38/64作用域:链接 上行广播运行多播MTU:1500度量:1 接收数据包:0错误:0丢弃:0溢出:0帧:0 发送数据包:15个错误:0丢弃:0溢出:0载波:0 冲突:0 txqueuelen:1000 接收字节:0(0.0b)发送字节:3668(3.5kib)共享您的配置网络和防火墙lan1链路封装:以太网HWaddr 98:5D:AD:43:DD:38 inet地址:192.168.13.233 Bcast:0.0.0掩码:255.255.0.0 上行广播多播MTU:1500度量:1 接收数据包:0错误:0丢弃:0溢出:0帧:0 发送数据包:0错误:0丢弃:0溢出:0载波:0 冲突:0 txqueuelen:1000 接收字节:0(0.0B)发送字节:0(0.0B) lo链路封装:本地环回 inet地址:127.0.0.1掩码:255.0.0.0 inet6地址:1/128作用域:主机 上环回运行MTU:65536公制:1 接收数据包:389错误:0丢弃:0溢出:0帧:0 发送数据包:389错误:0丢弃:0溢出:0载波:0 冲突:0 txqueuelen:1000 接收字节:30512(29.7kib)发送字节:30512(29.7kib) root@OpenWrt:/#
[ 2.147632] mv88e6085 2188000.ethernet-1:02: switch 0x1050 detected: Marvell 88E6122, revision 6 [ 2.435763] libphy: mv88e6xxx SMI: probed [ 2.535913] mv88e6085 2188000.ethernet-1:02 lan1 (uninitialized): PHY [mv88e6xxx-1:01] driver [Marvell 88E1121R] [ 2.550650] mv88e6085 2188000.ethernet-1:02 lan2 (uninitialized): PHY [mv88e6xxx-1:02] driver [Marvell 88E1121R] [ 2.563578] mv88e6085 2188000.ethernet-1:02: configuring for fixed/ link mode [ 2.574712] mv88e6085 2188000.ethernet-1:02: Link is Up - 100Mbps/Full - flow control off [ 2.584701] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C [ 2.595878] hctosys: unable to open rtc device (rtc0) [ 2.665113] Freeing unused kernel memory: 34816K [ 2.684455] Run /init as init process [ 3.999656] init: Console is alive [ 4.003418] init: - watchdog - [ 4.019107] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 4.026789] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 4.044779] init: - preinit - [ 4.336927] random: jshn: uninitialized urandom read (4 bytes read) [ 4.382185] random: jshn: uninitialized urandom read (4 bytes read) [ 4.411815] random: jshn: uninitialized urandom read (4 bytes read) [ 4.475768] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL) [ 4.487521] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off