2002-01-17 19:33:53

by Juhan Ernits

[permalink] [raw]
Subject: misconfiguration of ne.o module in 2.2.19 damaged hardware. Is it normal?


Hello!

Is the following normal procedure? I've configured many ne2000 nics (and
also doing some guesswork on their parameters), but never managed to break
any of them with this.

The hw setup was the following:

P166MMX
Intel 430TX Chipset (Chaintech 5TDM1)
128MB RAM
Matrox Millennium graphics adapter
SB AWE 64 Gold sound card
DLink DE-250 (ne2000 compatible) 0x280, irq 3
COM2 disabled in bios
(the same setup had been working as stable as is possible under MS)

I installed linux on this box (Debian 2.2r4, kernel version 2.2.19).
Then when configuring the network the module ne.o was chosen.
I was sure about the io address but not so sure about the irq. So I
configured the module with only io address parameter.
At this point no problems occurred.

Then I configured the network address but the device eth0 did not appear
to be available (naturally, due to misconfiguration). Since it was part of
automated install I decided to reboot after this.

Shutdown went fine, but the computer never reached the "beep" at the
beginning of the boot process, when bios checks memory.
The computer stopped behaving like this when the nic was removed . Another
computer behaved in exactly the same way, when the broken nic was
inserted.

How can such hardware damaging behaviour be avoided (assuming there are
more such dumb users as me :-)?

Best regards,

Juhan Ernits




2002-01-18 19:05:05

by Horst von Brand

[permalink] [raw]
Subject: Re: misconfiguration of ne.o module in 2.2.19 damaged hardware. Is it normal?

Juhan Ernits <[email protected]> said:

[...]

> I installed linux on this box (Debian 2.2r4, kernel version 2.2.19).
> Then when configuring the network the module ne.o was chosen.
> I was sure about the io address but not so sure about the irq. So I
> configured the module with only io address parameter.

This is enough, IRQ can be found from that datum. I assume this is an ISA
NIC? If PCI, no such parameters are needed. BTW, NE clones are (in)famous
for their bizarre assortment of bugs, you might have hit one that doesn't
work with Linux.

> At this point no problems occurred.
>
> Then I configured the network address but the device eth0 did not appear
> to be available (naturally, due to misconfiguration). Since it was part of
> automated install I decided to reboot after this.

What does lsmod(8) tell you? If you do an "modprobe ne io=..." what does it
say?

If your guess at IO is wrong, nothing happens. If the NIC is _not_ an NE,
strange things could very well happen. It might be broken, not installed
correctly, jumpers set wrong, ...
--
Horst von Brand http://counter.li.org # 22616

2002-01-18 19:29:45

by Juhan Ernits

[permalink] [raw]
Subject: Re: misconfiguration of ne.o module in 2.2.19 damaged hardware. Is it normal?



On Fri, 18 Jan 2002, Horst von Brand wrote:

> > I installed linux on this box (Debian 2.2r4, kernel version 2.2.19).
> > Then when configuring the network the module ne.o was chosen.
> > I was sure about the io address but not so sure about the irq. So I
> > configured the module with only io address parameter.
>
> This is enough, IRQ can be found from that datum. I assume this is an ISA
> NIC? If PCI, no such parameters are needed. BTW, NE clones are (in)famous
> for their bizarre assortment of bugs, you might have hit one that doesn't
> work with Linux.

It is (was) an ISA nic and the fun part is, that it had been working for
me under minix & linux (under different hardware configuration though).

> What does lsmod(8) tell you? If you do an "modprobe ne io=..." what does it
> say?

The bad part was, that I didnt do lsmod then. After reboot the card was
rendered completely useless (except for a few probably functional diodes
on the pc-board :-).

> If your guess at IO is wrong, nothing happens. If the NIC is _not_ an NE,
> strange things could very well happen. It might be broken, not installed
> correctly, jumpers set wrong, ...

It was a jumperless ne2000 isa clone. The io adress was right alright, but
i just left irq unspecified. And that fact drove me to bore the people on
this list ...

My question is that how can the module detect false parameters and how is
it possible to make it protect the hardware in such case?

The module ne.o most probably managed to write some garbage to the nics
flash address somehow and that makes me worry a bit.


Juhan Ernits

2002-01-18 19:50:45

by Richard B. Johnson

[permalink] [raw]
Subject: Re: misconfiguration of ne.o module in 2.2.19 damaged hardware. Is it normal?

On Fri, 18 Jan 2002, Juhan Ernits wrote:

>
>
> On Fri, 18 Jan 2002, Horst von Brand wrote:
>
> > > I installed linux on this box (Debian 2.2r4, kernel version 2.2.19).
> > > Then when configuring the network the module ne.o was chosen.
> > > I was sure about the io address but not so sure about the irq. So I
> > > configured the module with only io address parameter.
> >
> > This is enough, IRQ can be found from that datum. I assume this is an ISA
> > NIC? If PCI, no such parameters are needed. BTW, NE clones are (in)famous
> > for their bizarre assortment of bugs, you might have hit one that doesn't
> > work with Linux.
>
> It is (was) an ISA nic and the fun part is, that it had been working for
> me under minix & linux (under different hardware configuration though).
>
> > What does lsmod(8) tell you? If you do an "modprobe ne io=..." what does it
> > say?
>
> The bad part was, that I didnt do lsmod then. After reboot the card was
> rendered completely useless (except for a few probably functional diodes
> on the pc-board :-).
>
> > If your guess at IO is wrong, nothing happens. If the NIC is _not_ an NE,
> > strange things could very well happen. It might be broken, not installed
> > correctly, jumpers set wrong, ...
>
> It was a jumperless ne2000 isa clone. The io adress was right alright, but
> i just left irq unspecified. And that fact drove me to bore the people on
> this list ...
>
> My question is that how can the module detect false parameters and how is
> it possible to make it protect the hardware in such case?
>
> The module ne.o most probably managed to write some garbage to the nics
> flash address somehow and that makes me worry a bit.
>
>
> Juhan Ernits

These things use a SEEPROM (Serial EEPROM), they need bit-banger software
to perform a write. If you can boot DOS or FREE_DOS, use the software
you got with the card (or download the executable from the vendor's site),
and restore the parameters.

Since these ne2000* ISA boards need bit-banger software, to change
anything, it seems to me that some driver for some other board "thought"
it saw its hardware and tried to use its bit-banger software to enable the
I/O connector or change I/O configuration. The ne.c software does not
do bit-banging I/O so it can't be the culprit.



Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.