Technical article 126006

I cannot access my parallel port printer on OpenServer 5.0.7.

OpenServer 5.0.7

Written · Last revised

Problem

I am trying to print to a printer attached to my onboard parallel port. The system has no ISA slots so I am assuming that this is a PCI parallel port. In "mkdev parallel" I see that /dev/lp3 and /dev/lp4 are configured (default) for the first 2 PCI parallel ports on the system. However, trying to access these device nodes fails. For example,

# date > /dev/lp3
/dev/lp3: cannot create
# date > /dev/lp4
/dev/lp4: cannot create

Solution

Possible causes for this include:

1. The printer is malfunctioning or turned off.

2. The printer cable is damaged.
3. The parallel port is malfunctioning.

4. The parallel port is disabled in the system BIOS.

5. The parallel port is failing to follow the PCI specification with respect to how it should identify itself on the bus.

6. The parallel port isn't PCI; the system is using a PCI ISA bridge that emulates an old-style parallel port (ISA). If this is the case, run "mkdev parallel" and configure an ISA parallel port with the proper IRQ and I/O address. If the system uses the industry standard locations, the first 2 ISA parallel ports will be located at

Parallel port     IRQ     SIOA     EIOA
LPT1               7     0x3bc     0x3be
LPT2               5     0x278     0x27a
NOTES:    The operating system comes pre-configured with /dev/lp3
          and /dev/lp4 in case the system turns out to have a couple
          of PCI parallel ports.  Those are detected at boot time
          and automatically attached to /dev/lp3 or /dev/lp4. The
          reason they start at 3 is that lp0, lp1 and lp2 are
          reserved for ISA parallel ports.
TROUBLESHOOTING:

PCI Parallel Port cards are plugged in and can be configured with "mkdev parallel".

By default:
The system is currently configured to support one PCI parallel port.
To change this, enter the total number of PCI parallel ports you wish the
system to support.  Device nodes will be created with names starting at
/dev/lp3.
NOTE: Addition or removal of PCI parallel adapter cards in your system
could cause the boot-time enumeration of the devices to change, resulting
in unpredictable device node names--for instance, a port previously called
/dev/lp3 could become /dev/lp4.  Exercise due caution when changing your
hardware configuration.

This is reflected in /etc/conf/sdevice.d/pa which contain the parallel port information:

# cd /etc/conf/sdevice.d
# cat pa
pa      Y       4       2       4       0       0       0       0       0
pa      Y       1       2       4       7       378     37f     0       0
# l /dev/lp*
crw-------   2 bin      bin        6,  0 Jan 11 13:20 /dev/lp
crw-------   2 bin      bin        6,  0 Jan 11 13:20 /dev/lp0
crw-------   1 bin      bin        6,  3 Aug  2  2005 /dev/lp3

When you add an additional PCI card within "mkdev parallel" you will see the following in /etc/conf/sdevice.d/pa:

pa      Y       5       2       4       0       0       0       0       0

Additional /dev/lp device nodes should be created once the kernel has been relinked and the server rebooted.

See also

http://docsrv.sco.com:507/en/HANDBOOK/parallel_ports_about.html
parallel(HW)

From the Xinuos technical article database, record 126006. Reproduced with permission. The original is at www.sco.com/ta/126006, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.