Linux MS DOS discussions
 help / color / mirror / Atom feed
* Re: PICs on Linux
@ 2004-11-08  1:21 Bart Oldeman
  2004-11-11 21:38 ` Ryan Underwood
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2004-11-08  1:21 UTC (permalink / raw)
  To: Ryan Underwood, gnupic, linux-msdos

Hello,

> The printer driver and DOSEMU's port passing cannot share
> the physical printer port.  Therefore you need to disable
> the printer driver if you want to use DOSEMU's port
> passing, either temporarily or permanently.
>
> Yes, and remember to use 'fast' unless you want to do
> debugging/tracing: $_ports = "fast range 0x378 0x37a"
>
> means pass through 0x378-0x37a in fast mode.
>
> You have to start DOSEMU as root or use sudo in order for
> port/irq passing to work.

It's still a bit tricky. This is the nature of direct
hardware access under Linux, the jail around you (protected
mode OS) needs to be partially broken down. There are
security issues to deal with, etc etc. -- this is why we can
never let this happen out of the box for a normal (non-root)
user.

This is not unique to Linux, under Windows XP there are even
people trying to make a buck selling direct hardware access.
http://www.zeecube.com/ParPort2004.htm
we don't ask for $19.95 but you have to pay in other ways
(trickier setup) so to speak.

However:
Linux 2.4 and 2.6 kernels provide a ppdev device driver that
allows raw parallel port access via /dev/parports/0 etc.
DOSEMU could virtualize the parallel port hardware and
re-route it through that device thereby avoiding the root
issue. I don't have any parallel port hardware to play with
but it could be a nice little project to implement in DOSEMU
one day.

Speed shouldn't be such a big deal: according to
http://www.ussg.iu.edu/hypermail/linux/kernel/0303.0/0978.html
you can only do about 300000 inb's and outb's per second
anyway.

Bart

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20041111213944.GD32418@dbz.icequake.net>]
* Re: PICs on Linux
@ 2004-11-08  2:03 Bart Oldeman
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Oldeman @ 2004-11-08  2:03 UTC (permalink / raw)
  To: Ryan Underwood, gnupic, linux-msdos

> However:
> Linux 2.4 and 2.6 kernels provide a ppdev device driver
> that allows raw parallel port access via /dev/parports/0
> etc. DOSEMU could virtualize the parallel port hardware
> and re-route it through that device thereby avoiding the
> root issue. I don't have any parallel port hardware to
> play with but it could be a nice little project to
> implement in DOSEMU one day.

Wine has this already:
http://cvs.winehq.com/cvsweb/wine/dlls/winedos/ppdev.c?rev=1.3
it may even be fairly easy to port this.

Bart

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20041107041204.513276C@mail.icequake.net>]

end of thread, other threads:[~2004-11-12  3:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-08  1:21 PICs on Linux Bart Oldeman
2004-11-11 21:38 ` Ryan Underwood
     [not found] <20041111213944.GD32418@dbz.icequake.net>
2004-11-12  3:11 ` Bill Couture
  -- strict thread matches above, loose matches on Subject: below --
2004-11-08  2:03 Bart Oldeman
     [not found] <20041107041204.513276C@mail.icequake.net>
2004-11-07 23:02 ` Ryan Underwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox