From owner-freebsd-questions Sun Aug 12 14:57:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from yoda.bmi.net (yoda.bmi.net [204.57.191.163]) by hub.freebsd.org (Postfix) with ESMTP id 9FB1637B401 for ; Sun, 12 Aug 2001 14:57:42 -0700 (PDT) (envelope-from jmcoopr@webmail.bmi.net) Received: from johncoop.MSHOME (drumheller-router.bmi.net [206.63.201.3] (may be forged)) by yoda.bmi.net (Pro-8.9.3/Pro-8.9.3) with ESMTP id PAA31137; Sun, 12 Aug 2001 15:24:31 -0700 Received: from johncoop.MSHOME (localhost [127.0.0.1]) by johncoop.MSHOME (8.11.5/8.11.5) with ESMTP id f7CLvsG55910; Sun, 12 Aug 2001 14:57:55 -0700 (PDT) (envelope-from jmcoopr@webmail.bmi.net) Date: Sun, 12 Aug 2001 14:57:52 -0700 From: John Merryweather Cooper To: Mike Meyer Cc: Jim Freeze , questions@FreeBSD.ORG Subject: Re: What is the magical incantation necessary to print to /dev/ulpt0 Message-ID: <20010812145752.A39719@johncoop> References: <20010812095648.Q477@johncoop> <20010812132727.C59678@johncoop> <15222.63749.259533.812831@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <15222.63749.259533.812831@guru.mired.org>; from mwm@mired.org on Sun, Aug 12, 2001 at 14:45:41 -0700 X-Mailer: Balsa 1.1.7 Lines: 76 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001.08.12 14:45 Mike Meyer wrote: > John Merryweather Cooper types: > > Being MacroHard free, I don't have a WinDoze machine. I have OS/2--on > > which the Z51 works great through USB; and I have my FreeBSD box--on > which > > the printer works only on the parallel port (I'v just tried--using > > apsfilter and setuping up as an HP 500C). > > If the printer works with FreeBSD on the parallel port, it's clearly > not a winprinter. That's a lot more useful information than that it > works on some other OS. > > > The problem is clearly that FreeBSD doesn't like VIA's UHCI USB > > implementation. I'll send in a PR. > > Seems to work fine here: > > uhci0: port 0xe400-0xe41f irq 10 at device > 7.2 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > ugen0: Diamond Multimedia Systems, Inc. SupraExpress 56e USB V.90, rev > 1.00/1.00, addr 2 > ulpt0: Belkin Components (2nd) F5U002 Parallel printer adapter, rev > 1.00/1.04, addr 3, iclass 7/1 > xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe800-0xe87f mem > 0xeb000000-0xeb00007f irq 5 at device 10.0 on pci0 > > The modem doesn't get much use, but works fine dialing into shell > logins. I moved the printer to this test system, and doing > "cat stuff.ps > /dev/ulpt0" worked just fine. > > Either the Lexmark USB lpt implementation is crocked, or something > else in the system is causing problems. Have you got another USB > device you can test with? > > -- > Mike Meyer http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more > information. > Yes, I have a USB Zip drive I can borrow. I'm recompiling my kernel to support USB debugging, and the Z51 isn't plugged in right now. Here's the equivalent dmesg fragment for my machine: atapci0: port 0xc000-0xc00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xc400-0xc41f irq 9 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xc800-0xc81f irq 9 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered chip0: at device 7.4 on pci0 pcm0: port 0xd400-0xd403,0xd000-0xd003,0xcc00-0xccff irq 5 at device 7.5 on pci0 I'll hook up the ZIP and the Z51 for the next boot and we'll see what happens. jmc P.S. Sorry about getting cross, but I'm not braindead yet. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message