From owner-freebsd-stable@FreeBSD.ORG Sat Mar 24 17:47:55 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E5071065670; Sat, 24 Mar 2012 17:47:55 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id CACD98FC16; Sat, 24 Mar 2012 17:47:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id q2OHlLSU049001; Sun, 25 Mar 2012 04:47:21 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 25 Mar 2012 04:47:21 +1100 (EST) From: Ian Smith To: Quentin Schwerkolt In-Reply-To: Message-ID: <20120325042722.S2060@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-wireless@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Can't load many network kernel module in 8.3-PREREALEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Mar 2012 17:47:55 -0000 On Fri, 23 Mar 2012, Quentin Schwerkolt wrote: > I can't load many if_* module on FreeBSD 8.3-PRERELEASE on amd64 and i386. > I have rebuild the system from the latest source. When I try a kldload > /boot/kernel/if_*.ko I have error such as "file exist" or "exec format > error". I have no idea why you'd want to do that :) but you'll find that all the 'File exist' ones were already included in your kernel. > kldstat just after system start: > Id Refs Address Size Name > 1 1 0xffffffff80100000 e58280 kernel 'kldstat -v' will show all modules included in your (GENERIC?) kernel. > kldload -v /boot/kernel/if_*.ko: > kldload: can't load /boot/kernel/if_ae.ko: File exists > kldload: can't load /boot/kernel/if_age.ko: File exists > kldload: can't load /boot/kernel/if_alc.ko: File exists > kldload: can't load /boot/kernel/if_ale.ko: File exists > kldload: can't load /boot/kernel/if_an.ko: File exists > kldload: can't load /boot/kernel/if_ath.ko: Exec format error > kldload: can't load /boot/kernel/if_aue.ko: Exec format error > kldload: can't load /boot/kernel/if_axe.ko: Exec format error I'm not certain about the 'Exec format error' messages. Then below are listed the modules loaded that weren't in your kernel. > Loaded /boot/kernel/if_bridge.ko, id=2 > Loaded /boot/kernel/if_bwi.ko, id=4 [..] > Loaded /boot/kernel/if_vte.ko, id=45 > Loaded /boot/kernel/if_wpi.ko, id=46 > > kldstat after run kldload: > Id Refs Address Size Name > 1 151 0xffffffff80100000 e58280 kernel > 2 1 0xffffffff81012000 585a if_bridge.ko > 3 1 0xffffffff81018000 3534 bridgestp.ko > 4 1 0xffffffff8101c000 151d3 if_bwi.ko [..] Now showing all modules that were loaded in addition to those in kernel. Again, 'kldstat -v' will show all of them, with details of loaded ones. cheers, Ian