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 disk
</FONT><FONT face=Arial size=2>space to do a "make world".</FONT></DIV>
<DIV> </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> </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 9 23:29:55
2000<BR>***************<BR>*** 564,569 ****<BR>--- 564,570 ----<BR> struct
ie_softc *ie = (struct ie_softc *)sc;<BR> int unit = ie -
&ie_softc[0];<BR><BR>+ return;<BR> ee16_reset_586(unit);<BR>
outb(PORT + IEE16_ECTRL, IEE16_RESET_ASIC);<BR> outb(PORT + IEE16_ECTRL,
0);<BR>***************<BR>*** 635,640 ****<BR>--- 636,644 ----<BR>
bd_maddr = 0;<BR> i = (ee16_read_eeprom(sc, 6) & 0x00ff) >>
3;<BR> switch (i) {<BR>+ case 0x01:<BR>+ bd_maddr = 0xC8000;<BR>+
break;<BR> case 0x03:<BR> bd_maddr = 0xCC000;<BR>
break;<BR>***************<BR>*** 648,653 ****<BR>--- 652,658 ----<BR>
bd_maddr = 0xD8000;<BR> break;<BR> default:<BR>+ printf("ie%d:
unknown maddr id: %x\n", unit, i);<BR> bd_maddr = 0;<BR>
break;<BR> }<BR>***************<BR>*** 875,880 ****<BR>--- 880,888
----<BR><BR> /* Don't ack interrupts which we didn't receive */<BR>
ie_ack(ie->scb, IE_ST_WHENCE & status, unit,
ie->ie_chan_attn);<BR>+<BR>+ if (ie->hard_type == IE_EE16) /* XXX Heavy
traffic sometimes hangs an*/<BR>+
DELAY(15); /*
XXX EE16. This delay seems to cure. */<BR><BR> if (status &
(IE_ST_RECV | IE_ST_RNR)) {<BR> #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>
