AR# 68614

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

Description

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

$petalinux-config
Subsystem AUTO Hardware Settings -->
Ethernet Settings -->
[ ] Obtain IP address automatically = N
(192.168.0.10) Static IP address (NEW)
(255.255.255.0) Static IP netmask (NEW)
(192.168.0.1) 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:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0

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

Solution

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:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0

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

Attachments

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
Devices
Tools