public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: William Reading <bill@aggienerds.org>
To: linux-msdos@vger.kernel.org
Subject: Using DOSEMU for PnP BIOS Function Calls?
Date: Fri, 12 Dec 2008 14:37:51 -0600	[thread overview]
Message-ID: <4942CB9F.5040802@aggienerds.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]

Howdy,

I'm working on a project to set options in BIOSes made by 
Hewlett-Packard and other companies that only provide functionality for 
ROM options via PnP BIOS calls documented in the SMBIOS spec, e.g. 
functions 0x50, 0x51.

I have some DOS utilities that currently make these calls, and I'd 
ideally like to try to use them before going back to my efforts to write 
a Linux kernel driver or writing my own code that uses vm86 directly. 
Unfortunately, the existing DOS utilities don't seem to work because 
they can't access the bit of memory where the PnP BIOS installation 
structure resides, which is somewhere between 0x0000 and 0xfff0.

Searching through the mailing list, I saw a note about how 
$_hardware_ram only actually works for memory roughly between 
0xcc000-0xcffff. Is this still the case?

When I use this line:
$_hardware_ram = "range 0x000,0xfff"

and then run dosemu in priviliged mode, I get the following output:
bill@kyoryu2:/etc/dosemu$ dosemu -s

Running privileged (via sudo) in full feature mode
CONF: memcheck - Fatal error.  Memory conflict!
    Memory at 0x0000:0x0000 is mapped to both:
    'Base DOS memory (first 640K)' & 'Direct-mapped hardware page frame'
CONF: memcheck - Fatal error.  Memory conflict!
    Memory at 0x0040:0x0000 is mapped to both:
    'Base DOS memory (first 640K)' & 'Direct-mapped hardware page frame'
CONF: memcheck - Fatal error.  Memory conflict!
    Memory at 0x0080:0x0000 is mapped to both:
    'Base DOS memory (first 640K)' & 'Direct-mapped hardware page frame'
CONF: memcheck - Fatal error.  Memory conflict!
    Memory at 0x00C0:0x0000 is mapped to both:
    'Base DOS memory (first 640K)' & 'Direct-mapped hardware page frame'

If I fiddle around with the settings, I still tend to get the same sort 
of errors. Is there something that I can do to make it to where I can 
map that memory? Is this kind of thing even possible in vm86?

Regards,
William Reading


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3245 bytes --]

                 reply	other threads:[~2008-12-12 20:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4942CB9F.5040802@aggienerds.org \
    --to=bill@aggienerds.org \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox