How to disable dhcp and interface setup for eth0

1,469 views
Skip to first unread message

Rishi Ranjan

unread,
Dec 10, 2014, 11:22:41 PM12/10/14
to andro...@googlegroups.com
I have added "/system/bin/netcfg eth0 up" & "/system/bin/netcfg eth0 dhcp" in init.sh to bring up eth0 at init. I need it to enable sending GLES command over eth0 from surfaceflinger since it's started as core class. 

But after sometime logs show that eht0 is reconfigured and after DHCP and I loose all the TCP connections. 

How do I disable the eth0 reconfiguration in androidx86? 


Chih-Wei Huang

unread,
Dec 11, 2014, 4:13:44 AM12/11/14
to Android-x86
This is controlled by android framework.
But you can try to remove the services
dhcpcd_eth0 & iprenew_eth0
in init.x86.rc.
Without them I think the framework
can't configure eth0.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Rishi Ranjan

unread,
Dec 11, 2014, 10:15:20 AM12/11/14
to andro...@googlegroups.com
I had already tried removing both the services but still eth0 is getting configured by framework. 

I went ahead and removed registration of Ethernet service from SystemServer but still eht0 is getting configured again. 

Thanks,
Rishi

Rishi Ranjan

unread,
Dec 11, 2014, 1:34:09 PM12/11/14
to andro...@googlegroups.com
Just to elaborate on removed registration, I looked at http://elinux.org/images/9/98/Dive_Into_Android_Networking-_Adding_Ethernet_Connectivity.pdf, slide 14 and then removed Ethernet from ContextImpl.java. 

But still dhcp happens. 

Rishi Ranjan

unread,
Dec 12, 2014, 1:16:15 PM12/12/14
to andro...@googlegroups.com
I have some how got this working by removing my netcfg from on init to on boot. I don't understand this completely but it works for now. 
Reply all
Reply to author
Forward
0 new messages