This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI's SDK & kgdb

Guru 20755 points

Hello,

Did anyone tried to use kgdb with RDK (or EZSDK) ?
I tried to use it, but it did not function: 
1. I first thought of using kgdb with Ethernet (becuase in TI's processor wiki for kgdb they used it with ethernet), I But I then found out that ethernet for kgdb is missing from kernel. I thought of applying a patch, but found no patch for 2.6.37 version.
2. Trying to use kgdb with serial interface, I get into exception from boot mode, or after boot.

Thanks for any idea,

Ran

  • Hi Ran,

    I will investigate on this and let you know what I am able to find.

    BR
    Pavel

  • Ran,

    Have you gone through the below links?

    http://processors.wiki.ti.com/index.php/Linux_Debugging_Overview

    http://processors.wiki.ti.com/index.php/Debugging_on_DaVinci_using_kgdb

    http://processors.wiki.ti.com/index.php/Debugging_remotely_on_DaVinci_using_gdb

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/99/t/7242.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/t/52762.aspx

    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/139434.aspx

    BR
    Pavel

  • Hi Pavel,

    Thanks very much for assistance.
    I tried all of them. It does not help.

    The documentation is about ethernet, but ethernet is not supported in TI's SDK (not only in RDK but also in OMAP).
    I tried to work with serial but it immediately get into exception.

    Did you try succefuly using kgdb with TI's SDK.
    Thanks,

    Ran

  • Ran,

    Have you read the below article? It is for serial:

    http://www.linuxjournal.com/article/4525

    BR
    Pavel

  • Hi Pavel,

    Thanks,

    I reviewed the article now, but It does not give me new things I did not try,
    I also don't mind if use the serial or network interface, just to make it work.
    Did you try working with kgdb on your system ? I wander why it is so difficult to make kgdb work with TI's SDK 2.6.37.

    Thanks,

    Ran

  • Ran,

    Have you tried with passing "kgdboc=ttyO0,115200 kgdbwait" in the boot arguments?

    Ran S. said:
    Did you try working with kgdb on your system ?

    No, I did not try kgdb. I tried with the user space version (gdb) and it works fine, see the e2e threads below:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/322779/1128187.aspx#1128187

    http://e2e.ti.com/support/embedded/linux/f/354/t/318022.aspx

    I will check with the team if we have more recent kgdb guidelines for the 2.6.37 kernel.

    BR
    Pavel


  • Yes, I tried "kgdboc=ttyO0,115200 kgdbwait".
    I always get the same exception at start:

    ------------[ cut here ]------------
    WARNING: at drivers/serial/serial_core.c:399 uart_get_baud_rate+0x124/0x138()
    Modules linked in:
    Backtrace:
    [<c004ffc4>] (dump_backtrace+0x0/0x110) from [<c03ee140>] (dump_stack+0x18/0x1c)
     r6:c04f4d9f r5:0000018f r4:00000000 r3:60000013
    TI's guideliness talk about using the ethernet interface for kgdb, but it is not available in SDK (there is no CONFIG_KGDB_ETH ).
    I had no problem using gdb with gdbserver.
    I'm trying now to use kgdb.

    Thanks for any idea,
    Ran 
  • Hi,

    The strange thing that already when compiling with KGDB and booting there are "disagrees about version" messages on the kernel modules:

    ....

    Starting udev
    udev[117]: starting version 164

    tlc59108: disagrees about version of symbol backlight_device_unregister
    tlc59108: Unknown symbol backlight_device_unregister (err -22)
    tlc59108: disagrees about version of symbol backlight_device_register
    tlc59108: Unknown symbol backlight_device_register (err -22)
    tlc59108: disagrees about version of symbol backlight_device_unregister
    tlc59108: Unknown symbol backlight_device_unregister (err -22)
    tlc59108: disagrees about version of symbol backlight_device_register
    tlc59108: Unknown symbol backlight_device_register (err -22)
    Starting Bootlog daemon: ipv6: disagrees about version of symbol inet_recvmsg
    ipv6: Unknown symbol inet_recvmsg (err -22)
    ipv6: disagrees about version of symbol skb_free_datagram
    ipv6: Unknown symbol skb_free_datagram (err -22)
    ipv6: disagrees about version of symbol __skb_checksum_complete
    ipv6: Unknown symbol __skb_checksum_complete (err -22)
    ipv6: disagrees about version of symbol register_sysctl_paths
    ipv6: Unknown symbol register_sysctl_paths (err -22)
    ipv6: disagrees about version of symbol xfrm_inner_extract_output

    Is there any idea why we get these messages ?

    Thanks, Ran

  • Hi Pavel,

    Did you check with te team if it is possible to use kgdb with TI's SDK ?

    Thanks,

    Ran