System hang when configuring ISA network cards

System hang when configuring ISA network cards

Post by Peter » Sat, 04 Oct 2003 21:53:22


Hello

I have two ISA network cards (3com 3C509B) installed in a 486/66MHz running
OpenBSD 3.2. I can bring one of the cards up just fine using ifconfig ep1 up
but if I try to give it an IP address (i.e.
ifconfig ep1 inet x.x.x.x netmask x.x.x.x) the whole system hangs.
For the second card the system hangs if I just do ifconfig ep0 up. Not
even Ctrl-Alt-Esc will work. Here is a transcript of what I do (hand copied):

gateway# ifconfig ep0
ep0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
address: 00:20:af:c0:21:7f
media: Ethernet 10baseT
gateway# ifconfig ep1
ep1: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
address: 00:60:97:3e:1a:4d
media: Ethernet 10baseT
gateway# ifconfig ep1 up
(at this point, the link light on the switch comes on)
gateway# ifconfig ep1 down
(the link light stays on)
gateway# ifconfig ep1 up
(still stays on)
gateway# ifconfig ep1
ep1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:60:97:3e:1a:4d
media: Ethernet 10baseT
inet6 fe80::260:97ff:fe3e:1a4d%ep1 prefixlen 64 scopeid 0x2
gateway# ifconfig ep1 inet 192.168.1.1 netmask 255.255.255.0
(it hangs at this point)

For ep0 the following happens (also hand copied):

gateway# ifconfig ep0 up
(the link light comes on and the system hangs)

The relevant dmesg output for the cards is (again hand copied):

ep0 at isa0 port 0x300/16 irq 10: address 00:20:af:c0:21:7f, utp/aui/bnc (default utp)
ep1 at isa0 port 0x310/16 irq 11: address 00:60:97:3e:1a:4d, utp/aui/bnc (default utp)

All the tests for both cards on the DOS diagnostic disk pass
( http://www.yqcomputer.com/ )

Thanks for your help

--
Peter
 
 
 

System hang when configuring ISA network cards

Post by Peter » Sat, 04 Oct 2003 22:49:09


Update: both cards can be brought up but they both still hang at the IP address
stage.

Thanks

--
Peter

 
 
 

System hang when configuring ISA network cards

Post by Peter » Sun, 05 Oct 2003 01:04:46


Another update: both of the cards are configured successfully on tomsrtbt
(Linux boot disk) and can get an IP address and ping. So it's probably not a
problem with the cards, rather a problem with OpenBSD.

Any suggestions?
--
Peter
 
 
 

System hang when configuring ISA network cards

Post by jpd » Sun, 05 Oct 2003 03:26:24


No solutions but I'd like to know what kernel you're running. Is it a
custom compile? If so, you didn't cut out something important like ipv4
support? (I'm just guessing here, you never know.)

Can you bring the interfaces up and tcpdump from them?
Don't configure ipv4, ignore the warning.

Other than that you could try and search the (@openbsd) mailinglists for
issues like this. Might (or might not, even money) turn up something.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
 
 
 

System hang when configuring ISA network cards

Post by Peter » Sun, 05 Oct 2003 08:52:43


Nope, just the GENERIC kernel from 3.2.


I brought one interface up (this triggered a "stray interrupt 7" message from
the kernel) and tcpdumped it. I got one IPv6 packet (which is all I was likely
to get as there aren't any other machines on the switch), I ctrl+c'd tcpdump,
and ran it again. The system hung and when I restarted I couldn't bring either
interface up (Linux still works though). Sorry I can't provide a transcript as I
have been unable to reproduce it.


I did search Google (which presumably includes the mailing list archives) and no
luck, which is why I'm posting here :)

--
Peter
 
 
 

System hang when configuring ISA network cards

Post by erik » Sun, 05 Oct 2003 09:06:36


Did you make sure the two cards not only use a different irq, but also a
different i/o port number, which does not collide with portnumbers for
other devices? Are they pci or isa nics? Did you try to reset the pnp
in the bios?

EJ
--
Remove the obvious part (including the dot) for my email address.
http://www.yqcomputer.com/ for examples of ipf and pf.
 
 
 

System hang when configuring ISA network cards

Post by Peter » Sun, 05 Oct 2003 09:32:28


AFAIK the port numbers and IRQs aren't conflicting with anything (note I found
that out by grepping the dmesg for "port" and "irq", is there a better way of
doing this? A google search didn't reveal anything). The cards are ISA and this
is an old machine so it doesn't have a PNP bios. Anyway the cards use their own
non-standard PNP scheme.

--
Peter
 
 
 

System hang when configuring ISA network cards

Post by Peter » Fri, 24 Oct 2003 00:26:36


Well since nobody came up with any solutions I just threw Linux on the
box. It's a shame really because I really wanted to use OpenBSD's fancy
packet filter mechanism. (I was going to use FreeBSD but they required
me to recompile the kernel for NAT functionality. No way on that 66MHz
clunker).

Thanks for trying
--
Peter
 
 
 

System hang when configuring ISA network cards

Post by jpd » Fri, 24 Oct 2003 00:35:45


Whatever floats your boat.



Oh, c'mon, only takes a week or so.

Kids have no patience these days. *sigh*


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .