Re: Querying the bios from booted linux kernel?

From: H. Peter Anvin
Date: Fri Jan 04 2008 - 21:46:21 EST


Alan Cox wrote:
Unfortunately, it is not trivial to produce a mapping from EDD data to real-life disks. Your best bet is if the disks have an MBR signature,

Untrue for all but the very earliest EDD. True for our kernel support
which wants improving some day

in which case the EDD code will capture those; you can then correlate them to real disks.

EDD 1 provides the I/O base of each BIOS device so you can cross corelate
at least each IDE device with the BIOS identifier. EDD 3 provides paths
in multiple forms including PCI identifiers which serve the same purpose.

Unfortunately our EDD boot code doesn't capture the right bits in all
these cases.

That's true for IDE, definitely, but for other drive technologies the information can be ether inadequate or downright misleading... especially when dealing with complex disk topologies. Worse, as one could expect, the information provided is downright wrong in many cases.

To make matters worse, the EDD standard doesn't have a maintainer, so new technologies aren't assigned new identifier.

What you'd want is a way to query the disk serial number, but EDD doesn't provide that (there is the "packet interface", but it doesn't seem to be widely implemented.)

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/