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.

Isn't there 'compile with debug info' for kernel build?

Hi,

Following video on porting linux with Sitara SDK, it has a 'Compile the kernel with debug info' option. With the new SDK for processor 1.00.00.03 installed on my PC, I cannot find this option. Please see the picture.

Where is this option on the new release SDK for Sitara?

Thanks,

  • I just find an option KDBG: kernel debugger. It looks like the same function with the old option. Thanks
  • Hi Jeff,
    Right now I do have this option in Linux kernel 3.10 and 3.3.
    Can you check this option "DEBUG_INFO" in menuconfig in your kernel ?
    PS: Use "/" key to search.

    I could find it on Linux 3.18
    I think, you can check the following path for "Compile the kernel with debug info" option.
    Kernel hacking ->
    Compile-time checks and compiler option ->
    Compile the kernel with debug info
  • Hi jeff Wong,

    Modify the Kernel configuration for debug

    • make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
      NOTE

      All the debug configuration information is enabled in the kernel hacking choice of kernel configuration. A quick note about navigating within menuconfig. The up/down move the cursor vertically on the menu choices. Use the left/right arrows to move the cursor between select and exit. Use the the space bar to select a kernel configuration choice. To navigate up from a submenu, use the right arrow to select exit and press enter.
    • Navigate into the Kernel Hacking submenu. Use the down arrow to select the Kernel Hacking submenu and press enter. This will navigate into the submenu.
      Sitara linux training kernel config 1.png
    • Enable Kernel debug info under Kernel Hacking submenu by using the SPACE bar
      Sitara linux training kernel debugging 1.png

    Enable Compile Kernel with Debug infounder Kernel Hacking submenu. Using the up/down to navigate the submenu, use the space bar to select.

    Sitara linux training kernel debug enable 9.png
    -----