Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2011 11:25:25 +0100
From:      Gary Jennejohn <gljennjohn@googlemail.com>
To:        freebsd-amd64@freebsd.org
Subject:   Re: Boot Loader Conf
Message-ID:  <20111220112525.76b0d819@ernst.jennejohn.org>
In-Reply-To: <20111220110119.3f085dfd@ernst.jennejohn.org>

index | next in thread | previous in thread | raw e-mail

On Tue, 20 Dec 2011 11:01:19 +0100
Gary Jennejohn <gljennjohn@googlemail.com> wrote:

> tomdean wrote:
> > FreeBSD 9.0 (RC2) amd64. up-to-date.
> > 
> > I want to load a module, nvidia, on boot.
> > 
> > /boot/loader.rc contains
> >   include /boot/loader.4th
> >   start
> > 
> > /boot/loader.conf contains
> >   cpuctl_load="YES"
> >   nvidia_load="YES"
> > 
> > /boot/modules/ directory contains
> > nvidia.ko
> > /boot/kernel/ directory contains
> > cpuctl.ko
> > 
> > But, the modules are not loaded.
> > 
> > What am I missing?
> 
> There's no cpuctl_load or nvidia_load in /boot/defaults/loader.conf in
> 9.0 or 10.0 (I looked at the source on fxr.watson.org for 9.0 since I
> run 10.0).  So there's no way that this can work.
> 
> Load these modules in /etc/rc.local.
> 
> What's missing from the nividia-driver port is a start script which
> should land under $LOCALBASE/etc/rc.d.
> 

Well, I was wrong. That's what I get for only looking at loader.conf.

Putting these into my loader.conf does result in the modules being
loaded at boot time, so I'm at a loss to explain why it doesn't work
for you (tomdean).

Looks like the loader is smart enough to interpret xxx_load to mean
"load module xxx from the usual module paths, if found."

Live and learn.

This makes me wonder what your kern.module_path is set to.  Mine is
kern.module_path: /boot/test;/boot/modules (I booted from /boot/test).

But loading them in rc.local will definitely work and automate it
for you.

-- 
Gary Jennejohn


home | help

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