KGDB on i.MX8 serial polling function

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

KGDB on i.MX8 serial polling function

432 Views
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 Kudos
1 Reply

423 Views
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 Kudos