Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2000 11:36:09 -0800
From:      "John Fitzgibbon" <fitz@jfitz.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Help! - need installation floppies with patched driver
Message-ID:  <002601bf8c5a$8924d160$040ba8c0@fitz>

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

[-- Attachment #1 --]
Hi,
I was wondering if someone could build me images of the (3.4 stable) installation floppies with the following driver patch incorporated. I want to download 3.4, but the driver for my network card locks up the PC during the installation. If I can get past the install, I can patch the kernel. Ironically, I'm doing the install so I'll have enough disk space to do a "make world".

I'm afraid I can offer nothing in return but my undying gratitude :-)
Fitz.

*** /usr/src/sys/i386/isa/if_ie.c Sun Aug 29 09:07:22 1999
--- if_ie.c Thu Mar  9 23:29:55 2000
***************
*** 564,569 ****
--- 564,570 ----
  struct ie_softc *ie = (struct ie_softc *)sc;
  int unit = ie - &ie_softc[0];

+ return;
  ee16_reset_586(unit);
  outb(PORT + IEE16_ECTRL, IEE16_RESET_ASIC);
  outb(PORT + IEE16_ECTRL, 0);
***************
*** 635,640 ****
--- 636,644 ----
  bd_maddr = 0;
  i = (ee16_read_eeprom(sc, 6) & 0x00ff) >> 3;
  switch (i) {
+ case 0x01:
+ bd_maddr = 0xC8000;
+ break;
  case 0x03:
  bd_maddr = 0xCC000;
  break;
***************
*** 648,653 ****
--- 652,658 ----
  bd_maddr = 0xD8000;
  break;
  default:
+ printf("ie%d: unknown maddr id: %x\n", unit, i);
  bd_maddr = 0;
  break;
  }
***************
*** 875,880 ****
--- 880,888 ----

  /* Don't ack interrupts which we didn't receive */
  ie_ack(ie->scb, IE_ST_WHENCE & status, unit, ie->ie_chan_attn);
+
+ if (ie->hard_type == IE_EE16) /* XXX Heavy traffic sometimes hangs an*/
+ DELAY(15);            /* XXX EE16. This delay seems to cure. */

  if (status & (IE_ST_RECV | IE_ST_RNR)) {
  #ifdef DEBUG



[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I was wondering if someone could build me images of 
the (3.4 stable) </FONT><FONT face=Arial size=2>installation floppies with the 
following driver patch incorporated. </FONT><FONT face=Arial size=2>I want to 
download 3.4, but the driver for my network card locks </FONT><FONT face=Arial 
size=2>up the PC during the installation. If I can get past the install, 
</FONT><FONT face=Arial size=2>I can patch the kernel. </FONT><FONT face=Arial 
size=2>Ironically, I'm doing the install so I'll have enough&nbsp;disk 
</FONT><FONT face=Arial size=2>space to do a "make world".</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm afraid I can offer nothing in return but my 
undying gratitude :-)</FONT></DIV>
<DIV><FONT face=Arial size=2>Fitz.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>*** /usr/src/sys/i386/isa/if_ie.c Sun Aug 29 
09:07:22 1999<BR>--- if_ie.c Thu Mar&nbsp; 9 23:29:55 
2000<BR>***************<BR>*** 564,569 ****<BR>--- 564,570 ----<BR>&nbsp; struct 
ie_softc *ie = (struct ie_softc *)sc;<BR>&nbsp; int unit = ie - 
&amp;ie_softc[0];<BR><BR>+ return;<BR>&nbsp; ee16_reset_586(unit);<BR>&nbsp; 
outb(PORT + IEE16_ECTRL, IEE16_RESET_ASIC);<BR>&nbsp; outb(PORT + IEE16_ECTRL, 
0);<BR>***************<BR>*** 635,640 ****<BR>--- 636,644 ----<BR>&nbsp; 
bd_maddr = 0;<BR>&nbsp; i = (ee16_read_eeprom(sc, 6) &amp; 0x00ff) &gt;&gt; 
3;<BR>&nbsp; switch (i) {<BR>+ case 0x01:<BR>+ bd_maddr = 0xC8000;<BR>+ 
break;<BR>&nbsp; case 0x03:<BR>&nbsp; bd_maddr = 0xCC000;<BR>&nbsp; 
break;<BR>***************<BR>*** 648,653 ****<BR>--- 652,658 ----<BR>&nbsp; 
bd_maddr = 0xD8000;<BR>&nbsp; break;<BR>&nbsp; default:<BR>+ printf("ie%d: 
unknown maddr id: %x\n", unit, i);<BR>&nbsp; bd_maddr = 0;<BR>&nbsp; 
break;<BR>&nbsp; }<BR>***************<BR>*** 875,880 ****<BR>--- 880,888 
----<BR><BR>&nbsp; /* Don't ack interrupts which we didn't receive */<BR>&nbsp; 
ie_ack(ie-&gt;scb, IE_ST_WHENCE &amp; status, unit, 
ie-&gt;ie_chan_attn);<BR>+<BR>+ if (ie-&gt;hard_type == IE_EE16) /* XXX Heavy 
traffic sometimes hangs an*/<BR>+ 
DELAY(15);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* 
XXX EE16. This delay seems to cure. */<BR><BR>&nbsp; if (status &amp; 
(IE_ST_RECV | IE_ST_RNR)) {<BR>&nbsp; #ifdef 
DEBUG<BR><BR></FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002601bf8c5a$8924d160$040ba8c0>