qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Damien Mascord <tusker@tusker.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
Date: Wed, 26 Apr 2006 09:55:46 +0800	[thread overview]
Message-ID: <444ED322.7020102@tusker.org> (raw)
In-Reply-To: <46d6db660604250747l192ccd7die167926243e6b542@mail.gmail.com>

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 <tusker@tusker.org> 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

  reply	other threads:[~2006-04-26  1:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13  6:13 [Qemu-devel] Custom floppy image not booting, hanging at ramdisk Damien Mascord
2006-04-25  5:06 ` Damien Mascord
2006-04-25  8:45   ` [Qemu-devel] " Jani Monoses
2006-04-25 14:47   ` [Qemu-devel] " Christian MICHON
2006-04-26  1:55     ` Damien Mascord [this message]
2006-04-26  6:40       ` Christian MICHON

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444ED322.7020102@tusker.org \
    --to=tusker@tusker.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).