i.MX6 long boot time from SD card w/o LAN

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6 long boot time from SD card w/o LAN

ソリューションへジャンプ
2,360件の閲覧回数
uwebeyer
Contributor II

Hi,

I've got a brand new MCIMX6Q-SDB board and downloaded the LTIB source package "i.MX 6Quad and i.MX 6Dual Linux GA BSP 3.0.35 Source Code Files". It compiles nicely and i can run my device either via LAN (tftp/nfs) or from SDCard.

When I boot purely from SD Card and remove the LAN cable it takes long minute when the ethernet driver is loaded and the system tries to do a DHCP request before this finally timeouts and the boot process completes. (Actually the whole process is even tried twice.) Here the output I see on the serial console additional comments about the waiting times.

....

eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1)

--- 120 seconds waiting

Sending DHCP requests ...... timed out!

--- 80 seconds waiting while the dots indicate that it does several retries

IP-Config: Reopening network devices...

eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1)

--- 120 seconds waiting

Sending DHCP requests ...... timed out!

IP-Config: Auto-configuration of network failed.

--- 80 seconds waiting while the dots indicate that it does several retries

...

When I plugin the LAN cable it is able to get network access immediately, do the DHCP request and runs through all this without delay.

Since our system will normally not have a LAN connection it is an important issue to avoid this >5 minutes waiting time during system boot.


I worked before with an IMX53 and could see that there was a small delay too but it was just a few seconds and also the repetition was not done.


I tried to find some configuration settings in LTIB but could not see anything obvious. This whole task seems to be done before the init process starts and the inittab/rcS scripts are executed. So how can I configure it?


Any help would be appreciated.

Cheers,

Uwe


ラベル(1)
0 件の賞賛
返信
1 解決策
1,205件の閲覧回数
VladanJovanovic
NXP Employee
NXP Employee

You could pass "ip=none" parameter to kernel at boot time, and then try to start network from one of boot scripts in a faster way.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,206件の閲覧回数
VladanJovanovic
NXP Employee
NXP Employee

You could pass "ip=none" parameter to kernel at boot time, and then try to start network from one of boot scripts in a faster way.

0 件の賞賛
返信
1,205件の閲覧回数
uwebeyer
Contributor II

Worked immediately! Thanks for your answer!

The linux kernel now comes up without ethernet. An on demand activation can be done by:

  ipconfig eth0 up                    // to load the FEC driver

  udhcpc                                // to obtain the IP address via DHCP when required.

0 件の賞賛
返信