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.

Linux Kernel debug

Other Parts Discussed in Thread: CCSTUDIO

Hello .

I am trying to dbg the linux kernel  on DM8148  via JTAG  XDS100V2  with no luck .

I am using the  linux_lsp of the package  DVRRDK_04.01.00.02   .

In  order to change the .config file  i changed the file  'DVRRDK_04.01.00.02\ti_tools\linux_lsp\kernel\linux-dvr-rdk\arch\arm\configs\ti8148_evm_defconfig'

because the build process override the .config file with that one .

In it i enabled manually :  

  CONFIG_DEBUG_INFO=y

 CONFIG_ARM_UNWIND=y 

 CONFIG_FRAME_POINTER=y

 After building the kernel the  CONFIG_FRAME_POINTER disapears from the .config file .

 when i load the target with the VMLINUX  file i can not set breakpoints .

 Am i missing something ?

Regsrds , Shlomo Kabaz .

 

  • Hi Shlomo,

    Shlomo Kabaz said:

    In  order to change the .config file  i changed the file  'DVRRDK_04.01.00.02\ti_tools\linux_lsp\kernel\linux-dvr-rdk\arch\arm\configs\ti8148_evm_defconfig'

    because the build process override the .config file with that one .

    In it i enabled manually :  

      CONFIG_DEBUG_INFO=y

     CONFIG_ARM_UNWIND=y 

     CONFIG_FRAME_POINTER=y

     After building the kernel the  CONFIG_FRAME_POINTER disapears from the .config file .

     when i load the target with the VMLINUX  file i can not set breakpoints .

    The right order is:

    1. $ make ti8148_evm_defconfig

    2. $ make menuconfig ----> here you change what you need in the .config file and save on exit

    3. $ make uImage

    See the below wiki page for more info on that:

    Regarding debugging linux kernel with CCStudio and JTAG, see the below pointers:

    Regards,
    Pavel