cannot get kqemu to load with kldload
Bakul Shah
bakul at bitblocks.com
Sun Apr 12 19:04:43 UTC 2009
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 at 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.
More information about the freebsd-emulation
mailing list