Capturing dmesg upon system crash on 6.3

Yehonatan Yossef yoniy at mellanox.co.il
Mon Feb 25 12:32:06 UTC 2008


> > I'm facing a system reboot upon loading of the driver, and 
> I could use 
> > a tool for capturing dmesg upon system crash (such as netconsole on 
> > Linux).
> 
> Your kernel isn't setup for driver development:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-ha
> ndbook/kerneldebug.html
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kern
> elconfig.html
> 
> Basically, your system is rebooting cause the kernel panics 
> and you're not setup for crash dumps, or anything that could 
> help you diagnose the panic.
> --
> Mel

I've setup the dumpdev/dumpdir and I get a vmcore image upon a crash.

I don't really understand how to use kgdb in order to read it but more
than that - I don't need that much of data. I only want the dmesg report
at the moment, see at what point my driver went crazy. Is it possible?

Yony


More information about the freebsd-questions mailing list