From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCbdT-0000rF-9K for qemu-devel@nongnu.org; Tue, 16 Dec 2008 10:14:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCbdS-0000qU-E1 for qemu-devel@nongnu.org; Tue, 16 Dec 2008 10:14:58 -0500 Received: from [199.232.76.173] (port=55748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCbdS-0000qR-9K for qemu-devel@nongnu.org; Tue, 16 Dec 2008 10:14:58 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:51879) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCbdQ-0001O8-V1 for qemu-devel@nongnu.org; Tue, 16 Dec 2008 10:14:57 -0500 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e35.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id mBGFDGkG030053 for ; Tue, 16 Dec 2008 08:13:16 -0700 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mBGFEsxk042458 for ; Tue, 16 Dec 2008 08:14:54 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mBGFErpX002473 for ; Tue, 16 Dec 2008 08:14:54 -0700 Subject: Re: [Qemu-devel] [PATCH 4/4] IBM PowerPC 440EP Bamboo reference board emulation From: Hollis Blanchard In-Reply-To: <20081216104753.GC20364@volta.aurel32.net> References: <0ae290b3af6b4f088661329e048330cb87c0b828.1229386539.git.hollisb@us.ibm.com> <20081216104753.GC20364@volta.aurel32.net> Content-Type: text/plain Date: Tue, 16 Dec 2008 09:14:52 -0600 Message-Id: <1229440492.31337.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org, kvm-ppc@vger.kernel.org On Tue, 2008-12-16 at 11:47 +0100, Aurelien Jarno wrote: > On Mon, Dec 15, 2008 at 06:17:32PM -0600, Hollis Blanchard wrote: > > Since most IO devices are integrated into the 440EP chip, "Bamboo support" > > mostly entails implementing the -kernel, -initrd, and -append options. > > > > These options are implemented by loading the guest as if u-boot had done it, > > i.e. loading a flat device tree, updating it to hold initrd addresses, ram > > size, and command line, and passing the FDT address in r3. > > > > Since we use it with KVM, we enable the virtio block driver and include hooks > > necessary for KVM support. > > > > Signed-off-by: Hollis Blanchard > > --- > > Made comment more specific. > > --- > > Makefile | 2 +- > > Makefile.target | 2 +- > > hw/boards.h | 1 + > > hw/ppc440_bamboo.c | 190 ++++++++++++++++++++++++++++++++++++++++ > > pc-bios/bamboo.dtb | Bin 0 -> 3163 bytes > > pc-bios/bamboo.dts | 234 ++++++++++++++++++++++++++++++++++++++++++++++++++ > > I guess the .dtb file is generated from the .dts. Could you give us more > details about that? When the tools need to generate the dtb file are > installed on the build machine, we may want to generate the .dtb during > the build process. The dtb file ("device tree binary") is generated from the dts ("device tree source") by a tool called dtc, the device tree compiler.[1] dtc is available in major distributions: in Fedora the package name is "dtc"; in Debian it is "device-tree-compiler" (available in testing and unstable). [1] http://git.jdl.com/gitweb/?p=dtc.git;a=summary -- Hollis Blanchard IBM Linux Technology Center