Thanks. It works.

Powered By Shangmail

--------Original Message--------

From: di...@android.com
To: android-porting@googlegroups.com
Subject: [android-porting] Re: Emulator does not show up when using self-build 
kernel 
Please follows the instructions here to rebuild an emulator-specific kernel:

http://android.git.kernel.org/?p=platform/external/qemu.git;a=blob;f=docs/KERNEL.TXT;h=7387e55d5362be8e2dc00e634277a9fdbdd66db6;hb=ceb00f8c44e26d948e28b7a3ccef8fd2068589d9

Anything else is likely to fail.

2009/8/26 马不停蹄的猪 

>

> Hi all,

> I download the android kernel and build by myself. But when I use

> emulator to load my kernel, the emulator does not show up.

> Below are the steps what I do.

> 1, download android source code of Cupcake.

> 2, make (build the source code)

> 3, make sdk (build the sdk)

> 4, run emulator(generated in cupcake/out/host/linux-x86/sdk/android-

> sdk_eng.srj_linux-x86/tools) and pull out config.gz by adb.

> 5, git clone git://android.git.kernel.org/kernel/common.git

>   git checkout  -b goldfish

>   Now the kernel is in common directory

> 6, gunzip config.gz and copy to common directory and rename it

> to .config

> 7, set environment variable to the correct value: export ARCH=arm

> export CROSS_COMPILE=arm-eabi-

> 7, run make

> Then there are some options need to choose manually and some are

> choosed automatically. I list the manually choosed options as below

>

> Restart config...

> Support Versatile/PB platform (ARCH_VERSATILE_PB) [Y/n/?] (NEW)  Y

> Support Versatile/AB platform (MACH_VERSATILE_AB) [N/y/?] (NEW)  N

> PCI support (PCI) [N/y/?] (NEW) N

> Low address space to protect from user allocation

> (DEFAULT_MMAP_MIN_ADDR) [4096] (NEW) (Just 'Enter' for this option)

> Timer and CPU usage LEDs (LEDS) [N/y/?] (NEW) N

> AMBA KMI keyboard controller (SERIO_AMBAKMI) [N/y] (NEW) N

> ARM AMBA PL011 serial port support (SERIAL_AMBA_PL011) [N/y/?] (NEW) N

> ARM PrimeCell PL110 support (FB_ARMCLCD) [N/y/?] (NEW) N

> ARM AMBA Multimedia Card Interface support (MMC_ARMMMCI) [N/y/?] (NEW)

> N

> ARM AMBA PL030 RTC (RTC_DRV_PL030) [N/y/?] (NEW) N

> ARM AMBA PL031 RTC (RTC_DRV_PL031) [N/y/?] (NEW) n

>

> Finally, kernel is built successfully. And zImage is under common/arch/

> arm/boot. I use this image to load emulator like below:

>

>  emulator -avd cupcake -kernel /home/cupcake/common/arch/arm/boot/

> zImage -sysdir /home/cupcake/out/target/product/generic

>

> The emulator does not show up. Does any one know the rootcause? Thanks

> in advance.

>

> >

>



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to