qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [WIN32] tftp issue
@ 2004-10-08 23:07 Ronald
  2004-10-09 19:45 ` Magnus Damm
  0 siblings, 1 reply; 7+ messages in thread
From: Ronald @ 2004-10-08 23:07 UTC (permalink / raw)
  To: qemu-devel

Hi all,

tonight I decided to give a try to tftp transfert between a windows 98
host and linux guest.
First thing I had to deal with was how to pass the tftp_prefix, I figured
out that omiting the drive letter and his preceding slash is the right way
(ie exporting C:\temp to guest consist in passing -tftp /temp to qemu).
The issue I had next was with file transfert, I can get some files
completely and only the first bytes for some others.
I don't know already on what it depends (size, file type ...?), but I
thought I should let you know that.     

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [WIN32] tftp issue
  2004-10-08 23:07 [Qemu-devel] [WIN32] tftp issue Ronald
@ 2004-10-09 19:45 ` Magnus Damm
  2004-10-09 19:55   ` [Qemu-devel] " Ronald
  0 siblings, 1 reply; 7+ messages in thread
From: Magnus Damm @ 2004-10-09 19:45 UTC (permalink / raw)
  To: daimon55, qemu-devel

On Sat, 2004-10-09 at 01:07, Ronald wrote:
> Hi all,

Hi!

> tonight I decided to give a try to tftp transfert between a windows 98
> host and linux guest.
> First thing I had to deal with was how to pass the tftp_prefix, I figured
> out that omiting the drive letter and his preceding slash is the right way
> (ie exporting C:\temp to guest consist in passing -tftp /temp to qemu).
> The issue I had next was with file transfert, I can get some files
> completely and only the first bytes for some others.
> I don't know already on what it depends (size, file type ...?), but I
> thought I should let you know that.

Thank you for the report. 

Please specify the version of QEMU and the name and version of the TFTP
client used by the guest. Or even better, provide a link to a
precompiled win32 snapshot of QEMU that behaves like you describe
together with a pointer to a bootable image if available on the net.

Thanks!

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Re: [WIN32] tftp issue
  2004-10-09 19:45 ` Magnus Damm
@ 2004-10-09 19:55   ` Ronald
  2004-10-09 21:13     ` Ronald
  0 siblings, 1 reply; 7+ messages in thread
From: Ronald @ 2004-10-09 19:55 UTC (permalink / raw)
  To: qemu-devel

Le Sat, 09 Oct 2004 21:45:47 +0200, Magnus Damm a écrit :

> On Sat, 2004-10-09 at 01:07, Ronald wrote:
>> Hi all,
> 
> Hi!
> 
>> tonight I decided to give a try to tftp transfert between a windows 98
>> host and linux guest.
>> First thing I had to deal with was how to pass the tftp_prefix, I
>> figured out that omiting the drive letter and his preceding slash is the
>> right way (ie exporting C:\temp to guest consist in passing -tftp /temp
>> to qemu). The issue I had next was with file transfert, I can get some
>> files completely and only the first bytes for some others. I don't know
>> already on what it depends (size, file type ...?), but I thought I
>> should let you know that.
> 
> Thank you for the report.
> 
> Please specify the version of QEMU and the name and version of the TFTP
> client used by the guest. Or even better, provide a link to a precompiled
> win32 snapshot of QEMU that behaves like you describe together with a
> pointer to a bootable image if available on the net.
> 

Qemu version is yesterday cvs, tftp is netkit-tftp-0.17 from slackware 8.
Binary for windows is avaible at
ftp://ftp.freeoszoo.org/qemu/win32/daily/QemuInstall-20041008.exe.
Image is not online, that's a minimal slackware 8 install from cdrom.

