From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 12 18:10:34 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A951065673; Sun, 12 Apr 2009 18:10:34 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 511418FC1B; Sun, 12 Apr 2009 18:10:34 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 5986E1E000D7; Sun, 12 Apr 2009 20:10:36 +0200 (CEST) Received: from triton.kn-bremen.de (noident@localhost [127.0.0.1]) by triton.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n3CI8kGP064211; Sun, 12 Apr 2009 20:08:46 +0200 (CEST) (envelope-from nox@triton.kn-bremen.de) Received: (from nox@localhost) by triton.kn-bremen.de (8.14.3/8.14.3/Submit) id n3CI8k8w064210; Sun, 12 Apr 2009 20:08:46 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 12 Apr 2009 20:08:46 +0200 To: Roman Divacky Message-ID: <20090412180846.GA64019@triton.kn-bremen.de> References: <22999502.post@talk.nabble.com> <22999521.post@talk.nabble.com> <200904121415.n3CEFDCf025538@triton.kn-bremen.de> <20090412173535.GA6148@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090412173535.GA6148@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: jtidwell , freebsd-emulation@freebsd.org Subject: Re: cannot get kqemu to load with kldload X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2009 18:10:35 -0000 On Sun, Apr 12, 2009 at 07:35:35PM +0200, Roman Divacky wrote: > On Sun, Apr 12, 2009 at 04:15:13PM +0200, Juergen Lock wrote: > > In article <20090411192326.GA73059@freebsd.org> you write: > > >On Sat, Apr 11, 2009 at 02:43:52AM -0700, jtidwell wrote: > > >> > > >> > > >> > > >> jtidwell wrote: > > >> > > > >> > Greetings, qemu folk :) > > >> > > > >> > I've recently upgraded my FreeBSD box from 6.2 to 7.2. I'm trying to > > >> > install qemo, but I keep getting stuck at the point where I load kqemu > > >> > with kldload. The module file exists in /boot/modules, but I get this > > >> > error every time I try to load: > > >> > > > >> > # kldload kqemu > > >> > kldload: can't load kqemu: No such file or directory > > >> > > > >> > # ls /boot/modules > > >> > kqemu.ko linker.hints rt2500_sys.ko rt61_sys.ko > > >> > > > >> > > > >> > > >> I forgot to add, I get this error message on the console when i try to load > > >> the module: > > >> > > >> link_elf : symbol sched_lock undefined > > > > > >you use ULE, right? try switching to 4BSD... the .ko uses 4BSD specific things, > > >no idea why > > > > Hmm thats news to me, can you elaborate? Is this something that only > > affects head? > > > > Surprised... > > Juergen (who has kqemu running fine with ule since 7.1 at least) > > the sched_lock is 4BSD specific. I have no idea how it ended up being referenced > by the kqemu.ko Ah OK, but it is only used #if __FreeBSD_version < 700044 . (which made me suspect jtidwell's world and kernel are not in sync...) (kqemu does an mi_switch(SW_VOL, NULL) in its main loop if it receives an irq, in order not to hog the cpu.) Cheers, Juergen