Merrill, William M. | 4 Feb 2012 01:28
Picon
Favicon

Support for the Android emulator using the msm8960 device build

Hello,

I am attempting to test out AOSP package, trimmed for an embedded device
using intended to run on the MSM8960. Prior to having hardware I would
like to test the Android code base using the Android emulator and
running with the prebuilt kernel included in the code aurora source
package.  Now prior to making any changes to the default AOSP target
(using the 8960 manifest) I wanted to test running the emulator without
a display. However, once I build the msm8960 target, and run this with
the prebuilt qemu kernel, adb logcat displays an endless loop as the
JNI_CreateJavaVM fails. I believe this is the correct mailing list to
post this question, but please let me know if I am mistaken. 

My question is if there is support for running the Android emulator
using the stock code aurora distribution built for the 8960? Any
suggestions are appreciated, I have searched Google, the AOSP source,
and mailing list without success yet for identifying a solution to my
problem.

The steps I have run are:

1) Using the M8960AAAAANLYA1021.xml manifest build the full AOSP target 
       . build/envsetup.sh
       choosecombo 1 2 msm8960 3
       m
2) Run the emulator using the prebuilt qemu armv7 kernel instead of the
kernel built with the code aurora:
      emulator -verbose -no-window -kernel
prebuilt/android-arm/kernel/kernel-qemu-armv7
3) Connect to the running emulator instance, first confirm shell access 
(Continue reading)

David Brown | 4 Feb 2012 08:56
Gravatar

Re: Support for the Android emulator using the msm8960 device build

On Fri, Feb 03, 2012 at 07:28:45PM -0500, Merrill, William M. wrote:

> My question is if there is support for running the Android emulator
> using the stock code aurora distribution built for the 8960? Any

I'm not aware of any support for any real MSM devices.  The emulator
is for a special ARM target called "goldfish" specifically made for
the emulator.

David

--

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
cee kvish | 4 Feb 2012 09:42
Picon

Re: Support for the Android emulator using the msm8960 device build

Hi,
    Why do you want to  run emulator with real devices?

Cee
Thanks

2012/2/4 David Brown <davidb <at> codeaurora.org>
>
> On Fri, Feb 03, 2012 at 07:28:45PM -0500, Merrill, William M. wrote:
>
> > My question is if there is support for running the Android emulator
> > using the stock code aurora distribution built for the 8960? Any
>
> I'm not aware of any support for any real MSM devices.  The emulator
> is for a special ARM target called "goldfish" specifically made for
> the emulator.
>
> David
>
> --
> Sent by an employee of the Qualcomm Innovation Center, Inc.
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Merrill, William M. | 4 Feb 2012 17:53
Picon
Favicon

RE: Support for the Android emulator using the msm8960 device build

Hi Cee,

I want to modify a device specific build, to run on the emulator prior to having a device to test with. Since I
am looking at an embedded target I am in the process of taking out components of the AOSP including system
components running in Dalvek as well as adding in underlying Linux services.  However I do not have a
hardware target yet (due to availability of the msm8960). 

As I understand it to run a device specific build in the emulator you need to direct the emulator to the kernel
to using the prebuilt qemu kernel (or a kernel built with the goldfish target). This allows you to run the
specific ~/out/ files built using the build system with the specific target.

Thanks for you your response. I am still learning what the emulator supports, so would appreciate any
suggestions or feedback.

Sincerely,
Billy 

-----Original Message-----
From: linux-arm-msm-owner <at> vger.kernel.org [mailto:linux-arm-msm-owner <at> vger.kernel.org] On
Behalf Of cee kvish
Sent: Saturday, February 04, 2012 12:42 AM
To: linux-arm-msm <at> vger.kernel.org
Subject: Re: Support for the Android emulator using the msm8960 device build

Hi,
    Why do you want to  run emulator with real devices?

Cee
Thanks

(Continue reading)

Merrill, William M. | 4 Feb 2012 17:43
Picon
Favicon

RE: Support for the Android emulator using the msm8960 device build

Thanks David,

I understand the goldfish target is a distinct target in the build
environment that allows you to build the complete AOSP including the
kernel for the emulator. However I thought the qemu basis of the
emulator allows any device AOSP build to be run against a goldfish
kernel. 

As I understand it you can build for real devices, then run components
(except for the kernel) using the prebuilt kernel. While there is a
goldfish target to build the emulator, you can run the emulator. What I
would like to do is run the device specified build on the emulator. I
have done this using different code bases (the cyanogenmod) but have not
yet been able to do this with code aurora's. 

Thanks for your response.

Sincerely,
Billy 

-----Original Message-----
From: linux-arm-msm-owner <at> vger.kernel.org
[mailto:linux-arm-msm-owner <at> vger.kernel.org] On Behalf Of David Brown
Sent: Friday, February 03, 2012 11:56 PM
To: Merrill, William M.
Cc: linux-arm-msm <at> vger.kernel.org
Subject: Re: Support for the Android emulator using the msm8960 device
build

On Fri, Feb 03, 2012 at 07:28:45PM -0500, Merrill, William M. wrote:
(Continue reading)

David Brown | 5 Feb 2012 01:51
Gravatar

Re: Support for the Android emulator using the msm8960 device build

On Sat, Feb 04, 2012 at 11:43:41AM -0500, Merrill, William M. wrote:

> I understand the goldfish target is a distinct target in the build
> environment that allows you to build the complete AOSP including the
> kernel for the emulator. However I thought the qemu basis of the
> emulator allows any device AOSP build to be run against a goldfish
> kernel. 
> 
> As I understand it you can build for real devices, then run components
> (except for the kernel) using the prebuilt kernel. While there is a
> goldfish target to build the emulator, you can run the emulator. What I
> would like to do is run the device specified build on the emulator. I
> have done this using different code bases (the cyanogenmod) but have not
> yet been able to do this with code aurora's. 

The issue is that qemu would have to have code written for it to
emulate the hardware of the specific SoC you wish to use.  There is
support for a couple of real devices in qemu, but I don't believe any
MSM devices are in there.

David

--

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
David Brown | 5 Feb 2012 04:47
Gravatar

Re: Support for the Android emulator using the msm8960 device build

On Sat, Feb 04, 2012 at 11:43:41AM -0500, Merrill, William M. wrote:
> Thanks David,
> 
> I understand the goldfish target is a distinct target in the build
> environment that allows you to build the complete AOSP including the
> kernel for the emulator. However I thought the qemu basis of the
> emulator allows any device AOSP build to be run against a goldfish
> kernel. 
> 
> As I understand it you can build for real devices, then run components
> (except for the kernel) using the prebuilt kernel. While there is a
> goldfish target to build the emulator, you can run the emulator. What I
> would like to do is run the device specified build on the emulator. I
> have done this using different code bases (the cyanogenmod) but have not
> yet been able to do this with code aurora's. 

Ah, I understand, I think.

The CodeAurora tree appears to not have the goldfish support in it
(it's a separate branch in Google's tree).  It shouldn't be too hard
to make the tree just use a specific kernel image rather than building
on.  There are some commits by David 'Digit' Turner in the ICS
mentioning 'atree'.  It mentions a -kernel
prebuilt/android-arm/kernel-qemu-armv7 option.  I'm not sure how to
use it, since I don't really do much outside of the kernel.

David

--

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
(Continue reading)

Merrill, William M. | 5 Feb 2012 19:18
Picon
Favicon

RE: Support for the Android emulator using the msm8960 device build

Hi David,

I will take a look at the commits you mention, thanks for the feedback.

Sincerely,
Bily

-----Original Message-----
From: David Brown [mailto:davidb <at> codeaurora.org] 
Sent: Saturday, February 04, 2012 7:48 PM
To: Merrill, William M.
Cc: linux-arm-msm <at> vger.kernel.org
Subject: Re: Support for the Android emulator using the msm8960 device
build

On Sat, Feb 04, 2012 at 11:43:41AM -0500, Merrill, William M. wrote:
> Thanks David,
> 
> I understand the goldfish target is a distinct target in the build 
> environment that allows you to build the complete AOSP including the 
> kernel for the emulator. However I thought the qemu basis of the 
> emulator allows any device AOSP build to be run against a goldfish 
> kernel.
> 
> As I understand it you can build for real devices, then run components

> (except for the kernel) using the prebuilt kernel. While there is a 
> goldfish target to build the emulator, you can run the emulator. What 
> I would like to do is run the device specified build on the emulator. 
> I have done this using different code bases (the cyanogenmod) but have
(Continue reading)


Gmane