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
On Tue, 2009-04-07 at 23:28 -0700, yash wrote: > 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 > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---