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>

next in thread | raw e-mail | index | archive | help
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

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

------=_NextPart_000_0007_01BFAB8B.5693E4C0--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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