Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2008 16:47:20 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Gavin Spomer <spomerg@cwu.EDU>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: How does /dev/pf get created?
Message-ID:  <20080125214720.GC86111@in-addr.com>
In-Reply-To: <4799CBBC020000900001305B@hermes.cwu.edu>
References:  <4799CBBC020000900001305B@hermes.cwu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 25, 2008 at 11:45:00AM -0800, Gavin Spomer wrote:
> My mistake, I DO have pf.ko:
> 
>       # ls /boot/kernel/pf.ko
>       -r-xr-xr-x  1 root  wheel   184K Jan 25 09:33 kernel/pf.ko
> 
>    I was trying "ls /boot/kernel/pf" before. Now I'm wondering why I'm still getting "kldload: can't load pf.ko: No such file or
>    directory" when I run kldload.
> 
>    Sigh, shouldn't be this difficult. ;)

ENOENT ("No such file or directory") can also mean that a symbol that the
module requires cannot be found in the kernel.  This can be many things,
including a missing prerequisite module or that the module was built with
a different set of options to the currently running kernel.

Check dmesg to see if there is a related error message from the kernel.

Gary

>    - Gavin
> 
> >>> Gavin Spomer 01/25/08 11:08 AM >>>
> >>> Jeremy Chadwick <koitsu@FreeBSD.org> 01/25/08 10:05 AM >>>
> On Fri, Jan 25, 2008 at 09:54:19AM -0800, Gavin Spomer wrote:
> > I followed your instructions to a "T" and then after I rebooted, I double checked everything to make sure I didn't do
> >    anything stupid. Still no /dev/pf. Running kldstat still shows that pf.ko didn't get loaded. Trying to load it via your
> >    instructions (kldload -v pf) I get:
> > 
> >       kldload: can't load pf: No such file or directory
> This would indicate that /boot/kernel/pf.ko is missing.  It doesn't
> appear it was built during your last buildkernel/installkernel.
> 
> 
>    Yes, you're quite correct. Oddly enough, I remember that when I had the pf stuff in my kernel config, pk.ko DID exist in
>    /boot/kernel. THAT doesn't make much sense.
> _______________________________________________
> freebsd-pf@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080125214720.GC86111>