From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 06:46:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1996916A40F for ; Thu, 7 Dec 2006 06:46:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 214D443CB0 for ; Thu, 7 Dec 2006 06:45:30 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB76kJ7Q017641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Dec 2006 22:46:19 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB76kI4i011304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 6 Dec 2006 22:46:18 -0800 Message-ID: <4577B8B9.1020601@u.washington.edu> Date: Wed, 06 Dec 2006 22:46:17 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20061207063252.GA769@host.my.domain> In-Reply-To: <20061207063252.GA769@host.my.domain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.6.223433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P5 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: How to use ulpt driver? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2006 06:46:24 -0000 a@zeos.net wrote: > I get USB printer Canon PIXMA iP 2000 and attached it to my computer. > > The kernel was compiled with: > > # USB support > device uhci # UHCI PCI->USB interface > device usb # USB Bus (required) > device ugen # Generic > device uhid # "Human Interface Devices" > device umass # Disks/Mass storage - Requires scbus and da > > and sees the printer: > > ------------------------------------------------------------------------ > $ dmesg > Copyright (c) 1992-2006 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 6.1-RELEASE #14: Thu Dec 7 07:15:51 EET 2006 > root@host.my.domain:/usr/obj/usr/src/sys/MYKERNEL > ACPI APIC Table: > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Pentium(R) 4 CPU 1.50GHz (1511.68-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 > Features=0x3febfbff > real memory = 805240832 (767 MB) > avail memory = 782880768 (746 MB) > ioapic0 irqs 0-23 on motherboard > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > pcib0: port 0xcf8-0xcff,0x4000-0x40f7 on acpi0 > pci0: on pcib0 > agp0: mem 0xd8000000-0xdbffffff at device 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > pcib2: at device 30.0 on pci0 > pci2: on pcib2 > rl0: port 0xc000-0xc0ff mem 0xde000000-0xde0000ff irq 17 at device 1.0 on pci2 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: Ethernet address: 00:02:44:92:18:75 > pci2: at device 5.0 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0 > ata0: on atapci0 > ata1: on atapci0 > uhci0: port 0xd000-0xd01f irq 19 at device 31.2 on pci0 > uhci0: [GIANT-LOCKED] > 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 > pci0: at device 31.3 (no driver attached) > uhci1: port 0xd800-0xd81f irq 23 at device 31.4 on pci0 > uhci1: [GIANT-LOCKED] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > pcm0: port 0xdc00-0xdcff,0xe000-0xe03f irq 17 at device 31.5 on pci0 > pcm0: > acpi_tz0: on acpi0 > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model IntelliMouse, device ID 3 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ugen0: Canon iP2000, rev 1.10/1.05, addr 2 > Timecounter "TSC" frequency 1511681224 Hz quality 800 > Timecounters tick every 1.000 msec > ad0: 38204MB at ata0-master UDMA100 > acd0: CDROM at ata1-master PIO4 > Trying to mount root from ufs:/dev/ad0s1a > rl0: link state changed to UP > ------------------------------------------------------------------------ > > Now I loaded ulpt dinamically: > > ------------------------------------------------------------------------ > $ kldstat > Id Refs Address Size Name > 1 14 0xc0400000 33dc1c kernel > 2 1 0xc073e000 58554 acpi.ko > ................. > 12 1 0xc45f1000 3000 ulpt.ko > ------------------------------------------------------------------------ > > But no ulpt in /dev appeared: > > ------------------------------------------------------------------------ > $ ls /dev > acd0 bpsm0 kbd0 random ttyv9 > acpi console klog sndstat ttyva > ad0 consolectl kmem stderr ttyvb > ad0s1 ctty log stdin ttyvc > ad0s1a devctl mdctl stdout ttyvd > ad0s1b devstat mem sysmouse ttyve > ad0s1c dsp0.0 mixer0 ttyp0 ttyvf > ad0s1d dsp0.1 net ttyv0 ugen0 > ad0s1e dspW0.0 net1 ttyv1 ugen0.1 > ad0s1f dspW0.1 net2 ttyv2 ugen0.2 > agpgart dspr0.1 net3 ttyv3 urandom > apm fd network ttyv4 usb > ata fd0 null ttyv5 usb0 > atkbd0 fido pci ttyv6 usb1 > audio0.0 geom.ctl psm0 ttyv7 xpt0 > audio0.1 io ptyp0 ttyv8 zero > ------------------------------------------------------------------------ > > What is wrong and how will I print? > > Elisej Babenko Elisej, I think this page may help: -Garrett