[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot open parallel port on 100LX board



The ETRAX 100 LX parallel port driver in Linux 2.4
does not use the same ioctl's as the one in elinux.
The 2.4 driver uses a generic parport subsystem.

When you compile hwtest for Linux 2.4 it will
warn you with a:
hwtest.c:83:55: warning: #warning "#### TODO: FIX ETRAXPARIO for Linux 2.4
####"

Don't know when this will be fixed or if the solution will
be compatible with elinux (Linux 2.4 treats parallel port differently)
and I don't know if it's possible to add custom ioct'l to a
parport driver in 2.4.
If you know how to control a parport in standard 2.4 that should
probably work for our 2.4 as well.

/Johan

----- Original Message -----
From: Henry Minsky <hqm@xxxxxxx.edu>
To: <dev-etrax@xxxxxxx.com>
Sent: Monday, June 11, 2001 2:45 PM
Subject: cannot open parallel port on 100LX board


>
> I am trying to program the parallel port in manual mode
> on the 100LX board.
>
> I tried hwtest utility, and it claims it cannot initialize the
> parallel port. Is this normal? Does this mean I cannot program the
> parallel port, or is the hwtest code not designed for the 100LX board
> or something?
>
> Does anyone have some simple example code of opening
> /dev/lp0 and setting a clearing some output pins manually?
>
>   [root@Beartronics /]49# hwtest INIT lp0
>   hwtest INIT lp0
>
>   ERROR INIT lp0 (-1):failed to open /dev/lp0
>
>   [root@Beartronics /]49# hwtest INIT lp1
>   hwtest INIT lp1
>
>   ERROR INIT lp1 (-1):failed to open /dev/lp1
>
>   [root@Beartronics /]49# hwtest INIT ttyS0
>   hwtest INIT ttyS0
>
>   OK INIT ttyS0
>   [root@Beartronics /]49# hwtest SEND ttyS0 foobar
>   hwtest SEND ttyS0 foobar
>
>   OK SEND ttyS0 6 bytes
>   [root@Beartronics /]49# hwtest SEND ttyS0 foobar
>   hwtest SEND ttyS0 foobar
>
>   OK SEND ttyS0 6 bytes
>   [root@Beartronics /]49# hwtest INIT lp0
>   hwtest INIT lp0
>
>   ERROR INIT lp0 (-1):failed to open /dev/lp0
>
>   [root@Beartronics /]49#
>