Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: cekim@my-dejanews.com
Subject: Re: two pci NIC's, how do I??
Date: 1998/07/29	[thread overview]
Message-ID: <6pls8m$lna$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 6pj6qu$1d7$1@nnrp1.dejanews.com

In article <6pj6qu$1d7$1@nnrp1.dejanews.com>,
  mkirby@iname.com wrote:
> I'm thinking of buying another de450 and I was wondering how to configure it.
> I've done it with Lilo on an x86 but I looked at Milo and found it doesn't
> handle that stuff.  So how do I load two pci cards of the same type???  I'm
> guessing load them as modules, but I'm not sure.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
>

If loadable modules work in your Alpha system (I have yet to try them since my
move from 4.2 to 5.1) then you have two options:

Pass params when loading the module (per D. Backer's web page), which wil
lmean that you either have to script the loading of the module (rather than
autoloading) or fingure ou how to give KERNELD the info needed so that it
might pass it to the module when nedeed.

The easier method as I see it is to edit Space.c in
/usr/src/linux/drivers/net/

In that file you will find a section that looks like the mess below:

static struct device eth7_dev = {  "eth7", 0,0,0,0,0xffe0 /* I/O base*/,
0,0,0,0, NEXT_DEV, ethif_probe }; static struct device eth6_dev = {  "eth6",
0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth7_dev, ethif_probe }; static
struct device eth5_dev = {  "eth5", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0,
&eth6_dev, ethif_probe }; static struct device eth4_dev = {  "eth4",
0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth5_dev, ethif_probe }; static
struct device eth3_dev = {  "eth3", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0,
&eth4_dev, ethif_probe }; static struct device eth2_dev = {  "eth2",
0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth3_dev, ethif_probe }; static
struct device eth1_dev = {  "eth1", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0,
&eth2_dev, ethif_probe }; static struct device eth0_dev = {  "eth0", 0, 0, 0,
0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, &eth1_dev, ethif_probe };

All you have to do is edit the "0xffe0" in as many "eth(x)_dev" statments, as
you need additional devices, to say "0" instead.

Then recompile your kernel as normal.

This tells the networking section to look for additional cards (more correctly
xffe0 tells it not to.  So in your case, you only need edit the "eth1_dev"
section to do this.

It will load the module you compile in to your kernel or if autoload is
working it will do it for you once you have setup the netcfg in RH.

Good luck,

ekim


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum



  reply	other threads:[~1998-07-29  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-28  4:00 two pci NIC's, how do I?? mkirby
1998-07-29  4:00 ` cekim [this message]
1998-07-29  4:00 ` cekim
read-only archive

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