From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 06:44:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4F8F16A4CE for ; Sun, 18 Jan 2004 06:44:48 -0800 (PST) Received: from garbage.relinfo.ru (garbage.relinfo.ru [195.161.208.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57E9D43D1F for ; Sun, 18 Jan 2004 06:44:47 -0800 (PST) (envelope-from levanty@mari-el.ru) Received: from lion.relinfo.ru ([195.161.208.133]) by garbage.relinfo.ru with esmtp (Exim 4.10) id 1AiEET-00054K-00 for freebsd-questions@freebsd.org; Sun, 18 Jan 2004 17:48:57 +0300 Date: Sun, 18 Jan 2004 17:46:15 +0300 From: Lev Klimin X-Mailer: The Bat! (v1.61) Organization: VolgaTelecom X-Priority: 3 (Normal) Message-ID: <97246977750.20040118174615@mari-el.ru> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: NIC ne2000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lev Klimin List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 14:44:49 -0000 Hello! I have 4.9-release. I have old noname NIC. On the top of main chip I see "NE2000 Compatible". I see in LINT for that: --- from LINT--- # # Network interfaces: `cx', `ed', `el', `ep', `ie', `is', `le', `lnc' # # ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 device ed0 at isa? port 0x280 irq 5 iomem 0xd8000 ---------------- I have began to build my kernel with follow option for this NIC: device ed0 at isa? port 0x280 irq 5 iomem 0xd8000 but I've see: cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -mpreferred-stack-boundary=2 vers.c linking kernel if_ed.o: In function `ed_tick': if_ed.o(.text+0x2706): undefined reference to `mii_tick' if_ed.o: In function `ed_init': if_ed.o(.text+0x2afb): undefined reference to `mii_mediachg' if_ed.o: In function `ed_ifmedia_upd': if_ed.o(.text+0x4dca): undefined reference to `mii_mediachg' if_ed.o: In function `ed_ifmedia_sts': if_ed.o(.text+0x4e03): undefined reference to `mii_pollstat' *** Error code 1 Stop in /usr/obj/usr/src/sys/PULS. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Then I've add miibus support: device miibus and kernel have been compiled. Why there is no anything about miibus in LINT when use ISA NIC (only PCI adapters) such as NE2000. May be add that useful commetnts in LINT in order to other people don't have this trouble. May be I'm mistake? Thank you. -- Lev Klimin mailto:levanty@mari-el.ru (8362) 42-15-49