Re: [PARPORT] Setting up a second parallel port


Dries van Oosten (D.vanOosten@phys.uu.nl)
Mon, 21 Jun 1999 11:49:27 +0200 (MET DST)


On Sat, 19 Jun 1999, Tim Waugh wrote:

> On Wed, 16 Jun 1999, David Campbell wrote:
>
> > > I tried it by insmod-ing parport and parport_pc with various io_ranges and
> > > irq's as options, but when I cat /proc/ioports, there is no parallel port
> > > there. What do I do wrong.
> > >
> > > Here some info about my system:
> > > motherboard: SE440BX-2 (Seatle)
> > > cpu: pii 350
> > > linux distribution:RH6.0
> > > kernel version: 2.2.9
> > >
> > > The parallel port card is a jumperless isa card manifactured by tornado.
>
> It won't appear in /proc/ioports until it's used. Look in /proc/parport,
> or type 'dmesg'.

Ok, so thats one mystery cleared up. But it doesn't solve my problem.
Let me explain what I do. I look in windows what io range the card uses.
Then I reboot in linux.
I insmod parport and insmod parport_pc io=what-I-found-in-windows irq=none
then I run the following code as root:

ioperm(what-i-found-in-windows,8,1);
outb(1,what-i-found-in-windows);
sleep(1);
outb(0,what-i-found-in-windows);
ioperm(what-i-found-in-windows,8,0);

I have an array of leds connected to the data pins of the parallel port
and with a 1k resistor in series to the ground pin.
Nothing happens. In a desperate attempt I also tried it with the onboard
port and nothing happened as well.

Help would be appreciated.

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Mon 21 Jun 1999 - 05:53:16 EDT