KGDB support for mx6q_sabrelite board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KGDB support for mx6q_sabrelite board

1,722 Views
LeviathanSteven
Contributor III

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.

Labels (2)
Tags (3)
0 Kudos
7 Replies

1,102 Views
Yuri
NXP Employee
NXP Employee

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).

0 Kudos

1,102 Views
AlanZhang
Contributor V

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

0 Kudos

1,102 Views
LeviathanSteven
Contributor III

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?

0 Kudos

1,102 Views
lily_zhang
NXP Employee
NXP Employee

Hello, Steven:

You can ping the author of https://community.freescale.com/thread/308921 for KGDB usage in iMX6 sabreLite board.

1,102 Views
LeviathanSteven
Contributor III

Hi Zhang,

Thanks for your kindly suggestion, I will try to trace it!

0 Kudos

1,102 Views
LeviathanSteven
Contributor III

Anyone can help to give some suggestions?

0 Kudos

1,102 Views
YixingKong
Senior Contributor IV

Leviathan, please click Correct Answer/Helpful Answer, if your question has been answered. If not, please respond our question.

Thanks,

Yixing

0 Kudos