From owner-freebsd-stable@FreeBSD.ORG Mon Oct 6 16:33:47 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 651E016A4B3 for ; Mon, 6 Oct 2003 16:33:47 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CA8C43FF5 for ; Mon, 6 Oct 2003 16:33:45 -0700 (PDT) (envelope-from blynn42@comcast.net) Received: from ted.wyld.stallyns (12-203-168-225.client.attbi.com[12.203.168.225]) by comcast.net (sccrmhc11) with ESMTP id <200310062333440110020206e>; Mon, 6 Oct 2003 23:33:44 +0000 Received: from ted.wyld.stallyns (localhost.wyld.stallyns [127.0.0.1]) by ted.wyld.stallyns (8.12.9/8.12.9) with ESMTP id h96NXORL037192; Mon, 6 Oct 2003 19:33:38 -0400 (EDT) (envelope-from blynn42@comcast.net) Message-Id: <200310062333.h96NXORL037192@ted.wyld.stallyns> To: Jack Raats From: blynn42@comcast.net (Brian Lynn) In-reply-to: Your message of "Sun, 05 Oct 2003 10:42:55 +0200." <001e01c38b1c$ac8469d0$230a0a0a@jara1> Date: Mon, 06 Oct 2003 19:33:24 -0400 cc: stable@freebsd.org Subject: Re: Strange error 4.9RC1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 23:33:47 -0000 On Sun, 05 Oct 2003, Jack Raats wrote: > After compiling the kernel 4.9RC1 dmesg gives the following error > > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ed1: at port 0x220-0x23f irq 5 on isa0 > ed1: address 52:54:40:28:83:9a, type NE2000 (16 bit) > ad0: 4112MB [8912/15/63] at ata0-master WDMA2 > Mounting root from ufs:/dev/ad0s1a > module_register: module miibus/ukphy already exists! > linker_file_sysinit "miibus.ko" failed to register! 17 > module_register: module pci/ed already exists! > linker_file_sysinit "if_ed.ko" failed to register! 17 > > /root/kernel/HEAVEN have the following to lines > > # PCI Ethernet NICs that use the common MII bus controller code. > device miibus # MII bus support > device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000 > > Is this a bug, a feature or I am doing something wrong? > > > > Met vriendelijke groeten, > Jack Raats There is a bug here, whereby ifconfig(8) does not match the name registered in the kernel by ed(4). Erik Trulsson posted some patches to fix this last month; search the archive for a thread titled "strange problem with ed driver". [1] However, depending on the remainder of your kernel config, there could be something additional going on here. Note the discrepancy between the dmesg (ed1) and the config file (ed0). You might check whether you are actually loading if_ed.ko in /boot/loader.conf. Brian Lynn [1] The following patch to ifconfig.c also solves this problem on my system. This is taken from v1.90 in HEAD and modifies the ifmaybeload() function. It does not break on any of the interfaces I use (ed xl lo), but I don't really know what I'm doing - YMMV. --- sbin/ifconfig/ifconfig.c.orig Tue Jan 28 06:02:56 2003 +++ sbin/ifconfig/ifconfig.c Tue Sep 23 18:06:07 2003 @@ -1995,7 +1995,8 @@ cp = mstat.name; } /* already loaded? */ - if (!strcmp(ifkind, cp)) + /* if (!strcmp(ifkind, cp)) */ + if (!strncmp(name, cp, strlen(cp))) return; } }