[net.unix-wizards] Help needed: 3Com Ethernet Controller

mulligan@u-mt.UUCP (J. Scott Mulligan) (02/23/86)

I have been trying to get a 3Com Unibus Ethernet controller working
on our Vax 11/785 (which is running 4.2BSD).  The problem is that when
I try to boot the kernal configured for the 3Com board the system hangs
up and will not completely boot.  It hangs while probing our tape drive.

Output on the console:

	4.2 BSD UNIX #16: Fri Feb 21 15:19:03 MST 1986
	real mem  = 10481664
	avail mem = 8632320
	using 512 buffers containing 1048576 bytes of memory
	mcr0 (el) at tr1
	mcr1 (eu) at tr1
	uba0 at tr3
	uda0 at uba0 csr 172150 vec 774, ipl 15
	ra0 at uda0 slave 0
	ra1 at uda0 slave 1
	dz0 at uba0 csr 160100 vec 330, ipl 15
	dz1 at uba0 csr 160110 vec 340, ipl 15
		(line printer)
		(synch)
		(asynch)
	dmf0 at uba0 csr 160340 vec 734, ipl 15
		(asynch)
	dmf1 at uba0 csr 160400 vec 674, ipl 15
		(asynch)
	dmf2 at uba0 csr 160440 vec 634, ipl 15
		(asynch)
	dmf3 at uba0 csr 160500 vec 574, ipl 15
		(asynch)
	dmf4 at uba0 csr 160540 vec 534, ipl 15
		(asynch)
	dmf5 at uba0 csr 160600 vec 474, ipl 15
	dh1 at uba0 csr 160020 vec 320, ipl 15
	dm1 at uba0 csr 170500 vec 300, ipl 14
	ecprobe: cannot reserve uba addresses		<<= Note this
	mba0 at tr8
	mt0 at mba0 drive 0
							<<= Gets stuck here

Normally the next line that prints out is:

	mu0 at mt0 slave 0

(I am wondering if that turkey dh/dm could be the problem, it has
caused us headaches in the past....)


I have the switches on the 3Com board set as follows:

	9 8 7 6 5 4 3 2   17 16 15 12 11 10 SG BYT       X X X 8 7 5 4
	---------------   ------------------------       -------------
	o o o o o o o o    o  o  o  o  o  o  o  o              o o o o
	n n f f n f f n    n  n  n  n  f  n  n  n              n n n n
            f f   f f                  f

And the following jumpers are set:

	J1	J4	J2

My config file contains the following lines:

	pseudo_device	inet
	pseudo_device	pty	48
	pseudo_device	ether
	device	ec0	at uba? csr 0164330 vector ecrint eccollide ecxint
 
When I contacted 3Com they simply told me that they provide no unix
support.  (????)

If you can confirm that my switch settings are correct, or advise me that
they are not, it would be most helpful.  Any help at all will be gratefully
received.

			Many thanks in advance,

				Scott Mulligan

ps:  The manual is dated 1982 for whatever that is worth. thx agn  -scott

------------------------------------------------------
Scott Mulligan
University of Montana Computer Center
UUCP: ucbvax!ucdavis!u-mt!mulligan
BELL: (406)243-5455
-------------------

tomlin@dspo.UUCP (Bob Tomlinson) (02/28/86)

> 
> I have been trying to get a 3Com Unibus Ethernet controller working
> on our Vax 11/785 (which is running 4.2BSD).  The problem is that when
> I try to boot the kernal configured for the 3Com board the system hangs
> up and will not completely boot.  It hangs while probing our tape drive.
> ...
> (I am wondering if that turkey dh/dm could be the problem, it has
> caused us headaches in the past....)

Nope, I believe it is the turkey 3Com board which has to be configured
before anything on the Unibus which might want Unibus memory (it isn't
very flexible as you put the start of its Unibus address space in the
switch registers).  You need to coerce the system to configure the 3Com
early.  Since the disk configuration code in unifind() (vax/autoconf.c)
is separate from the other-devices-on-the-bus configuration code,
simply move the disk configuration code down below.

Also, if you want things to work after a Unibus reset you may want to
move the lines in ubareset() (vaxuba/uba.c) that look like:
	#ifdef INET
		ifubareset(uban);
	#endif
above the "for" loop.

NOTE:	Also, make sure your ECMEM definition in vaxif/if_ec.c conforms to
	what you have in the switch registers.

If you have any other questions, call or mail to me.  We are also running
the 3Com on a 785 (although I just got our Interlan replacement).

					-- bob tomlinson
					   dspo!tomlin@lanl.arpa
					   (505) 667-8495
-- 
Bob Tomlinson - dspo!tomlin@LANL  or  {ucbvax!unmvax,ihnp4!lanl}!dspo!tomlin
Los Alamos National Laboratory - E-10/Data Systems
Los Alamos, New Mexico  -  (505) 667-8495