I was working on mx6q_sabrelite board, and want to debug the kernel.
So are there any instructions on how to use KDGB to debug the mx6q_sabrelite board's kernel???
Does this kernel support KGDB??? Any suggestions?
Thanks in advance.
Anyone can help to give some suggestions?
Leviathan, please click Correct Answer/Helpful Answer, if your question has been answered. If not, please respond our question.
I do not understand your concrete problem in kdbg on mx6q board. If you do not know how to use KGDB, you could reference a lot of information on internet. If you encountered kgdb failure, pls give me your steps to show your problem during kgdb usage!
Thanks for your kindly help !
The instructions from internet on how to use KGDB is not so clear, it always told that the target kernel(for imx6q) should implement a stub to support KGDB. So I just want to know if the kernel in release L3.0.5_4.0.0 already have this stub?
Or are there any documents for debugging the kernel on imx6q?
You can ping the author of https://community.freescale.com/thread/308921 for KGDB usage in iMX6 sabreLite board.
Thanks for your kindly suggestion, I will try to trace it!
General considerations regarding Linux debugging are as following :
As for some steps to debug the Linux kernel, one can configure the Linux kernel
to use the KGDB over a Serial Connection (UART, Ethernet). Note, in such case
there is no need for JTAG.
As for JTAG using, it may be needed to add "jtag=on" to the kernel boot line.
Also please use the next notes :
Kernel Debugging with GDB
ARM app note "Building and Debugging ARM Linux ..."
Also it is possible to use the next approach :
to boot kernel as usually (with its own bootloader (U-boot) help ), and then -
connect the JTAG debugger, configured in special way :
- without system reset ;
- use kernel (linker) map (since .elf with symbols is not used).
Retrieving data ...