AR# 68614

2016.4:PetaLinux - Static IP assignment in "Subsystem AUTO Hardware Settings" not working


In PetaLinux 2016.4, I am trying to set a Static IP in the Subsystem Auto Hardware Settings as below:

Subsystem AUTO Hardware Settings -->
Ethernet Settings -->
[ ] Obtain IP address automatically = N
( Static IP address (NEW)
( Static IP netmask (NEW)
( Static IP gateway (NEW)

I have built the system and booted on a ZC706 board. ifconfig shows a dhcp assigned address. 

Also, the /etc/network/interfaces file contains "iface eth0 inet dhcp" (instead of "iface eth0 inet static" and the related settings).

eth0 Link encap:Ethernet HWaddr 00:0A:35:00:1E:53
inet addr: Bcast: Mask:

In the 2016.3 version, this was working correctly and the Static IP could be seen with ifconfig.


There are two work-arounds available in PetaLinux 2016.4:

1) Manually use ifconfig eth0 192.168.0.x

2) Use the following Yocto workaround:

  1. Copy the attached recipes-core folder from the archive to <petalinux_proj_root>/project-spec/meta-user/. There is an interfaces file with static IP settings.
  2. Run petalinux-build and petalinux-package.
  3. Boot the new image. If you run ifconfig, you will see the IP set.

eth0 Link encap:Ethernet HWaddr 00:0A:35:00:1E:53 
inet addr: Bcast: Mask:

A fix for this issue is being worked on for an upcoming release.


Associated Attachments

Name File Size File Type
recipes-core.tar.gz 10 KB GZ
AR# 68614
Date 02/15/2017
Status Active
Type Known Issues