[comp.unix.programmer] Reading BIOS on PC under UNIX ??

lengewit@ludger.informatik.uni-dortmund.de (Peter Lengewitz) (10/31/90)

Hi.

Does someone know if and how it is possible to access the contents of
the BIOS of a PC'386 via C program under UNIX (Interactive UNIX and
SCO UNIX)?

I would like to get a few informations out of the BIOS, e.g. the version
number, to calculate a checksum. The idea is to make a software package 
executable only on one PC.

Any solutions?
Any C programs ?
Any other solutions to protect software from running on several PC's?

Thanks.
           Peter.

templon@copper.ucs.indiana.edu (jeffrey templon) (11/02/90)

In article <2758@laura.UUCP> lengewit@ludger.informatik.uni-dortmund.de (Peter Lengewitz) writes:
>
>
>Hi.
>
>Does someone know if and how it is possible to access the contents of
>the BIOS of a PC'386 via C program under UNIX (Interactive UNIX and
>SCO UNIX)?
>

	This article was crossposted to unix-pc.general.  That group is
not for discussion of IBM-type PCs running unix.  It is for discussion
of a 68010 machine known as the AT&T unix-pc, also the 7300 and the 3B1.
It runs system V unix. Please do not discuss IBM PC/unix issues in this
group.

		Thanks for your attention.	Jeff

dave@das13.snide.com (Dave Snyder) (11/02/90)

In article <2758@laura.UUCP>, lengewit@ludger.informatik.uni-dortmund.de (Peter Lengewitz) writes:
> Does someone know if and how it is possible to access the contents of
> the BIOS of a PC'386 via C program under UNIX (Interactive UNIX and
> SCO UNIX)?
> 
I not trying to get anyone PO'ed, but once again a cross-post was mis-directed.
If Peter is a new poster then I'll simply explain that the unix-pc heirarchy is
ONLY for the AT&T UnixPC/7300/3B1.  If Peter is not so new, then shame on you
Peter!  Please, if and when you follow up to this article, don't cross-post to
the unix-pc newsgroup.  Thank you.

DAS
-- 
David Snyder @ Snide Inc. - Folcroft, PA

UUCP:  ..!uunet!trac2000!das13!dave     INTERNET:  dave@das13.snide.com

dave@westmark.WESTMARK.COM (Dave Levenson) (11/02/90)

In article <2758@laura.UUCP>, lengewit@ludger.informatik.uni-dortmund.de (Peter Lengewitz) writes:
...
> Does someone know if and how it is possible to access the contents of
> the BIOS of a PC'386 via C program under UNIX (Interactive UNIX and
> SCO UNIX)?

I haven't tried this, but I would expect that you could look at the
special file /dev/mem arount location 0xf0000 or so.  The program
which does this needs to be executed by root, or be set-uid root.


-- 
Dave Levenson			Internet: dave@westmark.com
Westmark, Inc.			UUCP: {uunet | rutgers | att}!westmark!dave
Warren, NJ, USA			AT&T Mail: !westmark!dave
[The Man in the Mooney]		Voice: 908 647 0900  Fax: 908 647 6857