Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ethernet board initialization
@ 1998-07-08  1:37 Brian Craft
  1998-07-08  2:21 ` Christopher Curtis
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Brian Craft @ 1998-07-08  1:37 UTC (permalink / raw)
  To: axp-list

Hi. I'm trying to put a 2nd ethernet board in an alphastation 200,
with redhat 5.1. "ifconfig eth1" always gives me "unknown interface".

They're both pci boards. One is a DEC DC21040, and the other
is a AMD 79C970.

I thought the boards were probed at boot time, but only the 
DEC board shows up. cat'ing /proc/pci shows both of them.

I modified drivers/net/Space.c to put pcnet32_probe at the top,
followed by de4x5_probe. This results in the AMD board being
found, but then the DEC board isn't, and "ifconfig eth1" still
returns "unknown interface".

What am I missing?

Also, the AMD code is generating LOTS of "unaligned trap" messages.

b.c.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ethernet board initialization
  1998-07-08  1:37 ethernet board initialization Brian Craft
@ 1998-07-08  2:21 ` Christopher Curtis
  1998-07-08  3:50 ` Michal Jaegermann
  1998-07-08  7:40 ` Thomas Bogendoerfer
  2 siblings, 0 replies; 5+ messages in thread
From: Christopher Curtis @ 1998-07-08  2:21 UTC (permalink / raw)
  To: axp-list

On Tue, 7 Jul 1998, Brian Craft wrote:

> I modified drivers/net/Space.c to put pcnet32_probe at the top,
> followed by de4x5_probe. This results in the AMD board being

The general idea behind adaptor probing is that rarely do people have more
than one ethernet adaptor (which is quite incorrect, as my machines each
have two or three adaptors installed...) and as unnecessary probing could
cause lockups, better safe than sorry.  So what you have to do is add
something like the following to your OSLOADOPTIONS (I think):

ether=0,0,eth0 ether=0,0,eth1

> What am I missing?

/usr/doc explains in detail MultipleAdaptors, though I think it's geared
towards x86.  You just need to stick it in ARC/MILO instead of LILO.

> Also, the AMD code is generating LOTS of "unaligned trap" messages.

Dunno what to tell you about that.  Maybe try compiling with a later
version of GCC.  Or possibly even EGCS.  I haven't had any problems
compiling kernels using EGCS 1.0.3a that I bootstrapped on my multia, but
I guess I'm the exception around here...

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ethernet board initialization
  1998-07-08  1:37 ethernet board initialization Brian Craft
  1998-07-08  2:21 ` Christopher Curtis
@ 1998-07-08  3:50 ` Michal Jaegermann
  1998-07-08  7:33   ` Thomas Bogendoerfer
  1998-07-08  7:40 ` Thomas Bogendoerfer
  2 siblings, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 1998-07-08  3:50 UTC (permalink / raw)
  To: axp-list

> 
> Hi. I'm trying to put a 2nd ethernet board in an alphastation 200,
> with redhat 5.1. "ifconfig eth1" always gives me "unknown interface".

If you have both compiled in a kernel then you have to tell it to scan
for the second interface.  BootPrompt-HOWTO has details.  The most
relevant qoute from this document will be

  The most common use of this parameter is to force probing for a second
  ethercard, as the default is to only probe for one. This can be
  accomplished with a simple:

  ______________________________________________________________________
          ether=0,0,eth1
  ______________________________________________________________________


Another method is to load both, or only the second driver, as a module.
A line similar to this:

alias  eth1 ne2k-pci

in /etc/modules.conf is all what is needed (some cards may need also
"options" line)

> What am I missing?

A peek into docs.

> Also, the AMD code is generating LOTS of "unaligned trap" messages.

This, unfortunately, I do not know.  Maybe it need a rewrite?

  Michal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ethernet board initialization
  1998-07-08  3:50 ` Michal Jaegermann
@ 1998-07-08  7:33   ` Thomas Bogendoerfer
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Bogendoerfer @ 1998-07-08  7:33 UTC (permalink / raw)
  To: axp-list

On Tue, Jul 07, 1998 at 09:50:21PM -0600, Michal Jaegermann wrote:
> > Also, the AMD code is generating LOTS of "unaligned trap" messages.
> 
> This, unfortunately, I do not know.  Maybe it need a rewrite?

I've developed the driver on my Alpha and I don't see any unaligned traps
from my driver. Otherwise I would have fixed that already.

Thomas.

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ethernet board initialization
  1998-07-08  1:37 ethernet board initialization Brian Craft
  1998-07-08  2:21 ` Christopher Curtis
  1998-07-08  3:50 ` Michal Jaegermann
@ 1998-07-08  7:40 ` Thomas Bogendoerfer
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Bogendoerfer @ 1998-07-08  7:40 UTC (permalink / raw)
  To: axp-list; +Cc: bcboy

On Tue, Jul 07, 1998 at 09:37:59PM -0400, Brian Craft wrote:
> Also, the AMD code is generating LOTS of "unaligned trap" messages.

I don't get any unaligned trap of my driver on my Alpha. Could you
please look up the unaligned address in your System.map, to identify
the line of code, which does the unaligned access ?

Thomas.

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-07-08  7:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-08  1:37 ethernet board initialization Brian Craft
1998-07-08  2:21 ` Christopher Curtis
1998-07-08  3:50 ` Michal Jaegermann
1998-07-08  7:33   ` Thomas Bogendoerfer
1998-07-08  7:40 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox