From: Mark Hesselink <m.hesselink@student.utwente.nl>
Subject: Re: Two network-cards under Alpha Linux
Date: 1999/10/05 [thread overview]
Message-ID: <37F9C469.A40AAFEF@student.utwente.nl> (raw)
In-Reply-To: 37F9682E.60FC0B18@home.com
If you have an old ISA network card en you don't want to use modules,
there's a solution to detect more than one card during booting. You
have to change some lines in the file Space.c in
/usr/src/linux/drivers/net.
Firstly somewhere around line 644 (it depends on your kernel version)
the following is written:
#ifndef ETH0_ADDR
# define ETH0_ADDR 0
#endif
#ifndef ETH0_IRQ
# define ETH0_IRQ 0
#endif
To add another NIC, you have to add the following lines after these
lines:
#ifndef ETH1_ADDR
# define ETH1_ADDR 0
#endif
#ifndef ETH1_IRQ
# define ETH1_IRQ 0
#endif
To add more NIC's, change ETH1 into ETH2, ETH3 or ETH4, etc.
Secondly somewhere around line 673 the following is written:
static struct device eth0_dev = {
"eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, ð1_dev,
ethif_probe };
To add another NIC, change the lines 670 and 671 into:
static struct device eth1_dev = {
"eth1", 0, 0, 0, 0, ETH1_ADDR, ETH1_IRQ, 0, 0, 0, ð2_dev,
ethif_probe };
To add more NIC's change the lines 669 till 658 according the above
instructions.
This solution works on x86 machines, but I think it's a general
solution.
Mark Hesselink
prev parent reply other threads:[~1999-10-05 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-04 4:00 Two network-cards under Alpha Linux Nick Brok
1999-10-04 4:00 ` Marco Benton
1999-10-04 4:00 ` JJ
1999-10-04 4:00 ` Marco Benton
1999-10-05 4:00 ` Charles Weber
1999-10-05 4:00 ` Mark Hesselink [this message]
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