From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYZGG-0005NL-A2 for qemu-devel@nongnu.org; Tue, 25 Apr 2006 21:56:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYZGE-0005N9-UP for qemu-devel@nongnu.org; Tue, 25 Apr 2006 21:56:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYZGE-0005N6-PW for qemu-devel@nongnu.org; Tue, 25 Apr 2006 21:56:10 -0400 Received: from [203.142.22.130] (helo=mx.new.tusker.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYZIo-0000up-Kg for qemu-devel@nongnu.org; Tue, 25 Apr 2006 21:58:51 -0400 Received: from localhost (localhost [127.0.0.1]) by mx.new.tusker.net (Postfix) with ESMTP id 0412916EE7EF for ; Wed, 26 Apr 2006 09:56:09 +0800 (SGT) Received: from mx.new.tusker.net ([127.0.0.1]) by localhost (new.tusker.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27366-06 for ; Wed, 26 Apr 2006 09:56:03 +0800 (SGT) Received: from [192.168.1.13] (datalex.cable.nu [203.117.94.152]) by mx.new.tusker.net (Postfix) with ESMTP id 1563F11FD91B for ; Wed, 26 Apr 2006 09:56:03 +0800 (SGT) Message-ID: <444ED322.7020102@tusker.org> Date: Wed, 26 Apr 2006 09:55:46 +0800 From: Damien Mascord MIME-Version: 1.0 Subject: Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk... References: <443DEBFA.7050109@tusker.org> <444DAE6F.3000805@tusker.org> <46d6db660604250747l192ccd7die167926243e6b542@mail.gmail.com> In-Reply-To: <46d6db660604250747l192ccd7die167926243e6b542@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 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: qemu-devel@nongnu.org Christian MICHON wrote: > just send your kernel .config for cross verification > :) Heya Christian, I use the same kernel to boot from a hard-disk, and also from a CD-ROM, and both work correctly. The following patch (against latest CVS) enables the floppy to boot correctly. This patch was suggested by Jani Monoses (http://lists.nongnu.org/archive/html/qemu-devel/2004-08/msg00132.html). Given that it works with this patch, I can't see how it could be a kernel config issue, no offence intended :) Damien Index: block.c =================================================================== RCS file: /cvsroot/qemu/qemu/block.c,v retrieving revision 1.26 diff -u -r1.26 block.c --- block.c 25 Apr 2006 22:36:06 -0000 1.26 +++ block.c 26 Apr 2006 01:52:26 -0000 @@ -729,7 +729,7 @@ lseek(s->fd, sector_num * 512, SEEK_SET); ret = read(s->fd, buf, nb_sectors * 512); - if (ret != nb_sectors * 512) + if (ret == -1) return -1; return 0; } > On 4/25/06, Damien Mascord wrote: >> Hi again, >> >> Sorry to top post, just wanted to know if anyone has had similar experiences to this? >> >> If not, can someone help me debug the issue (bug?) with qemu here? >> > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel