Skip to contentSkip to conversation

Saving early panic() messages, to disk, using the BIOS

DISCUSSION Ahmed S. Darwish 1 participant 1 message Jan 14, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I'm facing some very early panics in latest -rc kernels. Vesafb is not even working, so only the very bottom of the stack trace is available.

Quoted 1 line

From an overall-design perspective, would a patch that saves such early

panic messages to the hard-disk using real-mode BIOS calls be acceptable?

That seems to be the only path to _fully_ capture such panic; this is a regular x86(-64) laptop with no serial ports or floppy disks. I'm in the lmode->pmode->rmode part now, but I thought it might be wise to quickly ask about such design mergeability before investing further effort.

(There is an old set of patches in Randy's homepage that does something similar using floppy disks,[1] so it seems the basic idea is not that strange. I also do something similar in a hobby kernel of mine.[2])

thanks,

[1] http://www.xenotime.net/linux/kmsgdump/
[1] http://gitorious.org/cute-os/cute/

Signature · 1 line
Darwish