Issues in running ARM emulator after building the AOSP source code

829 views
Skip to first unread message

Priyanka Bose

unread,
Dec 27, 2018, 3:02:48 PM12/27/18
to Android Building
Hi,

I am am trying to run the emulator for aosp_source code : arm64 target. 
I have downloaded the source code from the android AOSP master , and built the android image .
Everytime i try to start the emulator it hangs with android logo screen. It never boots to the home screen.
I followed the below steps to build the source code :

 1. => source build/envsetup.sh  
 2. => lunch aosp_arm64-eng 
 3. => make -j24
 4. => emulator

List of devices attached
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully *
emulator-5554   device

I can even see that emulator in the adb devices list on my host  but the emulator screen just pops up with the "android" logo . It never boots to home menu even after a long time
I tried running  with "emulator -verbose" but i only get these debug logs :

=======
emulator: Starting QEMU main loop                                                                                                  
emulator: registered 'boot-properties' qemud service    
...
VERBOSE: AdbHostServer.cpp:49: Send [0012host:emulator:5555] to adb daemon.
emulator: WARNING: Ignoring invalid http proxy: Bad format: invalid port number (must be decimal)
VERBOSE: AdbHostServer.cpp:49: Send [0012host:emulator:5555] to adb daemon.
emulator: onGuestSendCommand: [0x5313d60] Adb connected, start proxing data
emulator: 'magic' skin format detected: 480x800
emulator: WARNING: UpdateCheck: Failure: Error
emulator: WARNING: UpdateCheck: failed to get the latest version, skipping check (current version '28.0.15-5109391')
==============

Any help is appreciated to start the  emulator for arm ?

Saket Sinha

unread,
Dec 29, 2018, 12:27:59 PM12/29/18
to Android Building
Hi Priyanka,

I am not sure if you have followed all the steps for invoking the emulator here so listing them below -

1. After building AOSP, you should have below files -

a) system.img
b) userdata.img
c) ramdisk.ing

in out/target/product.generic_x86/

2) Create AVD using avdmanager
avdmanager create avd -n a25x86 --tag google_apis -k 'system-images;android-25;google_apis;x86'

3) Run emulator with prebuilt images-
emulator @a25x86 -verbose -show-kernel -shell -engine classic

3) run the emulator with your AOSP built images -
    emulator@a25x86 -verbose -show-kernel -system out/system.img -ramdisk out/ramdisk.img -initdata out/userdata.img   

Regards,
Saket Sinha                      
Reply all
Reply to author
Forward
0 new messages