Emulator stuck on A N D R O I D

1,059 views
Skip to first unread message

Maciej Klimas

unread,
Apr 28, 2012, 6:32:58 AM4/28/12
to android-...@googlegroups.com
I built AOSP 2.3.7 from sources for my device (htc vision) but while I want to test if it works on emulator I doesn't boot, I noticed that theres missing overlay.default.so in /system/lib/hw, is this a problem? Board use msm7x30 chip. Do I need to compile my own kernel to get overlay.default.so under /system/lib/hw? Or is it issue due to ext4 partitions that I want to use and thats why they cannot be mounted?
building at ubuntu 12.04 x64, build system works ok, I've used gcc/g++ v.4.4 and sun java6 with it.

by the way
how can I change default emulator config parameters as my devices use 800x480 resolution and has 512mb ram. When I edit file it got recreated with old parameters.

Here's terminal output for emulator:

mesaj@Mesaj-FX610:~/aosp$ emulator -show-kernel -verbose  -kernel prebuilt/android-arm/kernel/kernel-qemu-armv7
emulator: found Android build root: /home/mesaj/aosp
emulator: found Android build out:  /home/mesaj/aosp/out/target/product/vision
emulator: Found target ABI=armeabi-v7a, architecture=arm
emulator: Found target API level: 10
emulator: using core hw config path: /home/mesaj/aosp/out/target/product/vision/hardware-qemu.ini
emulator: found skin-specific hardware.ini: /home/mesaj/aosp/development/tools/emulator/skins/HVGA/hardware.ini
emulator: autoconfig: -skin HVGA
emulator: autoconfig: -skindir /home/mesaj/aosp/development/tools/emulator/skins
emulator: keyset loaded from: /home/mesaj/.android/default.keyset
emulator: trying to load skin file '/home/mesaj/aosp/development/tools/emulator/skins/HVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: autoconfig: -ramdisk /home/mesaj/aosp/out/target/product/vision/ramdisk.img
emulator: autoconfig: -sysdir /home/mesaj/aosp/out/target/product/vision
emulator: Using initial system image: /home/mesaj/aosp/out/target/product/vision/system.img
emulator: WARNING: system partition size adjusted to match image file (93 MB > 66 MB)

emulator: autoconfig: -data /home/mesaj/aosp/out/target/product/vision/userdata-qemu.img
emulator: autoconfig: -initdata /home/mesaj/aosp/out/target/product/vision/userdata.img
emulator: Physical RAM size: 256MB

Content of hardware configuration file:
  hw.cpu.arch = arm
  hw.cpu.model = 
  hw.ramSize = 256
  hw.touchScreen = yes
  hw.trackBall = yes
  hw.keyboard = yes
  hw.keyboard.lid = yes
  hw.dPad = yes
  hw.gsmModem = yes
  hw.camera = no
  hw.camera.maxHorizontalPixels = 640
  hw.camera.maxVerticalPixels = 480
  hw.gps = yes
  hw.battery = yes
  hw.accelerometer = yes
  hw.audioInput = yes
  hw.audioOutput = yes
  hw.sdCard = yes
  hw.sdCard.path = 
  disk.cachePartition = yes
  disk.cachePartition.path = 
  disk.cachePartition.size = 66m
  hw.lcd.width = 320
  hw.lcd.height = 480
  hw.lcd.depth = 16
  hw.lcd.density = 160
  hw.lcd.backlight = yes
  vm.heapSize = 48
  hw.sensors.proximity = yes
  kernel.path = prebuilt/android-arm/kernel/kernel-qemu-armv7
  kernel.parameters =  android.checkjni=1
  disk.ramdisk.path = /home/mesaj/aosp/out/target/product/vision/ramdisk.img
  disk.systemPartition.initPath = /home/mesaj/aosp/out/target/product/vision/system.img
  disk.systemPartition.size = 93m
  disk.dataPartition.path = /home/mesaj/aosp/out/target/product/vision/userdata-qemu.img
  disk.dataPartition.size = 66m
  disk.snapStorage.path = 
  avd.name = <build>
