PC Review


Reply
Thread Tools Rate Thread

Accessing CMOS

 
 
Simon Wilton
Guest
Posts: n/a
 
      3rd Jul 2003
Does any-one have a method for directly reading and writing the CMOS memory
on the CPU card?

TIA

Simon


 
Reply With Quote
 
 
 
 
Nikolai Vorontsov
Guest
Posts: n/a
 
      3rd Jul 2003
Hi, Simon!

> I'm looking for somewhere to squirrel away about 8 bytes of frequently
> changing (several times a day) system data that has to be preserved with
> power off.

http://www.driverlinx.com/DownLoad/DlPortIO.htm

>
> The system will use CF with EWF. I think I could get it written to the CF,
> but this does not seem to be an ideal solution. Most CPU boards have unused
> areas in the CMOS, and many BIOSes have functions to access them and sort
> out the checksum. I know that I can't get at this memory directly, but has
> any-one seen a tool to do BIOS calls, or access CMOS directly, like those to
> access ports directly?
>


--
WBR, Nikolai Vorontsov
Quadrox NV

 
Reply With Quote
 
Greg Tinney
Guest
Posts: n/a
 
      3rd Jul 2003
Accessing CMOS bytes is a very simple process using using an index/data
register format in the PC port space (index = port 0x70, data = 0x71). To
do this in Windows, you will have to write a driver (I don't know of any
easy Windows-supplied back doors to access this). The driver is pretty
simple, but with some caveats:
1) I assume your driver should not try standard DDK mapping of I/O
ports, as they are already mapped by Window's RTC driver. You would have to
just have to access ports directly with inp and outp (not the general
Microsoft-recommended procedure).
2) RTC/CMOS access is non-atomic. If you use the standard bank 0 of
CMOS, you run a very good chance of creating race conditions with the
OS/BIOS that may be accessing CMOS or more likely the RTC (real-time clock).
3) BIOS probably checksums the first CMOS bank. If you change bytes in
this bank, if you don't update checksum in correct manner, BIOS may complain
on next boot.
4) Be careful about handling of special bits (such as bit 7) of index
register. Any CMOS/RTC specs should discuss these type issues.
5) Remember first several CMOS values in bank 0 are RTC registers, not
actual storage locations.

Many modern chipsets (including Intel's) provide a second bank of CMOS. Use
of this is probably a safer bet in your case. BIOS may use this for storing
setup or escape-D data, though they often skip the 2nd bank and store this
PNP-type data on the same flash chip (FWH) that stores the BIOS code. You
would need to try to ensure that BIOS does not use the second bank also if
you're application is going to access it.

In short, using BIOS to store application data may not be clean, but it is
possible (depending on resources provided by your motherboard). Unless
Windows provides a back-door method for accessing this throught the RTC
driver, you will probably have to write a driver yourself.




"Nikolai Vorontsov" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi, Simon!
>
> this could help
> http://www.pscode.com/vb/scripts/Sho...=6261&lngWId=3
>
> PPL, use Google! The greate thing.
>
> > Thanks Nikolai
> >
> > I know about DLPortIO, and have it as an XPe component if any-one wants

it.
> > That allows me to access the ports, but I didn't think I could get at

the
> > CMOS RAM that way. If you can tell me how.
> >

> --
> WBR, Nikolai Vorontsov
> Quadrox NV
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem - American Megatrends CMOS checksum bad . CMOS date/time notset. press f1 to run setup. abhishekrishna Windows XP General 4 14th Aug 2011 02:23 AM
Cmos Jerry Windows XP Hardware 6 1st Apr 2009 10:15 AM
CMOS Eric Harrison Windows XP Help 2 14th Mar 2007 05:59 PM
Problem accessing CMOS Gel Windows XP General 14 6th Dec 2005 04:37 PM
CMOS? =?Utf-8?B?Um9kb2xmbw==?= Windows XP General 10 27th Dec 2004 04:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.