From owner-freebsd-questions Tue Aug 5 17:18:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA14581 for questions-outgoing; Tue, 5 Aug 1997 17:18:25 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id RAA14575 for ; Tue, 5 Aug 1997 17:18:21 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id KAA19152; Wed, 6 Aug 1997 10:18:27 +1000 From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id JAA00490; Wed, 6 Aug 1997 09:47:33 +0930 (CST) Message-Id: <199708060017.JAA00490@freebie.lemis.com> Subject: Re: How to make detected a second Ethernet Card ? In-Reply-To: <33E7F0E6.3623@wanadoo.fr> from duchaine at "Aug 5, 97 08:35:02 pm" To: christine.duchaine@wanadoo.fr (duchaine) Date: Wed, 6 Aug 1997 09:47:32 +0930 (CST) Cc: freebsd-questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk duchaine writes: > Hi, > > In a first step I had installed FreeBSD 2.2.2 in a PC with an ethernet > card. This ethernet card had been automatiquely detected : > > "ep0: flag=8843<...............> > inet @ IP ............... > ether ....................> > > Now I have installed a second Ethernet card (the same manufacturer, > the same type of card) but this second card is not detected. It would have been nice if you had said "also a 3Com 3C509". In this case, however, the dmesg info gives this to you. > Here are the messages during the boot : > " > 2 3c5x9 boards on ISA found at 0x300 0x300 This says that both boards are set to the same address. > /kernel : ep0 at 0x300-0x30f irq 10 on ISA > ep0 : aui/utp[*UTP*] address 00:60:8c:50:ab:42 > ex0 not probed due to I/O address conflict with ep0 > at 0x300 > le0 not probed due to I/O address conflict with ep0 > at 0x300 > zp0 not probed due to I/O address conflict with ep0 > at 0x300 > " > > Is there something to do when adding a second card to a FreeBSD > system ? Yes. All PC boards must have different IO addresses. This is a basic hardware requirement, and doesn't affect just ethernet boards. Look at the hardware configuration information supplied with your board, and change one of them to another address. I would suggest 0x320, unless something else in the dmesg output has taken this address. In addition, find an unused interrupt request (irq). A good choice might be 9. Next, you will need to build a new kernel: the GENERIC kernel only supports one 3C509. To do this, you will have to have installed the kernel sources. Find the following line in /sys/i386/conf/GENERIC: device ep0 at isa? port 0x300 net irq 10 vector epintr Add the line: device ep1 at isa? port 0x320 net irq 9 vector epintr If you find you can't use I/O address 320 or IRQ 9, modify the line to indicate the configuration you have chosen. Next, build and install a new kernel, and reboot. The new kernel should find the second board OK. If you need more information about building kernels, see http://www.freebsd.org/handbook/handbook37.html#39 or Chapter 11 of "The Complete FreeBSD". Greg