* ne2000 (ISA) & test11+
@ 2001-01-02 1:08 Taco IJsselmuiden
2001-01-02 8:27 ` Paul Gortmaker
0 siblings, 1 reply; 6+ messages in thread
From: Taco IJsselmuiden @ 2001-01-02 1:08 UTC (permalink / raw)
To: linux-kernel
Hi All,
First off: I wish everyone a very happy and coded 2001.
Second: I'm having problems loading my ne2000 (ISA) card as a module since
test11 (test10 + 2.2.17 works perfectly. Haven't tried 2.2.18...):
When loading the module with 'modprobe ne io=0x360 irq=4' it says:
/lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o: init_module: No
such device or address
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
/lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o: insmod
/lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o failed
/lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o: insmod ne failed
When using test10 or 2.2.17 it works ;)
I'm I just being plain stupid (as in: did I miss something...), or is
something wrong ??
system specs:
2.4.0-prerelease
debian woody
gcc version 2.95.2 20000220 (Debian GNU/Linux)
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
GNU ld version 2.10.91 (with BFD 2.10.1.0.2)
insmod version 2.3.23
tune2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Cheers,
Taco.
P.S.: I'm not linux-kernel, so please cc me (I read web-archives...)
---
"I was only 75 years old when I met her and I was still a kid...."
-- Duncan McLeod
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ne2000 (ISA) & test11+
@ 2001-01-02 1:48 Les Schaffer
2001-01-02 9:12 ` Paul Gortmaker
0 siblings, 1 reply; 6+ messages in thread
From: Les Schaffer @ 2001-01-02 1:48 UTC (permalink / raw)
To: linux-kernel
> Second: I'm having problems loading my ne2000 (ISA) card as a module
ditto for myself since i started using new SMP machine sometime around
2.4.0-test8 or so.
the modprobe works the second time (and subsequently) when i run it by
hand after boot scripts finish.
i've tried all kinds of combinations of insmod/modprobe/isapnp etc
with no luck. wouldnt mind tracking this annoyance down.
boot log:
Jan 1 08:03:18 localhost kernel: isapnp: Scanning for Pnp cards...
Jan 1 08:03:18 localhost kernel: isapnp: Card 'NDC Plug & Play Ethernet Card'
Jan 1 08:03:18 localhost kernel: isapnp: 1 Plug & Play card detected total
Jan 1 08:03:18 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
[snip eth0]
Jan 1 08:03:18 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
Jan 1 08:03:18 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
[snip sound card / parallel port ]
Jan 1 08:03:21 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
Jan 1 08:03:21 localhost insmod: /lib/modules/2.4.0-test12/kernel/drivers/net/ne.o: init_module: No such device or address
Jan 1 08:03:21 localhost insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
Jan 1 08:03:21 localhost insmod: /lib/modules/2.4.0-test12/kernel/drivers/net/ne.o: insmod eth1 failed
Jan 1 08:03:23 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
Jan 1 08:03:23 localhost insmod: /lib/modules/2.4.0-test12/kernel/drivers/net/ne.o: init_module: No such device or address
Jan 1 08:03:23 localhost insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
Jan 1 08:03:23 localhost insmod: /lib/modules/2.4.0-test12/kernel/drivers/net/ne.o: insmod eth1 failed
[finish boot]
then modprobe by hand:
Jan 1 08:03:59 localhost kernel: ne.c: ISAPnP reports Generic PNP at i/o 0x220, irq 5.
Jan 1 08:03:59 localhost kernel: ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Jan 1 08:03:59 localhost kernel: Last modified Nov 1, 2000 by Paul Gortmaker
Jan 1 08:03:59 localhost kernel: NE*000 ethercard probe at 0x220: 00 80 c6 f5 19 08
Jan 1 08:03:59 localhost kernel: eth1: NE2000 found at 0x220, using IRQ 5.
les schaffer
debian unstable
SMP
(speggy)/var/log/: lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT82C691 [Apollo PRO] (rev c4)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Apollo PRO] (rev 23)
[snip]
from e/tc/modules.conf:
alias eth1 ne
options ne irq=5 io=0x220
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ne2000 (ISA) & test11+
2001-01-02 1:08 Taco IJsselmuiden
@ 2001-01-02 8:27 ` Paul Gortmaker
2001-01-02 9:51 ` Taco IJsselmuiden
0 siblings, 1 reply; 6+ messages in thread
From: Paul Gortmaker @ 2001-01-02 8:27 UTC (permalink / raw)
To: Taco IJsselmuiden; +Cc: linux-kernel
Taco IJsselmuiden wrote:
>
> Second: I'm having problems loading my ne2000 (ISA) card as a module since
> test11 (test10 + 2.2.17 works perfectly. Haven't tried 2.2.18...):
>
> When loading the module with 'modprobe ne io=0x360 irq=4' it says:
>
> /lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o: init_module: No
> such device or address
> Hint: insmod errors can be caused by incorrect module parameters,
> including invalid IO or IRQ parameters
>
> When using test10 or 2.2.17 it works ;)
> I'm I just being plain stupid (as in: did I miss something...), or is
> something wrong ??
Ok, I suspect the phasing out of check_region(...) is responsible
here. In test10 and older, check_region() wasn't done if an explicit
i/o address was supplied - this was to accomodate the now rarely used
reserve= bootprompt which dates back to before modules existed.
Since ne.c doesn't allow modular autoprobing, there was always an i/o
address present, and hence you could still load the module even if
there was a potential i/o space conflict.
In test11 and newer, check_region() is gone and an unconditional
request_region() takes place, which will not allow any i/o space
conflict. In your case, 0x360 is suspect since a ne2000 is 0x20
wide in i/o space and you are probably bumping into either:
0376-0376 : ide1
0378-037a : parport0
Check your /proc/ioports, and relocate your ne card as appropriate.
Paul.
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ne2000 (ISA) & test11+
2001-01-02 1:48 ne2000 (ISA) & test11+ Les Schaffer
@ 2001-01-02 9:12 ` Paul Gortmaker
2001-01-02 13:23 ` Les Schaffer
0 siblings, 1 reply; 6+ messages in thread
From: Paul Gortmaker @ 2001-01-02 9:12 UTC (permalink / raw)
To: Les Schaffer; +Cc: linux-kernel
Les Schaffer wrote:
> > Second: I'm having problems loading my ne2000 (ISA) card as a module
>
> ditto for myself since i started using new SMP machine sometime around
> 2.4.0-test8 or so.
>
> the modprobe works the second time (and subsequently) when i run it by
> hand after boot scripts finish.
>
> boot log:
>
> Jan 1 08:03:18 localhost kernel: isapnp: Scanning for Pnp cards...
> Jan 1 08:03:18 localhost kernel: isapnp: Card 'NDC Plug & Play Ethernet Card'
> Jan 1 08:03:18 localhost kernel: isapnp: 1 Plug & Play card detected total
> Jan 1 08:03:18 localhost kernel: ne.c: No NE*000 card found at i/o = 0x220
> then modprobe by hand:
>
> Jan 1 08:03:59 localhost kernel: ne.c: ISAPnP reports Generic PNP at i/o 0x220, irq 5.
> Jan 1 08:03:59 localhost kernel: ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
> Jan 1 08:03:59 localhost kernel: Last modified Nov 1, 2000 by Paul Gortmaker
> Jan 1 08:03:59 localhost kernel: NE*000 ethercard probe at 0x220: 00 80 c6 f5 19 08
> Jan 1 08:03:59 localhost kernel: eth1: NE2000 found at 0x220, using IRQ 5.
Note in the failed case you have no line that says "ne.c: ISAPnP reports..."
which is the clue here. If you supply an i/o address, such as....
> from etc/modules.conf:
>
> alias eth1 ne
> options ne irq=5 io=0x220
then no PnP is involved in the probing at all. If you are relying on the
PnP part of the probe to activate your card, but it isn't being used....
OTOH, if you *don't* supply an I/O address, then the PnP part of the probe
will be used; you will see the "ne.c: ISAPnP reports..." message, and all
should be well. So try deleting your options line (for 2.4.x kernels).
There is also a possibility of an i/o conflict - as the other person
had at 0x360 now that check_region is gone - in your case maybe with
the i/o regions isapnp itself reserves, since your ne2k is way down
low at 0x220. In fact isapnp assumes that NE2000 cards will start
between 0x280 and 0x360 - and avoids this region because of that.
Paul.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ne2000 (ISA) & test11+
2001-01-02 8:27 ` Paul Gortmaker
@ 2001-01-02 9:51 ` Taco IJsselmuiden
0 siblings, 0 replies; 6+ messages in thread
From: Taco IJsselmuiden @ 2001-01-02 9:51 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel
> Taco IJsselmuiden wrote:
> >
> > Second: I'm having problems loading my ne2000 (ISA) card as a module since
> > test11 (test10 + 2.2.17 works perfectly. Haven't tried 2.2.18...):
> >
> > When loading the module with 'modprobe ne io=0x360 irq=4' it says:
> >
> > /lib/modules/2.4.0-prerelease/kernel/drivers/net/ne.o: init_module: No
> > such device or address
> > Hint: insmod errors can be caused by incorrect module parameters,
> > including invalid IO or IRQ parameters
> >
<snip>
> Since ne.c doesn't allow modular autoprobing, there was always an i/o
> address present, and hence you could still load the module even if
> there was a potential i/o space conflict.
>
> In test11 and newer, check_region() is gone and an unconditional
> request_region() takes place, which will not allow any i/o space
> conflict. In your case, 0x360 is suspect since a ne2000 is 0x20
> wide in i/o space and you are probably bumping into either:
>
> 0376-0376 : ide1
> 0378-037a : parport0
>
> Check your /proc/ioports, and relocate your ne card as appropriate.
Yep, that does the trick ;)
Thanks.
<pondering>
Hmm, so all this time I've had an io-conflict ...
Maybe my box will get even more stable now ;))
</pondering>
Cheers,
Taco.
---
"I was only 75 years old when I met her and I was still a kid...."
-- Duncan McLeod
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ne2000 (ISA) & test11+
2001-01-02 9:12 ` Paul Gortmaker
@ 2001-01-02 13:23 ` Les Schaffer
0 siblings, 0 replies; 6+ messages in thread
From: Les Schaffer @ 2001-01-02 13:23 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel
Paul:
> So try deleting your options line (for 2.4.x kernels).
that did it. nice work.....
les schaffer
isapnp: Scanning for Pnp cards...
isapnp: Card 'NDC Plug & Play Ethernet Card'
isapnp: 1 Plug & Play card detected total
ne.c: ISAPnP reports Generic PNP at i/o 0x220, irq 5.
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x220: 00 80 c6 f5 19 08
eth1: NE2000 found at 0x220, using IRQ 5.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-01-02 13:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-02 1:48 ne2000 (ISA) & test11+ Les Schaffer
2001-01-02 9:12 ` Paul Gortmaker
2001-01-02 13:23 ` Les Schaffer
-- strict thread matches above, loose matches on Subject: below --
2001-01-02 1:08 Taco IJsselmuiden
2001-01-02 8:27 ` Paul Gortmaker
2001-01-02 9:51 ` Taco IJsselmuiden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox