Jump to content


Busybox network-functions not working

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Loxley

Loxley

    Newbie

  • Members
  • Pip
  • 43 posts
  • Devices:Hero
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/tm...m/droid-wrapper, but busyboxes makefile seems to be incompatible.

Peace for all

Niki


#2
kazuni

kazuni

    Newbie

  • Members
  • Pip
  • 20 posts

 Loxley, on Oct 30 2009, 11:24, said:

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/tm...m/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?


#3
fyremoon

fyremoon

    Regular

  • MoDaCo Ad Free
  • PipPip
  • 97 posts
  • Location:St Leonards, UK
  • Devices:HTC Hero/T-mobile G2
  • Twitter:@fyremoon

 kazuni, on Jan 14 2010, 17:40, said:

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.


#4
kazuni

kazuni

    Newbie

  • Members
  • Pip
  • 20 posts

 fyremoon, on Jan 14 2010, 22:35, said:

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/ ?


#5
sam1el

sam1el

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:motorola q

 kazuni, on Jan 15 2010, 02:19, said:

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, 18 February 2010 - 07:20 PM.


#6
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
Check that thread: http://android.modac...-coming-to-mcr/ where I've done a statically linked busybox that DO have working network functions. FYI, Paul is now including this busybox in its various MCR: it is in the N1 one and should be in the next Hero one (3.2b6)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users