From owner-freebsd-questions Fri Apr 21 9:17:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by hub.freebsd.org (Postfix) with ESMTP id 1C62F37BBEF for ; Fri, 21 Apr 2000 09:17:09 -0700 (PDT) (envelope-from j.sandiego@prodigy.net) Received: from penguin (NYCMA080-0753.splitrock.net [63.253.83.245]) by pimout3-int.prodigy.net (8.8.5/8.8.5) with SMTP id MAA71422 for ; Fri, 21 Apr 2000 12:17:05 -0400 Message-ID: <000a01bfabac$fe382440$f553fd3f@penguin> From: "Jeffrey San Diego" To: Subject: What shall I use? lpt or nlpt? Date: Fri, 21 Apr 2000 12:15:53 -0400 Organization: Prodigy Internet MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01BFAB8B.5693E4C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0007_01BFAB8B.5693E4C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Whe I first installed FreeBSD 3.1, the kernel was using lpt0 as the = parallel output port. I tried to send a test print using lptest > = /dev/lpt0 and it only gave "cannot create /dev/lpt0: no such device or = addresses". I checked the device and it's there. I looked inside my LINT = file and the entries for the parallel port are as follows: controller ppbus0 device nlpt0 at ppbus? controller ppc0 at isa? port ? tty irq 7 I appended "vector lptintr" on the last line to my FREEBIE config file. = When I recompiled and rebooted, the kernel was able to recognize my HP = 722C printer. "dmesg | grep lpt" showed the lpt devices available: lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt driven port lpt-265486244: this driver is deprecated; use ppbus instead I saw this last line in LINT instructing to use nlpt0 instead of lpt0. = There's no /dev/nlpt0. Again, nothing happened when I did this: "lptest > /dev/lpt0". In /dev, = I tried to ./MAKEDEV nlpt0 but it said "no such device". Being = desperate, I tried to link /dev/lpt0 to /dev/nlpt0 to see if I can get = something out to my printer and again, nothing happened. What's wrong? ------=_NextPart_000_0007_01BFAB8B.5693E4C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Whe I first installed FreeBSD = 3.1, the=20 kernel was using lpt0 as the parallel output port. I tried to send a = test print=20 using lptest > /dev/lpt0 and it only gave "cannot create /dev/lpt0: = no such=20 device or addresses". I checked the device and it's there. I looked = inside my=20 LINT file and the entries for the parallel port are as = follows:
 
controller ppbus0
device nlpt0 at = ppbus?
controller ppc0 at isa? port ? = tty irq=20 7
 
I appended "vector = lptintr" on the=20 last line to my FREEBIE config file. When I recompiled and = rebooted, the=20 kernel was able to recognize my HP 722C printer. "dmesg | grep lpt" = showed the=20 lpt devices available:
 
lpt0 at 0x378-0x37f irq 7 on=20 isa
lpt0: Interrupt driven = port
lpt-265486244: this driver is = deprecated;=20 use ppbus instead
 
I saw this last line in LINT = instructing=20 to use nlpt0 instead of lpt0. There's no /dev/nlpt0.
 
Again, nothing happened when I = did this:=20 "lptest > /dev/lpt0". In /dev, I tried to ./MAKEDEV nlpt0 but it said = "no=20 such device". Being desperate, I tried to link /dev/lpt0 to = /dev/nlpt0 to=20 see if I can get something out to my printer and again, nothing = happened. What's=20 wrong?
 
 
------=_NextPart_000_0007_01BFAB8B.5693E4C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message