Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2010 10:29:04 +0200
From:      Thomas Gellekum <Thomas.Gellekum@gmx.de>
To:        freebsd-stable@freebsd.org
Subject:   [8-STABLE] USB printer disconnecting when trying to print
Message-ID:  <86vdahhd4f.fsf@siegel.tg.intern>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
my new machine doesn't have a physical connector for a parallel printer
anymore, so I'm now connecting my Brother HL-1250 through the USB port.
The printer is recognized when it powers up:

ugen0.4: <vendor 0x04f9> at usbus0
ulpt0: <vendor 0x04f9 product 0x0007, class 0/0, rev 1.00/1.00, addr 4> on usbus0
ulpt0: using bi-directional mode

and it starts warming up when I try to print, but no page is coming out.
After setting hw.usb.debug.ulpt=1, hw.usb.debug.ugen=1, I do a

echo "hallo" > /dev/ulpt0

and get lots of lines starting with the same usbd_transfer_submit shown
below (are these actually related to the printer? I'm guessing they are
mouse events):

May 21 10:17:23 siegel kernel: usbd_transfer_submit: xfer=0xc9c70220, endpoint=0xc7ab3878, nframes=2, dir=read
May 21 10:17:23 siegel kernel: usb_dump_endpoint: endpoint=0xc7ab3878 edesc=0xc7ab3b30 isoc_next=0 toggle_next=0 bEndpointAddress=0x00
May 21 10:17:23 siegel kernel: usb_dump_queue: endpoint=0xc7ab3878 xfer: 
May 21 10:17:23 siegel kernel: usbd_pipe_enter: enter
May 21 10:17:23 siegel kernel: usbd_pipe_start: start
May 21 10:17:23 siegel kernel: usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION
May 21 10:17:23 siegel kernel: usbd_callback_wrapper_sub: xfer=0xc9c70220 endpoint=0xc7ab3878 sts=0 alen=9, slen=9, afrm=2, nfrm=2
May 21 10:17:37 siegel kernel: ulpt_write_callback: state=0x0 actlen=0
May 21 10:17:37 siegel kernel: ulpt_status_callback: error=USB_ERR_STALLED
May 21 10:17:37 siegel kernel: ugen0.4: <vendor 0x04f9> at usbus0 (disconnected)

[terminate command with ^C]

May 21 10:20:22 siegel kernel: ulpt0: at uhub2, port 2, addr 4 (disconnected)
May 21 10:20:22 siegel kernel: ulpt_detach: sc=0xca008b00
May 21 10:20:22 siegel kernel: ulpt_write_callback: state=0x2 actlen=0
May 21 10:20:23 siegel kernel: ugen0.4: <vendor 0x04f9> at usbus0
May 21 10:20:23 siegel kernel: ulpt0: <vendor 0x04f9 product 0x0007, class 0/0, rev 1.00/1.00, addr 4> on usbus0
May 21 10:20:23 siegel kernel: ulpt_attach: setting alternate config number: 0
May 21 10:20:23 siegel kernel: ulpt0: using bi-directional mode

I've also tried to set up CUPS instead of using LPD, but that doesn't
even find the printer.

The board is an Intel DH55HC with a i3-530; system is a recent 8-STABLE
(see attached dmesg).

Any ideas on how to debug this are welcome.

tg


