emulator support in 2.6.27 ?

9 views
Skip to first unread message

Don Mullis

unread,
Nov 25, 2008, 3:31:14 PM11/25/08
to android...@googlegroups.com
Don't see any commits of goldfish code in the android-2.6.27 branch of
kernel/common.git, yet. Will the emulator be supported in 2.6.27?

thanks,
D

Mike Chan

unread,
Nov 25, 2008, 3:48:02 PM11/25/08
to android...@googlegroups.com
Yes it will, I've ported the patches about a month ago and got the emulator booting we have not pushed it yet. I haven't tried booting it recently. I think once we stabilize the msm branch we'll push goldfish.
--
MIke Chan

jinyan

unread,
Dec 25, 2008, 1:56:30 AM12/25/08
to Android Linux Kernel Development
It seems the emulator cant boot current release still, right ? Is
there any plan to push goldfish ?

thanks

On Nov 26, 4:48 am, "Mike Chan" <m...@android.com> wrote:
> Yes it will, I've ported the patches about a month ago and got the emulator
> booting we have not pushed it yet. I haven't tried booting it recently. I
> think once we stabilize the msm branch we'll push goldfish.
>

Mike Chan

unread,
Jan 6, 2009, 5:59:11 PM1/6/09
to android...@googlegroups.com
Hopefully very soon, the team is just getting back from the holiday season.
--
MIke Chan

LucaBelluccini

unread,
Jan 26, 2009, 10:12:39 PM1/26/09
to Android Linux Kernel Development
Need emulator support for new kernel. Please, we're working on it...

On 6 Gen, 23:59, "Mike Chan" <m...@android.com> wrote:
> Hopefully very soon, the team is just getting back from the holiday season.
>
>
>
> On Wed, Dec 24, 2008 at 10:56 PM, jinyan <caijinyan2...@gmail.com> wrote:
>
> > It seems theemulatorcant boot current release still, right ? Is
> > there any plan to push goldfish ?
>
> > thanks
>
> > On Nov 26, 4:48 am, "Mike Chan" <m...@android.com> wrote:
> >> Yes it will, I've ported the patches about a month ago and got theemulator
> >> booting we have not pushed it yet. I haven't tried booting it recently. I
> >> think once we stabilize the msm branch we'll push goldfish.
>
> >> On Tue, Nov 25, 2008 at 12:31 PM, Don Mullis <don.mul...@gmail.com> wrote:
>
> >> > Don't see any commits of goldfish code in the android-2.6.27 branch of
> >> > kernel/common.git, yet.  Will theemulatorbe supported in 2.6.27?

Jean-Baptiste Queru

unread,
Jan 26, 2009, 11:02:25 PM1/26/09
to android...@googlegroups.com
I think it's coming soon. If not in the next push, it'll probably be
in the one after that.

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

Brian Swetland

unread,
Jan 28, 2009, 1:08:31 AM1/28/09
to android...@googlegroups.com
[Jean-Baptiste Queru <j...@google.com>]

>
> I think it's coming soon. If not in the next push, it'll probably be
> in the one after that.

The latest 2.6.27 goldfish kernel is now available:
http://android.git.kernel.org/?p=kernel/common.git;a=shortlog;h=refs/heads/android-goldfish-2.6.27

We'll be keeping this goldfish branch(es) up to date in the
kernel/common tree from here on out.

Brian

Leon

unread,
Feb 4, 2009, 9:32:36 AM2/4/09
to Android Linux Kernel Development
Hi,
I am not familiar with git.
I do not know to how to switch from refs/heads/android-2.6.27 to refs/
heads/android-goldfish-2.6.27.
Could you tell me how to use git command to get android-
goldfish-2.6.27 ?

Thanks a lot,

Leon


On Jan 28, 2:08 pm, Brian Swetland <swetl...@google.com> wrote:
> [Jean-Baptiste Queru <j...@google.com>]
>
>
>
> > I think it's coming soon. If not in the next push, it'll probably be
> > in the one after that.
>
> The latest 2.6.27 goldfish kernel is now available:http://android.git.kernel.org/?p=kernel/common.git;a=shortlog;h=refs/...

Greg KH

unread,
Feb 4, 2009, 10:38:31 AM2/4/09
to android...@googlegroups.com
On Wed, Feb 4, 2009 at 6:32 AM, Leon <astrol...@gmail.com> wrote:
>
> Hi,
> I am not familiar with git.

There are _many_ tutorials on the web which will help you resolve this
problem. Have you tried reading them?

> I do not know to how to switch from refs/heads/android-2.6.27 to refs/
> heads/android-goldfish-2.6.27.
> Could you tell me how to use git command to get android-
> goldfish-2.6.27 ?

