Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 17:23:04 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Vincent Barus <vibarus@googlemail.com>
Subject:   Re: difference between loading kernel module during boot and after boot manually?
Message-ID:  <200807151723.04482.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <e4207650807150620i5e7efd7ex4736e2947fec89ef@mail.gmail.com>
References:  <e4207650806221429y4e9c01d2i6d082bbad8a54c54@mail.gmail.com> <200807142258.34757.fbsd.questions@rachie.is-a-geek.net> <e4207650807150620i5e7efd7ex4736e2947fec89ef@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 15 July 2008 15:20:19 Vincent Barus wrote:
> On Mon, Jul 14, 2008 at 10:58 PM, Mel
>
> <fbsd.questions@rachie.is-a-geek.net> wrote:
> > On Monday 14 July 2008 20:29:07 Vincent Barus wrote:
> >> On Tue, Jul 8, 2008 at 8:11 PM, Mel
> >> <fbsd.questions@rachie.is-a-geek.net>
> >
> > wrote:
> >> > On Tuesday 08 July 2008 16:48:26 Vincent Barus wrote:
> >> >> does anyone have an idea what's the difference or what _could_ be the
> >> >> difference on loading a kernel module during boot or manually?
> >> >
> >> > There's one major difference. File systems aren't mounted at loader
> >> > stage, so any reference to modules/libraries that exist on a different
> >> > partition, will fail.
> >>
> >> Right now i have only one partition and the same problem occurs. Other
> >> modules e.g. for sound or the nvidia module work as a charm.
> >> So I think that's not the only difference.
> >> I can live with a module loaded at the end of the boot process/after
> >> login but I don't think that's the real solution.
> >
> > Hmm, I can only guess here. Is the machine booting to xorg? As in, is the
> > nvidia card actually initialized, not just in VGA mode? If so, does it
> > work when it stays in console mode and/or when nvidia.ko is removed from
> > the loaded modules?
> >
> > --
> > Mel
> >
> > Problem with today's modular software: they start with the modules
> >    and never get to the software part.
>
> I start X manually after login.

Which comes first? Your own script that loads if_re or Xorg being loaded.

The possibility I'm trying to rule out, is that the nvidia module loading it's 
agp driver and nvidiactl module, fixes your if_re issues, because they take 
up that memory space.

So, to (dis)prove this:
* in /boot/loader.conf and/or kernel config, no mention of if_re
* in /boot/loader.conf load nvidia.ko
* wait till machine boots
* do not start X, instead from root console kldload if_re
* Expected result: failing to load
* start X
* kldload if_re
* Expected result: successful load

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



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