Date: Sun, 12 Apr 2009 12:04:41 -0700 From: Bakul Shah <bakul@bitblocks.com> To: necanthrope <necanthrope@gmail.com> Cc: Juergen Lock <nox@jelal.kn-bremen.de>, freebsd-emulation@freebsd.org Subject: Re: cannot get kqemu to load with kldload Message-ID: <20090412190442.0F2185B23@mail.bitblocks.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <necanthrope@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090412190442.0F2185B23>