tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Debugging the kernel

On Sun, Sep 27, 2009 at 02:36:27AM +0400, Dmitry Cherkassov wrote:
> Hello everybody.
> Could please someone explain me:
> 1) How to forward kernel output to the serial (COM) port ?

man boot
basically, you type:
consdev com0
at the boot prompt, before booting the kernel

> When kernel crashes it says: "dump to dev 0,1 not possible"
> 2) How do I configure that?

There can be various reasons for that, one of them being that you
have no swap partition. What is your disk layout, and what kind of
disk controller is it ?

> 3) Is there any reference manual about getting and analyzing kernel crash 
> dumps?

You use 'target kvm' in gdb against the crash dump. Things are easier if
you have a netbsd.gdb around (kernel build with -g)

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index