Such a thing already exists - it's called kmsgdump, and it dumps the
current printk buffer to a floppy/serial/printer. It has its own
(assembly) console handling code, and it gets called when the kernel
panics, or through SysRQ. I've used it several times for debugging
OOPSes when developing on my laptop, which doesn't have a serial port.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/