Black Screen in Emulator

980 views
Skip to first unread message

Ryan Xu

unread,
Apr 18, 2012, 8:17:11 AM4/18/12
to Android Building
Hi all,

-Android 4.0.3 source
-Goldfish 2.6.29 kernel
-Latest android SDK
-Ubuntu 11.10, 32 bit

I got stuck with the Emulator tool. According to the tips, I installed
the arm-none-linux-gnueabi-, and ran the makefile successfully. The
image file was generated under WORK_MASTER/goldfish/arch/arm/boot.
(WORK_MASTER is the folder where I installed AOSP). Then,

1. Under WORK_MASTER I ran the command: $. /build/envsetup.sh and
$lunch. Then I ran $emulator -kernel /route/.../zImage. The Android
Emulator shows on the screen, with the keyboard on the right side. But
I waited about 10 minutes, the screen remains black. No Android logo,
no any changes shown on the screen. I ran the adb shell, but the
command line says device offline.

2. I ran $emulator, with out parameter -kernel, which runs the default
img. It works, nothing strange.

3. I searched on internet, some people said in order to run the source
kernel of emulator, one has to install SDK and generate an AVD, and
use emulator -avd AVDName -kernel /route/.../zImage. Therefore, I
installed SDK, and added the sdk/tool route (which contains emulator
of SDK) into my path. In order to generate an AVD, I installed Eclipse
and generated an AVD named myAVD. I opened Emulator in Eclipse,
successfully. On the top of the emulator, it shows 5554: myAVD. And
the screen works. Good.

4. Then I used the command $emulator -avd AVDName -kernel /route/.../
zImage. The Emulator is started (on the top, it also shows 5554:
myAVD). But the screen still keeps black.

5. I guess that there is some problems with my image file, so I
rebuilt it, but the situation remains the same. I also tried the
command %emulator -system .. -kernel .. -data ... but nothing changes.

I tried all the methods I could find in internet, but they don't solve
the problem. Needs your help again. Thanks a lot!
Message has been deleted

Benedikt Dietrich

unread,
Apr 18, 2012, 12:31:21 PM4/18/12
to Android Building
Hi Ryan,

make sure you run

$ make goldfish_armv7_defconfig

before you build the goldfish kernel

Thanks,
Benedikt ;-)

Ryan Xu

unread,
Apr 18, 2012, 12:52:08 PM4/18/12
to Android Building
It works now, tks.
Reply all
Reply to author
Forward
0 new messages