Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 01:10:03 -0800 (PST)
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/16164: "vga" attach fails if video card not whacked into shape 
Message-ID:  <200001180910.BAA91603@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/16164; it has been noted by GNATS.

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: green@freebsd.org
Cc: FreeBSD-gnats-submit@freebsd.org,
	yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: i386/16164: "vga" attach fails if video card not whacked into shape 
Date: Tue, 18 Jan 2000 18:08:55 +0900

 >>Number:         16164
 >>Category:       i386
 >>Synopsis:       "vga"/"sc" don't work when a video card is not whacked into s
 >hape
 [...]
 >>Release:        FreeBSD 4.0-CURRENT i386
 >>Organization:
 >The FreeBSD Project
 >>Environment:
 >
 >	It happens with -current as of any time, my AMI BIOS from a few
 >months ago (latest), and latest working BIOS (1.20) for my SIIG66 HPT366
 >controller.
 >
 >>Description:
 >
 >	The HPT366's BIOS makes a highly lame video mode change and things
 >are very screwy; the BIOS doesn't reset the video card after that, though
 >I don't know if it _should_, and FreeBSD has a cow with it.  The "vga"
 >and "sc" devices don't work, VESA fails, and the system isn't usable from the
 >console.
 
 I would like to see the output from dmesg when you give "boot -v" to 
 boot the system.
 
 What does the HPT366 BIOS do to the screen?  Does it draw some sort of
 graphics?  At which point does it do that?  The motherboard AMI BIOS
 runs POST and prints something about CPU, serial ports, parallel ports
 and PnP device info before looking for a boot device.
 
 >>Fix:
 >
 >This knocks the video card into shape, and FreeBSD works after it runs.
 >This was submitted to me by W. G. Hicks, but a better place should really
 >be found for it.  It definitely seems to be necessary.
 
 This patch sets the video mode #3: 80x25 color text.  It is fine
 for CGA/EGA/VGA cards, but not good for MDA and Hercules mono cards.
 (Well, maybe we shouldn't bother too much about monochrome video cards
 nowadays, but they are still in use, I believe.)
 
 Kazu
 
 >Index: i386/boot2/boot1.s
 >===================================================================
 >RCS file: /usr2/ncvs/src/sys/boot/i386/boot2/boot1.s,v
 >retrieving revision 1.10
 >diff -u -r1.10 boot1.s
 >--- i386/boot2/boot1.s	1999/08/28 00:40:01	1.10
 >+++ i386/boot2/boot1.s	2000/01/14 06:53:20
 >@@ -58,7 +58,10 @@
 > 
 > # Bootstrap
 > 
 >-main:		cld				# String ops inc
 >+main:		movb $0x0,%ah
 >+		movb $0x3,%al
 >+		int $0x10	
 >+		cld				# String ops inc
 > 		xorl %ecx,%ecx			# Zero
 > 		movl %cx,%es			# Address
 > 		movl %cx,%ds			#  data
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001180910.BAA91603>