Android @ MoDaCo: Busybox network-functions not working - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Busybox network-functions not working
-----


#1 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 30 October 2009 - 11:24 AM

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

0

Sponsored Links


#2 User is offline   kazuni 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 21-October 09
  • Devices:HTC Hero + Modaco Custom
  • Twitter:@kazuninishiki

Posted 14 January 2010 - 05:40 PM

View PostLoxley, 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?

0


#3 User is offline   fyremoon 

  • Regular
  • PipPip
  • Group: MoDaCo Ad Free
  • Posts: 97
  • Joined: 09-January 10
  • Location:St Leonards, UK
  • Devices:HTC Hero/T-mobile G2
  • Twitter:@fyremoon

Posted 14 January 2010 - 10:35 PM

View Postkazuni, 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.

0


#4 User is offline   kazuni 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 21-October 09
  • Devices:HTC Hero + Modaco Custom
  • Twitter:@kazuninishiki

Posted 15 January 2010 - 07:19 AM

View Postfyremoon, 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/ ?

0


#5 User is offline   sam1el 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 22-June 07
  • Devices:motorola q

Posted 18 February 2010 - 07:11 PM

View Postkazuni, 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.

This post has been edited by sam1el: 18 February 2010 - 07:20 PM

0


#6 User is offline   freeasabeer 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 88
  • Joined: 02-December 09
  • Location:Paris, France
  • Devices:HTC Hero

Posted 18 February 2010 - 08:38 PM

Check that thread: http://android.modaco.com/content/forum/29...-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


Sponsored Links

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!