Re: [git pull] ftrace for v2.6.27

From: Andi Kleen
Date: Wed Aug 13 2008 - 15:53:54 EST


Ingo Molnar <mingo@xxxxxxx> writes:
>
> try latest tip/master plus an USB debug key, then enable
> CONFIG_EARLY_PRINTK_DBGP=y in your .config on the host, add the
> earlyprintk=dbgp,keep boot parameter and reboot [and disable USB for
> good measure]. On the other host you connect to via an USB cable, enable
> USB_SERIAL_DEBUG=y and use /dev/ttyUSB0 with the serial terminal app of
> your choice.
>
> that, as long as the USB ports are operational, gives a working serial
> console on just about any laptop.

Unfortunately the usb debug dongle cables are hard to get and
expensive. A more available alternative would be to use firescope if
your laptop has firewire, because firewire cables are widely
available. The kernel supports early firewire since some time too, so
it can be even used for early debugging. Another advantage is that
firescope can even get data from a dead kernel as long as the firewire
hardware is not disabled.

For details see Documentation/debugging-via-ohci1394.txt

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/