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# 59073

2013.10 PetaLinux - Specifying a Static IP In System-Level Configuration Does Not Disable DHCP Service

Description

I have unchecked the option Network Addresses -> Obtain IP address automatically in the PetaLinux SDK Linux Configuration menuconfig and replaced it with static IP address values, but I still see the udhcpc service running during boot.

Solution

This is a known issue in PetaLinux 2013.10 that is scheduled to be resolved in a future release of the PetaLinux tools.

In the meantime, you can work around this issue by following these steps:

  1. In the Linux Configuration menuconfig, disable Network Addresses -> Obtain IP address automatically (this disables DHCP at the system level).
  2. In the RootFS Configuration menuconfig, disable Filesystem Packages -> base-system-default (allows modifying of the RootFS configuration), Filesystem Packages -> base -> busybox -> busybox-udhcpc (disables the DHCP client service), Filesystem Packages -> base -> busybox -> init-ifupdown -> init-ifupdown (disables automatic bringup of the networking device).
  3. Build the system using petalinux-build and then boot as normal.
  4. When the system boots, the DHCP client service no longer runs but the Ethernet interface will not be active since init-ifupdown was disabled.
  5. Manually specify a static IP address using the ifconfig command. Example syntax is: ifconfig eth0 192.168.1.30 netmask 255.255.255.0 up. This process can be automated with a shell script included in the root filesystem.
AR# 59073
Date Created 01/13/2014
Last Updated 01/28/2014
Status Active
Type General Article
Devices
  • SoC
  • Zynq-7000
  • FPGA Device Families
  • More
  • Artix-7
  • Kintex-7
  • Spartan-6
  • Virtex-6
  • Virtex-7
  • Less
Tools
  • PetaLinux
  • PetaLinux - 2013.10
Boards & Kits
  • Zynq-7000 All Programmable SoC Boards and Kits
  • Zynq-7000 All Programmable SoC Video and Imaging Kit
  • Zynq-7000 All Programmable SoC ZC702 Evaluation Kit
  • Zynq-7000 All Programmable SoC ZC706 Evaluation Kit