Networking problem with emulator build

59 views
Skip to first unread message

geoff.stromberg

unread,
Jan 7, 2009, 5:34:19 PM1/7/09
to android-platform
Hi All,

Any pointers would be much appreciated! I'm having trouble getting
networking to work on my own build of the Android system and emulator.
(The emulator that comes with the SDK works fine for me.)

To get the source and build it, I followed the directions here (for
Ubuntu 8.04):
http://source.android.com/download

Here were my steps:

# install necessary packages
$ sudo apt-get install git-core gnupg sun-java6-jdk flex bison gperf
libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
libncurses5-dev zlib1g-dev

# make a dir for building
$ mkdir ~/mydroid
$ cd ~/mydroid

# get release-1.0 branch
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
release-1.0
$ repo sync

# build it
$ make

# run the emulator
$ ./out/host/linux-x86/bin/emulator -system ./out/target/product/
generic/ -kernel ./prebuilt/android-arm/kernel/kernel-qemu -data ./
myuserdata.img

The emulator boots and the basic apps seem to work fine. But when I
launch the browser, I get a web page not available message. And when I
open a shell on the emulator using adb, and try to ping the virtual
router (ping 10.0.2.1) I get "Destination Host Unreachable" errors. I
am able to ping the emulators own interface (ping 10.0.2.15).

Any pointers? Thanks!

David Turner

unread,
Jan 7, 2009, 8:41:23 PM1/7/09
to android-...@googlegroups.com
how did you configure your build exactly ?
it looks like your network interface or route is not setup properly in the emulated system
what is the output of "adb shell getprop" ? this contains information that could help us answer you

Robert K. Barrett

unread,
Jan 7, 2009, 8:47:35 PM1/7/09
to android-...@googlegroups.com
I used play doh

2 Corinthians 13:14

The grace of the Lord Jesus Christ, and the love of God, and
the communion of the Holy Spirit be with you all. Amen.

Smile, someone loves you.

geoff.stromberg

unread,
Jan 8, 2009, 1:28:43 AM1/8/09
to android-platform
I didn't do anything to configure my build. I simply did a make. I
don't see a ./configure script, and I don't see anything about
configuring in the directions I was following (http://
source.android.com/download).

Is there some further build docs you could point me to that would tell
me how to configure my build? Thanks.

Here is the output of "adb shell getprop" from my emulator:

[ro.secure]: [0]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[ro.kernel.qemu]: [1]
[ro.kernel.console]: [ttyS0]
[ro.kernel.android.checkjni]: [1]
[ro.kernel.android.qemud]: [ttyS1]
[ro.kernel.android.ndns]: [2]
[ro.factorytest]: [0]
[ro.serialno]: []
[ro.bootmode]: [unknown]
[ro.baseband]: [unknown]
[ro.carrier]: [unknown]
[ro.bootloader]: [unknown]
[ro.hardware]: [goldfish]
[ro.revision]: [0]
[ro.build.id]: [TC3]
[ro.build.version.incremental]: [eng.geoff.20090106.164420]
[ro.build.version.sdk]: [1]
[ro.build.version.release]: [1.0]
[ro.build.date]: [Tue Jan 6 18:10:29 PST 2009]
[ro.build.date.utc]: [1231294229]
[ro.build.type]: [eng]
[ro.build.user]: [geoff]
[ro.build.host]: [geofflaptop]
[ro.build.tags]: [test-keys]
[ro.product.model]: [generic]
[ro.product.brand]: [generic]
[ro.product.name]: [generic]
[ro.product.device]: [generic]
[ro.product.board]: []
[ro.product.manufacturer]: [unknown]
[ro.product.locale.language]: []
[ro.product.locale.region]: []
[ro.build.product]: [generic]
[ro.build.description]: [generic-eng 1.0 TC3 eng.geoff.20090106.164420
test-keys]
[ro.build.fingerprint]: [generic/generic/generic/:1.0/TC3/eng.geoff.
20090106.164420:eng/test-keys]
[rild.libpath]: [/system/lib/libreference-ril.so]
[rild.libargs]: [-d /dev/ttyS0]
[ro.config.notification_sound]: [F1_New_SMS.ogg]
[ro.config.sync]: [yes]
[net.bt.name]: [Android]
[net.change]: [net.eth0.dns2]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[persist.sys.timezone]: [America/Los_Angeles]
[ro.FOREGROUND_APP_ADJ]: [0]
[ro.VISIBLE_APP_ADJ]: [1]
[ro.SECONDARY_SERVER_ADJ]: [2]
[ro.HIDDEN_APP_MIN_ADJ]: [7]
[ro.CONTENT_PROVIDER_ADJ]: [14]
[ro.EMPTY_APP_ADJ]: [15]
[ro.FOREGROUND_APP_MEM]: [1536]
[ro.VISIBLE_APP_MEM]: [2048]
[ro.SECONDARY_SERVER_MEM]: [4096]
[ro.HIDDEN_APP_MEM]: [5120]
[ro.CONTENT_PROVIDER_MEM]: [5632]
[ro.EMPTY_APP_MEM]: [6144]
[net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208]
[net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[init.svc.console]: [running]
[init.svc.servicemanager]: [running]
[init.svc.mountd]: [running]
[init.svc.debuggerd]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.zygote]: [running]
[init.svc.media]: [running]
[init.svc.dbus]: [running]
[init.svc.installd]: [running]
[init.svc.flash_recovery]: [stopped]
[init.svc.goldfish-setup]: [stopped]
[init.svc.qemud]: [running]
[init.svc.goldfish-logcat]: [stopped]
[ARGH]: [ARGH]
[net.eth0.dns1]: [10.0.2.3]
[net.gprs.local-ip]: [10.0.2.15]
[ro.radio.use-ppp]: [no]
[status.battery.state]: [Slow]
[status.battery.level]: [5]
[status.battery.level_raw]: [50]
[status.battery.level_scale]: [9]
[app.setupwizard.disable]: [1]
[init.svc.adbd]: [running]
[net.eth0.dns2]: [10.0.2.4]
[hw.keyboards.65536.devname]: [qwerty2]
[sys.settings_system_version]: [6]
[dev.bootcomplete]: [1]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[gsm.sim.voice-mail.waiting]: [false]
[gsm.sim.operator.numeric]: [310260]
[gsm.sim.operator.alpha]: [Android]
[gsm.sim.operator.iso-country]: [us]
[gsm.sim.state]: [READY]
[gsm.operator.alpha]: [Android]
[gsm.operator.numeric]: [310260]
[gsm.operator.iso-country]: [us]
[gsm.operator.isroaming]: [false]
[gsm.operator.ismanual]: [false]
[gsm.nitz.time]: [1231395205156]
[gsm.network.type]: [UMTS]
[gsm.sim.line1.cff]: [false]
[adb.connected]: [1]


On Jan 7, 5:41 pm, "David Turner" <di...@android.com> wrote:
> how did you configure your build exactly ?
> it looks like your network interface or route is not setup properly in the
> emulated system
> what is the output of "adb shell getprop" ? this contains information that
> could help us answer you
>
> On Wed, Jan 7, 2009 at 11:34 PM, geoff.stromberg
> <geoff.stromb...@gmail.com>wrote:

geoff.stromberg

unread,
Jan 8, 2009, 7:38:38 PM1/8/09
to android-platform
I did find (and uncommented) the following setting in the file
$BUILD_ROOT/build/buildspec.mk.default:

# Uncomment this if you want the simulator...
ifndef TARGET_SIMULATOR
TARGET_SIMULATOR:=true
endif

After uncommenting TARGET_SIMULATOR:=true I did a clean rebuild, but
I'm still unable to connect to anything on the network when I run the
simulator.

Any ideas about what else I might try? Thanks.


On Jan 7, 5:41 pm, "David Turner" <di...@android.com> wrote:
> how did you configure your build exactly ?
> it looks like your network interface or route is not setup properly in the
> emulated system
> what is the output of "adb shell getprop" ? this contains information that
> could help us answer you
>
> On Wed, Jan 7, 2009 at 11:34 PM, geoff.stromberg
> <geoff.stromb...@gmail.com>wrote:
Reply all
Reply to author
Forward
0 new messages