cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fredb@comex
Adventurer
Adventurer
7,572 Views
Registered: ‎11-30-2015

Ethernet IP address Petalinux 2017.1

Jump to solution

Hi!

 

I try to change the IP address on the Ethernet link of my Zynq MMP board.

In petalinux 2016.4 it was still possible to do it with adding init-ifupdown folder in recipes-core under meta-user (as show with the following pics of the folder).

In petalinux 2017.1, I can still change the profile file with the base-files folder but petalinux-build give me a warning about the init-ifupdown config and show, after compilation, that interface file is not replace in /etc/network/ .

The IP address attribution is still in the automatic default mode.

I've tried also to put my address with the petalinux-config method in the Ethernet Settings parameters but it's not working either (in fact it's never work with all the petalinux version I worked with: 2015.4, 2016.4, 2017.1).

 

Any information about that new behaviour of Petalinux 2017.1 will be appreciate.

Thank you.

 

 

recipes-core.png
recipe-init.png
Init-ifupdown.png
0 Kudos
1 Solution

Accepted Solutions
10,838 Views
Registered: ‎12-07-2016

Hello fredb@comex

 

I added a line in <project-spec>/meta-user/conf/petalinuxbsp.conf

 

SIGGEN_UNLOCKED_RECIPES += "init-ifupdown"

And it works...

 

My example for the interface file (<project-spec>/meta-user/recipes-core/init-ifupdown/init-ifupdown/interfaces

 

# We always want the loopback interface.

auto lo
iface lo inet loopback

# An example ethernet card setup: (broadcast and gateway are optional)

auto eth0
iface eth0 inet static
    address 172.24.117.138
    netmask 255.255.255.0
    broadcast 172.24.117.255
    gateway 172.24.117.254

View solution in original post

0 Kudos
7 Replies
fredb@comex
Adventurer
Adventurer
7,497 Views
Registered: ‎11-30-2015

...

0 Kudos
fredb@comex
Adventurer
Adventurer
7,467 Views
Registered: ‎11-30-2015

Someone from Xilinx noticed that It was possible to change Ethernet ip address in the 2016.4 petalinux version and it's not possible now in the 2017.1 version?

 

0 Kudos
fredb@comex
Adventurer
Adventurer
7,352 Views
Registered: ‎11-30-2015

Any information?

0 Kudos
7,320 Views
Registered: ‎12-07-2016

Hello,

 

do you have a solutions?

I have the same problem...

0 Kudos
fredb@comex
Adventurer
Adventurer
7,306 Views
Registered: ‎11-30-2015

Hi!

No. I am still stuck on this issue.

(And Xilinx seems not to bother about it...) 

 

0 Kudos
10,839 Views
Registered: ‎12-07-2016

Hello fredb@comex

 

I added a line in <project-spec>/meta-user/conf/petalinuxbsp.conf

 

SIGGEN_UNLOCKED_RECIPES += "init-ifupdown"

And it works...

 

My example for the interface file (<project-spec>/meta-user/recipes-core/init-ifupdown/init-ifupdown/interfaces

 

# We always want the loopback interface.

auto lo
iface lo inet loopback

# An example ethernet card setup: (broadcast and gateway are optional)

auto eth0
iface eth0 inet static
    address 172.24.117.138
    netmask 255.255.255.0
    broadcast 172.24.117.255
    gateway 172.24.117.254

View solution in original post

0 Kudos
fredb@comex
Adventurer
Adventurer
7,144 Views
Registered: ‎11-30-2015

Hi andreas.bachmaier,

 

Just a simple word. Perfect!

It works.

 

0 Kudos