imx6: Android: init eth0 with static ip

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

imx6: Android: init eth0 with static ip

4,644 Views
lzenz
Contributor II

Hello,

 

we are using Android M6.0.1_2.1.0 to a custom hardware with i.mx6dl.

It is possible to configure eth0 with a static ip address using the Freescale Ethernet App. But after a factory reset this configuration is deleted. We need to add a static ip configuration to system.img.

Is it possible to do a static ip configuration on default (in system.img)? What it the best way to do it?

Regards,

Ludwig

Labels (2)
3 Replies

2,108 Views
joanxie
NXP TechSupport
NXP TechSupport

if you used wifi, pls refer to the link as below:

How do I set a static IP address in the Android Operating System? 

if you use ethernet port, you can use "ifconfig" to set static ip address, like

"ifconfig eth0 <IP ADDRESS>"

0 Kudos

2,108 Views
lzenz
Contributor II

Thank you for the infomation.

I am still not sure how to do it. When I set a static IP with "ifconfig eth0 .... " it works. But when I start the Freescale Ethernet App an run "Check" than it does configure DHCP again.

Any idea?

0 Kudos

2,108 Views
joanxie
NXP TechSupport
NXP TechSupport

you can access this from Java space through the console call, pls refer to the link as below:

https://community.nxp.com/thread/335941 

0 Kudos