* [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
@ 2006-04-13 6:13 Damien Mascord
2006-04-25 5:06 ` Damien Mascord
0 siblings, 1 reply; 6+ messages in thread
From: Damien Mascord @ 2006-04-13 6:13 UTC (permalink / raw)
To: qemu-devel
Heya guys,
I am trying to create my own uclibc/busybox floppy bootdisk, and am running into an issue with the expansion of the RAMDISK... the
CPU shoots up to 100% and even leaving it overnight, it never recovers from that situation.
I have tried it under qemu 0.7.2 and 0.8.0 in linux and windows, and all fail to boot the image, where as vmware (and/or native)
boot the disk fine, and goes correctly to the "Please press Enter to activate this console".
I am using the command line:
qemu -fda floppy.img -boot a
And it loads up the kernel, no problem, reaching the ramdisk stage, and then it dies at the following:
RAMDISK: Compressed image found at block 680
If anyone wants a crack at this, the image can be found at http://tusker.sg/floppy.img
How would I go about debugging this issue?
Cheers in advance,
Damien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
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
0 siblings, 2 replies; 6+ messages in thread
From: Damien Mascord @ 2006-04-25 5:06 UTC (permalink / raw)
To: qemu-devel
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?
Damien Mascord wrote:
> Heya guys,
>
> I am trying to create my own uclibc/busybox floppy bootdisk, and am running into an issue with the expansion of the RAMDISK... the
> CPU shoots up to 100% and even leaving it overnight, it never recovers from that situation.
>
> I have tried it under qemu 0.7.2 and 0.8.0 in linux and windows, and all fail to boot the image, where as vmware (and/or native)
> boot the disk fine, and goes correctly to the "Please press Enter to activate this console".
>
> I am using the command line:
>
> qemu -fda floppy.img -boot a
>
> And it loads up the kernel, no problem, reaching the ramdisk stage, and then it dies at the following:
>
> RAMDISK: Compressed image found at block 680
>
> If anyone wants a crack at this, the image can be found at http://tusker.sg/floppy.img
>
> How would I go about debugging this issue?
>
> Cheers in advance,
>
> Damien
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] Re: Custom floppy image not booting, hanging at ramdisk...
2006-04-25 5:06 ` Damien Mascord
@ 2006-04-25 8:45 ` Jani Monoses
2006-04-25 14:47 ` [Qemu-devel] " Christian MICHON
1 sibling, 0 replies; 6+ messages in thread
From: Jani Monoses @ 2006-04-25 8:45 UTC (permalink / raw)
To: qemu-devel
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?
This old patch still applies and fixes it.
http://lists.nongnu.org/archive/html/qemu-devel/2004-08/msg00132.html
Jani
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
2006-04-25 5:06 ` Damien Mascord
2006-04-25 8:45 ` [Qemu-devel] " Jani Monoses
@ 2006-04-25 14:47 ` Christian MICHON
2006-04-26 1:55 ` Damien Mascord
1 sibling, 1 reply; 6+ messages in thread
From: Christian MICHON @ 2006-04-25 14:47 UTC (permalink / raw)
To: qemu-devel
just send your kernel .config for cross verification
:)
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?
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
2006-04-25 14:47 ` [Qemu-devel] " Christian MICHON
@ 2006-04-26 1:55 ` Damien Mascord
2006-04-26 6:40 ` Christian MICHON
0 siblings, 1 reply; 6+ messages in thread
From: Damien Mascord @ 2006-04-26 1:55 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Custom floppy image not booting, hanging at ramdisk...
2006-04-26 1:55 ` Damien Mascord
@ 2006-04-26 6:40 ` Christian MICHON
0 siblings, 0 replies; 6+ messages in thread
From: Christian MICHON @ 2006-04-26 6:40 UTC (permalink / raw)
To: qemu-devel
none taken :)
it's just that myself last year I created small kernels which sometimes would
freeze too at the expansion step, but then it was a kernel config issue.
I'll look at the patch though :)
On 4/26/06, Damien Mascord <tusker@tusker.org> wrote:
> Given that it works with this patch, I can't see how it could be a kernel config
> issue, no offence intended :)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-26 6:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2006-04-26 6:40 ` Christian MICHON
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.