Technical article 118285

UnixWare 7 and OpenServer6 do not recognize the parallel port on a Compaq Proliant server.

OpenServer 6.0.0UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

Problem

The parallel port on a Compaq server is not working.  When an attempt
is made to use it, such as for printing, the printer will be reported
as disabled.

An attempt to put raw data through the parallel port with "cat > /dev/lp0" errors with "cannot create" and the following errors are seen on the console:

NOTICE : MOD : Cannot load required dependent mfpd for module /etc/conf/mod.d/lp

NOTICE : MOD : Dependency resolution in module /etc/conf/mod.d/lp failed

Cause

The UnixWare parallel port driver (mfpd) is configured to a different I/O address to the hardware setup for the parallel port driver.

Compaq servers use a different I/O address for the standard parallel ports LPT1, LPT2, LPT3.

Solution

To resolve this, use the Compaq SmartStart System Configuration Utility (F10 from boot for the system partition or boot from SmartStart CD) to edit the hardware settings and change the parallel port setting from LPT1 to LPT2.

This will cause the integrated parallel port to use a different set of I/O addresses which UnixWare can be configured to (UnixWare can have problems with the parallel port being configured to 3bc-3be).

Compaq parallel port options and their associated I/O addresses (all use IRQ 7):

LPT1 - 3bc-3be LPT2 - 378-37a LPT3 - 278-27a

Note that these address ranges cover the minimum required registers
for the parallel port (Data Port (0378h) Status Port (0379h) and
Control Port (037Ah)).  Additional registers can be mapped for
extended parallel port functions such as ECP/EPP, therefore the
address ranges are traditionally 8 bytes.  LPT2: 378-37f, LPT3:
278-27f.

On later Compaq Proliant models (G2 models and onwards) this change can be made via the ROM Based Setup Utility (RBSU), LPT2 may not be' an available option, in which case use LPT3 and it's appropriate resources.

Once this is changed in the hardware settings, save the changes and
reboot the system.
Now the operating system needs to have the resources for the mfpd
driver changed to match those of the hardware settings.  This can be
done within the dcu utility or from the command line using the resmgr
command.  For consistency, it does no harm to allocate the full 8 byte
range (see note above) for the parallel port addresses, for LPT2
(physically 378-37a) we allocate 378-37f in the OS.

Using the DCU (/sbin/dcu), within Hardware Device Configuration -> Parallel Port (mfpd) -> Overwrite IOStart and IOEnd values as appropriate -> F10 when finished.

Then run "/etc/conf/bin/idconfupdate -f" to flush the change to disk.

Using resmgr:

Check the current parallel port driver (mfpd) settings:

# /sbin/resmgr | grep mfpd
63 mfpd 1 5 1 7 378 37f - - - - 1 - - - 1 -

Add a new mfpd entry with the following resmgr command to match the new LPTx resources (in this example we use LP2):

# /sbin/resmgr -a -p "MODNAME UNIT IPL ITYPE IRQ IOADDR \
         BRDBUSTYPE ENTRYTYPE" -v \
         "mfpd 1 5 1 7 278 27f 1 1"

Check the new mfpd resmgr entry has been added:

# /sbin/resmgr | grep mfpd
63 mfpd 1 5 1 7 378 37f - - - - 1 - - - 1 -
73 mfpd 1 5 1 7 278 27f - - - - 1 - - - 1 -
Remove the old mfpd entry:
# /sbin/resmgr -r -k 63

Confirm the remaining mfpd entry matches the hardware settings:

# /sbin/resmgr | grep mfpd
73 mfpd 1 5 1 7 278 27f - - - - 1 - - - 1 -

Now this change needs to be made permanent:

# /etc/conf/bin/idconfupdate -f

For completeness, the system should be rebooted after making these changes using either method mentioned above.

See also

ta115124, "UnixWare 7, how do I determine if my parallel port is enabled?

ta115125, "Open UNIX 8, how do I determine if my parallel port is enabled?"

ta109976, "How do I add a second parallel card into my UnixWare 7.x system?"

ta104072, "What device to select when installing parallel port on Compaq system."

From the Xinuos technical article database, record 118285. Reproduced with permission. The original is at www.sco.com/ta/118285, 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.