I never worked on Android emulator. But you may want to try enabling kernel Low 
Level Debug prints and see what is going wrong while booting. 


Sent from my iPhone

On 04-May-2012, at 5:21 AM, Tim Bird <tbird...@gmail.com> wrote:

> I'm having problems compiling a kernel for the emulator.
> 
> I've got the goldfish repository
> (https://android.googlesource.com/kernel/goldfish),
> and I checked out branch 'android-goldfish-2.6.29'.
> 
> This puts me at commit: ef9c64a1c
> I compile the kernel (using 'arm-eabi-gcc' version 4.4.3 from the prebuilts.
> When I use this kernel with the emulator, it hangs after the message
> 'Uncompressing Linux....... done, booting the kernel.'  (using
> 'emulator -show-kernel')
> 
> I checked out the git log for the prebuilt emulator kernel
> (prebuilts/qemu-kernel/arm/kernel-qemu-armv7), and it references commit id
> 46b05b2fc05 (which is in my tree).  So I tried that, but with the same result.
> 
> The prebuilt kernel mentions a commit id of 497e41.
> Linux version 2.6.29-gc497e41 (kr...@kennyroot.mtv.corp.google.com)
> (gcc version 4.4.3 (GCC) ) #2 Thu Dec 8 15:07:43 PST 2011
> 
> I looked around for that commit, but couldn't find that in the
> goldfish repository.  I'm not sure what to do next.
> 
> Am I using the right toolchain?  What is this other toolchain in the
> prebuilts area:
> arm-linux-androideabi-4.4.x ??  Should I be using this instead for the kernel?
> 
> I'm stumped.  Any ideas or help would be appreciated.  Has anyone else
> gotten this working recently?
> 
> Thanks,
> -- Tim
> 
> On Fri, Mar 30, 2012 at 10:56 AM, mark gross <mark97...@gmail.com> wrote:
>> the emulator expects to have emulator hardware supported in the
>> kernel.  If you don't have support for it in whatever you are building
>> it will behave just like hardware does and not work.
>> 
>> the kernel git for it is in the AOSP
>> https://android.googlesource.com/kernel/goldfish
>> 
>> it has one interesting branch for android-goldfish-2.6.29
>> 
>> --mark
>> 
>> On Fri, Mar 30, 2012 at 12:34 AM, gloria zhao <zhaozl1...@gmail.com> wrote:
>>> I have tried many versions of Android kernel, and many wiki/
>>> instructions said after compiling, use Emulator -avd XXX -kernel
>>> zImage......
>>> 
>>> However, only the goldfish kernel can work in this way
>>> 
>>> Could you please tell me is it real that any version (eg:common) can
>>> run on Emulator?
>>> Please!!!!!!!
>>> 
>>> --
>>> unsubscribe: android-kernel+unsubscr...@googlegroups.com
>>> website: http://groups.google.com/group/android-kernel
>> 
>> 
>> 
>> --
>> create interesting things.
>> 
>> --
>> unsubscribe: android-kernel+unsubscr...@googlegroups.com
>> website: http://groups.google.com/group/android-kernel
> 
> -- 
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

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

Reply via email to