Hello Arnaud,

I am also trying to enable kgdb with linux kernel using the same link.I got 
stucked at following step:
*
*

*    Configure** kernel command line*
    Specify ttyGS0 as the kgdboc device. Add the following into the kernel 
command line (possibly in BoardConfig.mk)

    kgdboc=ttyGS0 kgdbretry=4

    The second option "kgdbretry=4" is a new parameter added to kgdboc.c. 
    It means that if kgdb cannot find the device "ttyGS0" in early boot, 
    it will retry once after the specified number of seconds. 
    This is a work-around if the USB device is not immediately initialized 
during system boot.

Do  you know which BoardConfig.mk is it referring? Or is there any other 
method for passing these arguments to the kernel while booting?

regards,
Satish


On Monday, March 18, 2013 10:33:56 AM UTC-4, arnaud gaboury wrote:
>
> Hi all,
>
> I would like to debug a non booting android kernel for lge mako n4. 
> Unfortunately, as the device does not boot, I can't pull any msg or log.
>
> I found this article : 
> http://bootloader.wikidot.com/android:kgdb
> and followed it.
>
> Unfortunately, code is quite old and gave me a lot of errors at build time 
> after I applied the changes. Some small rework let me with one only issue:
>
> *ERROR: modpost: Found 2 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>   GEN     .version
>   CHK     include/generated/compile.h
>   UPD     include/generated/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> drivers/built-in.o: In function `__gs_poll_put_char':
> kernel/lge/mako/drivers/usb/gadget/u_serial.c:1506: undefined reference to 
> `usb_loop_poll_hw'
> drivers/built-in.o: In function `__gs_poll_get_char':
> /kernel/lge/mako/drivers/usb/gadget/u_serial.c:1461: undefined reference 
> to `usb_loop_poll_hw'
> make: *** [.tmp_vmlinux1] Error 1
> *
> I am not a C dev and do not know how to deal with it. Please find attached 
> my */gadget/u_serial.c *file. I made some changes to other files too :
>
>
> https://bitbucket.org/rhg135/gingerkernel/commits/476cd6c80286#chg-drivers/usb/gadget/msm72k_udc.c
>
> https://bitbucket.org/rhg135/gingerkernel/commits/12c6d96a6a2b#chg-arch/arm/mach-msm/include/mach/msm_hsusb.h
>
> https://bitbucket.org/rhg135/gingerkernel/commits/b73e26b254e9#chg-drivers/usb/gadget/u_serial.c
>
> Thank you for any help. Maybe there is a easier way to debug Kernel, but I 
> couldn't find any clear entry.
>
> Regards.
>
>
>
>

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to