* [Qemu-devel] Cloop-patch and Knoppix example
@ 2004-09-20 13:56 Johannes Schindelin
2004-09-20 14:10 ` Kuniyasu Suzaki
2004-09-29 21:31 ` Fabrice Bellard
0 siblings, 2 replies; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 13:56 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 205 bytes --]
Hi,
I updated the cloop patch to current CVS. It now also contains a script
("start_knoppix.sh") which patches Knoppix' initial ram disk to mount the
correct device and starts it right away.
Ciao,
Dscho
[-- Attachment #2: Type: APPLICATION/x-gunzip, Size: 3314 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 13:56 [Qemu-devel] Cloop-patch and Knoppix example Johannes Schindelin
@ 2004-09-20 14:10 ` Kuniyasu Suzaki
2004-09-20 14:32 ` Johannes Schindelin
2004-09-20 16:53 ` [Qemu-devel] " Ronald
2004-09-29 21:31 ` Fabrice Bellard
1 sibling, 2 replies; 14+ messages in thread
From: Kuniyasu Suzaki @ 2004-09-20 14:10 UTC (permalink / raw)
To: qemu-devel
That's good News!
Please tell me which gestOS do you try? Can I try on QEMU/win32?
How much do you find speed up of KNOPPIX boot? Does it take more than
3 minutes?
------
suzaki
>>From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
>>Subject: [Qemu-devel] Cloop-patch and Knoppix example
>>
>>Hi,
>>
>>I updated the cloop patch to current CVS. It now also contains a script
>>("start_knoppix.sh") which patches Knoppix' initial ram disk to mount the
>>correct device and starts it right away.
>>
>>Ciao,
>>Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 14:10 ` Kuniyasu Suzaki
@ 2004-09-20 14:32 ` Johannes Schindelin
2004-09-20 16:53 ` [Qemu-devel] " Ronald
1 sibling, 0 replies; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 14:32 UTC (permalink / raw)
To: qemu-devel
Hi,
On Mon, 20 Sep 2004, Kuniyasu Suzaki wrote:
> Please tell me which gestOS do you try? Can I try on QEMU/win32?
The guest is Knoppix ;-) My host is Linux (an installed Knoppix).
> How much do you find speed up of KNOPPIX boot? Does it take more than
> 3 minutes?
I did not try this with a real CD, but only with the image. And while I
did not make any measurements, it sure felt a little faster. But that
could be me wanting it to be faster...
I'll have to work a bit now, but later this week I should be able to
provide comparisons.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: Cloop-patch and Knoppix example
2004-09-20 14:10 ` Kuniyasu Suzaki
2004-09-20 14:32 ` Johannes Schindelin
@ 2004-09-20 16:53 ` Ronald
2004-09-20 17:03 ` Johannes Schindelin
1 sibling, 1 reply; 14+ messages in thread
From: Ronald @ 2004-09-20 16:53 UTC (permalink / raw)
To: qemu-devel
Le Mon, 20 Sep 2004 23:10:03 +0900, Kuniyasu Suzaki a écrit :
>
> That's good News!
>
> Please tell me which gestOS do you try? Can I try on QEMU/win32?
I have tried, with no luck, on a win98 host with damn small linux as
guest. command line was: qemu -L . -initrd C:\temp\minirt~1.gz -kernel
C:\temp\isolinux\linux24 C:\temp\knoppix (cannot -append ramdisk_size
, because of some limits in command line i think).
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Re: Cloop-patch and Knoppix example
2004-09-20 16:53 ` [Qemu-devel] " Ronald
@ 2004-09-20 17:03 ` Johannes Schindelin
2004-09-20 17:18 ` [Qemu-devel] " Ronald
0 siblings, 1 reply; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 17:03 UTC (permalink / raw)
To: daimon55, qemu-devel
Hi,
On Mon, 20 Sep 2004, Ronald wrote:
> I have tried, with no luck, on a win98 host with damn small linux as
> guest. command line was: qemu -L . -initrd C:\temp\minirt~1.gz -kernel
> C:\temp\isolinux\linux24 C:\temp\knoppix (cannot -append ramdisk_size
> , because of some limits in command line i think).
Damn small linux? Or Knoppix? Anyway, starting from Knoppix 3.6, the
initrd was too big, so I had to "-append ramdisk_size=1000000".
What exactly is going wrong? Does it say something about not being able to
mount root 01:03? This was my problem before I made the ramdisk larger.
However, with a Knoppix 3.3 it worked even without that.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: Re: Cloop-patch and Knoppix example
2004-09-20 17:03 ` Johannes Schindelin
@ 2004-09-20 17:18 ` Ronald
2004-09-20 18:28 ` Johannes Schindelin
0 siblings, 1 reply; 14+ messages in thread
From: Ronald @ 2004-09-20 17:18 UTC (permalink / raw)
To: qemu-devel
Le Mon, 20 Sep 2004 19:03:14 +0200, Johannes Schindelin a écrit :
> Hi,
>
> On Mon, 20 Sep 2004, Ronald wrote:
>
>> I have tried, with no luck, on a win98 host with damn small linux as
>> guest. command line was: qemu -L . -initrd C:\temp\minirt~1.gz -kernel
>> C:\temp\isolinux\linux24 C:\temp\knoppix (cannot -append ramdisk_size ,
>> because of some limits in command line i think).
>
> Damn small linux? Or Knoppix? Anyway, starting from Knoppix 3.6, the
> initrd was too big, so I had to "-append ramdisk_size=1000000".
>
Damn small linux which is a reduced knoppix in size.
> What exactly is going wrong? Does it say something about not being able to
> mount root 01:03? This was my problem before I made the ramdisk larger.
> However, with a Knoppix 3.3 it worked even without that.
>
Qemu just show briefly it's window then exit cleanly, there is no
windows error neither. I don't know how to provide more infos.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Re: Re: Cloop-patch and Knoppix example
2004-09-20 17:18 ` [Qemu-devel] " Ronald
@ 2004-09-20 18:28 ` Johannes Schindelin
2004-09-20 19:21 ` [Qemu-devel] " Ronald
0 siblings, 1 reply; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 18:28 UTC (permalink / raw)
To: daimon55, qemu-devel
Hi,
On Mon, 20 Sep 2004, Ronald wrote:
> Le Mon, 20 Sep 2004 19:03:14 +0200, Johannes Schindelin a écrit :
>
> Qemu just show briefly it's window then exit cleanly, there is no
> windows error neither. I don't know how to provide more infos.
So, you have plain CVS with cloop applied and you have copied the files
from the CD to C:\temp, right?
To use the cloop support of QEmu, you have to patch the initrd, otherwise
Knoppix will use its own cloop decompressor (see start_knoppix.sh, which I
just verified runs also with dsl-0.8.1.1.iso just fine).
But looking at your mail again (I can only guess), you did not specify
-hda, and neither -cdrom. In order to run properly, Knoppix needs to think
it runs from CD, so you have to specify "-cdrom dsl-0.8.1.1.iso" (or
-cdrom d:\? I don't know if that works already...), but in order to use
the cloop patch, you *also* have to add "-hda c:\temp\knoppix\knoppix".
Note that -hda is given a file, not a directory.
Hth,
Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: Re: Re: Cloop-patch and Knoppix example
2004-09-20 18:28 ` Johannes Schindelin
@ 2004-09-20 19:21 ` Ronald
2004-09-20 21:18 ` Re(4): [Qemu-devel] " Johannes Schindelin
0 siblings, 1 reply; 14+ messages in thread
From: Ronald @ 2004-09-20 19:21 UTC (permalink / raw)
To: qemu-devel
Le Mon, 20 Sep 2004 20:28:34 +0200, Johannes Schindelin a écrit :
> Hi,
>
> On Mon, 20 Sep 2004, Ronald wrote:
>
>> Le Mon, 20 Sep 2004 19:03:14 +0200, Johannes Schindelin a écrit :
>>
>> Qemu just show briefly it's window then exit cleanly, there is no
>> windows error neither. I don't know how to provide more infos.
>
> So, you have plain CVS with cloop applied and you have copied the files
> from the CD to C:\temp, right?
>
Yes.
> To use the cloop support of QEmu, you have to patch the initrd, otherwise
> Knoppix will use its own cloop decompressor (see start_knoppix.sh, which I
> just verified runs also with dsl-0.8.1.1.iso just fine).
>
I've done that, I have the same dsl version.
> But looking at your mail again (I can only guess), you did not specify
> -hda, and neither -cdrom. In order to run properly, Knoppix needs to think
> it runs from CD, so you have to specify "-cdrom dsl-0.8.1.1.iso" (or
> -cdrom d:\? I don't know if that works already...), but in order to use
> the cloop patch, you *also* have to add "-hda c:\temp\knoppix\knoppix".
> Note that -hda is given a file, not a directory.
>
I just tried that but that don't work either, and I suspect -merely a
guess- this is not related to block driver but to kernel loading -see my
other post on that-. Perhaps someone else will have it working -and I'll
know that's my build which is bad-. At least your patch doesn't break
win32 compilation and qemu still run when using bootable disk image.
> Hth,
> Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re(4): [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 19:21 ` [Qemu-devel] " Ronald
@ 2004-09-20 21:18 ` Johannes Schindelin
2004-09-20 22:22 ` MinGW patch, AKA Re(5): " Johannes Schindelin
0 siblings, 1 reply; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 21:18 UTC (permalink / raw)
To: daimon55, qemu-devel
Hi,
On Mon, 20 Sep 2004, Ronald wrote:
>
> I just tried that but that don't work either, and I suspect -merely a
> guess- this is not related to block driver but to kernel loading -see my
> other post on that-. Perhaps someone else will have it working -and I'll
> know that's my build which is bad-. At least your patch doesn't break
> win32 compilation and qemu still run when using bootable disk image.
I just completed a build (had to dig out a Windows machine first...). What
you described happened to me also: -kernel does not work.
I tracked it down a bit more. It seems that in function load_kernel() in
hw/pc.c:291, a read(fd,real_addr,512) does return 511 reproducibly.
However, if you change this to 513, it returns 512! The ways of
Microsoft...
Unfortunately, this does not help things. Even if the initrd is read
completely, Knoppix then gets stuck somewhere. When I have more time, I
will investigate that.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* MinGW patch, AKA Re(5): [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 21:18 ` Re(4): [Qemu-devel] " Johannes Schindelin
@ 2004-09-20 22:22 ` Johannes Schindelin
2004-09-21 5:48 ` [Qemu-devel] Re: MinGW patch, AKA Re(5): " Ronald
2004-09-29 21:21 ` MinGW patch, AKA Re(5): [Qemu-devel] " Fabrice Bellard
0 siblings, 2 replies; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-20 22:22 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 96 bytes --]
Hi,
I finally solved the puzzle... It is our friend, the O_BINARY flag,
again...
Ciao,
Dscho
[-- Attachment #2: Type: TEXT/PLAIN, Size: 451 bytes --]
Index: hw/pc.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/pc.c,v
retrieving revision 1.27
diff -u -r1.27 pc.c
--- hw/pc.c 24 Aug 2004 21:13:40 -0000 1.27
+++ hw/pc.c 20 Sep 2004 22:20:17 -0000
@@ -283,7 +283,7 @@
int fd, size;
int setup_sects;
- fd = open(filename, O_RDONLY);
+ fd = open(filename, O_RDONLY | O_BINARY);
if (fd < 0)
return -1;
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Qemu-devel] Re: MinGW patch, AKA Re(5): Cloop-patch and Knoppix example
2004-09-20 22:22 ` MinGW patch, AKA Re(5): " Johannes Schindelin
@ 2004-09-21 5:48 ` Ronald
2004-09-29 21:21 ` MinGW patch, AKA Re(5): [Qemu-devel] " Fabrice Bellard
1 sibling, 0 replies; 14+ messages in thread
From: Ronald @ 2004-09-21 5:48 UTC (permalink / raw)
To: qemu-devel
Le Tue, 21 Sep 2004 00:22:22 +0200, Johannes Schindelin a écrit :
> Hi,
>
> I finally solved the puzzle... It is our friend, the O_BINARY flag,
> again...
>
Now the kernel load succesfully and dsl boot , thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: MinGW patch, AKA Re(5): [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 22:22 ` MinGW patch, AKA Re(5): " Johannes Schindelin
2004-09-21 5:48 ` [Qemu-devel] Re: MinGW patch, AKA Re(5): " Ronald
@ 2004-09-29 21:21 ` Fabrice Bellard
1 sibling, 0 replies; 14+ messages in thread
From: Fabrice Bellard @ 2004-09-29 21:21 UTC (permalink / raw)
To: qemu-devel
Applied.
Fabrice.
Johannes Schindelin wrote:
> Hi,
>
> I finally solved the puzzle... It is our friend, the O_BINARY flag,
> again...
>
> Ciao,
> Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Cloop-patch and Knoppix example
2004-09-20 13:56 [Qemu-devel] Cloop-patch and Knoppix example Johannes Schindelin
2004-09-20 14:10 ` Kuniyasu Suzaki
@ 2004-09-29 21:31 ` Fabrice Bellard
2004-09-29 23:32 ` Johannes Schindelin
1 sibling, 1 reply; 14+ messages in thread
From: Fabrice Bellard @ 2004-09-29 21:31 UTC (permalink / raw)
To: qemu-devel
Applied, except for the start_knoppix.sh script.
Fabrice.
Johannes Schindelin wrote:
> Hi,
>
> I updated the cloop patch to current CVS. It now also contains a script
> ("start_knoppix.sh") which patches Knoppix' initial ram disk to mount the
> correct device and starts it right away.
>
> Ciao,
> Dscho
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Qemu-devel] Cloop-patch and Knoppix example
2004-09-29 21:31 ` Fabrice Bellard
@ 2004-09-29 23:32 ` Johannes Schindelin
0 siblings, 0 replies; 14+ messages in thread
From: Johannes Schindelin @ 2004-09-29 23:32 UTC (permalink / raw)
To: qemu-devel
Hi,
On Wed, 29 Sep 2004, Fabrice Bellard wrote:
> Applied, except for the start_knoppix.sh script.
But that was the most difficult thing in the whole patch! ;-)
Thank you,
Dscho
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-09-29 23:39 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 13:56 [Qemu-devel] Cloop-patch and Knoppix example Johannes Schindelin
2004-09-20 14:10 ` Kuniyasu Suzaki
2004-09-20 14:32 ` Johannes Schindelin
2004-09-20 16:53 ` [Qemu-devel] " Ronald
2004-09-20 17:03 ` Johannes Schindelin
2004-09-20 17:18 ` [Qemu-devel] " Ronald
2004-09-20 18:28 ` Johannes Schindelin
2004-09-20 19:21 ` [Qemu-devel] " Ronald
2004-09-20 21:18 ` Re(4): [Qemu-devel] " Johannes Schindelin
2004-09-20 22:22 ` MinGW patch, AKA Re(5): " Johannes Schindelin
2004-09-21 5:48 ` [Qemu-devel] Re: MinGW patch, AKA Re(5): " Ronald
2004-09-29 21:21 ` MinGW patch, AKA Re(5): [Qemu-devel] " Fabrice Bellard
2004-09-29 21:31 ` Fabrice Bellard
2004-09-29 23:32 ` Johannes Schindelin
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).