Two Ethernet Card Setting, not works as FAQ says ?

Two Ethernet Card Setting, not works as FAQ says ?

Post by Onio » Wed, 25 Dec 1996 04:00:00



Merry Christmas and Happy New Year,

I am trying to configure two Ethernet Cards as follow
        eth0 --> 10, 0x320
        eth1 --> 9,  0x300
As you see, eth0 has IRQ 10 not 9.

Appending following line  to lilo.conf
        append = "ether=9,0x300,eth1 ether=10,0x320,eth0"
didn't work.  But it works if I give "ether=????" at
the lilo prompt.

So I tried to modify "/src/linux/driver/net/Space.c" as
below and compiled kernel again but no luck yet.
It would be appreciated if you can point me what is missing


_________________ Space.c___________________

/* "eth0" defaults to autoprobe (== 0), other use a base of 0xffe0 (==
-0x20)
   which means "don't probe".  These entries exist to only to provide
empt
   slots which may be enabled at boot-time. *
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,0x320, 9,0,0,0, &eth2_dev, ethif_probe }
static struct device eth0_dev =
    "eth0", 0, 0, 0, 0, 0x300, 10, 0, 0, 0, &eth1_dev, ethif_probe }

/*static struct device eth1_dev =
 *   "eth1", 0,0,0,0,0xffe0, 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 }
 *
_____________ lilo.conf ____________________
append = "ether=10,0x320,eth0 ether=9,0x300,eth1"
# LILO configuration fil
# generated by 'liloconfig
boot = /dev/hd
delay = 5
vga = normal    # force sane stat
ramdisk = 0     # paranoia settin
#
image = /vmlinu
  root = /dev/hda
  label = L
  read-only
image = /vmlinu
  root = /dev/hda
  label = L
  read-only # Non-UMSDOS filesystems should be mounted read-only for
checkin
#
other = /dev/hda
  label =
  table = /dev/hd
#