.
QEMU options list:
emulator: argv[00] = "/home/mesaj/aosp/out/host/linux-x86/bin/emulator-arm"
emulator: argv[01] = "-cpu"
emulator: argv[02] = "cortex-a8"
emulator: argv[03] = "-show-kernel"
emulator: argv[04] = "-android-hw"
emulator: argv[05] = "/home/mesaj/aosp/out/target/product/vision/hardware-qemu.ini"
Concatenated QEMU options:
 /home/mesaj/aosp/out/host/linux-x86/bin/emulator-arm -cpu cortex-a8 -show-kernel -android-hw /home/mesaj/aosp/out/target/product/vision/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: nand_add_dev: system,size=0x5d00000,initfile=/home/mesaj/aosp/out/target/product/vision/system.img
emulator: mapping 'system' NAND image to /tmp/android-mesaj/emulator-9dgA1p
emulator: rounding devsize up to a full eraseunit, now 5d12000

emulator: nand_add_dev: userdata,size=0x4200000,file=/home/mesaj/aosp/out/target/product/vision/userdata-qemu.img
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: nand_add_dev: cache,size=0x4200000
emulator: mapping 'cache' NAND image to /tmp/android-mesaj/emulator-WGijaA
emulator: Kernel parameters: qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
emulator: Trace file name is not set

serial0 console
emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Connection refused
emulator: ping program: /home/mesaj/aosp/out/host/linux-x86/bin/ddms
Uncompressing Linux............................................................................................ done, booting the kernel.
goldfish_fb_get_pixel_format:167: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:       16
  red:         bits=5 mask=0xf800 shift=11 max=0x1f
  green:       bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:        bits=5 mask=0x1f shift=0 max=0x1f
  alpha:       bits=0 mask=0x0 shift=0 max=0x0
