Re: reading/writing CMOS beyond 256 bytes?

Christer Weinigel (wingel@hog.ctrl-c.liu.se)
Mon, 9 Jul 2001 16:24:56 +0200 (CEST)


In article <19706.994679164@redhat.com> you write:
>root@chaos.analogic.com said:
>> Motherboard manufacturers who have rewritable BIOS chips now leave one
>> page (typically 64k) for startup parameters. This is erased and
>> written using the magic provided by the chip vendors.
>
>You often have to do chipset-specific magic to enable the WE and Vpp lines
>to BIOS flash chips. See drivers/mtd/maps/l440gx.c in my working tree for
>an example.

Another way might be to use the PnP BIOS to read and write the
ESCD tables. I wrote some code to do this a few years ago and
after beating up the code a bit more I can at least read the ESCD
tables from the BIOS. If anyone is interested in doing something
with the code it can be found at:

http://acolyte.hack.org/~wingel/escd/

The advantage of using the PnP BIOS is that the PnP BIOS knows
about the format of the data in BIOS and how to do all the
chipset specific stuff. The disadantage is as usual that a lot
of BIOSes are buggy.

/Christer

-- 
"Just how much can I get away with and still go to heaven?"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/