KGDB on i.MX8 serial polling function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KGDB on i.MX8 serial polling function

928件の閲覧回数
lorenzo_giraudi
Contributor III

Hello,

I am trying to debug the Linux Kernel remotely using KGDB over the serial port.

I followed the instruction shown here: https://elinux.org/images/1/1b/ELC19_Serial_kdb_kgdb.pdf but can't make it to work. This is what I get:

  • I can do echo ttyLP0 > /sys/module/kgdboc/parameters/kgdboc and it gets successfully registered (note: ttyLP0 is my console too)
  • when I do echo g > /proc/sysrq-trigger I get messages telling that the kernel dropped into kdb, then I see the kdb prompt but it stops there, when I try to type nothing happens

I have the idea that it may involve the polling functions lpuart32_poll_put_char and  lpuart32_poll_get_char but I do not know how to debug it.

It would be great to know if someone from NXP ever tried it.

BR,

Lorenzo

0 件の賞賛
返信
1 返信

919件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Lorenzo

 

one can look at Uboot/Kernel/SCFW debugging documentation AN12631

Normal and Secure Debug for i.MX8/8X Family of Applications Processors

Lauterbach debug tool   : TRACE32 as GDB
https://www2.lauterbach.com/pdf/frontend_gdb.pdf

 

Best regards
igor

0 件の賞賛
返信