*BSD News Article 18305


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mach.eng.hou.compaq.com!mcb
From: mcb@mach.eng.hou.compaq.com (Mike Busby)
Subject: Re: EISA experiences?
Organization: Compaq Computer Corporation
References: <21f1t9$r3c@pandora.sdsu.edu> <C9yM7o.4uy@obiwan.uucp> <2491@hcshh.hcs.de>
Nntp-Posting-Host: mach.eng.hou.compaq.com
Message-ID: <mcb.742502206@mach>
Sender: news@sword.eng.hou.compaq.com (Netnews Account)
Date: Mon, 12 Jul 1993 18:36:46 GMT
Lines: 119

hm@hcshh.hcs.de (Hellmuth Michaelis) writes:

>In <C9yM7o.4uy@obiwan.uucp> bob@obiwan.uucp (Bob Willcox) writes:

>>I just converted obiwan from ISA to EISA and moved from ESIX 5.3.2D to
>>386bsd on it (I had already been running 386bsd on a couple of other
>>systems for awhile).  I seem to have a couple of problems that may be
>>related to the hardware:

>>1.  Warm boot does not work.  On my ISA based systems the reboot command
>>    or halt followed by any key will successfully reboot them.  With
>>    obiwan (the EISA system) I must press the reset button or power off/
>>    power on cycle it (from DOS the usual Ctl-Alt-Del sequence works).

>I had exactly the same problems with my EISA machine. The problem was, that
>i enabled the option "WD8013" in my config file. After removing that, i was
>able to warm boot again. The explanation of this can be found in the current
>"unofficial" FAQ.

>hellmuth
>-- 
>hellmuth michaelis    HCS Hanseatischer Computerservice GmbH    hamburg, europe
>hm@hcshh.hcs.de              tel: +49/40/55903-170          fax: +49/40/5591486

We solved this problem by reseting the WD8013 in machdep.c.  This allows
you to warm-boot with WD8013 defined.  I believe this is in /sys/i386/i386.
We defined an option line in the config file of COMPAQ.  You can change this
to whatever you want for the kernel config:


*** machdep.c.old	Sat Jul 10 20:19:09 1993
--- machdep.c		Sat Jul 10 20:22:53 1993
***************
*** 81,86 ****
--- 81,92 ----
  #include "machine/specialreg.h"
  #include "i386/isa/rtc.h"
  
+ #ifdef COMPAQ
+ #include "we.h"
+ #if NWE > 0
+ #include "i386/isa/isa_device.h"
+ #endif
+ #endif /* COMPAQ */
  
  #define	EXPECT_BASEMEM	640	/* The expected base memory*/
  #define	INFORM_WAIT	1	/* Set to pause berfore crash in weird cases*/
***************
*** 455,460 ****
--- 461,489 ----
  	return(EJUSTRETURN);
  }
  
+ #ifdef COMPAQ
+ #if NWE > 0
+ extern struct isa_device isa_devtab_net[];
+ 
+ we_board_reset()
+ {
+         struct isa_device *dvp;
+         int i;
+ 
+         dvp = isa_devtab_net;
+         for (i=0; i < NWE; i++) {
+                 /* reset card to force it into a known state. */
+                 outb(dvp->id_iobase, 0x80);
+                 DELAY(100);
+                 outb(dvp->id_iobase, 0x00);
+                 /* wait in the case this card is reading it's EEROM */
+                 DELAY(5000);
+                 dvp++;
+         }
+ }
+ #endif /* NWE */
+ #endif /* COMPAQ */
+ 
  int	waittime = -1;
  struct pcb dumppcb;
  
***************
*** 469,474 ****
--- 498,509 ----
  	int nomsg = 1;
  
  	if(cold) {
+ #ifdef COMPAQ
+ #if NWE > 0
+                 we_board_reset();
+ #endif /* NWE */
+ #endif /* COMPAQ */
+ 
  		printf("hit reset please");
  		for(;;);
  	}
***************
*** 522,527 ****
--- 557,568 ----
  	dummy = 0; dummy = dummy;
  	printf("howto %d, devtype %d\n", arghowto, devtype);
  #endif
+ #ifdef COMPAQ
+ #if NWE > 0
+         we_board_reset();
+ #endif /* COMPAQ */
+ #endif /* NEW */
+ 
  	cpu_reset();
  	for(;;) ;
  	/*NOTREACHED*/


------------------------------------------------------------------
Michael C. Busby                |  Unix System Support
System Engineer, Sr.            |  Design Environment/Automation
Compaq Computer Corporation     |  Internet: mcb@compaq.com        
P.O. Box 692000 m/s 050701      |  Uunet:    uunet!cpqhou!michaelb 
Houston, Texas, USA 77269-2000  |  Phone:    713-374-5638          
------------------------------------------------------------------
"Armadillos....  Texas speed bumps."    Views/opinions are mine alone.