Hi,
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.
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
http://dslab.lzu.edu.cn/modules/wfdownloads/singlefile.php?cid=10&lid=13
http://elinux.org/images/4/4e/CELF_JTAG_Anderson.ppt
ARM app note "Building and Debugging ARM Linux ..."
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0201a/index.html
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).
Hi, Steven,
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!
Regards,
Alan Zhang
Hi Zhang,
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?
Hello, Steven:
You can ping the author of https://community.freescale.com/thread/308921 for KGDB usage in iMX6 sabreLite board.
Hi Zhang,
Thanks for your kindly suggestion, I will try to trace it!
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.
Thanks,
Yixing