自己板子,4个千兆网,没有使用PHY,使用MAC to MAC FORCELINK
eth0,eth1在linux下能够正常使用
但是eth2,eth3在linux不能ping PC,uboot 能够eth2 eth3能够ping通PC
linux 使用的命令:
ifconfig eth2 192.169.1.3 up
root@k2hk-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 7C:66:9D:CE:AD:8A
inet addr:10.0.0.122 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::7c66:9d00:1ce:ad8a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23012 errors:0 dropped:1 overruns:0 frame:0
TX packets:18787 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18610131 (17.7 MiB) TX bytes:2901310 (2.7 MiB)
eth2 Link encap:Ethernet HWaddr AE:2E:9E:C7:1E:00
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric: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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:61 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6236 (6.0 KiB) TX bytes:6236 (6.0 KiB)
eth0 Link encap:Ethernet HWaddr 7C:66:9D:CE:AD:8A
inet addr:10.0.0.122 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::7c66:9d00:1ce:ad8a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23012 errors:0 dropped:1 overruns:0 frame:0
TX packets:18787 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18610131 (17.7 MiB) TX bytes:2901310 (2.7 MiB)
eth2 Link encap:Ethernet HWaddr AE:2E:9E:C7:1E:00
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric: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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:61 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6236 (6.0 KiB) TX bytes:6236 (6.0 KiB)
请问:如果需要使能eth2,eth3,在linux 使用ifconfig;是否还需要在linux内核或者设备树进行修改?