刚买来am5k2e02 的开发板(66ak2e05),在boot 环境下上下2个网口都能用,都能下载数据。
内核起来后,只有底下一个网口能用。上面的口连接不上,
上面的网卡插上网线后可以灯闪,但是连接不上。插拔网线时
会显示890.438971] libphy: 24200f00.mdio:01 – Link is Down
[ 891.438324] libphy: 24200f00.mdio:01 – Link is Up – 100/Full
说明内核是有驱动的
我可以设置8个网络设置,都只能在下面网口ping通,但是MAC地址都是同一个。看串口打印信息是不同的MAC。需要敲什么命令
才能挂上上面的网口?还是需要修改那些配置文件?哪位大侠指点指点!
k2e-net。dtsi上可以配置,用的是默认配置。我看
mdio: mdio@24200f00 {
compatible = "ti,davinci_mdio";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x24200f00 0x100>;
bus_freq = <2500000>;
clocks = <&clkcpgmac>;
clock-names = "fck";
phy0: phy@0 {
compatible = "marvell,88e1510";
reg = <0>;
};
phy1: phy@1 {
compatible = "marvell,88e1510";
reg = <1>;
};
};
因该是配好的。
另外也能配置
ifconfig
eth0 Link encap:Ethernet HWaddr 18:D6:FD:00:B4:99
inet addr:10.10.120.2 Bcast:10.10.120.255 Mask:255.255.255.0
inet6 addr: fe80::18d6:fd00:100:b499/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18696 errors:0 dropped:0 overruns:0 frame:0
TX packets:15944 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15841286 (15.1 MiB) TX bytes:2421760 (2.3 MiB)
eth1 Link encap:Ethernet HWaddr 02:18:31:7E:3E:6F
inet addr:10.10.120.3 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::218:3100:27e:3e6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:986 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:163478 (159.6 KiB) TX bytes:468 (468.0 B)
user1369122:
发到C6000多核那边看看吧