IMX8M Nano Solo : Need to Save Last edit Ethernet Static IP in Kernel

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

IMX8M Nano Solo : Need to Save Last edit Ethernet Static IP in Kernel

Jump to solution
902 Views
milav_soni
Contributor III

Hello NXP,

This is Milav From Teq Diligent.

We have Design one custom board based on iMX8M nano series.

Microprocessor part number : MIMX8MN1CVTIZAA

We have used imx-linux-zeus -m imx-5.4.47-2.2.0.xml BSP and build an image for the board.

Now Custom board has eth0 interface.

Now the goal is , we need to save static IP of eth0 in kernel.

So, at every booting time, eth0 take saved static IP and then Ethernet ping communication correctly happens.

So when user need to edit that static IP, he/she need to edit some configuration file/or script file. after that new static IP is saved in kernel.

Now ETH0 is configured with new IP address at every boot.

Can you guys please help me how i can saved my static ip address in kernel?

Thank You

 

 

 

Tags (1)
0 Kudos
Reply
1 Solution
884 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi @milav_soni,

 

You should save the static IP on U-boot in the env variables, with that you could set a static IP.

 

Regards,

Israel.

View solution in original post

0 Kudos
Reply
2 Replies
885 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi @milav_soni,

 

You should save the static IP on U-boot in the env variables, with that you could set a static IP.

 

Regards,

Israel.

0 Kudos
Reply
870 Views
milav_soni
Contributor III

Hello @nxf63675 ,

Thank You for your answer.

I need to save static IP in root file systems.

Can you please help me how i can save the eth0 static IP in rootfs at run time?

 

Regards,

Milav

0 Kudos
Reply