[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
From: |
Damien Mascord |
Subject: |
Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk... |
Date: |
Wed, 26 Apr 2006 09:55:46 +0800 |
User-agent: |
Thunderbird 1.5 (X11/20051201) |
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 <address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel