我用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 = <ðphy1>;
status = "disabled";
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <ðphy0>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
};
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
pinctrl_enet2的引腳是配置過的,以太網口的綠燈常亮,黃色間隔2s左右閃一下,
請各位大神幫忙看看
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/73033.html
標籤:驅動程序開發區
上一篇:如何用CentOS 7來搭建一個tor網址并且成功搭建WordPress
下一篇:作業系統課程設計
