On Sat, 15 Sep 2001, Lars Bj�rndal wrote:

> I've now solved the problem with the very slow serial communication:
> In my dosemu.conf, I now have these lines:
> 
> $_com1 = "/dev/ttyS0"
> ports { device /dev/ttyS1 range 0x3f8 0x3ff fast }
> irqpassing { use_sigio 4 }
> 
> I can not really understand why I have to say "device /dev/ttyS1" in
> the port-line, and not ttyS0? But now, it works properly!

if open() on /dev/ttyS0 fails - DOSEMU uses it already for instance, then
dosemu refuses to use it for ports for security and other reasons.

You are basically faking by mentioning /dev/ttyS1 here; /dev/null would
also work.

$_com1 = "/dev/ttyS0"
refers to the _emulated_ COM1 - of course this is slower, but not that 
much of an issue if the DOS application uses INT14, the BIOS instead of
direct port access.

Please let this be clear to everybody on this list:

EXCEPT for console video, the ports, irqpassing lines and the "native"
speaker, everything in dosemu.conf relates to virtual hardware, that is
safe and secure.

If you decide to play dirty and use direct hardware access then this
should also be the ONLY way from DOS' point of view, this hardware should
NOT be used by Linux at the same time, nor by any other DOSEMU session
running at the same time.

So you'd have to set
$_com1 = ""
and then /dev/ttyS0 in the ports line might work.

I agree this could be documented better.

Bart

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to