Hi,
What do we have to change in the PSDKLA to compile the Linux kernel with debug symbols?(we are using using "make linux")
We want to get the vmlinux image with debug symbols.
Kind regards,
Adam
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.
Hi,
What do we have to change in the PSDKLA to compile the Linux kernel with debug symbols?(we are using using "make linux")
We want to get the vmlinux image with debug symbols.
Kind regards,
Adam
Hi Adam,
You need to enable CONFIG_DEBUG_INFO in Linux Kernel config for that.
One easy way to enable it is by adding CONFIG_DEBUG_INFO=y in one of the cfg files.
For example, add it to board-support/linux-5.4.40*/ti_config_fragments/connectivity.cfg file and do make linux.
Regards,
Vishal
Hi Vishal,
I added the CONFIG_DEBUG_INFO=y option in the connectivity.cfg but after compilation the vmlinux image still does not have the debug symbols.
Regards,
Adam
Can you check if the defconfig change took effect by checking the board-support/linux-5.4.40*/.config file?
Hi Vishal,
I don't see any .config file in board-support/linux-5.4.40*/ folder.
Also i found that CONFIG_DEBUG_INFO=y option was already available in board-support/linux-5.4.40*/debug_options.cfg file.
Regards,
Adam
Hi Adam,
'make linux' command should build kernel in board-support/linux-5.4.40*/ folder. This does not sound correct.
debug_options.cfg is not used by default.
Regards,
Vishal
Hi Vishal,
I added the CONFIG_DEBUG_INFO=y option to /linux*/arch/arm64/configs/tisdk_j7-evm_defconfig and it worked.
Regards,
Adam