This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

question on building kernel

hello TI-friends,

I can compile kernel successfully.

As we know, there's a generated vmlinux when building kernel.

I'm using following and always got "(no debugging symbols found)" even I enable option "CONFIG_DEBUG_KERNEL", "CONFIG_DEBUG_INFO" inside kernel...

[/home/Projects/TI-8168/DVRRDK_03.00.00.00_ori_2012-04-29_ori/ti_tools/linux_lsp/linux-psp-dvr-04.04.00.01/src/linux-04.04.00.01] $ /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gdb vmlinux

GNU gdb (Sourcery G++ Lite 2009q1-203) 6.8.50.20081022-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
(no debugging symbols found)
(gdb)

Any comment for this??

  • By checking, the .config will be re-overwritten after "make -s lsp".

    I should compile kernel directly under kernel folder (eg. "make -C . CROSS_COMPILE=/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-  ARCH=arm uImage") after the modification of kernel's option.

    then I could got following to continue debug kernel panic...

    [/home/Projects/TI-8168/DVRRDK_03.00.00.00_ori_2012-04-29/ti_tools/linux_lsp/linux-psp-dvr-04.04.00.01/src/linux-04.04.00.01] $ /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gdb vmlinux
    GNU gdb (Sourcery G++ Lite 2009q1-203) 6.8.50.20081022-cvs
    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
    For bug reporting instructions, please see:
    <https://support.codesourcery.com/GNUToolchain/>...
    (gdb)