Re: Mapping Video BIOS?

Greg 'groggy' Lehey <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile,gmane.os.freebsd.current
Organization The FreeBSD Project
Message-ID <[email protected]>
On Sunday, 27 July 2003 at 21:42:35 -0600, M. Warner Losh wrote:
> In message: <[email protected]>
>             "Greg 'groggy' Lehey" <[email protected]> writes:
>> On Saturday, 26 July 2003 at 22:18:59 -0600, M. Warner Losh wrote:
>>> In message: <[email protected]>
>>>             "Greg 'groggy' Lehey" <[email protected]> writes:
>>>> Presuming that it's the ROM driver, I get this in the dmesg I posted:
>>>> pnpbios: Bad PnP BIOS data checksum
>>>
>>> That's likely the problem.  However, PnP BIOS information isn't the
>>> same thing that the orm[sic] driver probes for.
>>
>> They look related.  I've now found the orm output:
>>
>>   orm0: <Option ROMs> at iomem 0xe0000-0xe3fff,0xdf800-0xdffff,0xd0000-0xd17ff,0xc0000-0xcefff on isa0
>>
>> The last one is the video BIOS.  It's interesting to note that it
>> doesn't report the 4 kB BIOS at 0xcf000, which suggests that at this
>> point the 16 kB area is already unmapped.
>
> Hmmmm, The list comes from scanning the "ISA HOLE" for certain memory
> signatures.  These signatures have a length in them that say "I'm a
> rom that's X long".

Sure.  The data at offset 0xc0000 are:

C000:0000  55 AA 78 E9 44 06 00 00-00 00 00 00 00 00 00 00   U.x.D...........

The 0xaa55 is the BIOS signature ("Here be a BIOS"), and the 0x78 is
the length byte (120 sectors, or 60 kB).  That's how orm0 knows the
end address.

> I don't think that it suggests that things are 'unmapped'...

If the area between 0xcc000 and 0xcffff had been mapped, orm0 would
have found this too:

C000:F000  55 AA 08 E8 6D 0B CB 11-FE 02 00 00 00 00 00 00   U...m...........

>> I've worked around the problem by compiling the video BIOS into the X
>> server and not trying to access the BIOS in the machine.  Obviously
>> not a solution, but it works for the moment.  I'd really like to track
>> down the problem.  Does anybody have an idea?
>
> I don't, I'm sorry.

Understood.  I was hoping that somebody else might have some ideas.

Greg
--
See complete headers for address and phone numbers
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE/JKA1IubykFB6QiMRAm02AKCzcn4XoyGj8+KNmhmqq79ZDd29HACeN6nQ
/CBW5KZQ910VwfvK0ICvXMM=
=4oRx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.