cupcake kernel version and .config question

2 views
Skip to first unread message

Bryne McCullough

unread,
Feb 1, 2009, 2:17:27 AM2/1/09
to android-platform

The cupcake branch is supposed to use a 2.6.27 kernel, and indeed that
appears to be the version of the kernel source under $ANDROID_ROOT/
kernel. But the prebuilt kernel under $ANDROID_ROOT/prebuilt/android-
arm/kernel/kernel-qemu appears to still be 2.6.25. Anybody know why
that is?

Also, if I wanted to build the cupcake kernel for use with the
emulator, where would I get the .config that should be used? I can't
take it from the emulator's filesystem (/proc/config.gz) because
that's for 2.6.25.

Bryne McCullough

unread,
Feb 4, 2009, 3:27:30 PM2/4/09
to android-platform
A better way to ask my 1st question is: Will cupcake (the user-space
portion) be able to run on either the 2.6.25 or the 2.6.27 Android
kernel? From my experiments, it seems to run on either kernel right
now. I'd like to know if that will remain the case, and if all
platform features will be supported on either kernel?

For those curious, I figured out my 2nd question about where to find
the .config for the 2.6.27 kernel. If you get the Android source tree
using:

$ mkdir ~/android_root ; cd ~/android_root
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
cupcake
$ repo sync

You won't find any goldfish (code name for the emulator hardware
platform) files in the synced 2.6.27 kernel source tree. So do this:

$ cd kernel
$ git checkout --track korg/android-goldfish-2.6.27 -b goldfish

Now you'll find a number of goldfish files on that branch, and you can
make the kernel like so:

$ cd ~/android_root
$ . build/envsetup.sh
$ lunch 1
$ cd kernel
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
$ make goldfish_defconfig
# you now have a .config file
$ make

You should now have a 2.6.27 kernel at ~/android_root/kernel/arch/arm/
boot/zImage which you can use with your emulator's -kernel command
line option.


On Jan 31, 11:17 pm, Bryne McCullough <bryne.mccullo...@gmail.com>
wrote:

Mike Lockwood

unread,
Feb 4, 2009, 4:56:07 PM2/4/09
to android-...@googlegroups.com
Cupcake requires the 2.6.27 kernel. Perhaps more than 90% of things
will still work with 2.6.25, but not everything. We are not
supporting 2.6.25 and are not even sure exactly what will break if you
use it.

We just updated the goldfish emulator kernel to 2.6.27 (looks like you
already found it).

Mike

--
Mike Lockwood
Google android team

Bryne McCullough

unread,
Feb 4, 2009, 5:50:50 PM2/4/09
to android-platform
Thanks Mike!
Reply all
Reply to author
Forward
0 new messages