From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 15:23:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3CB4106564A for ; Tue, 15 Jul 2008 15:23:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A23678FC0A for ; Tue, 15 Jul 2008 15:23:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 8BE731CD96; Tue, 15 Jul 2008 07:23:05 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 15 Jul 2008 17:23:04 +0200 User-Agent: KMail/1.9.7 References: <200807142258.34757.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807151723.04482.fbsd.questions@rachie.is-a-geek.net> Cc: Vincent Barus Subject: Re: difference between loading kernel module during boot and after boot manually? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 15:23:07 -0000 On Tuesday 15 July 2008 15:20:19 Vincent Barus wrote: > On Mon, Jul 14, 2008 at 10:58 PM, Mel > > wrote: > > On Monday 14 July 2008 20:29:07 Vincent Barus wrote: > >> On Tue, Jul 8, 2008 at 8:11 PM, Mel > >> > > > > 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.