After the kernel has been built with KGDB support, the command line port options as shown below:

  • ST ASC port:

    kgdbasc=0,115200

  • Ethernet connection:

    kgdboe=[src-port]@<src-ip>/[dev],[tgt-port]@<tgt-ip>/[tgt-macaddr]

    where:
    src-port (optional): source for UDP packets (defaults to 6443),
    src-ip: source IP to use (interface address),
    dev (optional): network interface (default is eth0),
    tgt-port (optional): port GDB will use (defaults to 6442),
    tgt-ip: IP address GDB will be connecting from,
    tgt-macaddr (optional): ethernet MAC address for logging agent (default is broadcast).

    Important note: src and tgt in this case are from the point of view of the test system. So src will be the test (or target) system and tgt is the development (or host) system.

  • kgdbwait: this makes KGDB wait for a GDB connection during booting of the kernel. If used it must be passed after the port options.