[Gllug] Serial debugging

James Courtier-Dutton james.dutton at gmail.com
Mon Jun 6 21:07:25 UTC 2011


On 5 June 2011 15:36, Richard W.M. Jones <rich at annexia.org> wrote:
> On Sun, Jun 05, 2011 at 10:34:23AM +0100, James Courtier-Dutton wrote:
>> On 4 June 2011 13:59, Adrian McMenamin <adrian at mcmen.demon.co.uk> wrote:
>> > I want to debug a linux kernel on a serial terminal but one of the
>> > machines I want to use does not have a serial port so it seems the
>> > trusty null modem cable won't help (it's a laptop too, so I cannot
>> > really just plug a cheap PCI card in)
>> >
>> > Alternatives seem to be:
>> >
>> > USB -> serial (does this work, searching suggests I need to configure
>> > the USB port in a special way but it's not clear)
>> >
>> > Firewire <-> firewire (there seems to be kernel support for this but is
>> > it practical, anyone know)
>> >
>> > Something else? Anyone know?
>> >
>>
>> Why can't you debug this by running the linux kernel in a kvm
>> virtual machine?
>
> We don't know what he's debugging.  If he's debugging a device driver
> using KVM won't be any help.
>
I have been kernel developing for over 5 years.
I use netboot (nfs root) and netconsole.
It works for most things.
kexec is also useful.
I have only needed serial port twice in 5 years.
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list