From owner-freebsd-current@FreeBSD.ORG Mon Aug 9 22:53:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BC8816A4CE for ; Mon, 9 Aug 2004 22:53:07 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5944F43D1D for ; Mon, 9 Aug 2004 22:53:07 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 27118 invoked from network); 9 Aug 2004 22:53:07 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Aug 2004 22:53:06 -0000 Received: from hydrogen.funkthat.com (lmrwvm@localhost.funkthat.com [127.0.0.1])i79Mr5uU063085; Mon, 9 Aug 2004 15:53:05 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i79Mqtvw063084; Mon, 9 Aug 2004 15:52:55 -0700 (PDT) Date: Mon, 9 Aug 2004 15:52:55 -0700 From: John-Mark Gurney To: Max Laier Message-ID: <20040809225255.GI991@funkthat.com> Mail-Followup-To: Max Laier , freebsd-current@freebsd.org, Andrew Milton , Jiawei Ye References: <200408092003.28922.max@love2party.net> <20040809222127.GU64690@camelot.theinternet.com.au> <200408100040.23324.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200408100040.23324.max@love2party.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org cc: Jiawei Ye Subject: Re: kldload pf failed on -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 22:53:07 -0000 Max Laier wrote this message on Tue, Aug 10, 2004 at 00:40 +0200: > > | On Monday 09 August 2004 18:54, Jiawei Ye wrote: > > | > root@chihiro:/usr/src# kldload -v pf > > | > kldload: can't load pf: No such file or directory > > | > root@chihiro:/usr/src# kldload /boot/kernel/pf.ko > > | > root@chihiro:/usr/src# /etc/rc.d/pf restart > > | > Enabling pf. > > | > pf enabled > > | > > > | > Somehow kldload cannot find pf.ko if no specific path is given. This > > | > is a 2 hours old -current. > > | > > | Sounds like kldxref didn't finish it's job correctly. Try (as root): > > | kldxref /boot/kernel /boot/modules > > | and check the output of: > > | kldxref -dv /boot/kernel > > | for proper pf.ko entries. Please tell me if that did not help or if you > > | see anything suspicious in the xref dump. > > > > I have this same problem with nfsclient and nfsserver being loaded. kldxref > > doesn't fix the problem (for me). I figured I just updated at a bad time > > since noone else had reported a similar thing occurring (it wasn't a big > > drama for me to load those by hand). > > > > ACPI also doesn't autoload at boot. > > > > This was from a -current from August 8th. > > Hmm ... I suspect it's this commit: > > jmg         2004-08-06 15:06:06 UTC > > > >   FreeBSD src repository > > > >   Modified files: > >     sys/boot/common      help.common > >     sys/boot/forth       loader.conf > >   Log: > >   remove /boot/kernel from the default path..  There is already code that > >   will prepend the current kernel booting...  This prevents a problem of > >   loading /boot/kernel's modules when a different kernel has no modules, > >   but you left your module_load="YES" in loader.conf... > > Can you try to put back the line in question in /boot/loader.conf? > > I have no idea whatsoever, but don't find anything else suspicious. Ok, on the kernel boot, please send me: sysctl kern.bootfile kern.module_path ls /boot/ Make sure that you're current kernel is built to include modules. We no longer will load the default kernel's modules for other kernels. So if you boot kernel.test (or other kernel) that does not have pf.ko, you can't load pf.ko anymore. Note, I just tried to kldload pf on my system with the above change, and at first it failed just like your case, but that was because I was on a kernel w/o any kernel modules. When I rebooted back to the regular kernel, kldload pf worked perfectly... the unload didn't go so well: kldlopeabody# kldload pf peabody# kldunload pf panic: mutex if_clone loc -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."