> Thanks!
>
> / magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Re: [WIN32] tftp issue
  2004-10-09 19:55   ` [Qemu-devel] " Ronald
@ 2004-10-09 21:13     ` Ronald
  2004-10-09 22:07       ` Magnus Damm
  0 siblings, 1 reply; 7+ messages in thread
From: Ronald @ 2004-10-09 21:13 UTC (permalink / raw)
  To: qemu-devel

Le Sat, 09 Oct 2004 21:55:28 +0200, Ronald a écrit :


> Qemu version is yesterday cvs, tftp is netkit-tftp-0.17 from slackware 8.
> Binary for windows is avaible at
> ftp://ftp.freeoszoo.org/qemu/win32/daily/QemuInstall-20041008.exe. Image
> is not online, that's a minimal slackware 8 install from cdrom.

More informations: under linux with the same image and the same files I
get complete transfert, md5 checksum are the same for originals and
transfered files on guest (tested with command.com, msdos.sys and
license.txt :) if that matter) 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Re: [WIN32] tftp issue
  2004-10-09 21:13     ` Ronald
@ 2004-10-09 22:07       ` Magnus Damm
  2004-10-09 22:26         ` Johannes Schindelin
  2004-10-09 22:38         ` [Qemu-devel] " Ronald
  0 siblings, 2 replies; 7+ messages in thread
From: Magnus Damm @ 2004-10-09 22:07 UTC (permalink / raw)
  To: daimon55, qemu-devel


> More informations: under linux with the same image and the same files I
> get complete transfert, md5 checksum are the same for originals and
> transfered files on guest (tested with command.com, msdos.sys and
> license.txt :) if that matter) 

Hm.. could it be the good old missing O_BINARY flag to open()?

/ magnus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Re: [WIN32] tftp issue
  2004-10-09 22:07       ` Magnus Damm
@ 2004-10-09 22:26         ` Johannes Schindelin
  2004-10-09 22:38         ` [Qemu-devel] " Ronald
  1 sibling, 0 replies; 7+ messages in thread
From: Johannes Schindelin @ 2004-10-09 22:26 UTC (permalink / raw)
  To: qemu-devel

Hi,

On Sun, 10 Oct 2004, Magnus Damm wrote:

>
> > More informations: under linux with the same image and the same files I
> > get complete transfert, md5 checksum are the same for originals and
> > transfered files on guest (tested with command.com, msdos.sys and
> > license.txt :) if that matter)
>
> Hm.. could it be the good old missing O_BINARY flag to open()?

Indeed, in slirp/tftp.c:103, there is an open without O_BINARY.

BTW, I did a simple grep through all sources, and there are quite a few
open()s without the O_BINARY flag, and even one (in dyngen.c) which uses
the O_BINARY flag only on Windows. Is there any sane reason not to use
O_BINARY *everytime* in an open()? After all, we are not dealing with text
files here. And if we were, we would not like to change the line endings
on the fly, and ^Z simulating an EOF on Windows...

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Re: Re: [WIN32] tftp issue
  2004-10-09 22:07       ` Magnus Damm
  2004-10-09 22:26         ` Johannes Schindelin
@ 2004-10-09 22:38         ` Ronald
  1 sibling, 0 replies; 7+ messages in thread
From: Ronald @ 2004-10-09 22:38 UTC (permalink / raw)
  To: qemu-devel

Le Sun, 10 Oct 2004 00:07:15 +0200, Magnus Damm a écrit :

> 
>> More informations: under linux with the same image and the same files I
>> get complete transfert, md5 checksum are the same for originals and
>> transfered files on guest (tested with command.com, msdos.sys and
>> license.txt :) if that matter)
> 
> Hm.. could it be the good old missing O_BINARY flag to open()?
> 
> / magnus

Ok, this works now, I modified tftp.c to add O_BINARY (there is only one
open( , easy :)). 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-09 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08 23:07 [Qemu-devel] [WIN32] tftp issue Ronald
2004-10-09 19:45 ` Magnus Damm
2004-10-09 19:55   ` [Qemu-devel] " Ronald
2004-10-09 21:13     ` Ronald
2004-10-09 22:07       ` Magnus Damm
2004-10-09 22:26         ` Johannes Schindelin
2004-10-09 22:38         ` [Qemu-devel] " Ronald

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).