system/bin/dhcpcd not working

729 views
Skip to first unread message

extrapedestrian

unread,
Jan 24, 2011, 12:10:46 PM1/24/11
to android-porting
hi all,

i have android running on mips platform, and I have my dhcpcd setting
network configuration.
android browser works fine, it can see internet, but I can't download
market applications.

now im trying to start androids dhcpcd from console, but when I type
/system/bin/dhcpcd eth0
nothing happens, process just exits without any log, and no ip is set.

do I have to start dhcpcd from init.rc?
any special settings to hooks folder?

extrapedestrian

unread,
Jan 27, 2011, 10:37:46 AM1/27/11
to android-porting
I found the problem...
when dhcp is started from init.rc it gives more info cause it uses
logger to print out.
it was expecting directory structure /data/misc/dhcp to exist where it
could create the file dhcp-eth0.pid

but my download is still not working...

On Jan 24, 6:10 pm, extrapedestrian <extra.pedestr...@gmail.com>
wrote:

extrapedestrian

unread,
Feb 4, 2011, 4:49:04 AM2/4/11
to android-porting
furthermore... Androd.mk has dhcp.conf commented out,

And android.conf has to be changed cause it only contains wifi
interface options,
if you want it to set ethernet you need to add interface for eth0.

And dhcp-run-hooks trys to write to /dev/null which has been touched
by another android service, and it fails because of permissions.
(dhcpcd user is not root for some reason)

now dhcpcd sets ethernet ip and dns properly, but download is still
not working...

On Jan 27, 4:37 pm, extrapedestrian <extra.pedestr...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages