From owner-freebsd-stable Mon Jun 19 18:54:30 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mike.dhis.org (usr2-d11.stk.cwnet.com [209.21.20.59]) by hub.freebsd.org (Postfix) with ESMTP id 7934E37B63B; Mon, 19 Jun 2000 18:54:20 -0700 (PDT) (envelope-from mmuir@es.co.nz) Received: from es.co.nz (ogre.lan [192.168.100.1]) by mike.dhis.org (Postfix) with ESMTP id E17659A; Mon, 19 Jun 2000 18:51:16 -0700 (PDT) Message-ID: <394ECEDD.30EC5FEC@es.co.nz> Date: Mon, 19 Jun 2000 18:54:37 -0700 From: Mike Muir Reply-To: mmuir@es.co.nz X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: stable@freebsd.org, questions@freebsd.org Subject: ULPT success anyone? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, Recently picked up a Brother HL-1240 printer which supports USB and Parrallel connections, and since i had a USB cable lying around I thought that I might as well try to get the thing working under freebsd using ulpt0.. Well so far no luck, I get kernel panics whenever accessing /dev/ulpt0. ulpt0 is certainly picked up on boot and verified with usbdevs. When accessing /dev/ulpt0 in any way, it stirs up a response from the printer (as if data was coming in, it gets all ready to print, but not data comes in so it stops.) My printcap is as follows: PRINTCAP: Brother HL-1240|HL-1240|lp|local line printer:\ :sh:\ :lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\ :ld=\033%-12345X@PJL\r\n@PJL SET RESOLUTION=600\r\n: ( The last line is for 600dpi as per the recommendations on http://www.picante.com/~gtaylor/pht/show_printer.cgi?recnum=234953 ) Additionally, right before the panic: Jun 19 17:50:43 ogre /kernel: uhub0: port error, restarting port 2 Jun 19 17:50:43 ogre /kernel: ulpt0: at uhub0 port 2 (addr 3) disconnected Jun 19 17:50:43 ogre /kernel: ulpt0: detached Am I missing something? Is there another setting to be considered? Dmesg follows, and yes i've tried w/o SMP support, same thing. (Printer works fine in Win2k.) Hopefully someone can prevent me from having to spring for a parallel cable! -mike. DMESG: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-STABLE #9: Sun Jun 18 00:30:07 PDT 2000 root@ogre.lan:/usr/src/sys/compile/POWER Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (551.25-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x665 Stepping = 5 Features=0x183fbff real memory = 268435456 (262144K bytes) avail memory = 257871872 (251828K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc0305000. Preloaded elf module "splash_bmp.ko" at 0xc030509c. Preloaded elf module "vesa.ko" at 0xc0305140. VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc0302102 (1000022) VESA: ELSA ERAZOR X Pentium Pro MTRR support enabled md0: Malloc disk module_register_init: MOD_LOAD (splash_bmp, c02fa694, 0) error 2 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 16 isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at 7.1 uhci0: port 0xc000-0xc01f irq 19 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.20, addr 2, iclass 3/1 ums0: 3 buttons ulpt0: Brother Industries, Ltd. product 0x0006, rev 1.00/1.00, addr 3, iclass 7/1 intpm0: port 0x5000-0x500f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped 4000 dpt0: port 0xc400-0xc41f irq 19 at device 9.0 on pci0 dpt0: DPT PM2044UW FW Rev. 07M1, 1 channel, 64 CCBs dpt0: driver is using old-style compatability shims amr0: port 0xc800-0xc87f irq 18 at device 11.0 on pci0 amr0: firmware UF82 bios 1.61 4MB memory amrd0: on amr0 amrd0: 26043MB (53336064 sectors) RAID 0 (optimal) pcm0: port 0xcc00-0xcc1f irq 17 at device 13.0 on pci0 pci0: (vendor=0x1102, dev=0x7002) at 13.1 rl0: port 0xd400-0xd4ff mem 0xdb000000-0xdb0000ff irq 16 at device 15.0 on pci0 rl0: Ethernet address: 00:50:ba:d1:c1:2e miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bktr0: mem 0xdb001000-0xdb001fff irq 19 at device 17.0 on pci0 iicbb0: on bti2c0 iicbus0: on iicbb0 master-only smbus1: on bti2c0 smb1: on smbus1 bktr0: Hauppauge Model 61381 D123 bktr0: Detected a MSP3430G-A1 at 0x80 Hauppauge WinCast/TV, Philips FR1236 NTSC FM tuner, msp3400c stereo, remote control. pci0: (vendor=0x109e, dev=0x0878) at 17.1 irq 19 pci0: at 19.0 irq 18 pci0: at 19.1 irq 18 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> APIC_IO: Testing 8254 interrupt delivery APIC_IO: routing 8254 via IOAPIC #0 intpin 2 SMP: AP CPU #1 Launched! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message