Hi Tim, I am able to successfully compile the goldfish kernel for the emulator. Here is the link I follow.
http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator Regards, Kanishka On Fri, May 4, 2012 at 10:20 AM, Tim Bird <tbird...@gmail.com> wrote: > Thanks. I've done that on other boards, but somehow had forgotten to > do it for the emulator. > > When I did it, I saw this message: > Error: unrecognized/unsupported processor variant (0x410fc080). > > After poking around a bit, I figured out that the emulator is running > as a Cortex A8 processor, but my kernel > was compiled for an ARM 926 CPU. > > I found that using the 'goldfish_armv7_defconfig' solved the problem. > > It would be nice to get this little tidbit of information into the > online docs somewhere. > I guess somewhere along the line, Google decided to switch the > emulator from emulating an ARM926 to a Cortex A8, > and they have a defconfig to match that. You just need to know to use > it instead of the goldfish_defconfig. > > Thanks again for the tip. > -- Tim > > On Thu, May 3, 2012 at 9:24 PM, Tirtha Ghosh <gtir...@gmail.com> wrote: > > 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 > > -- > 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