[-- Attachment #2 --]
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-STABLE #0: Fri May 14 16:41:51 CEST 2010
    root@siegel.tg.intern:/usr/obj/usr/src/sys/GENERIC i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM) i3 CPU         530  @ 2.93GHz (2926.02-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x20652  Family = 6  Model = 25  Stepping = 2
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x98e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT>
  AMD Features=0x28100000<NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 4294967296 (4096 MB)
avail memory = 3394772992 (3237 MB)
ACPI APIC Table: <INTEL  DH55HC  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  4
 cpu3 (AP): APIC ID:  5
ACPI Warning: 32/64X FACS address mismatch in FADT - 0xCF628E40/0x       0CF628D40, using 32 (20100331/tbfadt-586)
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <INTEL DH55HC> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xd0000000-0xdfffffff,0xfe620000-0xfe62ffff irq 16 at device 0.0 on pci1
hdac0: <ATI RV730 High Definition Audio Controller> mem 0xfe630000-0xfe633fff irq 17 at device 0.1 on pci1
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
pci0: <simple comms> at device 22.0 (no driver attached)
atapci0: <Intel ATA controller> port 0xf0f0-0xf0f7,0xf0e0-0xf0e3,0xf0d0-0xf0d7,0xf0c0-0xf0c3,0xf0b0-0xf0bf irq 18 at device 22.2 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
pci0: <simple comms, UART> at device 22.3 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection 7.0.5> port 0xf040-0xf05f mem 0xfe700000-0xfe71ffff,0xfe728000-0xfe728fff irq 20 at device 25.0 on pci0
em0: Using MSI interrupt
em0: [FILTER]
em0: Ethernet address: 00:27:0e:06:53:00
ehci0: <Intel PCH USB 2.0 controller USB-B> mem 0xfe727000-0xfe7273ff irq 16 at device 26.0 on pci0
ehci0: [ITHREAD]
usbus0: EHCI version 1.0
usbus0: <Intel PCH USB 2.0 controller USB-B> on ehci0
hdac1: <Intel PCH High Definition Audio Controller> mem 0xfe720000-0xfe723fff irq 22 at device 27.0 on pci0
hdac1: HDA Driver Revision: 20100226_0142
hdac1: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci3: <ACPI PCI bus> on pcib3
ehci1: <Intel PCH USB 2.0 controller USB-A> mem 0xfe726000-0xfe7263ff irq 23 at device 29.0 on pci0
ehci1: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <Intel PCH USB 2.0 controller USB-A> on ehci1
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel PCH AHCI SATA controller> port 0xf090-0xf097,0xf080-0xf083,0xf070-0xf077,0xf060-0xf063,0xf020-0xf03f mem 0xfe725000-0xfe7257ff irq 19 at device 31.2 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.30 with 6 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich3: [ITHREAD]
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich4: [ITHREAD]
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich5: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
ppc1: <Parallel port> port 0x378-0x37f,0x778-0x77f irq 5 drq 3 on acpi0
ppc1: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc1: FIFO with 16/16/9 bytes threshold
ppc1: [ITHREAD]
ppbus0: <Parallel port bus> on ppc1
plip0: <PLIP network interface> on ppbus0
plip0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xcf800-0xd07ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata0: [ITHREAD]
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ata1: [ITHREAD]
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
p4tcc2: <CPU Frequency Thermal Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
p4tcc3: <CPU Frequency Thermal Control> on cpu3
Timecounters tick every 1.000 msec
vboxdrv: fAsync=0 offMin=0x5e8 offMax=0x7e4
hdac0: HDA Codec #0: ATI R6xx HDMI
pcm0: <HDA ATI R6xx HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0
hdac1: HDA Codec #0: Realtek ALC888
hdac1: HDA Codec #3: Intel G45 HDMI
pcm1: <HDA Realtek ALC888 PCM #0 Analog> at cad 0 nid 1 on hdac1
pcm2: <HDA Realtek ALC888 PCM #1 Analog> at cad 0 nid 1 on hdac1
pcm3: <HDA Realtek ALC888 PCM #2 Analog> at cad 0 nid 1 on hdac1
pcm4: <HDA Realtek ALC888 PCM #3 Digital> at cad 0 nid 1 on hdac1
pcm5: <HDA Intel G45 HDMI PCM #0 DisplayPort> at cad 3 nid 1 on hdac1
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG HD160JJ ZM100-41> ATA-7 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich2 bus 0 scbus2 target 0 lun 0
ada1: <WDC WD6400AAKS-65A7B2 01.03B01> ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 610480MB (1250263728 512 byte sectors: 16H 63S/T 16383C)
SMP: AP CPU #3 Launched!cd0 at ahcich1 bus 0 scbus1 target 0 lun 0

cd0: <HL-DT-ST DVDRAM GH22NS40 NL02> Removable CD-ROM SCSI-0 device 
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
Root mount waiting for: usbus1 usbus0
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
ugen0.2: <vendor 0x8087> at usbus0
uhub2: <vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2> on usbus0
ugen1.2: <vendor 0x8087> at usbus1
uhub3: <vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2> on usbus1
Root mount waiting for: usbus1 usbus0
uhub2: 6 ports with 6 removable, self powered
uhub3: 6 ports with 6 removable, self powered
ugen0.3: <Microsoft> at usbus0
ums0: <Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), class 0/0, rev 1.10/3.00, addr 3> on usbus0
ums0: 3 buttons and [XYZ] coordinates ID=0
Trying to mount root from ufs:/dev/ada0s1a
vboxnet0: Ethernet address: 0a:00:27:00:00:00

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86vdahhd4f.fsf>