From owner-freebsd-ppc@FreeBSD.ORG Thu Dec 13 00:13:43 2007 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E90916A417 for ; Thu, 13 Dec 2007 00:13:43 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 070FB13C45D for ; Thu, 13 Dec 2007 00:13:42 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DJM71189 (AUTH peterg@ptree32.com.au); Thu, 13 Dec 2007 10:13:36 +1000 (EST) Message-ID: <4760792F.10105@freebsd.org> Date: Wed, 12 Dec 2007 16:13:35 -0800 From: Peter Grehan User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: "M. Warner Losh" References: <20071212.170228.1474620423.imp@bsdimp.com> In-Reply-To: <20071212.170228.1474620423.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Best way to run in emulation X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2007 00:13:43 -0000 Hi Warner, > Is there a good way to run FreeBSD/powerpc of some flavor in an > emulator? I know that we can't boot the iso's, but is there some way > to build things such that we can boot it in qemu and/or gxemul? The GENERIC kernel used to boot in gdb's powerpc simulator, psim, and will with some minor changes (that I need to submit). I use psim extensively to debug low-level code, and it's useful for machine-independent code as well. Most recently, I used it to make sure ULE would work. Gxemul's OpenFirmware implementation runs in real-mode ala pre '99 Apple hardware. The FreeBSD loader and kernel don't deal with this, though they could with some effort. Not sure about Qemu - haven't tried that for a while though from memory it had the same issue At one stage I had a large patch-set for PearPC (v2) that would allow FreeBSD to boot from CD, but that project seemed to die after a promising start. later, Peter.