From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd2ra-0006oo-OE for qemu-devel@nongnu.org; Mon, 08 May 2006 06:21:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd2rZ-0006oU-S9 for qemu-devel@nongnu.org; Mon, 08 May 2006 06:21:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd2rZ-0006oQ-MR for qemu-devel@nongnu.org; Mon, 08 May 2006 06:21:13 -0400 Received: from [84.96.92.61] (helo=sMtp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd2sO-0000VY-06 for qemu-devel@nongnu.org; Mon, 08 May 2006 06:22:04 -0400 Received: from [84.102.211.231] by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IYX005JRZF7IZ10@sp604002mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Mon, 08 May 2006 12:21:08 +0200 (CEST) Date: Mon, 08 May 2006 12:20:28 +0200 From: Fabrice Bellard Subject: Re: [Qemu-devel] using partition images In-reply-to: <20060508044926.GA21951@jbrown.mylinuxbox.org> Message-id: <445F1B6C.70205@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <20060508035346.GA12697@jbrown.mylinuxbox.org> <20060508044926.GA21951@jbrown.mylinuxbox.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org A few ideas: - Use an external file 'bootsect.bin' as it is done for linux_boot.bin. - Provide the source code of the boot sector. - Instead of copying the raw block driver, use the block driver recursively. Fabrice. Jim C. Brown wrote: > On Sun, May 07, 2006 at 11:53:46PM -0400, Jim C. Brown wrote: > >>Known Issues: >> >>booting is not supported - this will require passing a separate bootsector. > > > I stand corrected. New patch that adds support for booting partition images. > Apply this on top of the first one. > > Also attached is the required bootsector.h (this contains the actual code of > the bootsector). > > Bootsector code for the MBR was taken from http://www.cpqlinux.com/mbr.html. > > Also attached is a tarball of the sources I used to create bootsector.h