From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 4 08:34:29 2010 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 535E2106566B for ; Sun, 4 Apr 2010 08:34:29 +0000 (UTC) (envelope-from henrygrebler@optusnet.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.freebsd.org (Postfix) with ESMTP id E70618FC08 for ; Sun, 4 Apr 2010 08:34:28 +0000 (UTC) Received: from optusnet.com.au (c122-107-224-80.mckinn3.vic.optusnet.com.au [122.107.224.80]) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o348YQjH026489; Sun, 4 Apr 2010 18:34:26 +1000 Message-Id: <201004040834.o348YQjH026489@mail09.syd.optusnet.com.au> To: Garrett Cooper From: Henry Grebler In-reply-to: message dated "Sat, 03 Apr 2010 23:44:20 -0700." Date: Sun, 04 Apr 2010 18:34:26 +1000 Cc: freebsd-bugs@freebsd.org Subject: Re: conf/145311: loader.conf can cause boot hang X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2010 08:34:29 -0000 Hi Garrett, --> I may be incorrect, but the reason why it's doing this instead of -->checking is because the kernel hasn't loaded yet, and thus it hasn't -->determined that the ukbd module is or is not loaded in the monolithic -->kernel image (someone please correct me if I'm wrong). No, I don't think that's right. I did some other tests. I did an explicit "unload" (which unloads the kernel). OK unload OK load ukbd elf32_loadfile: can't load module before kernel can't load file '/boot/kernel/ukbd.ko': operation not permitted OK It says that I can't load ukbd.ko before I've loaded the kernel. --> The loader does -->actually cache which modules have been loaded though so you can't load -->a module twice. That's correct. I confirmed that when I did this: OK load ukbd /boot/kernel/ukbd.ko text=... OK load ukbd OK The first time, it loads a module. The second time, it does nothing. --> It can exist in the monolithic kernel image, or outside of the -->kernel image as a module; it's up to you how you want to install -->this. I'm using the standard 8.0 kernel. I have not recompiled. On the one hand, the fact that, on the first "load ukbd", it gives the message that it is loading a module suggests that ukbd is not loaded in with the kernel. On the other hand, since my USB keyboard works, I would conclude that a driver has been loaded. I just don't get it. --> Another final thing worth trying (if you haven't tried the BIOS -->support change I suggested yet), is to boot up the system without -->snd_ich, but after the system is booted up try loading snd_ich. Yes, I did that when I first installed audio; and again when I found I could avoid the hang by having nothing in loader.conf. I simply manually typed "kldload snd_driver" and sound worked fine. No freezes (because it is long past booting). --> Does -->the system still freeze up? Also, have you tried loading snd_ich and -->ukbd in reverse order, i.e.: --> -->load snd_ich -->load ukbd Yes, see point 6 in my previous email. Cheers, Henry