From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 12 12:45:18 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 A14641065686 for ; Thu, 12 Feb 2009 12:45:18 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id 6D7D28FC1D for ; Thu, 12 Feb 2009 12:45:18 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id B2AB5125426; Thu, 12 Feb 2009 21:45:16 +0900 (JST) Message-ID: <499419DC.1050102@ongs.co.jp> Date: Thu, 12 Feb 2009 21:45:16 +0900 From: Daichi GOTO User-Agent: Thunderbird 2.0.0.19 (X11/20090201) MIME-Version: 1.0 To: John Hein References: <498A5F90.1030004@ongs.co.jp> <20090206214916.GA14653@saturn.kn-bremen.de> <200902102257.n1AMvF9v013733@saturn.kn-bremen.de> <4992924E.4090604@ongs.co.jp> <18834.42024.739091.493218@gromit.timing.com> In-Reply-To: <18834.42024.739091.493218@gromit.timing.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, Juergen Lock Subject: Re: emulators/qemu: build fail on current amd64 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: Thu, 12 Feb 2009 12:45:19 -0000 John Hein wrote: > Daichi GOTO wrote at 17:54 +0900 on Feb 11, 2009: > > Juergen Lock wrote: > > > In article <4990EF3E.5090908@ongs.co.jp> you write: > > >> After some days, I have tried to build qemu and kqemu with > > >> latest amd64 current system, and I have gottten it success :) > > >> > > >> FYI, qemu works well but without kqemu. > > >> > > >> # /usr/local/etc/rc.d/kqemu start > > >> kldload: can't load kqemu: Exec format error > > >> /usr/local/etc/rc.d/kqemu: WARNING: kqemu module failed to load. > > >> # > > > > > > Oh? Is there anything in dmesg, like a missing symbol? Or did you > > > update your world/kernel after building kqemu? In that case you should > > > rebuild your kqemu port... > > > > # uname -a > > FreeBSD parancell.ongs.co.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Feb 9 14:18:09 JST 2009 > > root@parancell.ongs.co.jp:/usr/obj/usr/src/sys/PARANCELL amd64 > > # dmesg > > (snip) > > link_elf_obj: symbol unit2minor undefined > > kldload: /boot/modules/kqemu.ko: Unsupported file type > > (snip) > > unit2minor was removed recently. > See recent commit to sys/sys/conf.h > Any in-tree drivers left that used unit2minor were fixed at the same time. > > For kqemu-kmod, try this... > > --- kqemu-1.3.0pre11/kqemu-freebsd.c.orig 2007-02-06 14:02:00.000000000 -0700 > +++ kqemu-1.3.0pre11/kqemu-freebsd.c 2009-02-11 03:04:50.000000000 -0700 > @@ -296,7 +296,11 @@ > > r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); > if (r) { > +#if __FreeBSD_version > 800061 > + *dev = make_dev(&kqemu_cdevsw, unit, > +#else > *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), > +#endif > UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); > if (*dev != NULL) { > dev_ref(*dev); Adove patch works well :) Now I can load kqemu and run qemu with it! I guess it should be under files dir of emulators/kqemu-kmod. And another problem comming X-( After startup WinXP on qemu+kqemu, at user logs in, qemu gets Segmentation fault. It looks like fails at the same point always. Any one have any ideas? Someone have the same situation? Thanks -- Daichi GOTO, http://people.freebsd.org/~daichi