Home > other >  After the uboot Ethernet are available, and start the kernel is not able to use the Ethernet
After the uboot Ethernet are available, and start the kernel is not able to use the Ethernet

Time:09-25

I use NXP website development board imx6ull - evk, cannot be started after receipt of the development board system, have been stopped in starting the kernel... ; But under uboot, can use DHCP, can also and another of the same network segment Linux host ping;
I use MFGTool to update the system, the BSP version 4.1.15 _2. 0.0, the update is complete, can normal boot the kernel, but unable to use Ethernet, in the uboot model, use DHCP command shows:
The BOOTP broadcast 1
* * * Unhandled DHCP Option in OFFER/ACK: 213
The 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'.
The Load address: 0 x80800000
Loading: *
TFTP error: 'File not found: (1)
The Not retrying...




Start after the kernel, enter the ifconfig command, display:
Root @ imx6ul7d: ~ # ifconfig

Eth0 Link encap: Ethernet HWaddr 00: xx: xx: xx: xx: xx
The UP BROADCAST MULTICAST MTU: 1500 Metric: 1
Errors RX packets: 0:0 dropped: 0 overruns: frame 0:0
TX packets: 0 errors: 0 dropped: 0 overruns: carrier 0:0
Collisions: 0 txqueuelen: 1000
TX RX bytes: 0 (0.0 B) 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
The UP LOOPBACK RUNNING MTU: 65536 Metric: 1
RX packets: 2 errors: 0 dropped: 0 overruns: frame 0:0
TX packets: 2 errors: 0 dropped: 0 overruns: carrier 0:0
Txqueuelen collisions: 0:0
RX bytes: 140 TX bytes (140.0 B) : 140 (140.0 B)
no dynamic allocation inet address, also does not have the inet6 address,

In the device tree configuration:
& Fec1 {
Pinctrl - names="default";
Pinctrl - 0=& lt; & Pinctrl_enet1 & gt;;
Phy - mode="rmii";
Phy - handle=& lt; & Ethphy1 & gt;;
The status="disabled".
};

& Fec2 {
Pinctrl - names="default";
Pinctrl - 0=& lt; & Pinctrl_enet2 & gt;;
Phy - mode="rmii";
Phy - handle=& lt; & Ethphy0 & gt;;
status="okay";

Mdio {
# address - cells=& lt; 1 & gt;;
# size - cells=& lt; 0 & gt;;

Ethphy0: Ethernet - phy @ 2 {
Compatible="Ethernet phys - ieee802.3 - the c22";
Reg=& lt; 2 & gt;;
};

Ethphy1: Ethernet - phy @ {1
Compatible="Ethernet phys - ieee802.3 - the c22";
Reg=& lt; 1 & gt;;
};
};
};
Pinctrl_enet2 pin is configuration, Ethernet front-end ports normally on a green light, flash yellow interval around 2 s,
A great god please help see


CodePudding user response:

Linux DHCP configuration in/etc/network/interface,
  • Related