Subject: Re: PC engine WRAP
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-users
Date: 06/19/2005 14:39:03
--0ntfKIWw70PvrIHh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Emmanuel Dreyfus --> netbsd-users (2005-06-19 09:49:50 +0200):
> Hi
> Anyone had some success booting NetBSD on a PC engine WRAP? I have a CF
> that boots a Soerkis fine, but on the WRAP, the primary bootloader
> loads, prints the usual stuff, and things hang before the secondary
> bootloader have any opportunity to write anything.
> 
> This is NetBSD 2.0

The attached patch works at least with -current.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

--0ntfKIWw70PvrIHh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gatea20.c.diff"

--- src/sys/arch/i386/stand/lib/gatea20.c.orig	2002-08-12 16:27:34.000000000 +0200
+++ src/sys/arch/i386/stand/lib/gatea20.c	2005-02-22 13:24:46.000000000 +0100
@@ -28,7 +28,9 @@
 /*
  * Gate A20 for high memory
  */
+/*
 static unsigned char	x_20 = KB_A20;
+*/
 void gateA20()
 {
 	__asm("pushfl ; cli");
@@ -37,11 +39,11 @@
 	 *	* IBM PS/2 L40
 	 *	* AMD Elan SC520-based systems
 	 */
+	/*
 	if (
 #ifdef SUPPORT_PS2
 	    biosmca_ps2model == 0xf82 ||
 #endif
-	    /* XXX How to check for AMD Elan SC520? */
 	    0) {
 		outb(0x92, 0x2);
 	} else {
@@ -56,5 +58,7 @@
 		delay(100);
 		while (inb(K_STATUS) & K_IBUF_FUL);
 	}
+	*/
+	outb(0x92, 0x2);
 	__asm("popfl");
 }

--0ntfKIWw70PvrIHh--