照着视频和《I.MX6U 嵌入式 Linux 驱动开发指南 V1.2》操作,进行了基于nxp官方的uboot(uboot-imx-rel_imx_4.1.15_2.1.0_ga.tar.bz2)和kernel(linux-imx-rel_imx_4.1.15_2.1.0_ga.tar.bz2)移植。网线连接路由器和开发板(接的ENET2口),uboot启动之后自动通过tftp下载在Image和dtb,并且成功启动kernel。
问题在于:
kernel启动之后,不停打印如下log:
[ 2013.840475] fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 2013.848446] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 2015.919567] fec 20b4000.ethernet eth0: Link is Down
[ 2015.986182] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
看着log,我猜可能是eth0什么地方没配置对,kernel一直尝试eth0联网,于是我做了一下操作:
1、网线接开发板ENET2,可以ping通百度和Ubuntu,一直打印log
[ 2013.840475] fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 2013.848446] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 2015.919567] fec 20b4000.ethernet eth0: Link is Down
[ 2015.986182] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
2、网线接开发板ENET1,可以ping通百度和Ubuntu都是通的
而且接上网线的时候有如下log:
[ 3837.100521] fec 2188000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 3837.108486] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
有人遇到过这样的问题吗?