Hi all:
   Does anyone debug android kernel in qemu successful?,I have tried ,but
failed ,emulator told me that it does not support the qemu option.does
anyone add the qemu option to the android emulator?

steven

2008/12/22 Niklas Hallqvist <[email protected]<niklas%[email protected]>
>

>
> OK, I checked my from memory instructions up, and you
> cannot issue the target remote command in gdb, before
> you have started qemu from the monitor: so add a quick
> (qemu) cont
> (qemu) stop
> thing in there.  Of course that might mean you're missing real early
> init, if so, and you need to debug that, you probably need to add -S
> support to qemu
> again, can't be too hard...
>
> Niklas
>
> niklas wrote:
> > Well, it isn't very hard to debug the kernel in the emulator.
> > Configure the kernel by hand to include debugging symbols:
> > cd kernel
> > make menuconfig
> > Select Kernel hacking or whatever it is called and select the item
> > which says to compile the kernel with debugging info.
> > make
> > cd ..
> > When starting the emulator use sth like: (but change the openbsd refs
> > to linux)
> > out/host/openbsd-x86_64/bin/emulator -show-kernel -system out/target/
> > product/generic -kernel kernel/arch/arm/boot/zImage  -logcat *:v -qemu
> > -monitor telnet::4444,server -s
> > then it will sit waiting for you to prepare your gdb session:
> > prebuilt/openbsd-x86_64/toolchain/arm-eabi-4.2.1/bin/arm-eabi-gdb
> > kernel/vmlinux
> > (gdb) br sys_execve   (or some other place you want to gain control)
> > (gdb) target remote localhost:1234
> > and then, in another window, release qemu by attaching to its monitor:
> > telnet localhost 4444
> > (qemu) cont
> >
> > well it's somewhat from memory, but I suspect, the info given will
> > work with perhaps a few modifications...
> > I just hope that you are hunting for easier bugs than I am... :-)
> >
> > Good luck
> >
> >
> >
> > On Nov 29, 5:47 am, allstars <[email protected]> wrote:
> >
> >> hi Mike
> >> so far i just need to trace it by emulator on my PC
> >> since ....i dont have a msm borad
> >>
> >> and i just want to know how to easy-tracing Androidkernel
> >> for example , its initialization (before Zygote is initialized)
> >>
> >> i think it will be efficient if i have adebugger
> >> rather than just seeing printk by dmesg
> >>
> >> thanks
> >>
> >> On Nov 22, 4:36 am, "Mike Chan" <[email protected]> wrote:
> >>
> >>
> >>> Perhaps you are referring to the msm_serialdebugger? Which allows one
> to
> >>> debug (limited) thekernelover serial on the msm arch.
> >>>
> >>> CONFIG_MSM_SERIAL_DEBUGGER
> >>>
> >>> On Thu, Nov 20, 2008 at 7:03 PM, allstars <[email protected]>
> wrote:
> >>>
> >>>> http://source.android.com/release-features
> >>>>
> >>>> i think the source forkerneldebuggeris located in /mydroid/system/
> >>>> core/adb/kdbg.c
> >>>> and some other files
> >>>>
> >>>> i just dont know how to use it yet
> >>>>
> >>>> On Nov 21, 12:31 am, Frank Maker <[email protected]> wrote:
> >>>>
> >>>>> Where did you see their announcement for enhancing support forkernel
> >>>>> debugging?
> >>>>>
> >>>>> I am also very interested in the best way to dokerneldebugging.
> >>>>>
> >>>>> --
> >>>>> Frank Maker
> >>>>> Graduate Student Researcher
> >>>>> University of California, Davis
> >>>>> Micropower Circuits and Systems Group (MCSG)
> >>>>> [email protected]
> >>>>>
> >>>>> allstars wrote:
> >>>>>
> >>>>>> hello world
> >>>>>> Android has announced that it enhances support forkerneldebugger
> >>>>>>
> >>>>>> where can i find the code forkerneldebugger?
> >>>>>>
> >>>>>> i have found other enhancements like alarm, ashmem, binder ,.... etc
> >>>>>> but anyway i cannot findkerneldebugger
> >>>>>>
> >>>>>> and how should i do to dokerneldebugging?
> >>>>>> just take qemu for example....
> >>>>>> Android has removed the -S option which freezes CPU at start-up
> >>>>>>
> >>>>>> so can someone recommend what to do tokernel-debugging??
> >>>>>>
> >>>>>> thanks
> >>>>>>
> >>> --
> >>> MIke Chan
> >>>
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to