feijingrugu 2019-11-24 17:25 采纳率: 0%
浏览 754

imx6ull评估板的以太网不工作

我用NXP官网的开发板 imx6ull-evk,收到开发板后无法启动系统,一直停止在starting kernel....;但是uboot下,可用dhcp,也可以和另一台同一网段的linux主机ping通;
我使用MFGTool重新更新系统,BSP版本4.1.15_2.0.0,更新完成后,可以正常启动kernel,但是无法使用以太网。在uboot模式使用dhcp命令,显示:
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 213
DHCP client bound to address xxx.xxx.xxx.xxx (35 ms)
*** Warning: no boot file name; using 'C0A80867.img'
Using FEC1 device
TFTP from server 0.0.0.0; our IP address is xxx.xxx.xxx.xxx; sending through gateway xxx.xxx.xxx.1
Filename 'C0A80867.img'.
Load address: 0x80800000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...

    启动kernel后,输入ifconfig命令,显示:

root@imx6ul7d:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)
没有动态分配inet地址,也没有inet6的地址,

设备树中的配置:
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
status = "disabled";
};

&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <&ethphy0>;
status = "okay";

mdio {
#address-cells = ;
#size-cells = ;

ethphy0: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = ;
};

ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = ;
};
};
};
pinctrl_enet2的引脚是配置过的,以太网口的绿灯常亮,黄色间隔2s左右闪一下,
请各位大神帮忙看看

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2019-11-25 12:52
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 写uniapp时遇到的问题
  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码
  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥20 MATLAB绘制两隐函数曲面的交线
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流