From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 12 19:04:43 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 19E871065675; Sun, 12 Apr 2009 19:04:43 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id AEC138FC1A; Sun, 12 Apr 2009 19:04:42 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 0F2185B23; Sun, 12 Apr 2009 12:04:41 -0700 (PDT) To: necanthrope In-reply-to: Your message of "Sun, 12 Apr 2009 11:47:24 PDT." <5b3cc900904121147r2a6cc434i3f23a1d6d25d4be0@mail.gmail.com> References: <22999502.post@talk.nabble.com> <22999521.post@talk.nabble.com> <200904121415.n3CEFDCf025538@triton.kn-bremen.de> <20090412182939.E23F15B23@mail.bitblocks.com> <5b3cc900904121147r2a6cc434i3f23a1d6d25d4be0@mail.gmail.com> Comments: In-reply-to necanthrope message dated "Sun, 12 Apr 2009 11:47:24 -0700." Date: Sun, 12 Apr 2009 12:04:41 -0700 From: Bakul Shah Message-Id: <20090412190442.0F2185B23@mail.bitblocks.com> Cc: Juergen Lock , 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 19:04:43 -0000 Sigh.... If you are running stock freebsd-7.x and you have correct include files kqemu should just work. Ok, try this: uname -a # this should show 7.2 or some 7.x grep FreeBSD_version /sys/sys/param.h # this should show a number > 700044 pkg_delete /var/db/pkg/kqemu* # blow away any kqemu ls -l /boot/module # this should have no kqemu.ko cd /usr/ports make -DSUP_UPDATE update # or however you update your ports tree cd /usr/ports/emulators/kqemu-kmod-devel make clean make install kldload kqemu # this should succeed If this fails, report uname -a grep SCHED /sys/amd64/conf/GENERIC # if that is what you are running ls -l /usr/include/sys/param.h /sys/sys/param.h ls -l /usr/ports/emulators/kqemu-kmod-devel find /boot kqemu.ko On Sun, 12 Apr 2009 11:47:24 PDT necanthrope wrote: > (Resent to include all original recipients) > > I am not using SCHED_4BSD. In my source's sys/i386/conf/GENERIC file: > > options SCHED_ULE # ULE scheduler > > > > > > In kqemu-kmod-devel, kqemu-freebsd.c uses sched_lock() in > > kqemu_schedule() if __FreeBSD_version is < 700044 & > 500000. > > 7.0 has __FreeBSD_version defined to be 700055. > > 7.1 has __FreeBSD_version defined to be 701000. > > > > So the OP shouldn't have had the problem he is seeing if he > > has indeed updated to 7.x and is getting the right kqemu.ko. > > > > I suggest he do pkg_delete /var/db/pkg/kqemu-kmod*, ensure > > that /boot/module/kqemu.ko is gone and then rebuild and > > install kqemu-kmod-devel. > > > > But this brings up another problem with kqemu: if you are > > using SCHED_4BSD with 7.x or current, kqemu is not guaranteed > > to work.