Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to launch emulator from the built source?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rams  
View profile  
 More options Dec 23 2008, 9:47 am
From: rams <plram2...@gmail.com>
Date: Tue, 23 Dec 2008 06:47:50 -0800 (PST)
Local: Tues, Dec 23 2008 9:47 am
Subject: How to launch emulator from the built source?
Hi All,

I have downloaded the Android Sources using the repo tool.
Built the image. Now I have the following files in the folder
"/myandroid/out/target/product/generic/"
1) ramdisk.img
2) userdata.img
3) system.img
4) userdata-qemu.img.

Where & How to launch the emulator using these binaries?
Please tell me how to use goldfish.

Thank you,
Ram.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Android Zaurus  
View profile   Translate to Translated (View Original)
 More options Dec 23 2008, 7:25 pm
From: Android Zaurus <androidzau...@yahoo.co.jp>
Date: Tue, 23 Dec 2008 16:25:36 -0800 (PST)
Local: Tues, Dec 23 2008 7:25 pm
Subject: Re: How to launch emulator from the built source?
Hi,

A couple of ways you can try;

1) "make sdk" and you will get your own SDK.
2) Download SDK and replace img files with your build.

Cheers,

On 12月23日, 午後11:47, rams <plram2...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Landswipe  
View profile  
 More options Dec 25 2008, 7:54 am
From: Landswipe <thornley.da...@gmail.com>
Date: Thu, 25 Dec 2008 04:54:58 -0800 (PST)
Local: Thurs, Dec 25 2008 7:54 am
Subject: Re: How to launch emulator from the built source?
I run it like this :-

# out/host/linux-x86/bin/emulator -system out/target/product/generic -
kernel prebuilt/android-arm/kernel/kernel-qemu

I'm not sure if this is the correct method, but it works :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andriod Developer  
View profile   Translate to Translated (View Original)
 More options Dec 29 2008, 5:42 pm
From: Andriod Developer <andrd.dv...@gmail.com>
Date: Mon, 29 Dec 2008 14:42:49 -0800 (PST)
Local: Mon, Dec 29 2008 5:42 pm
Subject: Re: How to launch emulator from the built source?
I tried "make sdk" it fails. Did anybody try this?

On Dec 23, 4:25 pm, Android Zaurus <androidzau...@yahoo.co.jp> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "回复: [android-porting] Re: How to launch emulator from the built source?" by mark lee
mark lee  
View profile  
 More options Dec 30 2008, 10:12 pm
From: mark lee <gogofly_...@yahoo.com.cn>
Date: Wed, 31 Dec 2008 11:12:09 +0800 (CST)
Local: Tues, Dec 30 2008 10:12 pm
Subject: 回复: [android-porting] Re: How to launch emulator from the built source?

Acctually, after you build the Android source with "make", the emulator is built out at
./android/out/host/linux-x86/bin, if has setup the PATH of  three *.img and kernel path, the emulator can work well. 

--- 08年12月30日,周二, Andriod Developer <andrd.dv...@gmail.com> 写道:

发件人: Andriod Developer <andrd.dv...@gmail.com>
主题: [android-porting] Re: How to launch emulator from the built source?
收件人: "android-porting" <android-porting@googlegroups.com>
日期: 2008,1230,周二,6:42上午

I tried "make sdk" it fails. Did anybody try this?

On Dec 23, 4:25 pm, Android Zaurus <androidzau...@yahoo.co.jp> wrote:

      ___________________________________________________________
  好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jasperr  
View profile  
 More options Jan 2 2009, 7:18 am
From: jasperr <mengdong_...@hotmail.com>
Date: Fri, 2 Jan 2009 04:18:20 -0800 (PST)
Local: Fri, Jan 2 2009 7:18 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
I've tried the emulator I built under "./android/out/host/linux-x86/
bin", the mobile GUI pops out but keeps black screen, without
"android_" appearing on the screen.
I downloaded android SDK before. So I also tried to copy the three
*.img to "android-sdk-linux_x86-1.0_r1/tools/lib/images" and use the
emulator from the SDK, the same problem happened. But if I use the
original 3 images in the SDK, everything is  OK.

So it seems the 3 images I built  can not work with the emulator.
I built the image with the following config:
   TARGET_SIMULATOR:   false
   TARGET_BUILD_TYPE:  release
   TARGET_PRODUCT:     generic  ---- (I did not choose "emulator, is
this the root cause?)

Shall I choose "emulator" as the target product?
Thanks a lot!

Jasperr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jasperr  
View profile  
 More options Jan 2 2009, 7:26 am
From: jasperr <mengdong_...@hotmail.com>
Date: Fri, 2 Jan 2009 04:26:57 -0800 (PST)
Local: Fri, Jan 2 2009 7:26 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
But when I choose " TARGET_PRODUCT:     emulator"
and make, the building fails with the error:
build/core/product_config.mk:161: *** No matches for product
"emulator".  Stop.

Does somebody meet the same problem?

Best Regards
Jasperr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rams  
View profile  
 More options Jan 2 2009, 7:35 am
