Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2000 12:15:53 -0400
From:      "Jeffrey San Diego" <j.sandiego@prodigy.net>
To:        <Undisclosed-Recipient:;@pimout3-int.prodigy.net;>
Subject:   What shall I use? lpt or nlpt?
Message-ID:  <000a01bfabac$fe382440$f553fd3f@penguin>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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?



[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Futura Bk BT" size=2>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 &gt; /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:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Futura Bk BT" size=2>controller ppbus0</FONT></DIV>
<DIV><FONT face="Futura Bk BT" size=2>device nlpt0 at ppbus?</FONT></DIV>
<DIV><FONT face="Futura Bk BT" size=2>controller ppc0 at isa? port ? tty irq 
7</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Futura Bk BT" size=2>I appended "vector lptintr"&nbsp;on the 
last line&nbsp;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:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Futura Bk BT" size=2>lpt0 at 0x378-0x37f irq 7 on 
isa</FONT></DIV>
<DIV><FONT face="Futura Bk BT" size=2>lpt0: Interrupt driven port</FONT></DIV>
<DIV><FONT face="Futura Bk BT" size=2>lpt-265486244: this driver is deprecated; 
use ppbus instead</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Futura Bk BT" size=2>I saw this last line in LINT instructing 
to use nlpt0 instead of lpt0. There's no /dev/nlpt0.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Futura Bk BT" size=2>Again, nothing happened when I did this: 
"lptest &gt; /dev/lpt0". In /dev, I tried to ./MAKEDEV nlpt0 but it said "no 
such device". Being desperate, I&nbsp;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?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01bfabac$fe382440$f553fd3f>