修改了内核里的/arch/arm/mach-omap2/devices文件的
static struct platform_device ti816x_emac2_device = {
.name = "eth_offload",
.id = 1,
.num_resources = ARRAY_SIZE(ti816x_emac2_resources),
.resource = ti816x_emac2_resources,
};
.name = "davinci_emac",开启了eth1,驱动也加载好了,ifconfig出来的信息如下:
eth0 Link encap:Ethernet HWaddr 88:C2:55:86:99:86
inet addr:192.168.1.236 Bcast:192.168.255.255 Mask:255.255.0.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)
Interrupt:40 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 88:C2:55:86:99:87
inet addr:192.168.1.237 Bcast:192.168.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING 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)
Interrupt:44
现在的情况是eth0和eth1都可以和pc连接上,但是eth0可以ping通,eth1却ping不通。
两个网口的硬件可以保证是一样的
是使用eth1还需要修改其他地方吗?还是说别的什么问题?请各位大神帮忙分析一下!!