Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 13:54:52 -0600
From:      Mike Pritchard <mpp@mppsystems.com>
To:        freebsd-questions@freebsd.org
Subject:   usb printer recognized as a ugen type device, not ulpt
Message-ID:  <20020127195452.GA42300@mppsystems.com>

next in thread | raw e-mail | index | archive | help
I've been trying to get a usb printer running under FreeBSD (5.0-current
as of today, but I have the same problem on another machine running
a 9 month old -current).

The printer in question is an HP OfficeJet K60 (printer/fax/scanner/copier).

It is always recognized as a generic device (ugen), and not as a printer
(ulpt).  I can cat stuff to /dev/ugen0.1, but that doesn't make the printer
do anything.

I was able to get it recognized as a scanner, if I added it to 
sys/dev/usb/usbdevs and to the scanner_ids table in uscanner.c, but that 
still doesn't help me print anything.

Any ideas would be appreciated.

relevant dmesg output from a verbose boot with USB_DEBUG enabled, and some of
the other usb module debug options enabled:

ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xdf001000-0xdf001fff irq 10 at device 2.0 on pci0
ohci_init: start
usb0: OHCI version 1.0, legacy support
ohci_init: cold started
usb0: resetting
usbd_match
usbd_match
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usbd_attach
usb0: USB revision 1.0
usbd_new_device bus=0xc19c2800 port=0 depth=0 lowspeed=0
usbd_new_device: adding unit addr=1, rev=100, class=9, subclass=0, protocol=0, maxpacket=64, len=18, ls=0
usbd_new_device: new dev (addr 1), dev=0xc19c1c00, parent=0xc19c1d00
usbd_probe_and_attach: trying device specific drivers
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
usbd_set_config_index: (addr 1) attr=0x40, selfpowered=1, power=0
usbd_set_config_index: set config 1
uhub0: 4 ports with 4 removable, self powered
usbd_new_device bus=0xc19c2800 port=1 depth=1 lowspeed=0
ohci_rhsc: sc=0xc19c2800 xfer=0xc19c1b00 hstatus=0x00000000
ohci_rhsc: change=0x04
usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, protocol=0, maxpacket=8, len=18, ls=0
usbd_new_device: new dev (addr 2), dev=0xc19c1880, parent=0xc19c1a80
usbd_probe_and_attach: trying device specific drivers
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_set_config_index: (addr 2) attr=0x00, selfpowered=0, power=2
usbd_set_config_index: set config 1
usbd_probe_and_attach: no interface drivers found
ugen0: Hewlett-Packa OfficeJet K60, rev 1.00/1.00, addr 2
usbd_set_config_index: free old config
usbd_set_config_index: (addr 2) attr=0x00, selfpowered=0, power=2
usbd_set_config_index: set config 1
ugen_set_config: ugen0 to configno 1, sc=0xc19c6000
ugen_set_config: ifaceno 0
ugen_set_config: endptno 0, endpt=0x01(1,0), sce=0xc19c61a8
ugen_set_config: endptno 1, endpt=0x81(1,128), sce=0xc19c6270
ugen_set_config: endptno 2, endpt=0x82(2,128), sce=0xc19c6400
usbd_new_device bus=0xc19c2800 port=2 depth=1 lowspeed=512
usbd_new_device: adding unit addr=3, rev=110, class=0, subclass=0, protocol=0, maxpacket=8, len=18, ls=1
usbd_new_device: new dev (addr 3), dev=0xc19c1700, parent=0xc19c1a80
usbd_probe_and_attach: trying device specific drivers
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_set_config_index: (addr 3) attr=0xa0, selfpowered=0, power=40
usbd_set_config_index: set config 1
uhid0: Microsoft SideWinder Joystick, rev 1.10/1.01, addr 3, iclass 3/0
ohci_process_done: err cc=4 (STALL), xfer=0xc19c1900
usbd_do_request: status = 0x0000


usbdevs -v output:

Controller /dev/usb0:
addr 1: self powered, config 1, OHCI root hub(0x0000), AcerLabs(0x0000), rev 0x0100
 port 1 addr 2: power 2 mA, config 1, OfficeJet K60(0x0511), Hewlett-Packa(0x03f0), rev 0x0100
 port 2 addr 3: low speed, power 40 mA, config 1, SideWinder Joystick(0x003c), Microsoft(0x045e), rev 0x0101
 port 3 powered
 port 4 powered
-- 
Mike Pritchard
mpp@FreeBSD.org or mpp@mppsystems.com

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?20020127195452.GA42300>