i.mx6ull network question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6ull network question

701 Views
todtodf
Contributor I

Dear  Expert:

In the i.mx6ull-evk,there is a question below:(static ip set not effect)

linux BSP version:L4.1.15

when use the mfgtool to program the SD card and boot from SD card

edit  /etc/network/interfaces

auto eth1

iface eth1 inet static

address 192.168.0.12     

netmask 255.255.255.0

gateway 192.168.0.1

 

save this file and reboot.

the ip address is still DHCP,not static.

Could you tell me how to set static ip address?

thanks.

BRs

Tod

0 Kudos
3 Replies

592 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Tod,

Have you tried the command on the following thread?

https://community.nxp.com/message/310691

It is possible that the bootloader has the DHCP enabled and it’s passing this setting to the kernel when loading it so it would also be useful to look at the bootloader ethernet parameters.

Regards,

0 Kudos

592 Views
todtodf
Contributor I

Dear  gusarambula:

thanks for your quickly response.

we want to use the static ip address in the kernel,not u-boot.

I try to add the ifconfig eth1 192. ..... in the rc.local file and it works.

But I want to know why it does not work by the  below method.

edit  /etc/network/interfaces

auto eth1

iface eth1 inet static

address 192.168.0.12     

netmask 255.255.255.0

gateway 192.168.0.1

in the BSP file(i.mx_linux_release_notes.pdf),there is a description about the kernel boot parameters below:

pastedImage_1.png

I set this in the uboot command line like this:

setenv ip=static_ip_address

But it still do not work in the kernel.

If you use the i.mx6ull-evk board to test,you can see it.

Furthermore,Could you tell me how to set the kernel boot parameters in the details?

Please give us support,thanks.

BRs

Tod

0 Kudos

592 Views
todtodf
Contributor I

Dear  Expert:

Is there any update about this issue?

Please give us great support,thanks a lot.

BRs

Tod

0 Kudos