如何在u-boot中添加多个以太网mac接口

时间:2017-02-23 13:21:18

标签: ethernet u-boot uclinux

我是u-boot和uclinux的新手,

如何在u-boot中添加一个以太网mac接口。 正如u-boot启动时所见,只有一个接口来了 Net:eth驱动程序init M2S_MAC

我想再添加一个,以便我可以再增加一个IP地址,即eth1

我已阅读以下问题

  

Can u-boot support more than one ethernet port?

我知道net / eth.c中的eth_current_changed()和eth_set_current()必须改变

但它没有定义如何添加界面。我也有新mac接口的驱动程序。

1 个答案:

答案 0 :(得分:0)

是的,支持多个以太网设备。确切的详细信息取决于您所使用的董事会和相关驱动程序,或者您是否尝试注册不同的驱动程序。