Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ne2000 card doesnt detect

5 views
Skip to first unread message

Marc Gravel

unread,
Jan 30, 1996, 3:00:00 AM1/30/96
to
I have an Ethernet Ne2000 compatible card in my Linux machine and it
never gets detected!!! It works fine if I boot to the dos partition and
use nwclient to login in to a novell server, but I get nothing with the
linux os.

I am running Slackware v3.0
I have 'net' as the boot disk (ide drivers and network drivers)
I have 'tty' as the root disk
I have installed disk sets: a ap d k n

I have reinstalled the whole thing a couple of times and NOTHING...
When I type ifconfig it only show lo and nothing for eth0

Please help, I cant connect to my network

Thanks,
Marc Gravel
(ma...@pathcom.com)

Paul Gortmaker

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
Marc Gravel <ma...@pathcom.com> writes:

>I have an Ethernet Ne2000 compatible card in my Linux machine and it
>never gets detected!!! It works fine if I boot to the dos partition and
>use nwclient to login in to a novell server, but I get nothing with the
>linux os.

>I am running Slackware v3.0
>I have 'net' as the boot disk (ide drivers and network drivers)

I believe that the "net" disk doesn't have the ne2k driver built in,
but I haven't had that confirmed yet.

Here are some general pointers to help get the card detected. If you
try all of the following and are still stumped, then e-mail me the
details you have found out.

1) Build a new kernel with only the device drivers that you need.
Verify that you are indeed booting the fresh kernel. Forgetting to
run lilo, etc. can result in booting the old one. (Look closely at
the build time/date reported at boot.) Sounds obvious, but we have all
done it before. Look at the "System.map" file to ensure it has the
ne2k driver in it. (Look for names like _ne_probe _ne_probe1
_ne_reset_8390 _ne_block_input _ne_block_output)

2) Look at the boot messages carefully. Does it ever even mention doing
a ne2k probe such as "NE*000 probe at 0xNNN: not found (blah blah)" or
does it just fail silently. There is a big difference. Use "dmesg|more"
to review the boot messages after logging in, or hit <Shift><PgUp>
to scroll the screen up after the boot has completed and the login
prompt appears.

3) After booting, do a "cat /proc/ioports" and verify that the full
iospace that the card will require is vacant. If you are at 0x300 then
the ne2k driver will ask for 0x300-0x31f. If any other device driver
has registered even one port anywhere in that range, the probe will not
take place at that address and will silently continue to the next of the
probed addresses.

4) Same as above for "cat /proc/interrupts". Make sure no other device
has registered the interrupt that you set the ethercard for. In this
case, the probe will happen, and the ether driver will complain loudly
at boot about not being able to get the desired IRQ line.

5) If you are still stumped by the silent failure of the driver, then
edit it and add some printk() to the probe. For example, with the ne2k
you could add/remove lines (marked with a "+" or "-") in net/ne.c like:

int reg0 = inb_p(ioaddr);

+ printk("NE2k probe - now checking %x\n",ioaddr);

- if (reg0 == 0xFF)
+ if (reg0 == 0xFF) {
+ printk("NE2k probe - got 0xFF (vacant i/o port)\n");
return ENODEV;
+ }

6) You can also get the ne2k diagnostic from Don's ftp site (mentioned
in the howto as well) and see if it is able to detect your card after
you have booted into linux. Use the "-p 0xNNN" option to tell it
where to look for the card. (The default is 0x300 and it doesn't go
looking elsewhere, unlike the boot-time probe.)

7) Try warm booting into linux from a DOS boot floppy (via loadlin)
after running the supplied DOS driver or config program. It may be doing
some extra (i.e. non-standard) "magic" to initialize the card.

8) Try Russ Nelson's ne2000.com packet driver to see if even it can
see your card -- if not, then things do not look good. Example:

A:> ne2000 0x60 10 0x300

The arguments are <software interrupt vector> <hardware IRQ> <i/o base>.
You can get it from any msdos archive in pktdrv<version>.zip -- I think
the current version is 11 or 12.

Paul.

Tobias Bachmor

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
Marc Gravel (ma...@pathcom.com) wrote:
: I have an Ethernet Ne2000 compatible card in my Linux machine and it
: never gets detected!!! It works fine if I boot to the dos partition [...]
: I have 'net' as the boot disk (ide drivers and network drivers)
: I have 'tty' as the root disk
Are you still booting from a bootdisk?
If not - did you compile a kernel yourself and included ne2000 support?

: I have reinstalled the whole thing a couple of times and NOTHING...


: When I type ifconfig it only show lo and nothing for eth0

If your kernel hasn't the ne2000-support compiled in, it will _never_ find
your card...
Look at the messages showing up while booting Linux - if your kernel has
ne2000-support there will be a line like:

'eth0: found ne2000 at base $300, irq 10'
(or something like this)

: Please help, I cant connect to my network
And don't forget to check your /etc/hosts, etc. !

Hope it helps!

Tobias
--
Tobias Bachmor
Weechstrasse 1 A4 A401
Tel.: 0721 / 623272 Service, VOBISt Du?
76131 Karlsruhe ESCOMt keiner!
eMail : Tobias....@stud.uni-karlsruhe.de
Homepage : www.uni-karlsruhe.de/~Tobias.Bachmor

S. Sampson

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to
>: I have an Ethernet Ne2000 compatible card in my Linux machine and it
>: never gets detected!!! It works fine if I boot to the dos partition [...]

Set it for IRQ 3, 0x300

If it can't find it there, it ain't in the kernel sir...


Waymon

unread,
Feb 5, 1996, 3:00:00 AM2/5/96
to
In article <ssampson.8...@icon.net>, ssam...@icon.net says...

Not...

Try passing to kernel at boot.
example, say your card is at IRQ 9 0x300 and you use LILO try this

boot: linux ether=9,0x300,eth0

It will find it however other mishaps could previel w/ne2k boards.

Hope this in some way will help.


0 new messages