Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick NE2000 Question



Hi,

from 3.1 to 3.2 they changed 'outx_p(' to 'outx(' in ns8390.c.
I bought a (cheap) RealTek NE2k card, and I guess it's a timing problem.

Try this short patch:

--X--
--- etherboot-3.2/src/ns8390.c	Thu Jul 17 16:12:35 1997
+++ orig-with-ne2000-patch/src/ns8390.c	Sat Nov 22 15:54:43 1997
@@ -94,15 +94,15 @@
 	if (eth_flags & FLAG_16BIT) {
 		cnt >>= 1;	/* number of words */
 		while (cnt--) {
-			outw_p(eth_asic_base + NE_DATA, *((unsigned short *)src));
+			outw(eth_asic_base + NE_DATA, *((unsigned short *)src));
 			src += 2;
 		}
 	}
 	else {
 		while (cnt--)
-			outb_p(eth_asic_base + NE_DATA, *(src++));
+			outb(eth_asic_base + NE_DATA, *(src++));
 	}
-	while((inb_p(eth_nic_base + D8390_P0_ISR) & D8390_ISR_RDC)
+	while((inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_RDC)
 		!= D8390_ISR_RDC);
 }
 #else
--X--

CIAU,
 Matthias

> I am currently using an off the wall NE2000 card, and it boots FINE with
> the netboot 2.0 ne.com file (booting off of dos floppy right now until I
> get it all worked out of course).  But when I try the 3.2 version of the
> ne.com file, it hangs the system everytime.  Just curious if anyone else
> had success with 2.0 but failure with 3.2, and new any way to sneak
> around it.  The only thing I can think of is that the IO is at 340,
> maybe that is a little weird?  Don't think so.

-- 
Matthias Goebl <matthias@zukunft.de, matthias@camelot.de>, Munich/Germany



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.