Jump to content

Busybox network-functions not working


Guest Loxley

Recommended Posts

Hhi there!

Is anyone but me experiencing problems with busyboxes network-functions? It looks like the address-resolution is broken.

ping host <- Works, as it is androids ping

busybox ping host <- Doesn't work

busybox ping ip <- Works

It's the same with all other networking binaries. (wget, httpd, ftpget, …)

I think I remember about problems with statically linked binaries that make use of getaddrinfo(3). They still need matching libraries on the target system.

Unfortunately I wasn't able to compile busybox with googles toolchain and therefore can't have a deeper look into it.

If anyone has a pointer on how to compile busybox using googles toolchain I would be happy to hear about them. I had a go with http://github.com/tmurakam/droid-wrapper, but busyboxes makefile seems to be incompatible.

Peace for all

Niki

Link to comment
Share on other sites

  • 2 months later...
Hhi there!

Is anyone but me experiencing problems with busyboxes network-functions? It looks like the address-resolution is broken.

ping host <- Works, as it is androids ping

busybox ping host <- Doesn't work

busybox ping ip <- Works

It's the same with all other networking binaries. (wget, httpd, ftpget, …)

I think I remember about problems with statically linked binaries that make use of getaddrinfo(3). They still need matching libraries on the target system.

Unfortunately I wasn't able to compile busybox with googles toolchain and therefore can't have a deeper look into it.

If anyone has a pointer on how to compile busybox using googles toolchain I would be happy to hear about them. I had a go with http://github.com/tmurakam/droid-wrapper, but busyboxes makefile seems to be incompatible.

Peace for all

Niki

I've also noticed wget doesn't work =\ In that case I probably assume i can't use any binaries for browsing like lynx or links2?

Link to comment
Share on other sites

I've also noticed wget doesn't work =\ In that case I probably assume i can't use any binaries for browsing like lynx or links2?

Since busybox expects a complete linux setup to be found on your environment, expecting an /etc/resolv.conf for networking settings, so I can see why ping is a separate program.

Link to comment
Share on other sites

Since busybox expects a complete linux setup to be found on your environment, expecting an /etc/resolv.conf for networking settings, so I can see why ping is a separate program.

ah I see. so is there any way to get around this by creating a resolv.conf in /etc/ ?

Link to comment
Share on other sites

  • 1 month later...
ah I see. so is there any way to get around this by creating a resolv.conf in /etc/ ?
The problem isn't in the resolv.conf it is in the way wget was compiled with busybox. The issue is since it is a statically linked program it cannot function properly. I have gotten wget to work on my samsung moment by finding wget in /system/bin on my phone and replacing it with one I compiled that is dynamically linked. go to the samsung moment forum sdx-developers.com and look under kernel/root/rom development and find my post on wget somewhat working you will see what I have done to make it work along with finding the compiled wget that I am using on my samsung moment. it was compiled for android 1.5 so i can't say for certain it will work for you but give it a shot anyways. for some reason I am unable to attach the working wget here. Edited by sam1el
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.