* Re: [Qemu-devel] about serial port support
2005-04-03 6:43 [Qemu-devel] about serial port support Cai Qiang
@ 2005-04-03 0:34 ` Jim C. Brown
2005-04-03 9:56 ` Andreas Bollhalder
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jim C. Brown @ 2005-04-03 0:34 UTC (permalink / raw)
To: qemu-devel
On Sun, Apr 03, 2005 at 06:43:12AM +0000, Cai Qiang wrote:
>
> Hi everyone,
> I am doing qemu serial port support. It works like below:
> 1. in command line, -serial /dev/ttyS0 and so on
> 2. in vl.c, init the port
> 3. in hw/serial.c, when serial seting changed, notify vl.c also change host
> OS's seting.
> Is this feature useful? Is there any better implement? Any comments are
> welcome.
>
> Best Regards
>
> Cai Qiang
>
This has been asked for many times, but you are the first to implement it.
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] about serial port support
@ 2005-04-03 6:43 Cai Qiang
2005-04-03 0:34 ` Jim C. Brown
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Cai Qiang @ 2005-04-03 6:43 UTC (permalink / raw)
To: qemu-devel
Hi everyone,
I am doing qemu serial port support. It works like below:
1. in command line, -serial /dev/ttyS0 and so on
2. in vl.c, init the port
3. in hw/serial.c, when serial seting changed, notify vl.c also change host
OS's seting.
Is this feature useful? Is there any better implement? Any comments are
welcome.
Best Regards
Cai Qiang
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [Qemu-devel] about serial port support
2005-04-03 6:43 [Qemu-devel] about serial port support Cai Qiang
2005-04-03 0:34 ` Jim C. Brown
@ 2005-04-03 9:56 ` Andreas Bollhalder
2005-04-07 19:30 ` [Qemu-devel] FreeDOS Testimage Andreas Bollhalder
2005-04-18 21:32 ` Re: [Qemu-devel] kqemu 0.6.2 and XP Andreas Bollhalder
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Bollhalder @ 2005-04-03 9:56 UTC (permalink / raw)
To: qemu-devel
Serial support is of course usefull. I know of some kind of debugging
over a serial port and if this could work between two qemu instances,
it would be nice.
About the implementation, I believe there are some cracks around which
could help you.
Andreas
> -----Original Message-----
> From: qemu-devel-bounces+bolle=geodb.org@nongnu.org
> [mailto:qemu-devel-bounces+bolle=geodb.org@nongnu.org] On
> Behalf Of Cai Qiang
> Sent: Sunday, April 03, 2005 8:43 AM
> To: qemu-devel@nongnu.org
> Subject: [Qemu-devel] about serial port support
>
>
> *This message was transferred with a trial version of
> CommuniGate(tm) Pro*
>
> Hi everyone,
> I am doing qemu serial port support. It works like below:
> 1. in command line, -serial /dev/ttyS0 and so on
> 2. in vl.c, init the port
> 3. in hw/serial.c, when serial seting changed, notify vl.c
> also change host
> OS's seting.
> Is this feature useful? Is there any better implement?
> Any comments are
> welcome.
>
> Best Regards
>
> Cai Qiang
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] FreeDOS Testimage
2005-04-03 6:43 [Qemu-devel] about serial port support Cai Qiang
2005-04-03 0:34 ` Jim C. Brown
2005-04-03 9:56 ` Andreas Bollhalder
@ 2005-04-07 19:30 ` Andreas Bollhalder
2005-04-18 21:32 ` Re: [Qemu-devel] kqemu 0.6.2 and XP Andreas Bollhalder
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Bollhalder @ 2005-04-07 19:30 UTC (permalink / raw)
To: qemu-devel
Hello all
I have a simple disk image with the current FreeDOS kernel (2035a).
When loading FreeDOS with HIMEM, EMM386 and FDAPM together, I loose
the keyboard and QEMU freeze. I can't switch to the monitor nor the
other consoles (ser0, par0). I need to kill the QEMU process. This
happens on my WinXP host with all QEMU versions I have (from 0.6.1 to
daily builds from FreeOSZoo and my owns). I will verify on my Gentoo
machine at my work tomorrow.
The image can be downloaded here:
http://geodb.org/download/fdostest.zip (124kB)
Start QEMU with this image as the first hard disk. When starting, you
will be prompted for loading the three binaries HIMEM, EMM386 and
FDAPM. Keep in mind, that no keyboard driver is loaded (may need to
press Z for Yes...).
none -> OK, but CPU usage is 100%
FDAPM -> OK
HIMEM + FDAPM -> OK
HIMEM + EMM386 -> OK, but CPU usage is 100%
HIMEM + EMM386 + FDAPM -> freeze
I have the same effekt with DOSIDLE for FDAPM.
This files works on my P350 without a clue.
If someone could test and get an idea whats wrong, please let me know.
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: [Qemu-devel] kqemu 0.6.2 and XP
2005-04-03 6:43 [Qemu-devel] about serial port support Cai Qiang
` (2 preceding siblings ...)
2005-04-07 19:30 ` [Qemu-devel] FreeDOS Testimage Andreas Bollhalder
@ 2005-04-18 21:32 ` Andreas Bollhalder
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Bollhalder @ 2005-04-18 21:32 UTC (permalink / raw)
To: qemu-devel
I tried the math on my WinXP host with Win2k guest.
When using the following math with my 8192MB QCOW image, QEMU refuse
to start:
1 Block = 512 Bytes
Cylinders = Blocks / (Heads * Sectors)
(kBytes * 2) / (16 * 63)
(8388608 kBytes * 2) / (16 * 63)
For 8192MB Image: -hdachs 16644,16,63
I brute forced the cylinder value, QEMU will start with a lower or
equal value of 16383 cylinders.
I made my own math based on this:
Cylinders = Blocks / (Heads * (Sectors + 1)) - 1
(kBytes * 2) / (16 * 64) - 1
(8388608 kBytes * 2) / (16 * 64) - 1
For 8192MB Image: -hdachs 16383,16,63
I'm realy confused about what's right or not. I created the image with
the QEMU Manager. Can anyone explain this ???
Andreas
Ben Taylor wrote:
> I forgot one very important part. The calculation needs
> to be <img size in bytes> / (heads * sectors per cylinder
> * 512 bytes) = cylinders. so in your case, the calculation is close
> well, the default sector size is 512, and you've done
> your sizing in number of 1k blocks, your calculations was
> close. It should be:
>
> blocks secs/block hds sec/cyl
>
> (2 000 000 * 2 ) / ( 16 * 63 ) = 3968
> The first time I did the math, my 2g partition went
> to 8g partition when I used the -hdachs parameters
> cause I really screwed up the math. (it appears if
> you mess your c-h-s values, your image since may
> change. :-)
> HTH, and sorry for the confusion.
> Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-18 21:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03 6:43 [Qemu-devel] about serial port support Cai Qiang
2005-04-03 0:34 ` Jim C. Brown
2005-04-03 9:56 ` Andreas Bollhalder
2005-04-07 19:30 ` [Qemu-devel] FreeDOS Testimage Andreas Bollhalder
2005-04-18 21:32 ` Re: [Qemu-devel] kqemu 0.6.2 and XP Andreas Bollhalder
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).