Linux version 2.6.29-00261-g0097074-dirty (hid...@digit.mtv.corp.google.com) (gcc version 4.4.0 (GCC) ) #21 Wed Mar 31 11:31:43 PDT 2010
CPU: ARMv7 Processor [410fc080] revision 0 (ARMv7), cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Goldfish
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
Unknown boot option `android.qemud=ttyS1': ignoring
Unknown boot option `android.checkjni=1': ignoring
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 256000KB available (2588K code, 681K data, 104K init)
Calibrating delay loop... 318.66 BogoMIPS (lpj=1593344)
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs... it is
Freeing initrd memory: 140K
goldfish_new_pdev goldfish_interrupt_controller at ff000000 irq -1
goldfish_new_pdev goldfish_device_bus at ff001000 irq 1
goldfish_new_pdev goldfish_timer at ff003000 irq 3
goldfish_new_pdev goldfish_rtc at ff010000 irq 10
goldfish_new_pdev goldfish_tty at ff002000 irq 4
goldfish_new_pdev goldfish_tty at ff011000 irq 11
goldfish_new_pdev goldfish_tty at ff012000 irq 12
goldfish_new_pdev smc91x at ff013000 irq 13
goldfish_new_pdev goldfish_fb at ff014000 irq 14
goldfish_new_pdev goldfish_audio at ff004000 irq 15
goldfish_new_pdev goldfish_memlog at ff006000 irq -1
goldfish_new_pdev goldfish-battery at ff015000 irq 16
goldfish_new_pdev goldfish_events at ff016000 irq 17
goldfish_new_pdev goldfish_nand at ff017000 irq -1
goldfish_new_pdev qemu_pipe at ff018000 irq 18
goldfish_new_pdev goldfish-switch at ff01a000 irq 19
goldfish_new_pdev goldfish-switch at ff01b000 irq 20
goldfish_pdev_worker registered goldfish_interrupt_controller
goldfish_pdev_worker registered goldfish_device_bus
goldfish_pdev_worker registered goldfish_timer
goldfish_pdev_worker registered goldfish_rtc
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered smc91x
goldfish_pdev_worker registered goldfish_fb
goldfish_audio_probe
goldfish_pdev_worker registered goldfish_audio
goldfish_pdev_worker registered goldfish_memlog
goldfish_pdev_worker registered goldfish-battery
goldfish_pdev_worker registered goldfish_events
goldfish_pdev_worker registered goldfish_nand
goldfish_pdev_worker registered qemu_pipe
goldfish_pdev_worker registered goldfish-switch
goldfish_pdev_worker registered goldfish-switch
ashmem: initialized
Installing knfsd (copyright (C) 1996 hid...@monad.swb.de).
yaffs Mar 31 2010 11:31:39 Installing. 
msgmni has been set to 500
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
allocating frame buffer 320 * 480, got ffa10000
Console: switching to colour frame buffer device 40x30
console [ttyS0] enabled
brd: module loaded
loop: module loaded
nbd: registered device at major 43
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <hid...@cam.org>
eth0 (smc91x): not using net_device_ops yet
eth0: SMC91C11xFD (rev 1) at d084c000 IRQ 13 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
goldfish nand dev0: size 5a40000, page 2048, extra 64, erase 131072
goldfish nand dev1: size 4000000, page 2048, extra 64, erase 131072
goldfish nand dev2: size 4000000, page 2048, extra 64, erase 131072
mice: PS/2 mouse device common for all mice
*** events probe ***
events_probe() addr=0xd0854000 irq=17
events_probe() keymap=qwerty2
input: qwerty2 as /devices/virtual/input/input0
goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as rtc0
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: hid...@redhat.com
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
802.1Q VLAN Support v1.8 Ben Greear <hid...@candelatech.com>
All bugs added by David S. Miller <hid...@redhat.com>
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 0
goldfish_rtc goldfish_rtc: setting system clock to 2012-04-28 10:16:31 UTC (1335608191)
Freeing init memory: 104K
init: cannot open '/initlogo.rle'
yaffs: dev is 32505856 name is "mtdblock0"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.0, "mtdblock0"
block 305 is bad
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
yaffs_read_super: isCheckpointed 0
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
init: cannot find '/system/bin/vold', disabling 'vold'
init: cannot find '/system/bin/netd', disabling 'netd'
init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
init: cannot find '/system/bin/rild', disabling 'ril-daemon'
init: cannot find '/system/bin/app_process', disabling 'zygote'
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/bin/keystore', disabling 'keystore'
init: cannot find '/system/etc/init.goldfish.sh', disabling 'goldfish-setup'
init: cannot find '/system/bin/qemud', disabling 'qemud'
init: cannot find '/system/bin/logcat', disabling 'goldfish-logcat'
emulator: User-config was not changed.

Jean-Baptiste Queru

unread,
Apr 28, 2012, 10:07:39 AM4/28/12
to android-...@googlegroups.com
You generally can't run device builds on the emulator:

-different kernel
-different userland libraries
-potentially different storage format (emulator uses yaffs over
emulated NAND flash)
-potentially different instruction set (not much an issue any more as
the emulator has ARMv7-A, VFPv3-D32, NEON).

At some point in the past, it was somewhat possible. to build a system
image that'd run on both device and emulator, but that required having
the userland libraries for both at the same time, using the same
filesystem, and using the lowest common denominator for the
instruction set.

That worked well on early engineering hardware, 4+ years ago (the
emulator hardware is somewhat close to one of the development devices
we used before dream), and it stretched OK for dream and sapphire. It
became tricky with sholes and passion, because they used ARMv7-A when
at the time the emulator was ARMv5TE, and impossible with crespo,
because its system partition was ext4 on eMMC.

Today, I wouldn't count on it.

JBQ
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Maciej Klimas

unread,
Apr 28, 2012, 3:59:46 PM4/28/12
to android-...@googlegroups.com
Thanks for your reply.
All the reasons can match my problem here as my build uses ext4, kernel for emulator isn't same as for device, probably it doesn't have ext4 support, can use different libraries, just instruction set should be supported as I used ARMv7-a kernel-qemu image and as said emulator supports it. Well, you explained it better than I excepted, so I'll give up testing it with emulator and go straight to flashing my build and testing on device now. I was searching for solution on this but I found none so I had to ask.
Thanks again for help.

Maciej Klimas
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages