Arnaud : try,

Enabling early printk support in the kernel you are trying to boot.

Secondly, try to dump printk buffer(whose address you can get from
system.map file - and after suitable address manipulation, you can get the
physical address where its stored) and dump it on your bootloader/uboot to
check where exactly is your kernel failing.

Enabling kgdb at this stage may not be helpful especially when you don't
know what stage your kernel failed ...

Best Regards,
Arun K. Singh
www.crazydaks.com




On Mon, Mar 18, 2013 at 8:03 PM, arnaud gaboury <arnaud.gabo...@gmail.com>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/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/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<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.
>
>
>

-- 
-- 
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