How to build kernel for emulator (release-1.0 branch)?

170 views
Skip to first unread message

Bryne McCullough

unread,
Jan 30, 2009, 7:09:00 PM1/30/09
to android-platform
Hi Folks,

I got the Android source code (release-1.0 branch). I build and run
the emulator fine. But I have to run using the prebuilt kernel-qemu
image. Calling make from the Android root, doesn't seem to make the
kernel. How do I make my own kernel image for the emulator? Thanks
much.

Grigory F.

unread,
Feb 1, 2009, 9:55:37 AM2/1/09
to android-platform
On 31 Jan., 01:09, Bryne McCullough <bryne.mccullo...@gmail.com>
wrote:
> I got the Android source code (release-1.0 branch). I build and run
> the emulator fine. But I have to run using the prebuilt kernel-qemu
> image. Calling make from the Androidroot, doesn't seem to make the
> kernel. How do I make my own kernel image for the emulator? Thanks
> much.

Hi,

try 'make' then 'make sdk'

look at ANDROID_SOURCE_HOME/out/host/YOUR_OS/sdk/android-sdk-BLA/
platforms/android-1.5/images

Bryne McCullough

unread,
Feb 2, 2009, 2:24:40 AM2/2/09
to android-platform
Thanks for the suggestion, Grigory. For anyone else interested, here's
what I ended up doing to build the kernel for the release-1.0 branch:

# get the release-1.0 source
$ mkdir android_release-1.0
$ cd android_release-1.0
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
release-1.0
$ repo sync

# build Android system including emulator (doesn't build the kernel)
$ . build/envsetup.sh
$ lunch 1
$ make

# get the kernel config from the emulator using the prebuilt kernel
$ out/host/linux-x86/bin/emulator -kernel prebuilt/android-arm/kernel/
kernel-qemu -system out/target/product/generic/ &
$ out/host/linux-x86/bin/adb pull /proc/config.gz kernel/
# kill the running emulator

# make the kernel
$ cd kernel
$ gunzip config.gz
$ mv config .config
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
$ make

# run the emulator using the newly built kernel
$ cd ..
$ out/host/linux-x86/bin/emulator -kernel kernel/arch/arm/boot/zImage -
system out/target/product/generic/ &

dvp

unread,
Feb 19, 2009, 9:51:41 PM2/19/09
to android-platform
hi i am new to android, did android platform build using release 1.0
source, also got the kernel img by making a build using make sdk
emulator -ramdisk ramdisk.img -image system.img -initdata userdata.img
-data userdata.image -kernel (kernelpath)

my emulator does not show menu, can u guys suggest how to resolve the
issue?

On Feb 2, 2:24 am, Bryne McCullough <bryne.mccullo...@gmail.com>
wrote:
> > platforms/android-1.5/images- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
Message has been deleted
0 new messages