UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 60820

2013.10 Petalinux: Reduce the boot time when NFS rootfs is used with Zedboard/ZC702

Description

My bootlog is showing DHCP timeout, as in the below example:

 

Registering SWP/SWPB emulation handler

Sending DHCP requests .libphy:

Gigabit Supported

.xemacps e000b000.ps7-ethernet: Set clk to 124999998 Hz

xemacps e000b000.ps7-ethernet: link up (1000/FULL)

.... timed out!

IP-Config: Retrying forever (NFS root)...

Sending DHCP requests .libphy:

Gigabit Supported

.xemacps e000b000.ps7-ethernet: Set clk to 124999998 Hz

xemacps e000b000.ps7-ethernet: link up (1000/FULL)

., OK

IP-Config: Got DHCP answer from 192.168.232.1, my address is 192.168.232.62

IP-Config: Complete:

     device=eth0, hwaddr=00:0a:35:00:43:40, ipaddr=192.168.232.62, mask=255.255.254.0, gw=192.168.232.1

     host=192.168.232.62, domain=cds.int, nis-domain=(none)

     bootserver=192.168.193.213, rootserver=192.168.230.112, rootpath=

     nameserver0=192.168.193.99, nameserver1=192.168.193.88

Solution

To resolve this issue, Change the value of CONF_TMEOUT_MAX from (HZ*30) to (HZ*1)

#define CONF_TIMEOUT_MAX (HZ*1)

This can be found in the ipconfig.c file here:

/opt/pkg/petalinux-v2013.10-final/components/linux-kernel/xlnx-3.8/net/ipv4/ipconfig.c

AR# 60820
Date Created 05/26/2014
Last Updated 10/16/2014
Status Active
Type General Article
Tools
  • Vivado Design Suite - 2013.4
  • PetaLinux
  • PetaLinux - 2013.10