ne2000 on pc386

Vivek Vaid vaid at me.iitb.ac.in
Tue Jan 15 11:14:52 UTC 2002


It worked exactly as described below. Actually I should have written when
i got it working with the help of Eric, 2 days ago.

Thanks a lot! 

(pls. read at the end about my system config. and ne2k diagnostic
programs)

On Tue, 15 Jan 2002, Antonio da Silva [iso-8859-1] Fariña wrote:

> Hi
> 
> I have a Pentium 133 running with a realteak NE2000 compatible card.
> 
> In bsp.h file you must configure the driver name and the driver 
> attach function.
> 
> extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *);
> #define BSP_NE2000_NETWORK_DRIVER_NAME      "ne1"
> #define BSP_NE2000_NETWORK_DRIVER_ATTACH    rtems_ne_driver_attach
> 
> > Vivek Vaid wrote:
> >
> > The card i am using is ne2000, compatible isa card. so on windows and
> > linux it doesnt work unless i specify the io address and irq.
> > should i modify the structure in netconfig.h for net demo, adding these
> > fields ?
> 
> The ne2000 code in c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c has the
> following lines:
> 
>   if (config->irno != 0)
>     sc->irno = config->irno;
>   else {
>     /* We use 5 as the default IRQ.  */
>     sc->irno = 5;
>   }
> 
>   if (config->port != 0)
>     sc->port = config->port;
>   else {
>     /* We use 0x300 as the default IO port number.  */
>     sc->port = 0x300;
>   }
> 
> The default values are: IRQ5 and Base Port 300. You must configure 
> your card with this values or choose another and change the code.
> 

I have tested this NE2K ISA card with 486dx2, and 486dx4. 
th4 486dx4 motherboard did not have any pci slot.

Since i have lot of isa ne2k cards in my lab, i had downloaded various
utilities to find out their base IO address, and irq number. 
These utils are for dos. (I have for: Realtek/Dlink, Readylink)
If anybody needs them, please email me.

I used ReadyLink card with rtems.
Putting the io address and irq in settings is necessary in all OSes (Win ,
linux,    Rtems (in the ne2000.c file)). 

regards

Vivek














More information about the users mailing list