*BSD News Article 28827


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:2159 comp.os.386bsd.questions:9472
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!hippo.ru.ac.za!Braae!g89r4222
From: csgr@cs.ru.ac.za (Geoff Rehmet)
Subject: Re: FreeBSD doesn't recognize my printer
Message-ID: <CnFpFE.9y7@hippo.ru.ac.za>
Sender: news@hippo.ru.ac.za (Usenet News Admin)
Reply-To: csgr@cs.ru.ac.za
Organization: Rhodes University, Grahamstown, South Africa
References: <SWILDNER.94Mar25154003@channelz.GUN.de> <2n70jg$667@Germany.EU.net>
Date: Tue, 29 Mar 1994 16:21:13 GMT
Lines: 74

In <2n70jg$667@Germany.EU.net> bs@Germany.EU.net (Bernard Steiner) writes:


>In article <SWILDNER.94Mar25154003@channelz.GUN.de>, swildner@channelz.GUN.de (Sascha Wildner) writes:
>|> device		lpa0	at isa? port "IO_LPT1" tty
>|> device		lpa1	at isa? port "IO_LPT2" tty

>|> lpa0 not found at 0x378
>|> lpa1 not found at 0x278

>|> Is there anything else to do to configure the printer?

>Have you tried disconnecting the cable during the boot process ?

>The probe routine in the lpa and lpt driver is crud, though it claims to
>replace a routine that used to be in there that was even crudder.

First, what version of FreeBSD is the problem with: the lpt probe in
pre-1.1BETA is _HOSED_.  In 1.1-BETA, the lpt probe code works much
better (lpa is still hosed, and I believe lpa should be phased out,
since from 1.1 onwards lpt includes the functionality of lpa.)

if you are using -current or 1.1BETA, I suggest the following:

If your interrupts work, and your second printer is on IRQ 5:
device          lpt0    at isa? port "IO_LPT1" tty irq 7 vector lptintr
device          lpt1    at isa? port "IO_LPT2" tty irq 5 vector lptintr

If you only have lpt0 on an IRQ:
device          lpt0    at isa? port "IO_LPT1" tty irq 7 vector lptintr
device          lpt1    at isa? port "IO_LPT2" tty

If your IRQ's don't work:
device          lpt0    at isa? port "IO_LPT1" tty 
device          lpt1    at isa? port "IO_LPT2" tty 

The 3 configs above all use a method similar to the odl probe
(basically checking fewer bits).

If all of the above don't work, try:
device          lpt0    at isa? port? tty irq 7 vector lptintr
(or something similar)

or:
device          lpt0    at isa? port?  tty
(or something similar)

Use of the port? setting will make the driver go through the list of
printers which your BIOS recognised on power-up - this is an attempt to 
allow people with strange hardware to still use their printers.
(There were some objections to using this probe method by default, so
it is only an option.)


Hopefully the above stuff should be documented in 1.2.

If you have any more queries, or if you still don't have any luck with
the above, please email me, and I can try and get you sorted out.

For those who are unaware of the fact: the lpt driver in 1.1 supports a
polling mode based on the code in the lpa driver, and the config lines
shown above which don't give an IRQ make use of that mode for the
driver.  Hopefully the lpt driver should soon support what everyone
needs.  The lpa driver should (IMHO) eventually be scrapped.

If you are running 1.0.x, I suggest trying to drop in the 1.1 lpt
driver source.

Geoff.
--
 Geoff Rehmet, Computer Science Department,   | ____   _ o         /\
 Rhodes University,  South Africa             |___  _-\_<,        /\/\/\
   email : csgr@cs.ru.ac.za                   |    (*)/'(*)    /\/\/\/\/\
         : geoff@neptune.ru.ac.za             |