From: rams <plram2...@gmail.com>
Date: Fri, 2 Jan 2009 20:35:21 +0800
Local: Fri, Jan 2 2009 7:35 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?

Hi Jasper,

Try this: (Its working for me)

1) . build/envsetup.sh
2) choosecombo [1, 1, 2, then default option]
3) make

You should see the following when make is going on:
====================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
====================

Thats it. Good Luck!

Ram

2009/1/2 jasperr <mengdong_...@hotmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jasperr  
View profile  
 More options Jan 2 2009, 8:21 am
From: jasperr <mengdong_...@hotmail.com>
Date: Fri, 2 Jan 2009 05:21:12 -0800 (PST)
Local: Fri, Jan 2 2009 8:21 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
Thank you, Ram!

I made the same choices of "choosecombo" as you suggested.
And I found why the emulator "does not" work previously:
I did not wait for enough time! It seems it takes the emulator longer
for the 1st boot up when using a new image.
When I left for ten minutes and came back to my computer, I found it
boots up successfully.

Best Regards
Jasperr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jasperr  
View profile  
 More options Jan 2 2009, 9:51 am
From: jasperr <mengdong_...@hotmail.com>
Date: Fri, 2 Jan 2009 06:51:53 -0800 (PST)
Local: Fri, Jan 2 2009 9:51 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
I was happy too early. The emulator built from source still can not
work : the mobile screen keeps black and "adb shell" said "error:
device not found".
Here is my configuration for make:
=====================================
TARGET_PRODUCT=generic
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_OS=linux
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=TC3
======================================

And there is a strange thing for me:
I modified the video player in the api demo, then ran "make". Under
out/target/product/generic,  I saw both "system.img" and
"userdata.img"
are updated. Then I run the emulator from the downloaded SDK, which
can bootup successfully. I did not copy the 3 images I built to SDK
"tools/lib/images".  I found
1. it uses the "userdata.img" I built
    because my changes to the api demo make effect. I also use "adb
shell" to check the "data/app" and "data/dalvik-cache" of the device,
I saw both  "ApiDemos.apk" and  "data@a...@ApiDemos.apk@classes.dex"
are updated.

2. but does not use the "system.img" I built, but still use the one
with the SDK.
    I check "system/lib" on the device and saw some shared libraries'
name are for the emulator (libpv*.so), not as the one under "/system/
lib" built from the source (libopencore*.so).

I wonder Is there any difference between the emulator from the SDK and
that built from source? So the system image are not switchable?
I saw there is a file "kernel-qemu" from the SDK, but no such a file
built out from the source.

Is it enough only type "emulator" to run the emulator built from
source?

Thanks
Jasperr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rams  
View profile  
 More options Jan 2 2009, 10:03 am
From: rams <plram2...@gmail.com>
Date: Fri, 2 Jan 2009 23:03:42 +0800
Local: Fri, Jan 2 2009 10:03 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?

Jasper,

Please do one thing buddy. Try the above settings as I have mentioned.
You need not copy the images to your SDK. Keep your SDK
separate. Its not at all needed. You rename your SDK
emulator binary to emulator_1 to avoid confusion and also for
checking whether your built emulator works. First try making
the clean sources work perfectly and add changes one by one.

Thanks
Ram.

2009/1/2 jasperr <mengdong_...@hotmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jasperr  
View profile  
 More options Jan 5 2009, 3:39 am
From: jasperr <mengdong_...@hotmail.com>
Date: Mon, 5 Jan 2009 00:39:47 -0800 (PST)
Local: Mon, Jan 5 2009 3:39 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
It seems the problem is that the emulator can not use the "system.img"
I built.
And it's the "system.img" that cause the trouble.

I modified "linux-arm.mk" before I ran "make". I changed the arm arch
version from "armv5te" to "armv6j". I think that's why my code can run
on the target board but the emulator can not suppport it.

Thanks
Jasperr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Baptiste Queru  
View profile  
 More options Jan 5 2009, 3:51 am
From: Jean-Baptiste Queru <j...@google.com>
Date: Mon, 5 Jan 2009 09:51:02 +0100
Local: Mon, Jan 5 2009 3:51 am
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?
If I remember correctly the current emulator does not emulate all
ARMv6 instructions. I might be wrong.

JBQ

On 1/5/09, jasperr <mengdong_...@hotmail.com> wrote:

> It seems the problem is that the emulator can not use the "system.img"
> I built.
> And it's the "system.img" that cause the trouble.

> I modified "linux-arm.mk" before I ran "make". I changed the arm arch
> version from "armv5te" to "armv6j". I think that's why my code can run
> on the target board but the emulator can not suppport it.

> Thanks
> Jasperr

--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Turner  
View profile  
 More options Jan 5 2009, 12:13 pm
From: "David Turner" <di...@android.com>
Date: Mon, 5 Jan 2009 18:13:09 +0100
Local: Mon, Jan 5 2009 12:13 pm
Subject: Re: 回复: [android-porting] Re: How to launch emulator from the built source?

The emulator doesn't emulate *any* ARMv6 instruction at the moment (ARMv5TE
max)

2009/1/5 Jean-Baptiste Queru <j...@google.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »