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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
885 次查看
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

 

 

 

标记 (1)
0 项奖励
回复
1 解答
867 次查看
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 项奖励
回复
2 回复数
868 次查看
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 项奖励
回复
853 次查看
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 项奖励
回复