From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 12 19:18:44 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 BF31510656D4 for ; Sun, 12 Apr 2009 19:18:44 +0000 (UTC) (envelope-from necanthrope@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 8EBA28FC19 for ; Sun, 12 Apr 2009 19:18:44 +0000 (UTC) (envelope-from necanthrope@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1527427wfg.7 for ; Sun, 12 Apr 2009 12:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=poZRju0uXycIWJD3RISOWp24DOQHUP2SnTeZ6QKr+EQ=; b=LaWQHTHlIBmZZnHlVTIR4ko177IE9iThcZyp8v/nbsGBm14belMrTmLwUgei8ZOZAJ V/RzYdluc46wS/2OSr7m6lwYRbmF66k/EwCZa6kPrONCFwbNRSF3GVL6GFVE14NoY4tM fCfrFE74n3vSg6GAQ8EZ9uBTw4W8K2zOP+Ue0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ryS/nI8Qp+5eozWUPbytIvVZ7EpE8oXZgbVwPXOMN4Qwdy7W1oba/kKuI6dUco4i/n 7WLfNkPWEtfwGu0HvkI/30Gc2pXzwwlyuHOipXwLFgChkJ9exIA36rJtvKUUAdxLLp/v e7ZA9G36TyjsUvnGoO8NeXPG1XOwdhz9mGHko= MIME-Version: 1.0 Received: by 10.143.3.7 with SMTP id f7mr2295443wfi.65.1239563922355; Sun, 12 Apr 2009 12:18:42 -0700 (PDT) In-Reply-To: <20090412185053.GA65339@triton.kn-bremen.de> References: <22999502.post@talk.nabble.com> <22999521.post@talk.nabble.com> <200904121410.n3CEAkU8025500@triton.kn-bremen.de> <5b3cc900904121124k148be3c0t83ab233212a39d6a@mail.gmail.com> <20090412185053.GA65339@triton.kn-bremen.de> Date: Sun, 12 Apr 2009 12:18:42 -0700 Message-ID: <5b3cc900904121218y217da8dbs363e599c519946bf@mail.gmail.com> From: necanthrope To: Juergen Lock Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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:18:45 -0000 I renamed my source directory to /usr/src, and now I can load kqemu.ko. :D Unfortunately, I get an error when I try to make the windows image. I created the image with: qemu-img create -f qcow2 xp.img 100G qemu -cdrom /dev/acd0 -hda xp.img -m 256 -boot d I get this error: qemu: hardware error: register_ioport_write: invalid opaque CPU #0: EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633 ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 00000000 0000ffff 00009200 CS =f000 ffff0000 0000ffff 00009a00 SS =0000 00000000 0000ffff 00009200 DS =0000 00000000 0000ffff 00009200 FS =0000 00000000 0000ffff 00009200 GS =0000 00000000 0000ffff 00009200 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 00000000 0000ffff IDT= 00000000 0000ffff CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 DR6=ffff0ff0 DR7=00000400 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 Abort (core dumped) I'm going to try copying the install cd to disk first with dd and try again. THank you for your help, it is greatly appreciated. :) but when I try to read directly from the disk to install the OS: On Sun, Apr 12, 2009 at 11:50 AM, Juergen Lock wrote: > On Sun, Apr 12, 2009 at 11:24:45AM -0700, necanthrope wrote: > > > > > > > > > Hmm that shouldn't happen, did you rebuild kqemu after upgrading base? > > > Are your world and kernel in sync? When did you checkout/c(v)sup > /usr/src > > > and which branch/tag was it? What do > > > uname -a > > > ident /usr/src/sys/sys/param.h > > > ident /usr/include/sys/param.h > > > grep define.__FreeBSD_version /usr/include/sys/param.h > > > (cd /usr/ports/emulators/kqemu-kmod-devel && make -V OSVERSION) > > > say? > > > > > > Curious... > > > Juergen > > > > > > > Jurgen, > > > > Yes, I did rebuild kqemu after upgrading. I checked out 7.2 about a week > or > > so ago. Here's the output you asked for: > > > > cinema# uname -a > > FreeBSD cinema.distantsoil.org 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: > Sat > > Apr 11 19:32:34 PDT 2009 > > root@cinema.distantsoil.org:/usr/obj/usr/src_7.1/sys/GENERIC > > i386 > > > > cinema# ident /usr/src_7.1/sys/sys/param.h > > /usr/src_7.1/sys/sys/param.h: > > $FreeBSD: src/sys/sys/param.h,v 1.308.2.24 2009/03/14 08:34:45 bms > Exp > > $ > > > > cinema# ident /usr/include/sys/param.h > > /usr/include/sys/param.h: > > $FreeBSD: src/sys/sys/param.h,v 1.308.2.24 2009/03/14 08:34:45 bms > Exp > > $ > > > > cinema# grep define.__FreeBSD_version /usr/include/sys/param.h > > #define __FreeBSD_version 701106 /* Master, propagated to newvers > */ > > > > cinema# (cd /usr/ports/emulators/kqemu-kmod-devel && make -V OSVERSION) > > 701106 > > > > Note that the source directory I built world from is /usr/src_7.1, not > > /usr/src. (I fatfingered the directory name and forgot to change it to > > 7.2.) I didn't move the original /usr/src (v6.3) when I rebuilt. I am > > starting to wonder if that is the root cause of all the trouble. > > Very likely, kqemu uses which in this case seems to > reference > /usr/src/sys to find the needed kernel bits... > > HTH, > Juergen > -- 72 44 10 85 40 56 21 53 B9 DF 79 7A EA 18 AE F4 http://www.freedom-to-tinker.com/?p=1155 --