Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2000 15:41:08 -0500 (EST)
From:      green@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/16164: "vga" attach fails if video card not whacked into shape
Message-ID:  <200001172041.PAA95336@green.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         16164
>Category:       i386
>Synopsis:       "vga"/"sc" don't work when a video card is not whacked into shape
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 17 12:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Brian Fundakowski Feldman
>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.

>How-To-Repeat:

	I suppose you have to have the same hardware, or hardware which
also causes this problem.

>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.

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

>Release-Note:
>Audit-Trail:
>Unformatted:


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?200001172041.PAA95336>