From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 03:45:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D014F16A4CE for ; Mon, 8 Mar 2004 03:45:33 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F89443D1F for ; Mon, 8 Mar 2004 03:45:33 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp33-22.lns1.adl1.internode.on.net [150.101.33.22]) i28BjTwn031757; Mon, 8 Mar 2004 22:15:30 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Stephen Liu , Kris Kennaway Date: Mon, 8 Mar 2004 22:15:29 +1030 User-Agent: KMail/1.4.3 References: <200403081945.16907.satimis@icare.com.hk> <20040308052442.GA57973@xor.obsecurity.org> <200403082339.33613.satimis@icare.com.hk> In-Reply-To: <200403082339.33613.satimis@icare.com.hk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200403082215.29256.malcolm.kay@internode.on.net> cc: questions@freebsd.org Subject: Re: MAKEDEV question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 11:45:33 -0000 On Tue, 9 Mar 2004 02:09, Stephen Liu wrote: > - snip - > > > > # grep ppc0 /var/run/dmesg.boot > > > ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 > > > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > > > ppc0: FIFO with 16/16/7 bytes threshold > > > ppbus0: on ppc0 > > > > > > I suppose lpt0 is supported. > > > > If your kernel detects it it will be listed in the dmesg: > > > > lpt0: on ppbus0 > > lpt0: Interrupt-driven port > > Hi Kris, > > Turned on printer to make following tests > > # dmesg > ..... > ppbus0: MLC,PCL,PML > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ...... > > ls -l /dev/lpt0 > crw------- 1 root wheel 16, 0 Mar 8 22:48 /dev/lpt0 > > It is there. > > > I skipped following steps > > 1) > # ./MAKEDEV port > > and > 2) > # lptcontrol -i -d /dev/lpt0 > (to set interrupt-driven mode for lpt0) > > and > 3) > # lptcontrol -p -d /dev/lpt0 > (to set polled-mode for lptN) > > > Jumped to; > # lptest > /dev/lpt0 > only strange symbols printed and printing continued without stop until = I > removed the paper tray. Communication between printer and port seemed > working > It could be that your printer does not understand plain ascii text. What = is the make and model. The other possibility is that there is something wrong in the communicati= ons path -- a dud or incorrectly wired cable. Malcolm Kay