Just checkout the remote android-goldfish-2.6.27 branch. This can be
done in a variety of different ways, but the most common would be:

git checkout -t origin/android-goldfish-2.6.27 -b goldfish

which would create a local branch called goldfish and check it out and
cause it to track the upstream goldfish branch.

good luck,

greg k-h

mshah

unread,
Feb 4, 2009, 5:37:02 PM2/4/09
to Android Linux Kernel Development
Hello,

I've checked out the goldfish branch and have built using the arch/arm/
configs/goldfish_defconfig .config file, the prebuilt arm-eabi
toolchain, and ARCH set to arm. However, running the emulator with
the custom kernel does not work:

$ emulator -kernel arch/arm/boot/zImage

The emulator remains at the "Android..." screen. For about a minute
after launching the emulator, "adb devices" returns "emulator-5554
offline" after which adb does not find any devices. I would
appreciate any help regarding what I should do to get the emulator to
boot a custom kernel.

Thank you.

On Feb 4, 10:38 am, Greg KH <gre...@gmail.com> wrote:

Bryne McCullough

unread,
Feb 4, 2009, 6:45:17 PM2/4/09
to Android Linux Kernel Development
Perhaps you need the -system argument to the emulator. So after
building Android and the kernel tree, I do something like this:

$ out/host/linux-x86/bin/emulator -kernel kernel/arch/arm/boot/zImage -
system out/target/product/generic/

Leon

unread,
Feb 4, 2009, 6:50:04 PM2/4/09
to Android Linux Kernel Development
Hi Greg,
Thank for your help.
I did try finding the solution by myself.
I think that I will spend more time to understand git.
Git seems quit different compared to CVS and SVN.

Thanks,

Leon


On Feb 4, 11:38 pm, Greg KH <gre...@gmail.com> wrote:

mshah

unread,
Feb 4, 2009, 11:36:43 PM2/4/09
to Android Linux Kernel Development
Thanks Bryne. The -system argument is just what I needed.

On Feb 4, 6:45 pm, Bryne McCullough <bryne.mccullo...@gmail.com>
wrote:

Joe

unread,
Feb 26, 2009, 7:44:02 AM2/26/09
to Android Linux Kernel Development
Hi All

I downloaded the goldfish kernel and want to replace the current
emulator kernel image(2.6.25) with this new one.

From where will i get the config file for this new kernel version
2.6.27

Please help
Joe
> > > > greg k-h- Hide quoted text -
>
> - Show quoted text -

yash

unread,
Apr 8, 2009, 2:28:09 AM4/8/09
to Android Linux Kernel Development
With the following steps i am able to start the emulator successfully,
but the emulator screen gets locked.I am able to use adb shell.

Can anyone help in this regard...??
Thanks in advance......!!!

Compiling Android kernel sources for getting kernel-image for the
emulator

(1) Get the Android Kernel latest sources

(2) Get toolchains from CodeSourcery (Choose ARM GNU/Linux and IA32
GNU/Linux)

(3) Untar the toolchain and the android kernel sources

(4) Start the Android emulator (go to the android-sdk directory and
start the emulator)

# ./emulator

(5) Get the config.gz from the running emulator using ‘adb’

# ./adb pull /proc/config.gz .

(6) Decompress the config.gz and rename it to .config

# gunzip config.gz
# mv config .config

(7) Replace the old .config in the android kernel sources with the
above .config file

(8) Specify the CROSS_COMPILE path in the Makefile of android kernel
sources

(9) Comment out LDFLAGS_BUILD_ID in the same Makefile
# LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
$(call ld-option, -
Wl $(comma)--build-id,))

(10) Issue the make command for the kernel
# make menuconfig ARCH=arm (just check and uncheck anything, but
don’t forget to save the config)
# make ARCH=arm

(11) Kernel image will be created at arch/arm/boot/zImage

(12) You can start the emulator by issuing the following command(go to
the android-sdk directory and start the emulator)

# ./emulator –kernel ../arch/arm/boot/zImage -show-kernel -shell

Yi Sun

unread,
Apr 8, 2009, 12:24:53 PM4/8/09
to android...@googlegroups.com
I have done a little bit different from what you did,
1. instead of to get toolchain from CodeSourcery, I get it from the
prebuild directory of android source
2. get the goldfish by:
git-clone git://android.git.kernel.org/kernel/common.git
git checkout -t origin/android-goldfish-2.6.27 -b goldfish
3. make ARCH=arm CROSS_COMPILE=<my toolchain> goldfish_defconfig
4. make ARCH=arm CROSS_COMPILE=<my toolchain> zImage
Reply all
Reply to author
Forward
0 new messages