On Sat, Apr 08, 2006 at 12:12:56PM +0100, James Courtier-Dutton wrote:
> I have had an idea for a black box flight recorder type feature for
> Linux. Before I try to implement it, I just wish to ask here if anyone
> has already tried it, and whether the idea works or not.
> Description for feature:
> Stamp the dmesg output on RAM somewhere, so that after a reset (reset
> button pressed, not power off), the RAM can be read and details of
> oopses etc. can be read.
The idea of dmesg buffer comes to Linux from SunOS 4.x series
on hardware, where system boot code explicitely left aside memory
space which was not _cleared_ during boot (it was parity-regenerated,
though). The command to display that ring-buffer content was (no
surprise there?) "dmesg".
I do wish so many things from PC hardware, but it has stayed so b***y
inferior to real computers forever. Lattest AMD CPUs have nice
features making them almost as good as IBM S/370 from early 1970es,
but still BIOSes are rather primitive things keeping things back.
( IOMMUs are things that have been invented since, and are definitely
a good thing. Otherwise it has been faster and more capacitious
processing and memory at cheaper system cost... )
Like others have noted, display card memory spaces have been used
for this kind of "survives over reset" uses -- I do also know some
embedded boot codes that created similar ring buffers for similar
reasons. They don't generally survive over power-cycling, of course.
> The main advantage of something like this would be for newer
> motherboards that are around now that don't have a serial port.
> If no one has tried this, I will spend some time testing.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Video 4 Linux]
[Linux for the blind]