Re: Kernel modules not loading on 15-prerelease
Date: Sat, 06 Sep 2025 15:18:04 UTC
On Fri, Sep 05, 2025 at 09:17:06AM -0700, Mark Millard wrote: > > > Run # make cleanworld once. > > In your odd context, "make clean" may well be better > for before starting the builds. Interestingly, "make clean" wasn't successful, but make cleandir resulted in a new build of kernel and modules. > > If objects don't have .meta files then META_MODE won't do the right thing on an incremental build. 1 > > FreeBSD buildworld will now create meta files to improve the performance of future builds. > > So: how to get a valid kernel/module-set without > first building all of the world: > > FIRST: deal with having /etc/src-env.conf include a > line with: > > WITH_META_MODE= > > (Your choice if you want the YES or some text.) > > NOTE: I make the assumption that you want to use > /etc/src-env.conf instead of command line > content. As a matter of curiosity, is /usr/local/etc/src-env.conf in the search path? This seems like a local parameter. > # cd /usr/src/ # (or where ever you have your source) > # make clean # not something that you would normally do > # make kerneltoolchain I'd forgotten about the kernel-toolchain target. That sped things up considerably. > > NOTE: I do not know your detailed choices about handling > kernel updates so you may have more related to the > installkernel than I show. For example, you might > deliberately keep a copy of the old kernel under > some alternate name before updating the default > named one. (There are other possibilities.) Ordinarily, I do not. If trouble is expected I often cp -R boot/kernel.old /boot/kernel.spare for an extra level of redundancy. > > kldload -n filemon > cd /usr/src/ # or my equivalent for a specific source tree > > That is in order to establish context for later commands > in the script and for META_MODE use. > > I happen to choose to not start filemon unless I'm > starting a system software build, avoiding any overhead > if I've not done any system builds yet. That seems a good idea which never crossed my mind... Is there any estimate how much overhead filemon imposes? Many thanks for your help. My misunderstanding of meta-mode use was rather profound. bob prohaska