From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 01:53:30 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A44671065675 for ; Sun, 29 Aug 2010 01:53:30 +0000 (UTC) (envelope-from osp@aloha.com) Received: from relay.pixi.com (relay.pixi.com [206.127.224.101]) by mx1.freebsd.org (Postfix) with ESMTP id E050A8FC0A for ; Sun, 29 Aug 2010 01:53:29 +0000 (UTC) Received: from smtpauth.pixi.com (smtpauth.pixi.com [206.127.224.131]) by relay.pixi.com (8.13.8+Sun/8.13.6) with ESMTP id o7T1IR2x022556; Sat, 28 Aug 2010 15:18:27 -1000 (HST) Received: from localhost (m3b0436d0.tmodns.net [208.54.4.59]) (user=osp@aloha.com mech=PLAIN) by smtpauth.pixi.com (8.13.8/8.13.8) with ESMTP id o7T1IMlt022533; Sat, 28 Aug 2010 15:18:24 -1000 (HST) From: Gary Dunn Date: Sat, 28 Aug 2010 15:18:10 -1000 To: perryh@pluto.rain.com, kc5vdj.freebsd@gmail.com Message-ID: <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> Content-Type: multipart/mixed; boundary="----8MC295B672Y00G3Q0OGE65DODOQJOW" MIME-Version: 1.0 Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 01:53:30 -0000 ------8MC295B672Y00G3Q0OGE65DODOQJOW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 V2h5IG5vdCBqdXN0IGRvIHRoZSBhc3NpZ25tZW50PyBTYXZlIG1lbW9yeT8KCnBlcnJ5aEBwbHV0 by5yYWluLmNvbSB3cm90ZToKCj5KaW0gQnJ5YW50IDxrYzV2ZGouZnJlZWJzZEBnbWFpbC5jb20+ IHdyb3RlOg0KPg0KPj4gd2hhdCBraW5kIG9mIGlkaW90IGRlZmluZXMgYSBjb25zdGFudCBhc3Np Z25tZW50IGZvciBhIDMyayBidWZmZXIgYXMgYSANCj4+IDE1IGJpdCBsZWZ0IHNoaWZ0IG9mIDE/ DQo+Pg0KPj4gY2xldmVyLCB5ZXMuICBidXQgaW4gcHJvZHVjdGlvbiwgc3R1cGlkLg0KPj4NCj4+ IGEgY29uc3RhbnQgc2hvdWxkIGJlIGp1c3QgdGhhdCwgYSBjb25zdGFudCwgYW5kIHRodXMgcmVx dWlyZSBubyANCj4+IGNvbXB1dGF0aW9uIGF0IHJ1bnRpbWUuDQo+DQo+RXIsIGRpZCB5b3UgYm90 aGVyIHRvIGxvb2sgYXQgdGhlIGdlbmVyYXRlZCBjb2RlIGJlZm9yZSBzcG91dGluZyBvZmY/DQo+ TW9zdCBjb21waWxlcnMsIGV2ZW4gYXMgZmFyIGJhY2sgYXMgSyZSIDFzdCBlZGl0aW9uLCB3aWxs IGNvbXB1dGUNCj5jb25zdGFudCBleHByZXNzaW9ucyBsaWtlIHRoYXQgYXQgY29tcGlsZSB0aW1l Lg0KPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+ZnJl ZWJzZC11c2JAZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0DQo+aHR0cDovL2xpc3RzLmZyZWVic2Qu b3JnL21haWxtYW4vbGlzdGluZm8vZnJlZWJzZC11c2INCj5UbyB1bnN1YnNjcmliZSwgc2VuZCBh bnkgbWFpbCB0byAiZnJlZWJzZC11c2ItdW5zdWJzY3JpYmVAZnJlZWJzZC5vcmciDQo+DQo= ------8MC295B672Y00G3Q0OGE65DODOQJOW-- From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 09:33:32 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E9C610656A7 for ; Sun, 29 Aug 2010 09:33:32 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter68.ihug.co.nz (mailfilter68.ihug.co.nz [203.109.136.68]) by mx1.freebsd.org (Postfix) with ESMTP id EB86D8FC08 for ; Sun, 29 Aug 2010 09:33:31 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGbGeUx2XRG0/2dsb2JhbACgSXK3RoU3BIoJhxM X-IronPort-AV: E=Sophos;i="4.56,286,1280664000"; d="scan'208";a="292310530" Received: from 118-93-17-180.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.93.17.180]) by cust.filter4.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Aug 2010 21:33:29 +1200 Received: from localhost ([::1] helo=spandex.luckie.org.nz) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OpeGX-000Non-1W; Sun, 29 Aug 2010 21:33:29 +1200 Message-ID: <4C7A2968.3040503@luckie.org.nz> Date: Sun, 29 Aug 2010 21:33:28 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100814 Thunderbird/3.1.2 MIME-Version: 1.0 To: Mike Tancsa References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> <201008282322.o7SNME6T077721@lava.sentex.ca> In-Reply-To: <201008282322.o7SNME6T077721@lava.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 09:33:32 -0000 On 08/29/10 11:22, Mike Tancsa wrote: > At 07:49 AM 8/28/2010, Matthew Luckie wrote: > ugen6.2: at usbus6 >> umass0: > 2.00/0.00, addr 2> on usbus6 >> cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 >> cd1: Removable CD-ROM SCSI-2 device >> cd1: 40.000MB/s transfers >> cd1: cd present [31484 x 2048 byte records] >> >> Sadly no /dev/cuaU* entries. After the set_config, I have new /dev >> entries for cd1, iso9660, pass1, and of course ugen6.2. > > What if you do a > camcontrol eject pass0 (or pass1 if its 1) > > I have also found the odd ZTE stick where post power up, I need to do a > reset for some odd reason. Perhaps a firmware issue with some ZTE sticks > ? not sure > > usbconfig -d 6.2 reset > or > usbconfig -d 6.2 power_off > usbconfig -d 6.2 power_on Yeah, that worked. I went with cdcontrol -f cd1 eject but your camcontrol command worked fine too. Now I'm battling with my provider who does not want to offer me an IP address during IPCP :( http://www.geekzone.co.nz/forums.asp?forumid=40&topicid=67161 It seems to be an issue others have struck with other providers, but I think I need to tweak my ppp.conf somehow. http://old.nabble.com/Australian-3G-ppp.conf-td29135444.html Thanks for your help, Matthew From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 11:45:12 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24E2B10656A9 for ; Sun, 29 Aug 2010 11:45:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 96EF28FC18 for ; Sun, 29 Aug 2010 11:45:11 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=BW_2DX0wYV1gsNYgw5cA:9 a=T-_-523De2l72ptrHQAA:7 a=dHwqL7ECCRxi9gGEw1WRNht_Vg4A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13521118; Sun, 29 Aug 2010 13:45:00 +0200 From: Hans Petter Selasky To: Matthew Luckie Date: Sun, 29 Aug 2010 13:41:11 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> In-Reply-To: <4C78F7D7.7010507@luckie.org.nz> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008291341.11379.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 11:45:12 -0000 On Saturday 28 August 2010 13:49:43 Matthew Luckie wrote: > On 08/28/10 19:50, Hans Petter Selasky wrote: > > On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: > >> Hi > >> > >> I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd > >> 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick > >> bought in New Zealand. > >> > >> With FreeBSD 8.0 it prints this when I insert the stick: > >> > >> usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS > >> ugen6.2: at usbus6 > >> ugen6.2: at usbus6 (disconnected) > >> ugen6.2: at usbus6 > >> u3g0: >> 2.00/0.00, addr 2> on usbus6 > >> u3g0: Found 5 ports. > >> umass0: >> 2.00/0.00, addr 2> on usbus6 > >> umass0: SCSI over Bulk-Only; quirks = 0x0000 > >> umass0:2:0:-1: Attached to scbus2 > >> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > >> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > >> (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > >> (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > >> (probe0:umass-sim0:0:0:0): Medium not present > >> (probe0:umass-sim0:0:0:0): Unretryable error > >> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > >> da0: Removable Direct Access SCSI-2 device > >> da0: 40.000MB/s transfers > >> da0: Attempt to query device size failed: NOT READY, Medium not present > >> > >> [mjl@mylar mjl]$ sudo usbconfig -u 6 dump_info > >> ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH > >> (480Mbps) pwr=ON > >> > >> ugen6.2: at usbus6, cfg=0 > >> md=HOST spd=HIGH (480Mbps) pwr=ON > >> > >> On FreeBSD 8.1 it prints this: > >> > >> ugen6.2: at usbus6 > >> > >> (and nothing else) > >> > >> [mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc > >> ugen6.2: at usbus6, cfg=255 > >> md=HOST spd=HIGH (480Mbps) pwr=ON > >> > >> bLength = 0x0012 > >> bDescriptorType = 0x0001 > >> bcdUSB = 0x0200 > >> bDeviceClass = 0x0000 > >> bDeviceSubClass = 0x0000 > >> bDeviceProtocol = 0x0000 > >> bMaxPacketSize0 = 0x0040 > >> idVendor = 0x19d2 > >> idProduct = 0x2000 > >> bcdDevice = 0x0000 > >> iManufacturer = 0x0002 > >> iProduct = 0x0001 > >> iSerialNumber = 0x0003 > >> bNumConfigurations = 0x0001 > > > > Have you loaded the u3g driver before plugging the device. Also try: > Yes, I have. > > [mjl@mylar mjl]$ sudo kldload /boot/kernel/u3g.ko > kldload: can't load /boot/kernel/u3g.ko: File exists > > module_register: module uhub/u3g already exists! > Module uhub/u3g failed to register: 17 > > > usbconfig -d 6.2 set_config 0 > > ugen6.2: at usbus6 > umass0: 2.00/0.00, addr 2> on usbus6 > cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 > cd1: Removable CD-ROM SCSI-2 device > cd1: 40.000MB/s transfers > cd1: cd present [31484 x 2048 byte records] > > Sadly no /dev/cuaU* entries. After the set_config, I have new /dev > entries for cd1, iso9660, pass1, and of course ugen6.2. > > [mjl@mylar ~]$ sudo usbconfig -d 6.2 dump_device_desc > ugen6.2: at usbus6, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x19d2 > idProduct = 0x2000 > bcdDevice = 0x0000 > iManufacturer = 0x0002 > iProduct = 0x0001 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 Hi, Possibly we need to add some code to check when the autoinstall system is ready for receiving the command. What happens if you try to add a delay before executing the eject command: --- src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000 +++ src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000 @@ -588,6 +588,8 @@ if (sc == NULL) return (USB_ERR_INVAL); + pause("WAIT", hz); + err = 0; switch (method) { case MSC_EJECT_STOPUNIT: --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 12:47:24 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1534110656AA for ; Sun, 29 Aug 2010 12:47:24 +0000 (UTC) (envelope-from scott+lists.freebsd@fishballoon.org) Received: from queueout02-winn.ispmail.ntl.com (queueout02-winn.ispmail.ntl.com [81.103.221.56]) by mx1.freebsd.org (Postfix) with ESMTP id 964F28FC16 for ; Sun, 29 Aug 2010 12:47:23 +0000 (UTC) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100829120800.MWOC3266.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Sun, 29 Aug 2010 13:08:00 +0100 Received: from llama.fishballoon.org ([86.26.7.178]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20100829120800.VAYM22376.aamtaout04-winn.ispmail.ntl.com@llama.fishballoon.org> for ; Sun, 29 Aug 2010 13:08:00 +0100 Received: from phasmid.fishballoon.org ([192.168.0.195]:34444 helo=phasmid) by llama.fishballoon.org with esmtp (Exim 4.70 (FreeBSD)) (envelope-from ) id 1OpgkD-000Dlh-CA for freebsd-usb@freebsd.org; Sun, 29 Aug 2010 13:12:24 +0100 Received: by phasmid (Postfix, from userid 1000) id 3F0451300F9B; Sun, 29 Aug 2010 13:07:19 +0100 (BST) From: Scott Mitchell To: freebsd-usb@freebsd.org Date: Sun, 29 Aug 2010 13:07:18 +0100 User-Agent: KMail/1.13.2 (Linux/2.6.32-24-generic; KDE/4.4.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201008291307.19398.scott+lists.freebsd@fishballoon.org> X-Spam-Status: -1.4 (-) X-Cloudmark-Analysis: v=1.1 cv=3ENABmdyEd/Fm7fR7+mZIuMDn6+IErAeEhlfWBImZFk= c=1 sm=0 a=UZjcAyRHG6MA:10 a=kj9zAlcOel0A:10 a=JheA-8TE16DzBPfDX_wA:9 a=I3IOqQPiwxVSzMFMlrAA:7 a=gF67FRqDW-zTqtfi0QKQbG5LQWkA:4 a=CjuIK1q_8ugA:10 a=WTVh1g1wGGsCIwrC:21 a=wdAZqf19TsuEtN6d:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Can't attach EHCI devices in VirtualBox guest X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 12:47:24 -0000 Hi all, Having some problems getting any EHCI devices to attach to an 8.1/amd64 machine running as a VirtualBox guest. This is VirtualBox 3.2.8 "PUEL" edition (i.e. *not* the open-source version) running on an Ubuntu 10.04 host, also amd64. I have these four devices plugged in and the VM configured to claim them: - 128MB no-brand flash drive, USB1 - 2GB no-brand flash drive, USB2 - 300GB Seagate hard disk, USB2 - 1.5TB WD hard disk, USB2 Full log is below (dmesg_bad.boot) but essentially the USB1 device attaches fine while all the USB2 devices fail with an error of the form: uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 None of the USB2 devices show up in "usbconfig list". If I disable the VirtualBox EHCI controller, all four devices attach as USB1 (see dmesg_good.boot below) The same four devices work fine on: - Ubuntu amd64 10.04 booted into the same VirtualBox VM from a live CD - 8.1 amd64 installed as a VMWare Server 2.0.2 guest on the same Ubuntu host - Directly on the Ubuntu host - On real hardware running FreeBSD i386 6.x and 7.x (I don't have anything real running 8.x right now) No idea if this is a VirtualBox or FreeBSD problem (although I'd guess a combination of the two) or how to go about fixing it, but happy to try any experiments. I'm not set up to build -CURRENT just now but can do that if needed. Likewise I can fire up other versions of FreeBSD under either VM environment if necessary. I have not tried setting any quirks for any of the devices, partly because I don't know what to try but mostly because this wasn't necessary in any other environment where these devices do work. This isn't a showstopper for me as I can keep using VMWare, but I have other issues with that and I would *like* to eventually move over to VirtualBox - so any suggestions would be much appreciated. Many thanks, Scott ===== dmesg_bad.boot ===== 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.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2997.06-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0x783fbff Features2=0x209 AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 1073676288 (1023 MB) avail memory = 1018789888 (971 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] vgapci0: mem 0xe0000000-0xe0ffffff irq 18 at device 2.0 on pci0 em0: port 0xd010-0xd017 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0 em0: [FILTER] em0: Ethernet address: 08:00:27:b1:fe:25 pci0: at device 4.0 (no driver attached) ohci0: mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 pci0: at device 7.0 (no driver attached) ehci0: mem 0xf0805000-0xf0805fff irq 19 at device 11.0 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci0 acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 orm0: at iomem 0xc0000-0xc8fff,0xe2000-0xe2fff 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 atrtc0: at port 0x70 irq 8 on isa0 ppc0: cannot reserve I/O port range Timecounter "TSC" frequency 2997060234 Hz quality 800 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ad0: 20480MB at ata0-master UDMA33 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 acd0: DVDROM at ata1-master UDMA33 Root mount waiting for: usbus1 usbus0 uhub0: 8 ports with 8 removable, self powered Root mount waiting for: usbus1 usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0: Get Max Lun not supported (USB_ERR_SHORT_XFER) Root mount waiting for: usbus1 usbus0 umass0:0:0:-1: Attached to scbus0 Root mount waiting for: usbus1 uhub1: 8 ports with 8 removable, self powered da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 125MB (256000 512 byte sectors: 64H 32S/T 125C) GEOM: da0: partition 1 does not end on a track boundary. Root mount waiting for: usbus1 uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 Trying to mount root from ufs:/dev/ad0s1a uhub_reattach_port: port 2 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 2 ===== dmesg_good.boot ===== 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.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2994.27-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Family = 6 Model = 17 Stepping = 6 Features=0x783fbff Features2=0x209 AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 1073676288 (1023 MB) avail memory = 1018789888 (971 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] vgapci0: mem 0xe0000000-0xe0ffffff irq 18 at device 2.0 on pci0 em0: port 0xd010-0xd017 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0 em0: [FILTER] em0: Ethernet address: 08:00:27:b1:fe:25 pci0: at device 4.0 (no driver attached) ohci0: mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 pci0: at device 7.0 (no driver attached) acpi_acad0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 orm0: at iomem 0xc0000-0xc8fff,0xe2000-0xe2fff 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 atrtc0: at port 0x70 irq 8 on isa0 ppc0: cannot reserve I/O port range Timecounter "TSC" frequency 2994272198 Hz quality 800 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 ad0: 20480MB at ata0-master UDMA33 ugen0.1: at usbus0 uhub0: on usbus0 acd0: DVDROM at ata1-master UDMA33 Root mount waiting for: usbus0 uhub0: 8 ports with 8 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0: Get Max Lun not supported (USB_ERR_SHORT_XFER) Root mount waiting for: usbus0 umass0:0:0:-1: Attached to scbus0 Root mount waiting for: usbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 125MB (256000 512 byte sectors: 64H 32S/T 125C) ugen0.3: at usbus0 umass1: on usbus0 umass1: SCSI over Bulk-Only; quirks = 0x0000 GEOM: da0: partition 1 does not end on a track boundary. umass1:1:1:-1: Attached to scbus1 da1 at umass-sim1 bus 1 scbus1 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 1.000MB/s transfers da1: 1935MB (3963904 512 byte sectors: 255H 63S/T 246C) GEOM: da1: partition 1 does not start on a track boundary. GEOM: da1: partition 1 does not end on a track boundary. ugen0.4: at usbus0 umass2: on usbus0 umass2: SCSI over Bulk-Only; quirks = 0x0000 umass2:2:2:-1: Attached to scbus2 da2 at umass-sim2 bus 2 scbus2 target 0 lun 0 da2: Fixed Direct Access SCSI-0 device da2: 1.000MB/s transfers da2: 286168MB (586072368 512 byte sectors: 255H 63S/T 36481C) ugen0.5: at usbus0 umass3: on usbus0 umass3: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus0 umass3:3:3:-1: Attached to scbus3 Trying to mount root from ufs:/dev/ad0s1a da3 at umass-sim3 bus 3 scbus3 target 0 lun 0 da3: Fixed Direct Access SCSI-4 device da3: 1.000MB/s transfers da3: 1430799MB (2930277168 512 byte sectors: 255H 63S/T 182401C) ===== usbconfig_bad.out ===== ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ===== usbconfig_good.out ===== ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.5: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 12:48:08 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 314E510656AC; Sun, 29 Aug 2010 12:48:08 +0000 (UTC) Date: Sun, 29 Aug 2010 12:48:08 +0000 From: Alexander Best To: Hans Petter Selasky Message-ID: <20100829124808.GA51033@freebsd.org> References: <20100826215028.GA80160@freebsd.org> <201008270904.16009.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008270904.16009.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: problem with mobile phone X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 12:48:08 -0000 On Fri Aug 27 10, Hans Petter Selasky wrote: > On Thursday 26 August 2010 23:50:28 Alexander Best wrote: > > hi there, > > > > when i connect my mobile phone to a recent HEAD (amd64; r211393) i get the > > following: > > > > ugen3.3: at usbus3 > > umass0: on usbus3 > > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > > (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready > > to ready change, medium may have changed) da0 at umass-sim0 bus 0 scbus9 > > target 0 lun 0 > > da0: Removable Direct Access SCSI-0 device > > da0: 40.000MB/s transfers > > da0: 3777MB (7736320 512 byte sectors: 255H 63S/T 481C) > > > > when i try to read stuff from the phone, it resets and i get this: > > > > ugen3.3: at usbus3 (disconnected) > > umass0: at uhub8, port 3, addr 3 (disconnected) > > (da0:umass-sim0:0:0:0): AutoSense failed > > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi > > status == 0x0 (da0:umass-sim0:0:0:0): lost device > > (da0:umass-sim0:0:0:0): removing device entry > > > > it both happens if i mount it and read files or if i directly read > > something from the /dev/da0 device using `dd`. > > > > interestingly it always crashes after the same ammount of data read: > > > > dd: /dev/da0: Input/output error > > 4+0 records in > > 4+0 records out > > 4194304 bytes transferred in 3.333149 secs (1258361 bytes/sec) > > > > after a few retries the usb port i was using becomes unusable and nothing > > is being detected any longer. > > > > i'm pretty sure this didn't happen a few weeks ago, but now it does. > > > > Hi, > > Have you loaded the usb_quirk.ko ? yes > > Try adding a mass storage quirk for this mass storage device, for test unit > ready and synchronize cache. ok thanks. i'll try that and see if it helps. :) > > Else look for changes in SCSI area. > > --HPS -- a13x From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 20:05:36 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87488106566B for ; Sun, 29 Aug 2010 20:05:36 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter6.ihug.co.nz (mailfilter6.ihug.co.nz [203.109.136.6]) by mx1.freebsd.org (Postfix) with ESMTP id 302958FC25 for ; Sun, 29 Aug 2010 20:05:35 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAA5aekx2XQvW/2dsb2JhbACgSHK5NoU3BIoJhxM X-IronPort-AV: E=Sophos;i="4.56,288,1280664000"; d="scan'208";a="12664080" Received: from 118-93-11-214.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.93.11.214]) by cust.filter6.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Aug 2010 08:05:33 +1200 Received: from mylar.luckie.org.nz ([192.168.1.24]) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Opo8C-0000W2-F9; Mon, 30 Aug 2010 08:05:32 +1200 Message-ID: <4C7ABD8C.90209@luckie.org.nz> Date: Mon, 30 Aug 2010 08:05:32 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100814 Thunderbird/3.1.2 MIME-Version: 1.0 To: Hans Petter Selasky References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> <201008291341.11379.hselasky@c2i.net> In-Reply-To: <201008291341.11379.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 20:05:36 -0000 > Hi, > > Possibly we need to add some code to check when the autoinstall system is > ready for receiving the command. What happens if you try to add a delay before > executing the eject command: > > --- src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000 > +++ src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.000000000 0000 > @@ -588,6 +588,8 @@ > if (sc == NULL) > return (USB_ERR_INVAL); > > + pause("WAIT", hz); > + > err = 0; > switch (method) { > case MSC_EJECT_STOPUNIT: this didn't alter the original behaviour. btw, its a K3565-Z, and i found out what device this looks like when the config has been set to zero and the cdrom ejected: [mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x0063 bcdDevice = 0x0000 iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 From owner-freebsd-usb@FreeBSD.ORG Sun Aug 29 20:14:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73F9F10656B0 for ; Sun, 29 Aug 2010 20:14:59 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 051498FC17 for ; Sun, 29 Aug 2010 20:14:58 +0000 (UTC) Received: by wyb33 with SMTP id 33so6974811wyb.13 for ; Sun, 29 Aug 2010 13:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:date :user-agent:mime-version:to:subject:content-type :content-transfer-encoding:message-id; bh=hzScaxS9cbBxTNPORH/JOR4hnuGl/3UA/pEcpS7PoJg=; b=wrCFuff3F5kCCD0RF1Tq9rOA1Ib7b4KPTWMqDoxxPoeBqfVByZkXHRpoMRNrWGD4Ye 96NZvmIG4h2sZDDvp1jrH/kqQ4w1FGgwhpEZjyD5qegeLfI0HJddtCNJozRcmGvOKLP3 tGNGhWQ0TVKPHCozaaCmhi9gD6ml9qvBtiamU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:date:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:message-id; b=IzX8g+jX/ewZ4C1qJjmhoyB+muJyRxl5mYDKK6xUvx9sq5bnAlBN0M41RGREUmN+XP UkO0PrFekz9FhDsqsfF8vgb7QuOFeiEHI5BPGUKjUFiKYB5oPxfl1SOKIrf6sujYV1Wr Gl8einXuX0Xg/y6perLOD4muOsnRZ5i3LY+gA= Received: by 10.227.127.82 with SMTP id f18mr3666554wbs.185.1283111215022; Sun, 29 Aug 2010 12:46:55 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id e31sm5617546wbe.23.2010.08.29.12.46.53 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 12:46:54 -0700 (PDT) From: David Naylor Organization: Private Date: Sun, 29 Aug 2010 21:47:05 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: multipart/signed; boundary="nextPart2369740.OCcAYKLZKM"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201008292147.09750.naylor.b.david@gmail.com> Subject: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 20:14:59 -0000 --nextPart2369740.OCcAYKLZKM Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to get a USB webcam to work (Pixart Imaging, see=20 http://hardware4linux.info/component/12311/). =20 I attach the webcam and: # dmesg ugen0.2: at usbus0 I run webcamd (I've tried both from ports and svn): # ./webcamd Attached ugen0.2[0] to cuse unit 0 Creating /dev/video0 I try using pwcview without success: # pwcview Webcam set to: 320x240 (sif) at 5 fps libv4l2: error got 10 consecutive frame decode errors, last error: v4l- convert: error unknown pac207 row header: 0xed90 Error reading from webcam: Resource temporarily unavailable Skype is also unable to use the webcam (green image with corruption in top= =20 half of the image). According to the webpage referenced above the webcam=20 should be usable. =20 Please help, David P.S. I'm not on list --nextPart2369740.OCcAYKLZKM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx6uT0ACgkQUaaFgP9pFrIHgACfaiVfyQrVCBfcqNmnSPaSQkw2 znkAniV0ilzCb8hoY1neb7feibHUWm8R =/tIY -----END PGP SIGNATURE----- --nextPart2369740.OCcAYKLZKM-- From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 02:02:36 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 864661065698 for ; Mon, 30 Aug 2010 02:02:36 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 46CFB8FC14 for ; Mon, 30 Aug 2010 02:02:36 +0000 (UTC) Received: by iwn36 with SMTP id 36so5086195iwn.13 for ; Sun, 29 Aug 2010 19:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=kbkh/vS9M1ZiruT4nX+r64MRowVv5muqyFbRxhYeFQo=; b=iFKourNC9dsIrIGyJKPkeGFvpMot5Qs5cI6qGN313FWevz3mq1EFYd2aKacXy04+ah yJ6glynyUSFzF/b+GlCcI7Jai1ySP/516q5yPJ4Jq62NABWtNcxaXMpYpLxPRuhc6ct8 8pTTiSB/FysBYrACmnaftTOWKc2iUuugVGBXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=dUj7Ae9epL1Rj9oZKojhoRa5memoSt6tgHcYyrrnfXLu6XTahsfF+He4Nb/HW2wL8R LI2SPoJGVXUKjPqRwFsOUz6geNC/joKnEuMbU51AS/REx2HlZ5iZOkao1BBOYiGD48w9 cXANHFZrop9swCphI12NpRJ+jjYT5clNHfdcU= Received: by 10.231.19.6 with SMTP id y6mr4512865iba.16.1283133755315; Sun, 29 Aug 2010 19:02:35 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id r3sm6850628ibk.19.2010.08.29.19.02.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 19:02:34 -0700 (PDT) Message-ID: <4C7B1139.4050106@gmail.com> Date: Sun, 29 Aug 2010 21:02:33 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> <4C78B0F4.4020002@gmail.com> <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> In-Reply-To: <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 02:02:36 -0000 ummmm.. you were saying??? 8:58:44pm orb(19): cat bs3.c #include int main(void) { int toshiftornottoshift = 0x8000; printf("%d\n", toshiftornottoshift); return(0); } 8:58:48pm orb(20): cc -S -O2 -o bs3.s bs3.c 8:58:53pm orb(21): cat bs3.s .file "bs3.c" .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "%d\n" .text .p2align 4,,15 .globl main .type main, @function main: .LFB3: subq $8, %rsp .LCFI0: /* * this doesn't look like the compiler generates a shift to me. */ movl $32768, %esi movl $.LC0, %edi xorl %eax, %eax call printf xorl %eax, %eax addq $8, %rsp ret .LFE3: .size main, .-main .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0x0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE1: .long .LEFDE1-.LASFDE1 .LASFDE1: .long .LASFDE1-.Lframe1 .long .LFB3 .long .LFE3-.LFB3 .uleb128 0x0 .byte 0x4 .long .LCFI0-.LFB3 .byte 0xe .uleb128 0x10 .align 8 .LEFDE1: .ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]" perryh@pluto.rain.com wrote: > Jim Bryant wrote: > > >> what kind of idiot defines a constant assignment for a 32k buffer as a >> 15 bit left shift of 1? >> >> clever, yes. but in production, stupid. >> >> a constant should be just that, a constant, and thus require no >> computation at runtime. >> > > Er, did you bother to look at the generated code before spouting off? > Most compilers, even as far back as K&R 1st edition, will compute > constant expressions like that at compile time. > > From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 02:20:10 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7A4A10656E1 for ; Mon, 30 Aug 2010 02:20:10 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 876AA8FC15 for ; Mon, 30 Aug 2010 02:20:10 +0000 (UTC) Received: by iwn36 with SMTP id 36so5099564iwn.13 for ; Sun, 29 Aug 2010 19:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=bhTn0lrOq6K9nUJHRWtvjD2mNralg6o+aN6VJj3czHM=; b=YmIU2IyhpuOfhqbuWdepesTmFSrxPnpXWXWoPjKhzo+soPTezQAVQQjinQhzemMeEa 2bCJXB9qwQQD9/m5j1IB4MjoiDT673bACzO+F5JQLdZlwSm4u3yqT+k/AlAjW9LgJzIy 397MbBEqxv2TZh0f8p55nWGc6+QzV7DpgdOVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=b2/fjnzZGnHmUAASUG85cy5+Q+RCF6Mq0Sr3DwPHtSqUKelvJ3IIpj737e9IgUxuX1 rkNi0fnd2GO+LkCBHiHtIUmvdlsmSAk7KhWCXT7xpO9+o3GCXnYCO1WpywW4W3emkBtf qHX8kKqA10Das7KZdroFIMRlNUvJHiS2p542A= Received: by 10.231.33.67 with SMTP id g3mr4512987ibd.31.1283134738445; Sun, 29 Aug 2010 19:18:58 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id z6sm5099528ibc.6.2010.08.29.19.18.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 19:18:58 -0700 (PDT) Message-ID: <4C7B1510.1000601@gmail.com> Date: Sun, 29 Aug 2010 21:18:56 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> <4C78B0F4.4020002@gmail.com> <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> <4C7B1139.4050106@gmail.com> In-Reply-To: <4C7B1139.4050106@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 02:20:10 -0000 well, i can't speak for K&R 1978, as i can't currently find my copy, but, for a quick brush up, you might want to read pages 80 and 81 from K&R 2nd Ed. 1988. your idea that the preprocessor will evaluate #define thirtytwok (1<<15) into 0x8000 at compile time is totally incorrect, and in fact wouldn't be in compliance with standards. i have iso and fips handy, care for quotes? microsoft used to do compile-time eval of preprocessor statements instead of substitution, but that was implementation-specific and non-standard. From K&R, 2nd Ed. pp80-81 (1988): 4.11.2 Macro Substitution A definition has the form #define name replacement text It calls for a macro substitution of the simplest kind - subsequent occurrences of the token name will be replaced by the replacement text. The name in a #define has the same form as a variable name; the replacement text is arbitrary. Normally the replacement text is the rest of the line, but a long definition may be continued onto several lines by placing a \ at the end of each line to be continued. The scope of a name defined with #define is from its point of definition to the end of the source file being compiled. A definition may use previous definitions. Substitutions are made only for tokens, and do not take place within quoted strings. For example, if YES is a defined name, there would be no substitution in printf("YES") or in YESMAN. Any name may be defined with any replacement text. For example #define forever for (;;) /* infinite loop */ defines a new word, forever, for an infinite loop. It is also possible to define macros with arguments, so the replacement text can be different for different calls of the macro. As an example, define a macro called max: #define max(A, B) ((A) > (B) ? (A) : (B)) Although it looks like a function call, a use of max expands into in-line code. Each occurrence of a formal parameter (here A or B) will be replaced by the corresponding actual argument. Thus the line x = max(p+q, r+s); will be replaced by the line x = ((p+q) > (r+s) ? (p+q) : (r+s)); So long as the arguments are treated consistently, this macro will serve for any data type; there is no need for different kinds of max for different data types, as there would be with functions. 81 If you examine the expansion of max, you will notice some pitfalls. The expressions are evaluated twice; this is bad if they involve side effects like increment operators or input and output. For instance max(i++, j++) /* WRONG */ will increment the larger twice. Some care also has to be taken with parentheses to make sure the order of evaluation is preserved; consider what happens when the macro #define square(x) x * x /* WRONG */ is invoked as square(z+1). Nonetheless, macros are valuable. One practical example comes from , in which getchar and putchar are often defined as macros to avoid the run-time overhead of a function call per character processed. The functions in are also usually implemented as macros. Names may be undefined with #undef, usually to ensure that a routine is really a function, not a macro: #undef getchar int getchar(void) { ... } Formal parameters are not replaced within quoted strings. If, however, a parameter name is preceded by a # in the replacement text, the combination will be expanded into a quoted string with the parameter replaced by the actual argument. This can be combined with string concatenation to make, for example, a debugging print macro: #define dprint(expr) printf(#expr " = %g\n", expr) When this is invoked, as in dprint(x/y) the macro is expanded into printf("x/y" " = &g\n", x/y); and the strings are concatenated, so the effect is printf("x/y = &g\n", x/y); Within the actual argument, each " is replaced by \" and each \ by \\, so the result is a legal string constant. The preprocessor operator ## provides a way to concatenate actual arguments during macro expansion. If a parameter in the replacement text is adjacent to a ##, the parameter is replaced by the actual argument, the ## and surrounding white space are removed, and the result is rescanned. For example, the macro paste concatenates its two arguments: #define paste(front, back) front ## back so paste(name, 1) creates the token name1. The rules for nested uses of ## are arcane; further details may be found in Appendix A. Exercise 4-14. Define a macro swap(t,x,y) that interchanges two arguments of type t. (Block structure will help.) Jim Bryant wrote: > ummmm.. you were saying??? > > 8:58:44pm orb(19): cat bs3.c > #include > > int main(void) > { > int toshiftornottoshift = 0x8000; > > printf("%d\n", toshiftornottoshift); > > return(0); > } > 8:58:48pm orb(20): cc -S -O2 -o bs3.s bs3.c > 8:58:53pm orb(21): cat bs3.s > .file "bs3.c" > .section .rodata.str1.1,"aMS",@progbits,1 > .LC0: > .string "%d\n" > .text > .p2align 4,,15 > .globl main > .type main, @function > main: > .LFB3: > subq $8, %rsp > .LCFI0: > /* > * this doesn't look like the compiler generates a shift to me. > */ > movl $32768, %esi > movl $.LC0, %edi > xorl %eax, %eax > call printf > xorl %eax, %eax > addq $8, %rsp > ret > .LFE3: > .size main, .-main > .section .eh_frame,"a",@progbits > .Lframe1: > .long .LECIE1-.LSCIE1 > .LSCIE1: > .long 0x0 > .byte 0x1 > .string "zR" > .uleb128 0x1 > .sleb128 -8 > .byte 0x10 > .uleb128 0x1 > .byte 0x3 > .byte 0xc > .uleb128 0x7 > .uleb128 0x8 > .byte 0x90 > .uleb128 0x1 > .align 8 > .LECIE1: > .LSFDE1: > .long .LEFDE1-.LASFDE1 > .LASFDE1: > .long .LASFDE1-.Lframe1 > .long .LFB3 > .long .LFE3-.LFB3 > .uleb128 0x0 > .byte 0x4 > .long .LCFI0-.LFB3 > .byte 0xe > .uleb128 0x10 > .align 8 > .LEFDE1: > .ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]" > > perryh@pluto.rain.com wrote: >> Jim Bryant wrote: >> >> >>> what kind of idiot defines a constant assignment for a 32k buffer as >>> a 15 bit left shift of 1? >>> >>> clever, yes. but in production, stupid. >>> >>> a constant should be just that, a constant, and thus require no >>> computation at runtime. >>> >> >> Er, did you bother to look at the generated code before spouting off? >> Most compilers, even as far back as K&R 1st edition, will compute >> constant expressions like that at compile time. >> >> > From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 02:26:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637081065674 for ; Mon, 30 Aug 2010 02:26:46 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 22B928FC14 for ; Mon, 30 Aug 2010 02:26:45 +0000 (UTC) Received: by iwn36 with SMTP id 36so5104446iwn.13 for ; Sun, 29 Aug 2010 19:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TtaExmJoLR6Dax8lSgEzeNgWRTwjTns6xK7y8sFE+J0=; b=B6ZzlWDyC63sobYDRDpA3bXXVmpj9q3VgxsvklLgRAncBnZLp0PHUlTI6IuJkLEnyG JYqDxZC5pu2emJIxxX+Cwa2zHlviHm4XRwOLQ/pDwwELz8uIDOAKmuUDcZEKs1d3E5uw Co5JRz5F7DXttJ8LusDYpr6pM37IV69pzGz3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=g0oqtDhmQXf95wuYkUrScrXfqtlmtgXpvBekd3yIKvuSuhLcvp4n5nv+egedq3FxqZ xjHmDlbrZJQsxVYAYxkETBnqWfgNNrKPzpuqggkPR2phGquKMp+4ol7eklc2CC4M2QTR jR14OBc4qyjQhhgo1+xZFEtOoNtusJJf3XMa8= Received: by 10.231.58.198 with SMTP id i6mr4602152ibh.43.1283135205183; Sun, 29 Aug 2010 19:26:45 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id e8sm6873396ibb.20.2010.08.29.19.26.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 19:26:44 -0700 (PDT) Message-ID: <4C7B16E3.8020808@gmail.com> Date: Sun, 29 Aug 2010 21:26:43 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> <4C78B0F4.4020002@gmail.com> <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> <4C7B1139.4050106@gmail.com> <4C7B1510.1000601@gmail.com> In-Reply-To: <4C7B1510.1000601@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 02:26:46 -0000 but then gnu does it's own thing too. my point stands though. any actual evaluation of thirtytwok into something OTHER THAN (1<<15) in the actual emitted code is IMPLEMENTATION-SPECIFIC. in the case if gnu, you do appear to be right though, in disregard to K&R. one could also argue that my return(0) is implementation-specific, as exit(0) would be proper by the numbers. my point still stands, that although it may be cute to have (1<<15) in the define, it is not good practice. 9:21:33pm orb(13): cat bs4.c #include #define thirtytwok (1<<15) int main(void) { int toshiftornottoshift = thirtytwok; printf("%d\n", toshiftornottoshift); return(0); } 9:21:39pm orb(14): cc -S -O2 -o bs4.s bs4.c 9:21:56pm orb(15): cat bs4.s .file "bs4.c" .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "%d\n" .text .p2align 4,,15 .globl main .type main, @function main: .LFB3: subq $8, %rsp .LCFI0: movl $32768, %esi movl $.LC0, %edi xorl %eax, %eax call printf xorl %eax, %eax addq $8, %rsp ret .LFE3: .size main, .-main .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0x0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE1: .long .LEFDE1-.LASFDE1 .LASFDE1: .long .LASFDE1-.Lframe1 .long .LFB3 .long .LFE3-.LFB3 .uleb128 0x0 .byte 0x4 .long .LCFI0-.LFB3 .byte 0xe .uleb128 0x10 .align 8 .LEFDE1: .ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]" 9:22:00pm orb(16): Jim Bryant wrote: > well, i can't speak for K&R 1978, as i can't currently find my copy, > but, for a quick brush up, you might want to read pages 80 and 81 from > K&R 2nd Ed. 1988. > > your idea that the preprocessor will evaluate > > #define thirtytwok (1<<15) > > into 0x8000 > > at compile time is totally incorrect, and in fact wouldn't be in > compliance with standards. i have iso and fips handy, care for quotes? > > microsoft used to do compile-time eval of preprocessor statements > instead of substitution, but that was implementation-specific and > non-standard. > > From K&R, 2nd Ed. pp80-81 (1988): > > 4.11.2 Macro Substitution > > A definition has the form > > #define name replacement text > > It calls for a macro substitution of the simplest kind - subsequent > occurrences of the token > name will be replaced by the replacement text. The name in a #define > has the same form as a > variable name; the replacement text is arbitrary. Normally the > replacement text is the rest of > the line, but a long definition may be continued onto several lines by > placing a \ at the end of > each line to be continued. The scope of a name defined with #define is > from its point of > definition to the end of the source file being compiled. A definition > may use previous > definitions. Substitutions are made only for tokens, and do not take > place within quoted > strings. For example, if YES is a defined name, there would be no > substitution in > printf("YES") or in YESMAN. > > Any name may be defined with any replacement text. For example > > #define forever for (;;) /* infinite loop */ > > defines a new word, forever, for an infinite loop. > > It is also possible to define macros with arguments, so the > replacement text can be different > for different calls of the macro. As an example, define a macro called > max: > > #define max(A, B) ((A) > (B) ? (A) : (B)) > > Although it looks like a function call, a use of max expands into > in-line code. Each occurrence > of a formal parameter (here A or B) will be replaced by the > corresponding actual argument. > > Thus the line > > x = max(p+q, r+s); > > will be replaced by the line > > x = ((p+q) > (r+s) ? (p+q) : (r+s)); > > So long as the arguments are treated consistently, this macro will > serve for any data type; > there is no need for different kinds of max for different data types, > as there would be with > functions. > > 81 > > If you examine the expansion of max, you will notice some pitfalls. > The expressions are > evaluated twice; this is bad if they involve side effects like > increment operators or input and > output. For instance > > max(i++, j++) /* WRONG */ > > will increment the larger twice. Some care also has to be taken with > parentheses to make sure > the order of evaluation is preserved; consider what happens when the > macro > > #define square(x) x * x /* WRONG */ > > is invoked as square(z+1). > > Nonetheless, macros are valuable. One practical example comes from > , in which > getchar and putchar are often defined as macros to avoid the run-time > overhead of a > function call per character processed. The functions in are > also usually > implemented as macros. > > Names may be undefined with #undef, usually to ensure that a routine > is really a function, not > a macro: > > #undef getchar > int getchar(void) { ... } > > Formal parameters are not replaced within quoted strings. If, however, > a parameter name is > preceded by a # in the replacement text, the combination will be > expanded into a quoted string > with the parameter replaced by the actual argument. This can be > combined with string > concatenation to make, for example, a debugging print macro: > > #define dprint(expr) printf(#expr " = %g\n", expr) > > When this is invoked, as in > > dprint(x/y) > > the macro is expanded into > > printf("x/y" " = &g\n", x/y); > > and the strings are concatenated, so the effect is > > printf("x/y = &g\n", x/y); > > Within the actual argument, each " is replaced by \" and each \ by \\, > so the result is a legal > string constant. > > The preprocessor operator ## provides a way to concatenate actual > arguments during macro > expansion. If a parameter in the replacement text is adjacent to a ##, > the parameter is replaced > by the actual argument, the ## and surrounding white space are > removed, and the result is rescanned. > > For example, the macro paste concatenates its two arguments: > > #define paste(front, back) front ## back > > so paste(name, 1) creates the token name1. > > The rules for nested uses of ## are arcane; further details may be > found in Appendix A. > Exercise 4-14. Define a macro swap(t,x,y) that interchanges two > arguments of type t. > (Block structure will help.) > > Jim Bryant wrote: >> ummmm.. you were saying??? >> >> 8:58:44pm orb(19): cat bs3.c >> #include >> >> int main(void) >> { >> int toshiftornottoshift = 0x8000; >> >> printf("%d\n", toshiftornottoshift); >> >> return(0); >> } >> 8:58:48pm orb(20): cc -S -O2 -o bs3.s bs3.c >> 8:58:53pm orb(21): cat bs3.s >> .file "bs3.c" >> .section .rodata.str1.1,"aMS",@progbits,1 >> .LC0: >> .string "%d\n" >> .text >> .p2align 4,,15 >> .globl main >> .type main, @function >> main: >> .LFB3: >> subq $8, %rsp >> .LCFI0: >> /* >> * this doesn't look like the compiler generates a shift to me. >> */ >> movl $32768, %esi >> movl $.LC0, %edi >> xorl %eax, %eax >> call printf >> xorl %eax, %eax >> addq $8, %rsp >> ret >> .LFE3: >> .size main, .-main >> .section .eh_frame,"a",@progbits >> .Lframe1: >> .long .LECIE1-.LSCIE1 >> .LSCIE1: >> .long 0x0 >> .byte 0x1 >> .string "zR" >> .uleb128 0x1 >> .sleb128 -8 >> .byte 0x10 >> .uleb128 0x1 >> .byte 0x3 >> .byte 0xc >> .uleb128 0x7 >> .uleb128 0x8 >> .byte 0x90 >> .uleb128 0x1 >> .align 8 >> .LECIE1: >> .LSFDE1: >> .long .LEFDE1-.LASFDE1 >> .LASFDE1: >> .long .LASFDE1-.Lframe1 >> .long .LFB3 >> .long .LFE3-.LFB3 >> .uleb128 0x0 >> .byte 0x4 >> .long .LCFI0-.LFB3 >> .byte 0xe >> .uleb128 0x10 >> .align 8 >> .LEFDE1: >> .ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]" >> >> perryh@pluto.rain.com wrote: >>> Jim Bryant wrote: >>> >>> >>>> what kind of idiot defines a constant assignment for a 32k buffer >>>> as a 15 bit left shift of 1? >>>> >>>> clever, yes. but in production, stupid. >>>> >>>> a constant should be just that, a constant, and thus require no >>>> computation at runtime. >>>> >>> >>> Er, did you bother to look at the generated code before spouting off? >>> Most compilers, even as far back as K&R 1st edition, will compute >>> constant expressions like that at compile time. >>> >>> >> > From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 06:37:33 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB9311065745 for ; Mon, 30 Aug 2010 06:37:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 3F69C8FC1B for ; Mon, 30 Aug 2010 06:37:31 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8nVFKzxAJNCZJh2yHDOpnep+nZeeqVU+af0AVP5CZ7Y= c=1 sm=1 a=Q9fys5e9bTEA:10 a=0YMnbcLntCkA:10 a=gg2W7PyvkLb8p4ie143lBA==:17 a=XrMAcKAMAAAA:8 a=N8fIGQcl_hfS0qZstrkA:9 a=gxwxaalALPE4NUXRS3gA:7 a=9Hw0WVnFuet_fzLcxtoandpQ90EA:4 a=PUjeQqilurYA:10 a=gg2W7PyvkLb8p4ie143lBA==:117 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 12815343; Mon, 30 Aug 2010 08:37:20 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 30 Aug 2010 08:33:30 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> In-Reply-To: <201008292147.09750.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008300833.30376.hselasky@c2i.net> Cc: David Naylor Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 06:37:33 -0000 Hi, Could you dump device descriptor and current configuration descriptor using usbconfig. I need the vendor ID and product ID at least to be able to debug this issue. --HPS On Sunday 29 August 2010 21:47:05 David Naylor wrote: > Hi, > > I'm trying to get a USB webcam to work (Pixart Imaging, see > http://hardware4linux.info/component/12311/). > > I attach the webcam and: > > # dmesg > ugen0.2: at usbus0 > > > I run webcamd (I've tried both from ports and svn): > > # ./webcamd > Attached ugen0.2[0] to cuse unit 0 > Creating /dev/video0 > > > I try using pwcview without success: > > # pwcview > Webcam set to: 320x240 (sif) at 5 fps > libv4l2: error got 10 consecutive frame decode errors, last error: v4l- > convert: error unknown pac207 row header: 0xed90 > > Error reading from webcam: Resource temporarily unavailable > > > Skype is also unable to use the webcam (green image with corruption in top > half of the image). According to the webpage referenced above the webcam > should be usable. > > Please help, > > David > > P.S. I'm not on list From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 06:42:26 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD7FA1065675 for ; Mon, 30 Aug 2010 06:42:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 385868FC16 for ; Mon, 30 Aug 2010 06:42:25 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=bqAX4Es/FymT96iuQFWdNJXS7SazJpmZM5WIJFHIREc= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=0YMnbcLntCkA:10 a=gg2W7PyvkLb8p4ie143lBA==:17 a=sCyJGdo-wVLveXGm7EwA:9 a=6VdAZXJQ8RV3iIU6Qn69aRqXt6AA:4 a=wPNLvfGTeEIA:10 a=gg2W7PyvkLb8p4ie143lBA==:117 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13681801; Mon, 30 Aug 2010 08:42:16 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 30 Aug 2010 08:38:25 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> <4C7B1139.4050106@gmail.com> <4C7B1510.1000601@gmail.com> In-Reply-To: <4C7B1510.1000601@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008300838.25970.hselasky@c2i.net> Cc: Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 06:42:26 -0000 On Monday 30 August 2010 04:18:56 Jim Bryant wrote: > well, i can't speak for K&R 1978, as i can't currently find my copy, > but, for a quick brush up, you might want to read pages 80 and 81 from > K&R 2nd Ed. 1988. > > your idea that the preprocessor will evaluate > > #define thirtytwok (1<<15) > For bit 31, you should consider adding a U, so that the values is not treated like a negative value. 1U << 31 --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 06:56:50 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD93F106564A for ; Mon, 30 Aug 2010 06:56:50 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 106258FC13 for ; Mon, 30 Aug 2010 06:56:49 +0000 (UTC) Received: by wwj40 with SMTP id 40so2011292wwj.1 for ; Sun, 29 Aug 2010 23:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=YcMnQRYTbEbnTOvvxvGQteRO//K64KVmp9nz9VsvRwc=; b=cjro3S2DiFMAtLhTyGJrGpaoaWeF2nlBhluEWILtG5nRKyKQ1olMnUjc7InGro/HjP zuUEVen6GFWcCql3OlqhQbp7wevEjNpJMiW2hL51fpaYYnd62uO6RjsFPGF3gVwcLQuo YGPNv/kSggFT0Fsk6qbdwq2LQczSUzQU/bwdc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=XJKIYeUWl1p6DzNvKqEhVIBcHrs7qpxh8ZOfP2+Ad5E7dVOuQ1awD6mSQKFotH6NdT y9R/cM9NHF0u7Gpx8hZy4x6++vuO0y1DtzbyHUW8PeD9B9sckmMuqxOzyK4QkBBoH6VG uA9gdtWJOLHtDFkkB64HDNmtxpkldKHVUsmCY= Received: by 10.216.210.206 with SMTP id u56mr4403630weo.50.1283151408053; Sun, 29 Aug 2010 23:56:48 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id p52sm4205320weq.44.2010.08.29.23.56.27 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Aug 2010 23:56:44 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Mon, 30 Aug 2010 08:56:36 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008300833.30376.hselasky@c2i.net> In-Reply-To: <201008300833.30376.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1696836.45rSV8ouAR"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201008300856.40160.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 06:56:50 -0000 --nextPart1696836.45rSV8ouAR Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > Hi, >=20 > Could you dump device descriptor and current configuration descriptor usi= ng > usbconfig. I need the vendor ID and product ID at least to be able to deb= ug > this issue. # usbconfig -d ugen0.2 dump_device_desc ugen0.2: at usbus0, cfg=3D0 md=3DHOST= =20 spd=3DFULL (12Mbps) pwr=3DON bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0110=20 bDeviceClass =3D 0x00ff=20 bDeviceSubClass =3D 0x00ff=20 bDeviceProtocol =3D 0x00ff=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x093a=20 idProduct =3D 0x2468=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 # usbconfig -d ugen0.2 dump_curr_config_desc ugen0.2: at usbus0, cfg=3D0 md=3DHOST= =20 spd=3DFULL (12Mbps) pwr=3DON Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x01d4=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x00fa=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 1 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0001=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0080=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 2 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0002=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0100=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 3 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0003=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0180=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 4 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0004=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0200=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 5 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0005=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0280=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 6 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0006=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0300=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 7 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0007=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0380=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 0 Alt 8 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0008=20 bNumEndpoints =3D 0x0006=20 bInterfaceClass =3D 0x00ff=20 bInterfaceSubClass =3D 0x00ff=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0083 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 3 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0004 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0002=20 bInterval =3D 0x0032=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 4 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0085 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x03ff=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 5 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0006 bmAttributes =3D 0x0001 wMaxPacketSize =3D 0x0000=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000 Is there anything else I can do to help? David =20 > On Sunday 29 August 2010 21:47:05 David Naylor wrote: > > Hi, > >=20 > > I'm trying to get a USB webcam to work (Pixart Imaging, see > > http://hardware4linux.info/component/12311/). > >=20 > > I attach the webcam and: > >=20 > > # dmesg > > ugen0.2: at usbus0 > >=20 > >=20 > > I run webcamd (I've tried both from ports and svn): > >=20 > > # ./webcamd > > Attached ugen0.2[0] to cuse unit 0 > > Creating /dev/video0 > >=20 > >=20 > > I try using pwcview without success: > >=20 > > # pwcview > > Webcam set to: 320x240 (sif) at 5 fps > > libv4l2: error got 10 consecutive frame decode errors, last error: v4l- > > convert: error unknown pac207 row header: 0xed90 > >=20 > > Error reading from webcam: Resource temporarily unavailable > >=20 > >=20 > > Skype is also unable to use the webcam (green image with corruption in > > top half of the image). According to the webpage referenced above the > > webcam should be usable. > >=20 > > Please help, > >=20 > > David > >=20 > > P.S. I'm not on list --nextPart1696836.45rSV8ouAR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx7VigACgkQUaaFgP9pFrIIhgCeIa5UNu2SHfUZPMZSxNyf46si ZuwAniq15FNZnQVCjmfyCG+g9XA8s8E4 =9w17 -----END PGP SIGNATURE----- --nextPart1696836.45rSV8ouAR-- From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 07:21:41 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF95410656AA for ; Mon, 30 Aug 2010 07:21:41 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id BA9FF8FC17 for ; Mon, 30 Aug 2010 07:21:41 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o7U7LefO029134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 30 Aug 2010 00:21:41 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o7U7LeV7029133; Mon, 30 Aug 2010 00:21:40 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA29066; Mon, 30 Aug 10 00:14:56 PDT Date: Mon, 30 Aug 2010 00:14:54 -0700 From: perryh@pluto.rain.com To: kc5vdj.freebsd@gmail.com Message-Id: <4c7b5a6e.QwnmSHqXsgp/7ogB%perryh@pluto.rain.com> References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> <4C78B0F4.4020002@gmail.com> <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> <4C7B1139.4050106@gmail.com> <4C7B1510.1000601@gmail.com> In-Reply-To: <4C7B1510.1000601@gmail.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 07:21:42 -0000 Jim Bryant wrote: > well, i can't speak for K&R 1978, as i can't currently find my copy, > but, for a quick brush up, you might want to read pages 80 and 81 > from K&R 2nd Ed. 1988. > > your idea that the preprocessor will evaluate > > #define thirtytwok (1<<15) > > into 0x8000 > > at compile time is totally incorrect, and in fact wouldn't be in > compliance with standards. i have iso and fips handy, care for > quotes? Who said anything about the preprocessor? The preprocessor is supposed to only do text substitutions, so you're right that _it_ doesn't (or at least, shouldn't) replace (1<<15) with 0x8000. The *compiler* does it. Look up "constant expressions". If you find a C compiler that generates a load and shift to evaluate (1<<15) at runtime, your next move should be to file a bug report with its maintainer -- unless you're dealing with a processor which can do the load and shift in less time or space than a direct load of 0x8000. And BTW, please don't top-post. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 09:14:13 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5165B106566B for ; Mon, 30 Aug 2010 09:14:13 +0000 (UTC) (envelope-from tuksgig@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 06B958FC1D for ; Mon, 30 Aug 2010 09:14:12 +0000 (UTC) Received: by vws7 with SMTP id 7so5653622vws.13 for ; Mon, 30 Aug 2010 02:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=hS4LcI2QE7axRSyvBGWbB5ASDNnLzBVSjpZeLwmJ2I8=; b=HCyDPq8O44i1bOR/9GMrDfL29YzfF7m4aK5p7JeXOlvZ5FweDktvgtt/ID1GBbVSFC E8S1ShJEJrgk123OakPTf58kWHh0S7MDpN0+pIASzSeXGyKA3NHmTq/GuxUkqQgILYBQ zUxhudXj28puSsIE1A9uQKtiIJvNfzpNd5+M8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Pc/qMxun1xrY80Rmzvse24xJ7kkcAOhgZQiiBFIiZHL2DAc9rv2969Wo2KriV7JqXy uVMga9ZWorQ9Vpbe7If8C72xVg6NPi5GHCoZnJVTJAkKesyPDZaZjrGSnYavjzyVU937 g3yiRFaiNDBctKgvgi94eNg7tjdnk1fAO3Y6U= MIME-Version: 1.0 Received: by 10.220.88.30 with SMTP id y30mr2408125vcl.239.1283158279772; Mon, 30 Aug 2010 01:51:19 -0700 (PDT) Received: by 10.220.86.143 with HTTP; Mon, 30 Aug 2010 01:51:19 -0700 (PDT) Date: Mon, 30 Aug 2010 10:51:19 +0200 Message-ID: From: Piet Skiet To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 09:14:13 -0000 Hi, Can anyone clarify how to go about doing a synchronous usb control transfer, similar to Linux's=A0usb_control_msg? I want to implement the TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses synchronous control messages to read DCE and CTS serial pin status, and I want to do something similar in FreeBSD. The usbdi(9) manpage talks about control transfers using=A0usbd_transfer_submit, but they're not synchronous. What about using=A0usbd_transfer_drain? Is there an example driver showing setting up and doing control transfers? The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls at the moment. Thanks From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 11:07:11 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F64C1065697 for ; Mon, 30 Aug 2010 11:07:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F0E8B8FC2A for ; Mon, 30 Aug 2010 11:07:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7UB7AxU087591 for ; Mon, 30 Aug 2010 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7UB7AUS087589 for freebsd-usb@FreeBSD.org; Mon, 30 Aug 2010 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Aug 2010 11:07:10 GMT Message-Id: <201008301107.o7UB7AUS087589@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 11:07:11 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/149934 usb Transcend JetFlash V85 poor performance o usb/149900 usb FreeBSD 8.1 uftdi patch to support usb-uirt o usb/149826 usb recognice another PL2303 based usb dongle o usb/149764 usb usbdevs update: Huawei K3765 3G modem o usb/149759 usb add USB vendor 04FC o usb/149675 usb uftdi doesn't react to break properly o usb/149528 usb Wireless USB stick not detected - vendor id 0x083a dev o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb ASUS WL-167g doesn't work in 8.1 (continue of 149058) o usb/149039 usb [uhso] Binding problem with uhso s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack o usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb o usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors o usb/143790 usb [boot] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system f usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P o usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138548 usb [usb67] [usb8] usb devices periodically have unknown a o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb [hang] Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device o usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " f usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 314 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 12:41:58 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FC121065674 for ; Mon, 30 Aug 2010 12:41:58 +0000 (UTC) (envelope-from tuksgig@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 01CDB8FC1F for ; Mon, 30 Aug 2010 12:41:57 +0000 (UTC) Received: by vws7 with SMTP id 7so5818265vws.13 for ; Mon, 30 Aug 2010 05:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=RajB6pe7lVaHsbCNGKeIuXhSDsHD3sJkUxY3lwguYg8=; b=e/YLjEtDXWWHQlOTE/8Qy7RlCetcE6gGGCOI5b54gzGZNrz+5UN9iSHhlK4ha0mNpP eFo7LzcUrBdIRlodNkJGGp2du8Q/79NmsvoS6X0pkHOL/TbLgxVWvQphvMWuhCZu6fUk fBoaWJwCGbQzcbDrWxXdd6XV0/uzXziivTmrM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=IwtVcnZjAmt5zhwhVwG3j7WgcIfkABvWF+JwXKaPWPPi2wgH9NYvZIXWuxg/dg0+/U MuJurR5BhupAMJGE0dzbTYnJwxyARnWyHicoMaYUZ7zLWm25NrlbF5edlkH0qmE5tUdo tZgU2Z1qyigQ2QAvo3oCG5KAFFvqOPYhiOxmw= MIME-Version: 1.0 Received: by 10.220.157.139 with SMTP id b11mr2828717vcx.180.1283172116923; Mon, 30 Aug 2010 05:41:56 -0700 (PDT) Received: by 10.220.86.143 with HTTP; Mon, 30 Aug 2010 05:41:56 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Aug 2010 14:41:56 +0200 Message-ID: From: Piet Skiet To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 12:41:58 -0000 On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: > Hi, > > Can anyone clarify how to go about doing a synchronous usb control > transfer, similar to Linux's=A0usb_control_msg? I want to implement the > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses > synchronous control messages to read DCE and CTS serial pin status, > and I want to do something similar in FreeBSD. The usbdi(9) manpage > talks about control transfers using=A0usbd_transfer_submit, but they're > not synchronous. What about using=A0usbd_transfer_drain? Is there an > example driver showing setting up and doing control transfers? > > The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls > at the moment. > > Thanks > Scanning through the ucom code, it seems to me that the usbd_do_request_pro= c has somehting to do with blocking control transfers. Am I on the right track here? From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 15:58:37 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEABD10656AA for ; Mon, 30 Aug 2010 15:58:37 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9D6708FC17 for ; Mon, 30 Aug 2010 15:58:37 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A971.dip.t-dialin.net [87.179.169.113]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id D0849844060 for ; Mon, 30 Aug 2010 17:42:35 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 04241111A for ; Mon, 30 Aug 2010 17:42:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1283182953; bh=HMfvSgoQc3EAc1aX9HDghRru2G79PiiA/1DIMJYO5vY=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=L9yOsXi0hFYeQHzrr7UV8qvcJfUQYe+gtQ3Ao1imNw98Wpctee+i+gwL7LIKVjjAj RPzH4mdof6FKEVPklc/KgiZbUgnMyF1euCKRUJeXjBjUpQyS01eH2rt/73eQYeKhZo 668curaQ1sXkHP6ksf2X1Y0PT/9qFjdxj8VEgAvYDx6XhDyy9Rzp7ucDgMPLAiEjmJ 67CnC2t8MFtnhdJ7ATWpuTghKBfrG2vxKE+Hc5BpbkzRMo91JwDS6ljqQPZ8ah6gWF e8Am7kwA3ah/x3NXprIekU+Z/ELvFCOT3d8lv3cy/OihSC9wNi1U4TBmcts18ofsWy gB998ug8NuZBQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o7UFgWec051837 for usb@FreeBSD.org; Mon, 30 Aug 2010 17:42:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 30 Aug 2010 17:42:32 +0200 Message-ID: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> Date: Mon, 30 Aug 2010 17:42:32 +0200 From: Alexander Leidinger To: usb@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: D0849844060.A5698 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.1, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1283787758.52193@qU5ahVrA4LuBioD6Z5EfZg X-EBL-Spam-Status: No Cc: Subject: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 15:58:38 -0000 Hi, I try to port a linux userland USB program and I get the following error message when trying to link to libusb (current as of r210105): ---snip--- cc -lusb -lm -o fowsr fowsr.o fowsr.o(.text+0x1546): In function `CUSB_Open': : undefined reference to `usb_get_driver_np' fowsr.o(.text+0x1710): In function `CUSB_Open': : undefined reference to `usb_detach_kernel_driver_np' gmake: *** [fowsr] Fehler 1 ---snip--- Do I need those functions on FreeBSD (the device may show up as a HID device, I hadn't a chance to attach it to a FreeBSD box yet), or can I just remove them (I could make sure the HID driver is not loaded in the kernel)? Here is the related source: ---snip--- devh = usb_open(dev); assert(devh); signal(SIGTERM, release_usb_device); ret = usb_get_driver_np(devh, 0, buf, sizeof(buf)); printf("usb_get_driver_np returned %d\n", ret); if (ret == 0) { printf("interface 0 already claimed by driver \\'%s\\', attempting to detach it\n", buf); ret = usb_detach_kernel_driver_np(devh, 0); printf("usb_detach_kernel_driver_np returned %d\n", ret); } ret = usb_claim_interface(devh, 0); if (ret != 0) { printf("claim failed with error %d\n", ret); exit(1); } ret = usb_set_altinterface(devh, 0); ---snip--- Bye, Alexander. -- Famous last words: http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 19:15:24 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 762491065693; Mon, 30 Aug 2010 19:15:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id D03DA8FC12; Mon, 30 Aug 2010 19:15:23 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=A9i2abt5RTkKnggEwMfGtMsecE7KHeOxIgKEeBb2Lvo= c=1 sm=1 a=5kRrUKOOjKwA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=BUWtrRuMBFm4FTx2BfEA:9 a=AXQdnGd4vUJXR9PH_t4jQL35ZC0A:4 a=QEXdDO2ut3YA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13468168; Mon, 30 Aug 2010 21:15:09 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 30 Aug 2010 21:11:22 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> In-Reply-To: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008302111.22141.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 19:15:24 -0000 On Monday 30 August 2010 17:42:32 Alexander Leidinger wrote: > Hi, > > I try to port a linux userland USB program and I get the following > error message when trying to link to libusb (current as of r210105): > ---snip--- > cc -lusb -lm -o fowsr fowsr.o > > fowsr.o(.text+0x1546): In function `CUSB_Open': > : undefined reference to `usb_get_driver_np' > > fowsr.o(.text+0x1710): In function `CUSB_Open': > : undefined reference to `usb_detach_kernel_driver_np' > > gmake: *** [fowsr] Fehler 1 > ---snip--- > > Do I need those functions on FreeBSD (the device may show up as a HID > device, I hadn't a chance to attach it to a FreeBSD box yet), or can I > just remove them (I could make sure the HID driver is not loaded in > the kernel)? Hi, I've added these missing functions to LibUSB in USB P4 change 183086. Consider adding a compile time check for the existence of these functions. They are marked non-portable in LibUSB. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 19:15:24 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 762491065693; Mon, 30 Aug 2010 19:15:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id D03DA8FC12; Mon, 30 Aug 2010 19:15:23 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=A9i2abt5RTkKnggEwMfGtMsecE7KHeOxIgKEeBb2Lvo= c=1 sm=1 a=5kRrUKOOjKwA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=BUWtrRuMBFm4FTx2BfEA:9 a=AXQdnGd4vUJXR9PH_t4jQL35ZC0A:4 a=QEXdDO2ut3YA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13468168; Mon, 30 Aug 2010 21:15:09 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 30 Aug 2010 21:11:22 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> In-Reply-To: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008302111.22141.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 19:15:24 -0000 On Monday 30 August 2010 17:42:32 Alexander Leidinger wrote: > Hi, > > I try to port a linux userland USB program and I get the following > error message when trying to link to libusb (current as of r210105): > ---snip--- > cc -lusb -lm -o fowsr fowsr.o > > fowsr.o(.text+0x1546): In function `CUSB_Open': > : undefined reference to `usb_get_driver_np' > > fowsr.o(.text+0x1710): In function `CUSB_Open': > : undefined reference to `usb_detach_kernel_driver_np' > > gmake: *** [fowsr] Fehler 1 > ---snip--- > > Do I need those functions on FreeBSD (the device may show up as a HID > device, I hadn't a chance to attach it to a FreeBSD box yet), or can I > just remove them (I could make sure the HID driver is not loaded in > the kernel)? Hi, I've added these missing functions to LibUSB in USB P4 change 183086. Consider adding a compile time check for the existence of these functions. They are marked non-portable in LibUSB. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 19:17:35 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F04B810656A7 for ; Mon, 30 Aug 2010 19:17:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 754F18FC1A for ; Mon, 30 Aug 2010 19:17:35 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=DY18j03bvBIA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=gxQp9M368-oh3AGhMI8A:9 a=eZfh_Z6hI6MkeHJeu2QA:7 a=yB3AJwPxYC4RbI_14xnkvLCGsJwA:4 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14136283; Mon, 30 Aug 2010 21:17:22 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 30 Aug 2010 21:13:33 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008302113.33960.hselasky@c2i.net> Cc: Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 19:17:36 -0000 On Monday 30 August 2010 14:41:56 Piet Skiet wrote: > On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: > > Hi, > > > > Can anyone clarify how to go about doing a synchronous usb control > > transfer, similar to Linux's usb_control_msg? I want to implement the > > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses > > synchronous control messages to read DCE and CTS serial pin status, > > and I want to do something similar in FreeBSD. The usbdi(9) manpage > > talks about control transfers using usbd_transfer_submit, but they're > > not synchronous. What about using usbd_transfer_drain? Is there an > > example driver showing setting up and doing control transfers? > > > > The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls > > at the moment. > > > > Thanks > > Scanning through the ucom code, it seems to me that the > usbd_do_request_proc has somehting to do with blocking control transfers. > Am I on the right track here? Yes, this is correct. You have to re-format the do request information a little bit compared with Linux. This function is supposed to be called from a UCOM callback. Please also check recent changes in USB P4: http://p4web.freebsd.org/@md=d&cd=//depot/projects/usb/src/sys/dev/usb/controller/&cdf=//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c&c=LJN@//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c?ac=22 --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 19:22:31 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6025F10656B1 for ; Mon, 30 Aug 2010 19:22:31 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id DADBB8FC20 for ; Mon, 30 Aug 2010 19:22:30 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=tumaaA6jyRO6uOJXwJ9zBqfKx0+WtA7m4Qh1fZXYtZM= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=ndaoGXS1AAAA:8 a=S603DCfU9HYmKepPj_gA:9 a=iUZJXwhEobUVb828iaV_W2atpg0A:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13893948; Mon, 30 Aug 2010 21:22:22 +0200 From: Hans Petter Selasky To: David Naylor Date: Mon, 30 Aug 2010 21:18:28 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008300833.30376.hselasky@c2i.net> <201008300856.40160.naylor.b.david@gmail.com> In-Reply-To: <201008300856.40160.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008302118.28889.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 19:22:31 -0000 On Monday 30 August 2010 08:56:36 David Naylor wrote: > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > Hi, > > > > Could you dump device descriptor and current configuration descriptor > > using usbconfig. I need the vendor ID and product ID at least to be able > > to debug this issue. > > # usbconfig -d ugen0.2 dump_device_desc > ugen0.2: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x00ff > bDeviceProtocol = 0x00ff > bMaxPacketSize0 = 0x0008 > idVendor = 0x093a > idProduct = 0x2468 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > # usbconfig -d ugen0.2 dump_curr_config_desc > ugen0.2: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON Hi, This information looks Ok. Try installing webcamd from I4B SVN: Compile using: make -j3 HAVE_DEBUG=YES http://www.selasky.org/hans_petter/video4bsd Then start webcamd in the foreground and post debug log. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 20:10:55 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BA4510656BB for ; Mon, 30 Aug 2010 20:10:55 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8B8FA8FC22 for ; Mon, 30 Aug 2010 20:10:54 +0000 (UTC) Received: by wyb33 with SMTP id 33so8162816wyb.13 for ; Mon, 30 Aug 2010 13:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=02hSuarfA+2eFDgi31IGdjymQbMlVNVKGSZ8NuoBR6I=; b=GUvB3avb4JqK2sG2WNWVvnOsCCPl/KVbd0wJVkZ48j3073Yjc5ec1B0hZHwfciTvZU 2fMca6gAR0zXh4gdXdfEXekzm0TAyMMgLTSlhMDFxobl/ZPpW82v/yCuI9VEylRs/VPQ mIDRY59ZVjf1HqV1xgxw2mZyExgDIDVfTu+Rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=giZTo5n7fsKZ6B+hif/TuZ2Vgl7LqdOVQhZc8cH5U6C2eVOW+e+50lTFpT5z6Yt+X0 loeGWANsT1MrJxmz+81BD88NZZdDqgf7F1YU/UkHmaIluKepURkntcEtHv3gGXZB3Rrn QJDPtw4npFv55ruVZbUh41E6FGZsYSAxy14r0= Received: by 10.227.145.203 with SMTP id e11mr5516328wbv.134.1283199049161; Mon, 30 Aug 2010 13:10:49 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id k7sm4729526wej.26.2010.08.30.13.10.42 (version=SSLv3 cipher=RC4-MD5); Mon, 30 Aug 2010 13:10:48 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Mon, 30 Aug 2010 22:10:51 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008300856.40160.naylor.b.david@gmail.com> <201008302118.28889.hselasky@c2i.net> In-Reply-To: <201008302118.28889.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4873192.lhJYOiT5ys"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201008302210.57291.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 20:10:55 -0000 --nextPart4873192.lhJYOiT5ys Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > > Hi, > > >=20 > > > Could you dump device descriptor and current configuration descriptor > > > using usbconfig. I need the vendor ID and product ID at least to be > > > able to debug this issue. > >=20 > > # usbconfig -d ugen0.2 dump_device_desc > > ugen0.2: at usbus0, cfg=3D0 md=3D= HOST > > spd=3DFULL (12Mbps) pwr=3DON > >=20 > > bLength =3D 0x0012 > > bDescriptorType =3D 0x0001 > > bcdUSB =3D 0x0110 > > bDeviceClass =3D 0x00ff > > bDeviceSubClass =3D 0x00ff > > bDeviceProtocol =3D 0x00ff > > bMaxPacketSize0 =3D 0x0008 > > idVendor =3D 0x093a > > idProduct =3D 0x2468 > > bcdDevice =3D 0x0100 > > iManufacturer =3D 0x0001 > > iProduct =3D 0x0002 > > iSerialNumber =3D 0x0000 > > bNumConfigurations =3D 0x0001 > >=20 > > # usbconfig -d ugen0.2 dump_curr_config_desc > > ugen0.2: at usbus0, cfg=3D0 md=3D= HOST > > spd=3DFULL (12Mbps) pwr=3DON >=20 > Hi, >=20 > This information looks Ok. >=20 > Try installing webcamd from I4B SVN: >=20 > Compile using: >=20 > make -j3 HAVE_DEBUG=3DYES >=20 > http://www.selasky.org/hans_petter/video4bsd >=20 > Then start webcamd in the foreground and post debug log. Hi, Here is the debug output from webcamd: # ./webcamd Linux video capture interface: v2.00 benq: registered conex: registered etoms: registered finepix: registered gspca_gl860: driver startup - version 0.9d10 gspca_gl860: driver registered gspca: main v2.9.0 registered jeilinj: registered ALi m5602: registered mars: registered mr97310a: registered ov519: registered ov534: registered ov534_9: registered pac207: registered pac7302: registered pac7311: registered sn9c20x: registered sonixb: registered sonixj: registered spca500: registered spca501: registered spca505: registered spca506: registered spca508: registered spca561: registered sq905: registered sq905c: registered stk014: registered stv0680: registered STV06xx: registered sunplus: registered t613: registered tv8532: registered vc032x: registered zc3xx: registered pwc: Philips webcam module version 10.0.13 loaded. pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 = &=20 PCVC830/840. pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC- C10 and MPC-C30, pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC30= 0=20 and VCS-UM100. cpia2: V4L-Driver for Vision CPiA2 based cameras v2.0.0 pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) dib0700: loaded with support for 14 different device-types b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded=20 successfully stv0680: registered SE401 usb camera driver version 0.24 registering usbvideo_register: Allocated $0x80106f000 (4576. bytes) for 4.=20 camerasusbvideo_register: Allocated cams[0].user_data=3D$0x80106c070 (48.=20 bytes)usbvideo_register: Allocated cams[1].user_data=3D$0x80106c0a0 (48.=20 bytes)usbvideo_register: Allocated cams[2].user_data=3D$0x80106c0d0 (48.=20 bytes)usbvideo_register: Allocated cams[3].user_data=3D$0x80106c100 (48. by= tes):=20 v1.4:Konica Webcam driver usbvideo_register: Allocated $0x8010f4600 (1672. bytes) for 1.=20 camerasusbvideo_register: Allocated cams[0].user_data=3D$0x801116100 (200.= =20 bytes)usbvideo_register: Allocated $0x801070800 (4576. bytes) for 4.=20 camerasusbvideo_register: Allocated cams[0].user_data=3D$0x80106c130 (48.=20 bytes)usbvideo_register: Allocated cams[1].user_data=3D$0x80106c160 (48.=20 bytes)usbvideo_register: Allocated cams[2].user_data=3D$0x80106c190 (48.=20 bytes)usbvideo_register: Allocated cams[3].user_data=3D$0x80106c1c0 (48. by= tes):=20 Zoran 364xx USB Video Class driver (v0.1.0) Attached ugen0.2[0] to cuse unit 0 gspca: probing 093a:2468 pac207: Pixart Sensor ID 0x27 Chips ID 0x00 pac207: Pixart PAC207BCA Image Processor and Control Chip detected (vid/pid= =20 0x093A:0x2468) gspca: video0 created gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 Creating /dev/video0 (( ran pwcview )) gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 (( ran pwcview )) gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 Both times pwcview reported the same error. --nextPart4873192.lhJYOiT5ys Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx8EFEACgkQUaaFgP9pFrIe2gCeOHZ/OmYin6AliJ/Q1hetOd4k uLYAn2AffogS8dBiujr2oEDn+umnYAf8 =lpz6 -----END PGP SIGNATURE----- --nextPart4873192.lhJYOiT5ys-- From owner-freebsd-usb@FreeBSD.ORG Mon Aug 30 21:38:44 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 091971065694 for ; Mon, 30 Aug 2010 21:38:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 612808FC08 for ; Mon, 30 Aug 2010 21:38:42 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=bqAX4Es/FymT96iuQFWdNJXS7SazJpmZM5WIJFHIREc= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=ndaoGXS1AAAA:8 a=8jH6dwUVKn0eHUgvOyAA:9 a=2BhMDOeEzPNtEDxPwH4A:7 a=jBa0CPIHi-uFr_kkFWHuA_L1IuUA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14095168; Mon, 30 Aug 2010 23:38:32 +0200 From: Hans Petter Selasky To: David Naylor Date: Mon, 30 Aug 2010 23:34:41 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008302118.28889.hselasky@c2i.net> <201008302210.57291.naylor.b.david@gmail.com> In-Reply-To: <201008302210.57291.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008302334.41467.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 21:38:44 -0000 On Monday 30 August 2010 22:10:51 David Naylor wrote: > On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > > > Hi, > > > > > > > > Could you dump device descriptor and current configuration descriptor > > > > using usbconfig. I need the vendor ID and product ID at least to be > > > > able to debug this issue. > > > > > > # usbconfig -d ugen0.2 dump_device_desc > > > ugen0.2: at usbus0, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=ON > > > > > > bLength = 0x0012 > > > bDescriptorType = 0x0001 > > > bcdUSB = 0x0110 > > > bDeviceClass = 0x00ff > > > bDeviceSubClass = 0x00ff > > > bDeviceProtocol = 0x00ff > > > bMaxPacketSize0 = 0x0008 > > > idVendor = 0x093a > > > idProduct = 0x2468 > > > bcdDevice = 0x0100 > > > iManufacturer = 0x0001 > > > iProduct = 0x0002 > > > iSerialNumber = 0x0000 > > > bNumConfigurations = 0x0001 > > > > > > # usbconfig -d ugen0.2 dump_curr_config_desc > > > ugen0.2: at usbus0, cfg=0 md=HOST > > > spd=FULL (12Mbps) pwr=ON > > > > Hi, > > > > This information looks Ok. > > > > Try installing webcamd from I4B SVN: > > > > Compile using: > > > > make -j3 HAVE_DEBUG=YES > > > > http://www.selasky.org/hans_petter/video4bsd > > > > Then start webcamd in the foreground and post debug log. > > Hi, > > Here is the debug output from webcamd: > > # ./webcamd > Linux video capture interface: v2.00 > benq: registered > conex: registered > etoms: registered > finepix: registered > gspca_gl860: driver startup - version 0.9d10 > gspca_gl860: driver registered > gspca: main v2.9.0 registered > jeilinj: registered > ALi m5602: registered > mars: registered > mr97310a: registered > ov519: registered > ov534: registered > ov534_9: registered > pac207: registered > pac7302: registered > pac7311: registered > sn9c20x: registered > sonixb: registered > sonixj: registered > spca500: registered > spca501: registered > spca505: registered > spca506: registered > spca508: registered > spca561: registered > sq905: registered > sq905c: registered > stk014: registered > stv0680: registered > STV06xx: registered > sunplus: registered > t613: registered > tv8532: registered > vc032x: registered > zc3xx: registered > pwc: Philips webcam module version 10.0.13 loaded. > pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 > & PCVC830/840. > pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung > MPC- C10 and MPC-C30, > pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite > VCS-UC300 and VCS-UM100. > cpia2: V4L-Driver for Vision CPiA2 based cameras v2.0.0 > pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner > pvrusb2: Debug mask is 31 (0x1f) > dib0700: loaded with support for 14 different device-types > b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded > successfully > stv0680: registered > SE401 usb camera driver version 0.24 registering > usbvideo_register: Allocated $0x80106f000 (4576. bytes) for 4. > camerasusbvideo_register: Allocated cams[0].user_data=$0x80106c070 (48. > bytes)usbvideo_register: Allocated cams[1].user_data=$0x80106c0a0 (48. > bytes)usbvideo_register: Allocated cams[2].user_data=$0x80106c0d0 (48. > bytes)usbvideo_register: Allocated cams[3].user_data=$0x80106c100 (48. > bytes): v1.4:Konica Webcam driver > usbvideo_register: Allocated $0x8010f4600 (1672. bytes) for 1. > camerasusbvideo_register: Allocated cams[0].user_data=$0x801116100 (200. > bytes)usbvideo_register: Allocated $0x801070800 (4576. bytes) for 4. > camerasusbvideo_register: Allocated cams[0].user_data=$0x80106c130 (48. > bytes)usbvideo_register: Allocated cams[1].user_data=$0x80106c160 (48. > bytes)usbvideo_register: Allocated cams[2].user_data=$0x80106c190 (48. > bytes)usbvideo_register: Allocated cams[3].user_data=$0x80106c1c0 (48. > bytes): Zoran 364xx > USB Video Class driver (v0.1.0) > Attached ugen0.2[0] to cuse unit 0 > gspca: probing 093a:2468 > pac207: Pixart Sensor ID 0x27 Chips ID 0x00 > pac207: Pixart PAC207BCA Image Processor and Control Chip detected (vid/pid > 0x093A:0x2468) > gspca: video0 created > gspca: found int in endpoint: 0x83, buffer_len=2, interval=50 > Creating /dev/video0 > (( ran pwcview )) > gspca: found int in endpoint: 0x83, buffer_len=2, interval=50 > gspca: found int in endpoint: 0x83, buffer_len=2, interval=50 > (( ran pwcview )) > gspca: found int in endpoint: 0x83, buffer_len=2, interval=50 > gspca: found int in endpoint: 0x83, buffer_len=2, interval=50 > > Both times pwcview reported the same error. Ok. I looked at the driver code for your webcamd, and it does not support all frame rates. What does: pwcview -f 6 Result in? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 00:49:18 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26C7D10656A7 for ; Tue, 31 Aug 2010 00:49:18 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id DDD278FC0A for ; Tue, 31 Aug 2010 00:49:17 +0000 (UTC) Received: by iwn36 with SMTP id 36so6072389iwn.13 for ; Mon, 30 Aug 2010 17:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=UfyCwyjP152bVoVvy5geZGABb2yB2x88oA5syItUn4I=; b=K1zOi2jWnjJ40t9m2zOCrgjlwNt8p6bDJPy7LVvcMVqxucHDMQm/3GDmOmC3H/1mxN R3AkGmQnkLHGEsNif0EbcpGaMCbXk40zralI4owQDYnb+B7KpRROml6ZD/LNeMznUC8L Lyfkh0BASR4QKsxOxFI3+Djda82adoKf9zIHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=J8yXQu6SwtEzYJ/WoqbW/AtVpq1pzJiFF/H7FEWJhrE/uOa384qjAVaOuQC/UaX7C+ dwikcFw8hRhz9ATchRb0jm+N0SM2w3hrdmmuZ/04vV9FTeqBQnU1qPbc/KoQ20NJ+Mc6 5c/oE/bZjobxXrVtYlXqdnbs4Mhlainhgp4e0= Received: by 10.231.58.201 with SMTP id i9mr6176987ibh.98.1283214171418; Mon, 30 Aug 2010 17:22:51 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id r3sm8056561ibk.7.2010.08.30.17.22.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 30 Aug 2010 17:22:50 -0700 (PDT) Message-ID: <4C7C4B59.3090207@gmail.com> Date: Mon, 30 Aug 2010 19:22:49 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Alexander Leidinger References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> In-Reply-To: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@FreeBSD.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 00:49:18 -0000 easy fix. just drop the _np the functions are there under legacy naming. Alexander Leidinger wrote: > Hi, > > I try to port a linux userland USB program and I get the following > error message when trying to link to libusb (current as of r210105): > ---snip--- > cc -lusb -lm -o fowsr fowsr.o > fowsr.o(.text+0x1546): In function `CUSB_Open': > : undefined reference to `usb_get_driver_np' > fowsr.o(.text+0x1710): In function `CUSB_Open': > : undefined reference to `usb_detach_kernel_driver_np' > gmake: *** [fowsr] Fehler 1 > ---snip--- > > Do I need those functions on FreeBSD (the device may show up as a HID > device, I hadn't a chance to attach it to a FreeBSD box yet), or can I > just remove them (I could make sure the HID driver is not loaded in > the kernel)? > > Here is the related source: > ---snip--- > devh = usb_open(dev); > assert(devh); > > signal(SIGTERM, release_usb_device); > > ret = usb_get_driver_np(devh, 0, buf, sizeof(buf)); > printf("usb_get_driver_np returned %d\n", ret); > if (ret == 0) { > printf("interface 0 already claimed by driver > \\'%s\\', attempting to detach it\n", buf); > ret = usb_detach_kernel_driver_np(devh, 0); > printf("usb_detach_kernel_driver_np returned %d\n", ret); > } > ret = usb_claim_interface(devh, 0); > if (ret != 0) { > printf("claim failed with error %d\n", ret); > exit(1); > } > > ret = usb_set_altinterface(devh, 0); > ---snip--- > > Bye, > Alexander. > From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 06:12:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1086210656A6 for ; Tue, 31 Aug 2010 06:12:03 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8B8C58FC1A for ; Tue, 31 Aug 2010 06:12:02 +0000 (UTC) Received: by wyb33 with SMTP id 33so8731801wyb.13 for ; Mon, 30 Aug 2010 23:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=OpRNKCiZAOiBq9iv76Dtwspjp+CEwi8Jgk8QUutc8JM=; b=mX3huClsQ5Fj4egzPYJIzHCzBPyIWZlhizwZ6eYnGozl8Qz8Dre8FTP1d94qZFwzfs CIa7nrYrpHqnfMSsn9UJgBKZevhW1kXhPFtnrFUculBQaK3hGcjvk2oEAxuGZFUg58OT iHKnG7ScXuGzf1zVi91rktpztLgRPYRxT5T1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=X3g9R2XY/b2QAgtXT2Mx79zW8UEJlRP1gqW1+R3cJYBCYfpMavLItL+IwIewkjFfXA XE3rVuK+0Wo4w6drSIKXEueERBCOiub87H31AW6Nww89VAEXHsk1PVuD1YXx55/K7fg5 fFhvDehuQ+HnJabdZrYoRpXR7KakUWRmOw6hk= Received: by 10.216.159.195 with SMTP id s45mr5847774wek.43.1283235121673; Mon, 30 Aug 2010 23:12:01 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id k83sm4978236weq.38.2010.08.30.23.11.57 (version=SSLv3 cipher=RC4-MD5); Mon, 30 Aug 2010 23:12:01 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Tue, 31 Aug 2010 08:12:00 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008302210.57291.naylor.b.david@gmail.com> <201008302334.41467.hselasky@c2i.net> In-Reply-To: <201008302334.41467.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1404228.jcuqyH9Kt4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201008310812.04734.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 06:12:03 -0000 --nextPart1404228.jcuqyH9Kt4 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Monday 30 August 2010 23:34:41 Hans Petter Selasky wrote: > On Monday 30 August 2010 22:10:51 David Naylor wrote: > > On Monday 30 August 2010 21:18:28 Hans Petter Selasky wrote: > > > On Monday 30 August 2010 08:56:36 David Naylor wrote: > > > > On Monday 30 August 2010 08:33:30 Hans Petter Selasky wrote: > > > > > Hi, > > > > >=20 > > > > > Could you dump device descriptor and current configuration > > > > > descriptor using usbconfig. I need the vendor ID and product ID at > > > > > least to be able to debug this issue. > > > >=20 > > > > # usbconfig -d ugen0.2 dump_device_desc > > > > ugen0.2: at usbus0, cfg=3D0 > > > > md=3DHOST spd=3DFULL (12Mbps) pwr=3DON > > > >=20 > > > > bLength =3D 0x0012 > > > > bDescriptorType =3D 0x0001 > > > > bcdUSB =3D 0x0110 > > > > bDeviceClass =3D 0x00ff > > > > bDeviceSubClass =3D 0x00ff > > > > bDeviceProtocol =3D 0x00ff > > > > bMaxPacketSize0 =3D 0x0008 > > > > idVendor =3D 0x093a > > > > idProduct =3D 0x2468 > > > > bcdDevice =3D 0x0100 > > > > iManufacturer =3D 0x0001 > > > > iProduct =3D 0x0002 > > > > iSerialNumber =3D 0x0000 > > > > bNumConfigurations =3D 0x0001 > > > >=20 > > > > # usbconfig -d ugen0.2 dump_curr_config_desc > > > > ugen0.2: at usbus0, cfg=3D0 > > > > md=3DHOST spd=3DFULL (12Mbps) pwr=3DON > > >=20 > > > Hi, > > >=20 > > > This information looks Ok. > > >=20 > > > Try installing webcamd from I4B SVN: > > >=20 > > > Compile using: > > >=20 > > > make -j3 HAVE_DEBUG=3DYES > > >=20 > > > http://www.selasky.org/hans_petter/video4bsd > > >=20 > > > Then start webcamd in the foreground and post debug log. > >=20 > > Hi, > >=20 > > Here is the debug output from webcamd: > >=20 > > # ./webcamd > > Linux video capture interface: v2.00 > > benq: registered > > conex: registered > > etoms: registered > > finepix: registered > > gspca_gl860: driver startup - version 0.9d10 > > gspca_gl860: driver registered > > gspca: main v2.9.0 registered > > jeilinj: registered > > ALi m5602: registered > > mars: registered > > mr97310a: registered > > ov519: registered > > ov534: registered > > ov534_9: registered > > pac207: registered > > pac7302: registered > > pac7311: registered > > sn9c20x: registered > > sonixb: registered > > sonixj: registered > > spca500: registered > > spca501: registered > > spca505: registered > > spca506: registered > > spca508: registered > > spca561: registered > > sq905: registered > > sq905c: registered > > stk014: registered > > stv0680: registered > > STV06xx: registered > > sunplus: registered > > t613: registered > > tv8532: registered > > vc032x: registered > > zc3xx: registered > > pwc: Philips webcam module version 10.0.13 loaded. > > pwc: Supports Philips PCA645/646, PCVC675/680/690, > > PCVC720[40]/730/740/750 & PCVC830/840. > > pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung > > MPC- C10 and MPC-C30, > > pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite > > VCS-UC300 and VCS-UM100. > > cpia2: V4L-Driver for Vision CPiA2 based cameras v2.0.0 > > pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tun= er > > pvrusb2: Debug mask is 31 (0x1f) > > dib0700: loaded with support for 14 different device-types > > b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded > > successfully > > stv0680: registered > > SE401 usb camera driver version 0.24 registering > > usbvideo_register: Allocated $0x80106f000 (4576. bytes) for 4. > > camerasusbvideo_register: Allocated cams[0].user_data=3D$0x80106c070 (4= 8. > > bytes)usbvideo_register: Allocated cams[1].user_data=3D$0x80106c0a0 (48. > > bytes)usbvideo_register: Allocated cams[2].user_data=3D$0x80106c0d0 (48. > > bytes)usbvideo_register: Allocated cams[3].user_data=3D$0x80106c100 (48. > > bytes): v1.4:Konica Webcam driver > > usbvideo_register: Allocated $0x8010f4600 (1672. bytes) for 1. > > camerasusbvideo_register: Allocated cams[0].user_data=3D$0x801116100 (2= 00. > > bytes)usbvideo_register: Allocated $0x801070800 (4576. bytes) for 4. > > camerasusbvideo_register: Allocated cams[0].user_data=3D$0x80106c130 (4= 8. > > bytes)usbvideo_register: Allocated cams[1].user_data=3D$0x80106c160 (48. > > bytes)usbvideo_register: Allocated cams[2].user_data=3D$0x80106c190 (48. > > bytes)usbvideo_register: Allocated cams[3].user_data=3D$0x80106c1c0 (48. > > bytes): Zoran 364xx > > USB Video Class driver (v0.1.0) > > Attached ugen0.2[0] to cuse unit 0 > > gspca: probing 093a:2468 > > pac207: Pixart Sensor ID 0x27 Chips ID 0x00 > > pac207: Pixart PAC207BCA Image Processor and Control Chip detected > > (vid/pid 0x093A:0x2468) > > gspca: video0 created > > gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 > > Creating /dev/video0 > > (( ran pwcview )) > > gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 > > gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 > > (( ran pwcview )) > > gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 > > gspca: found int in endpoint: 0x83, buffer_len=3D2, interval=3D50 > >=20 > > Both times pwcview reported the same error. >=20 > Ok. >=20 > I looked at the driver code for your webcamd, and it does not support all > frame rates. >=20 > What does: >=20 > pwcview -f 6 >=20 > Result in? I've tried all framerates (5-30) for sizes sqcif, qsif, qcif, sif, cif, vga= =2E =20 All failed. =20 Strangely pwcview is reporting (at all framerates): Webcam set to: 352x288 (vga) at ?? fps Isn't that supposed to be 640x480? sqcif fails with (at all framerates): Webcam set to: 176x144 (sqcif) at ?? fps libv4l2: error converting / decoding frame data: v4l-convert: error=20 destination buffer too small (18432 < 38016) Error reading from webcam: Bad address webcamd did report some errors: gspca: frame overflow 28838 > 28672 --nextPart1404228.jcuqyH9Kt4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx8nTQACgkQUaaFgP9pFrI++wCbB103wK9bsdyPTFfXXf41jGWR YdsAn3wa26xPhKooBBcGtuKi/d1zApJr =0jXn -----END PGP SIGNATURE----- --nextPart1404228.jcuqyH9Kt4-- From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 07:33:32 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8661310656BE for ; Tue, 31 Aug 2010 07:33:32 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 157BF8FC12 for ; Tue, 31 Aug 2010 07:33:31 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8nVFKzxAJNCZJh2yHDOpnep+nZeeqVU+af0AVP5CZ7Y= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=bY5IMzjxCHu1-Od3lHgA:9 a=stHKhDi9TcIrzBNvVQMNVoINgRQA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13421124; Tue, 31 Aug 2010 09:33:19 +0200 From: Hans Petter Selasky To: David Naylor Date: Tue, 31 Aug 2010 09:29:29 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008302334.41467.hselasky@c2i.net> <201008310812.04734.naylor.b.david@gmail.com> In-Reply-To: <201008310812.04734.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008310929.29255.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 07:33:32 -0000 On Tuesday 31 August 2010 08:12:00 David Naylor wrote: > webcamd did report some errors: > gspca: frame overflow 28838 > 28672 You can try to find this error code in the ulinux/v4l-dvb/ folder or its subfolders. grep -r "frame overflow" v4l-dvb/ And see if you can figure out if it's simply a matter of increasing some buffer sizes. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 07:39:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D02F110656AA for ; Tue, 31 Aug 2010 07:39:47 +0000 (UTC) (envelope-from tuksgig@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2EF8FC16 for ; Tue, 31 Aug 2010 07:39:47 +0000 (UTC) Received: by ywt2 with SMTP id 2so2777277ywt.13 for ; Tue, 31 Aug 2010 00:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=31ZrDtKkVC0O7TKCLJ0nnUZ5pu+6m6JXZzjOcRq37Tc=; b=o67SoUKLHtQ1ez7VmPz4VFpVnFi/Xjw5l6cW0m87PSjPdkBE2hPp+o33Evp4B26t2G 9CZ0aZ6UV3S5Kw022M5ZMaFQIeF36udQrHls1A+z0Afd/LzdLnjv41e/lzuKUFFRZg// DqXKGwe7uKKXiPrHMJm4ivSYKZxJa4vxijkpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=er8/e4qjZ50bGnWdpWhQZ8AtSHTIpS8L4fLGW+6GHPuTvmX8D91MK5Aev19HM7Honh oVpMf+eUXP1d8vX978d1D1YMzmh4CyQmbgMU1NpulqqFK7R6WNR6ccvmXqRAJt95F1qF dTASTmredGp3rfkleJJBRSE5TPZgWurZR10gs= MIME-Version: 1.0 Received: by 10.220.127.81 with SMTP id f17mr2942771vcs.187.1283240386634; Tue, 31 Aug 2010 00:39:46 -0700 (PDT) Received: by 10.220.86.143 with HTTP; Tue, 31 Aug 2010 00:39:46 -0700 (PDT) In-Reply-To: <201008302113.33960.hselasky@c2i.net> References: <201008302113.33960.hselasky@c2i.net> Date: Tue, 31 Aug 2010 09:39:46 +0200 Message-ID: From: Piet Skiet To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 07:39:48 -0000 On Mon, Aug 30, 2010 at 9:13 PM, Hans Petter Selasky wrote: > On Monday 30 August 2010 14:41:56 Piet Skiet wrote: >> On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: >> > Hi, >> > >> > Can anyone clarify how to go about doing a synchronous usb control >> > transfer, similar to Linux's usb_control_msg? I want to implement the >> > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses >> > synchronous control messages to read DCE and CTS serial pin status, >> > and I want to do something similar in FreeBSD. The usbdi(9) manpage >> > talks about control transfers using usbd_transfer_submit, but they're >> > not synchronous. What about using usbd_transfer_drain? Is there an >> > example driver showing setting up and doing control transfers? >> > >> > The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls >> > at the moment. >> > >> > Thanks >> >> Scanning through the ucom code, it seems to me that the >> usbd_do_request_proc has somehting to do with blocking control transfers. >> Am I on the right track here? > > Yes, this is correct. You have to re-format the do request information a > little bit compared with Linux. This function is supposed to be called from a > UCOM callback. Please also check recent changes in USB P4: > > http://p4web.freebsd.org/@md=d&cd=//depot/projects/usb/src/sys/dev/usb/controller/&cdf=//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c&c=LJN@//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c?ac=22 > > --HPS > OK, but I'm still a bit confused. I'm not sure in which callback to put the usb_do_request. For instance, the driver that I'm interested in is the uslcom.c driver for the cp210x usb-to-serial converter. It has two usb_config structs defined of type UE_BULK for read and write transfers. Do I need to add a third usb_config struct for UE_CONTROL? Should the usb_do_request then be called from the UE_CONTROL callback? The plan is to add a .ucom_ioctl to the uslcom.c driver and implement the TIOCMGET directly in the driver ioctl using synchronous usb transfers. I've already tested the .ucom_ioctl override and it works, now I just need to figure out how to do the usb transfers. BTW, the FTDI driver (uftdi.c) does things differently. It updates the msr (modem status register?) in the bulk read callback and then calls ucom_status_change to update any changes to ucom. Thanks From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 07:51:11 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 139AB10656B3 for ; Tue, 31 Aug 2010 07:51:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 899378FC19 for ; Tue, 31 Aug 2010 07:51:10 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=bqAX4Es/FymT96iuQFWdNJXS7SazJpmZM5WIJFHIREc= c=1 sm=1 a=DY18j03bvBIA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=yZJI3wtmbEQHKenXg3QA:9 a=a2DoG78cXkWoAXfoOuEA:7 a=dpGJIQfPlR26PxSD8u1nNMQTdqkA:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=MSl-tDqOz04A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14243792; Tue, 31 Aug 2010 09:50:59 +0200 From: Hans Petter Selasky To: Piet Skiet Date: Tue, 31 Aug 2010 09:47:07 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008302113.33960.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008310947.07460.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 07:51:11 -0000 On Tuesday 31 August 2010 09:39:46 Piet Skiet wrote: > On Mon, Aug 30, 2010 at 9:13 PM, Hans Petter Selasky wrote: > > On Monday 30 August 2010 14:41:56 Piet Skiet wrote: > >> On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: > >> > Hi, > >> > > >> > Can anyone clarify how to go about doing a synchronous usb control > >> > transfer, similar to Linux's usb_control_msg? I want to implement the > >> > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses > >> > synchronous control messages to read DCE and CTS serial pin status, > >> > and I want to do something similar in FreeBSD. The usbdi(9) manpage > >> > talks about control transfers using usbd_transfer_submit, but they're > >> > not synchronous. What about using usbd_transfer_drain? Is there an > >> > example driver showing setting up and doing control transfers? > >> > > >> > The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls > >> > at the moment. > >> > > >> > Thanks > >> > >> Scanning through the ucom code, it seems to me that the > >> usbd_do_request_proc has somehting to do with blocking control > >> transfers. Am I on the right track here? > > > > Yes, this is correct. You have to re-format the do request information a > > little bit compared with Linux. This function is supposed to be called > > from a UCOM callback. Please also check recent changes in USB P4: > > > > http://p4web.freebsd.org/@md=d&cd=//depot/projects/usb/src/sys/dev/usb/co > > ntroller/&cdf=//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c&c= > > LJN@//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c?ac=22 > > > > --HPS > > OK, but I'm still a bit confused. I'm not sure in which callback to > put the usb_do_request. For instance, the driver that I'm interested > in is the uslcom.c driver for the cp210x usb-to-serial converter. It > has two usb_config structs defined of type UE_BULK for read and write > transfers. Do I need to add a third usb_config struct for UE_CONTROL? > Should the usb_do_request then be called from the UE_CONTROL callback? Hi, The usb_config's are for asynchronous operation. The usbd_do_request_proc() function is synchronous. I.E. it completes when it returns. The reason we have this variant is to allow smooth exit and entry of the mutex which is locked when you get callbacks from UCOM. All UCOM callbacks are pre-locked, and if you don't exit the lock the kernel will complain. > The plan is to add a .ucom_ioctl to the uslcom.c driver and implement > the TIOCMGET directly in the driver ioctl using synchronous usb > transfers. I've already tested the .ucom_ioctl override and it works, > now I just need to figure out how to do the usb transfers. > > BTW, the FTDI driver (uftdi.c) does things differently. It updates the > msr (modem status register?) in the bulk read callback and then calls > ucom_status_change to update any changes to ucom. The FTDI driver uses another mechanism to transfer that information. Probably what you want to do is to add a timer/watchdog to poll that information regularly. Then you can use a single asynchronous control transfer, and set the interval of the transfer to 250ms, for example, so that you don't need to allocate a separate timer to do this. Or maybe 100ms is better. You need to test this. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 13:24:38 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E9110656BE for ; Tue, 31 Aug 2010 13:24:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 73E108FC1C for ; Tue, 31 Aug 2010 13:24:38 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A176.dip.t-dialin.net [87.179.161.118]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id E00148452F2; Tue, 31 Aug 2010 15:24:35 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 161DE122B; Tue, 31 Aug 2010 15:24:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1283261073; bh=9CzdFC5Q6vEoZwDFaHzBAFjwBHakEfM4IYHlr1ggxhw=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=rE4LE5DOwn7mmLjcjW4Ze/HiiPjewfI8ao2zB6qeVta9y1dOlLUSuxIiIzFjgGcmH Tm9FLeDJsXxrRzcNxk4lTzV/OHZGbZyUy5weZZ0yyQ9Kil9926+L9hptliK90RFne8 s1VnirnkOKtEYhaBdMtRzqZo0F5r+E8/nIU12b4y/JG6MLODz2RoxptgTftQ0j9FHg wU/PFKXnMfxhtFH3qMJ5RZLZtJpiHJOf2CH59E2c2UyCYmvdguQb4eMVfnmTrzdrJE pXsMLJQipu2mqOL8u9PzBqm8O0qkKfDj+QRmwLtm+XSMWFLw/6fvl3W5aTfp0b+sBq NsJG+/L2leHow== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o7VDOWQm076218; Tue, 31 Aug 2010 15:24:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 31 Aug 2010 15:24:32 +0200 Message-ID: <20100831152432.1145726oycad08w0@webmail.leidinger.net> Date: Tue, 31 Aug 2010 15:24:32 +0200 From: Alexander Leidinger To: Jim Bryant References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> <4C7C4B59.3090207@gmail.com> In-Reply-To: <4C7C4B59.3090207@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: E00148452F2.A3F48 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.1, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1283865876.30365@Hw46cP5y05OnbHpyMgCe/g X-EBL-Spam-Status: No Cc: usb@FreeBSD.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 13:24:39 -0000 Quoting Jim Bryant (from Mon, 30 Aug 2010 19:22:49 -0500): > easy fix. just drop the _np > > the functions are there under legacy naming. Not in my revision of FreeBSD-current. I commented it out like HPS suggested (the right way, with the correct macros to enable automatically when those functions are merged from P4 to SVN) and the linker doesn't complain anymore. Bye, Alexander. > Alexander Leidinger wrote: >> Hi, >> >> I try to port a linux userland USB program and I get the following >> error message when trying to link to libusb (current as of r210105): >> ---snip--- >> cc -lusb -lm -o fowsr fowsr.o >> fowsr.o(.text+0x1546): In function `CUSB_Open': >> : undefined reference to `usb_get_driver_np' >> fowsr.o(.text+0x1710): In function `CUSB_Open': >> : undefined reference to `usb_detach_kernel_driver_np' >> gmake: *** [fowsr] Fehler 1 >> ---snip--- >> >> Do I need those functions on FreeBSD (the device may show up as a >> HID device, I hadn't a chance to attach it to a FreeBSD box yet), >> or can I just remove them (I could make sure the HID driver is not >> loaded in the kernel)? >> >> Here is the related source: >> ---snip--- >> devh = usb_open(dev); >> assert(devh); >> >> signal(SIGTERM, release_usb_device); >> >> ret = usb_get_driver_np(devh, 0, buf, sizeof(buf)); >> printf("usb_get_driver_np returned %d\n", ret); >> if (ret == 0) { >> printf("interface 0 already claimed by driver >> \\'%s\\', attempting to detach it\n", buf); >> ret = usb_detach_kernel_driver_np(devh, 0); >> printf("usb_detach_kernel_driver_np returned %d\n", ret); >> } >> ret = usb_claim_interface(devh, 0); >> if (ret != 0) { >> printf("claim failed with error %d\n", ret); >> exit(1); >> } >> >> ret = usb_set_altinterface(devh, 0); >> ---snip--- >> >> Bye, >> Alexander. >> > > -- Star Trek Lives! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 13:43:38 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB83010656A9 for ; Tue, 31 Aug 2010 13:43:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 67EEF8FC2C for ; Tue, 31 Aug 2010 13:43:38 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3A176.dip.t-dialin.net [87.179.161.118]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 7CEB28452F2; Tue, 31 Aug 2010 15:25:44 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 9F4C312D2; Tue, 31 Aug 2010 15:25:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1283261141; bh=V8RQjI0uZIGMUD0JYKMH7u6mH5rgHsGcuvnLl6WdWZw=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=aGHfA44Wk2sH3lCbBFeKS+SojjBHHBrFAV6eOPXjLe74yWvi61INHomzUUlqQQNsa UjUZCUtwqiwqupj59XvXKU2wLkgK8+lW235DzrPKDgFKLsA2meKNjJMUkpV/t9Fsps /frGd+LZfbg8PSkRTo5MD6IXLG37Wrrbhyi6KkvSCu09VCvY+pkMZP09HGnMCrtgwm vJ1kkNlqZbrcnXlklw04msdCayKxf6j0bVT0gKw35RFE/buLbj/OE0vZvUonMq3A3K bUeS378lWKHoNKF48qb6nPcvB++aYV/mmeGg/UaVeC4MnR4Jz5fV9dqLOoIzD6ZKHH E+aOHQ/5ZccFw== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o7VDPfRi076474; Tue, 31 Aug 2010 15:25:41 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 31 Aug 2010 15:25:41 +0200 Message-ID: <20100831152541.926247auarppurc4@webmail.leidinger.net> Date: Tue, 31 Aug 2010 15:25:41 +0200 From: Alexander Leidinger To: Hans Petter Selasky References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> <201008302111.22141.hselasky@c2i.net> In-Reply-To: <201008302111.22141.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 7CEB28452F2.A2E86 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.1, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1283865949.21147@3aVgKzHMhDvStNAkZ1BLog X-EBL-Spam-Status: No Cc: freebsd-usb@freebsd.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 13:43:38 -0000 Quoting Hans Petter Selasky (from Mon, 30 Aug 2010 21:11:22 +0200): > I've added these missing functions to LibUSB in USB P4 change 183086. Do you need someone to commit them to SVN, or is there something scheduled already? > Consider adding a compile time check for the existence of these functions. > They are marked non-portable in LibUSB. Done. Thanks, Alexander. -- Dr. Zoidberg: "It funny because it's poisonous." Fry: "Yeah, keep laughing, brine shrimp." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Tue Aug 31 20:46:52 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90EFA10656A4 for ; Tue, 31 Aug 2010 20:46:52 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 39D078FC15 for ; Tue, 31 Aug 2010 20:46:51 +0000 (UTC) Received: by gxk24 with SMTP id 24so3176070gxk.13 for ; Tue, 31 Aug 2010 13:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=QorGKUBBwuKorllOyQgB6yFQVBDHXkpjG1koZgGGVKo=; b=tuetgnqk2MUrB9ccLbkTF2xQOQZOqUmXbHIQNfeXy2WAEMqStt9PZBKJFnmrexpxSI 90Gqf9gLWIEkXi66vDHiKABaIdlitpw9/cBshSoH875pWCUXBZoQVrdjhHCdfjtlJklV apz3rg5Vwz3aM2dS+NP3Rvee9wGQDJI3aNWCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WqE9eCdyVXQ7WOiFFA2bekE6oqdD3ce89R3vZrHsM03+AeiOl47zGiug6YacAFvxuW q+9LQRNel+5dq2D3oYo8RfloKB0qgxrBpUGW6xwBwoBCRHZfcYBdaewjQm/FQ/YBJgqE IubdPFVei/Yyi91T5ubItToLE0KHBwuy968dg= Received: by 10.90.80.4 with SMTP id d4mr5458395agb.12.1283287610051; Tue, 31 Aug 2010 13:46:50 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id r3sm9173930ibk.7.2010.08.31.13.46.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 13:46:49 -0700 (PDT) Message-ID: <4C7D6A34.9030000@gmail.com> Date: Tue, 31 Aug 2010 15:46:44 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Alexander Leidinger References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> <4C7C4B59.3090207@gmail.com> <20100831152432.1145726oycad08w0@webmail.leidinger.net> In-Reply-To: <20100831152432.1145726oycad08w0@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@FreeBSD.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 20:46:52 -0000 ah, i'm under -stable. Alexander Leidinger wrote: > Quoting Jim Bryant (from Mon, 30 Aug 2010 > 19:22:49 -0500): > >> easy fix. just drop the _np >> >> the functions are there under legacy naming. > > Not in my revision of FreeBSD-current. I commented it out like HPS > suggested (the right way, with the correct macros to enable > automatically when those functions are merged from P4 to SVN) and the > linker doesn't complain anymore. > > Bye, > Alexander. > >> Alexander Leidinger wrote: >>> Hi, >>> >>> I try to port a linux userland USB program and I get the following >>> error message when trying to link to libusb (current as of r210105): >>> ---snip--- >>> cc -lusb -lm -o fowsr fowsr.o >>> fowsr.o(.text+0x1546): In function `CUSB_Open': >>> : undefined reference to `usb_get_driver_np' >>> fowsr.o(.text+0x1710): In function `CUSB_Open': >>> : undefined reference to `usb_detach_kernel_driver_np' >>> gmake: *** [fowsr] Fehler 1 >>> ---snip--- >>> >>> Do I need those functions on FreeBSD (the device may show up as a >>> HID device, I hadn't a chance to attach it to a FreeBSD box yet), or >>> can I just remove them (I could make sure the HID driver is not >>> loaded in the kernel)? >>> >>> Here is the related source: >>> ---snip--- >>> devh = usb_open(dev); >>> assert(devh); >>> >>> signal(SIGTERM, release_usb_device); >>> >>> ret = usb_get_driver_np(devh, 0, buf, sizeof(buf)); >>> printf("usb_get_driver_np returned %d\n", ret); >>> if (ret == 0) { >>> printf("interface 0 already claimed by driver >>> \\'%s\\', attempting to detach it\n", buf); >>> ret = usb_detach_kernel_driver_np(devh, 0); >>> printf("usb_detach_kernel_driver_np returned %d\n", >>> ret); >>> } >>> ret = usb_claim_interface(devh, 0); >>> if (ret != 0) { >>> printf("claim failed with error %d\n", ret); >>> exit(1); >>> } >>> >>> ret = usb_set_altinterface(devh, 0); >>> ---snip--- >>> >>> Bye, >>> Alexander. >>> >> >> > > > From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 06:55:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A04641065697 for ; Wed, 1 Sep 2010 06:55:40 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 27BCA8FC14 for ; Wed, 1 Sep 2010 06:55:39 +0000 (UTC) Received: by wyb33 with SMTP id 33so10349243wyb.13 for ; Tue, 31 Aug 2010 23:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=1qBLxVzM7SHX+xoCfCXHq3eFeF84jsSyLS6ZNCXOmT8=; b=IKQ83vCr6ljMos+Ek4bdjDKMbxVbNLjQpzgAKdWR9nlU2mFZTmkV6+vvto5WNvbkv+ uSber2CZkpm/b1tWWVvg7Yyhr0DSR8gS1uKo3PJu9GbgMNS0WdsjQVL9P7RJe8lApjzy mPjP4hpwbD+8z6xYSyn5Y937j83t2rLYM61S4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=Swqv9ICKTUFfTHMa66qD1KP3nJfcM2AmZ4mClAFzfvuFJM1na2HQAgfvXjLYOwW4Qr 3TdRF0wRbyIqelkKzH4dOMBfygVp2cuNZjtg4SDw34kKc1/9T1RYi8KLET2XmSzBD2pm mZOAZ3DJXvml/DNCNoVjv1LWdVGtHiWd7Ybt4= Received: by 10.227.157.134 with SMTP id b6mr6871522wbx.115.1283324138483; Tue, 31 Aug 2010 23:55:38 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id a1sm8465462wbb.20.2010.08.31.23.55.35 (version=SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 23:55:37 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Wed, 1 Sep 2010 08:55:45 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008310812.04734.naylor.b.david@gmail.com> <201008310929.29255.hselasky@c2i.net> In-Reply-To: <201008310929.29255.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12341423.qhEKhQ5mTD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009010855.49344.naylor.b.david@gmail.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 06:55:40 -0000 --nextPart12341423.qhEKhQ5mTD Content-Type: multipart/mixed; boundary="Boundary-01=_xjffMqb6Nhv21rM" Content-Transfer-Encoding: 7bit --Boundary-01=_xjffMqb6Nhv21rM Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 31 August 2010 09:29:29 Hans Petter Selasky wrote: > On Tuesday 31 August 2010 08:12:00 David Naylor wrote: > > webcamd did report some errors: > > gspca: frame overflow 28838 > 28672 >=20 > You can try to find this error code in the ulinux/v4l-dvb/ folder or its > subfolders. grep -r "frame overflow" v4l-dvb/ >=20 > And see if you can figure out if it's simply a matter of increasing some > buffer sizes. >=20 > --HPS I managed to eliminate all frame overflow errors. I multiplied frsz by 8 i= n=20 frame_alloc (v4l-dvb/linux/drivers/media/video/gspca/gspca.c). webcamd was= =20 reporting many `gspca: found int in endpoint: 0x83, buffer_len=3D2, interva= l=3D50'. =20 Attached is the script (someone may find useful) that I used to check if an= y=20 settings will work with the webcam. =20 The webcam still does not work. Again vga was set to a lower resolution th= an=20 what it should be and sqcif was at a higher resolution that what it should = be. =20 Will it matter if my kernel is a bit old (about 3 months)? Are there any=20 (small) live linux distros that have good webcam support (so that I can che= ck=20 if the cam works at all with gspca)? David --Boundary-01=_xjffMqb6Nhv21rM-- --nextPart12341423.qhEKhQ5mTD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx9+PUACgkQUaaFgP9pFrLcGQCdGAuXaiZpDL3kwS/uqHuc2HV/ caYAn2b0BpVDoTMjMjaaMZDS2d/Mnchf =xUcu -----END PGP SIGNATURE----- --nextPart12341423.qhEKhQ5mTD-- From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 07:21:10 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F2561065697; Wed, 1 Sep 2010 07:21:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 83FB08FC08; Wed, 1 Sep 2010 07:21:09 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=A9i2abt5RTkKnggEwMfGtMsecE7KHeOxIgKEeBb2Lvo= c=1 sm=1 a=5kRrUKOOjKwA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=ueSG7bj1c1o40kQGYlwA:9 a=lIuesVPeWrfy0SseSzvJIpSWXjsA:4 a=QEXdDO2ut3YA:10 a=9aOQ2cSd83gA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14262269; Wed, 01 Sep 2010 09:20:52 +0200 From: Hans Petter Selasky To: Alexander Leidinger Date: Wed, 1 Sep 2010 09:17:03 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100830174232.56765zlyg2rhuhgc@webmail.leidinger.net> <201008302111.22141.hselasky@c2i.net> <20100831152541.926247auarppurc4@webmail.leidinger.net> In-Reply-To: <20100831152541.926247auarppurc4@webmail.leidinger.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201009010917.03737.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Porting an USB software from linux (libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 07:21:10 -0000 On Tuesday 31 August 2010 15:25:41 Alexander Leidinger wrote: > Quoting Hans Petter Selasky (from Mon, 30 Aug 2010 > > 21:11:22 +0200): > > I've added these missing functions to LibUSB in USB P4 change 183086. > > Do you need someone to commit them to SVN, or is there something > scheduled already? > > > Consider adding a compile time check for the existence of these > > functions. They are marked non-portable in LibUSB. > Andrew, can you have a look at his? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 07:24:01 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39C0A1065679 for ; Wed, 1 Sep 2010 07:24:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id C0AAB8FC15 for ; Wed, 1 Sep 2010 07:24:00 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sIybwy0z7bWw0ilx/SziPN3xnsQN4yn8NMXKZM3k7p4= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=OSKfKdqyJ-TktzVGodoA:9 a=040nWDDcuSq3MmQiRtIA:7 a=Wu_UJzKZMDdVeN4R8FrS8IziHFoA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14204464; Wed, 01 Sep 2010 09:23:56 +0200 From: Hans Petter Selasky To: David Naylor Date: Wed, 1 Sep 2010 09:19:55 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201008310929.29255.hselasky@c2i.net> <201009010855.49344.naylor.b.david@gmail.com> In-Reply-To: <201009010855.49344.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009010919.55484.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 07:24:01 -0000 > Will it matter if my kernel is a bit old (about 3 months)? Are there any > (small) live linux distros that have good webcam support (so that I can > check if the cam works at all with gspca)? > > David Maybe you could check your webcam in Ubuntu? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 07:38:16 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F31DE10656B8 for ; Wed, 1 Sep 2010 07:38:16 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7D2F58FC12 for ; Wed, 1 Sep 2010 07:38:16 +0000 (UTC) Received: by wwb34 with SMTP id 34so8130525wwb.31 for ; Wed, 01 Sep 2010 00:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=wo5vkEL8KM7i8lpZrtkD/P2oGolrEZlf2C4TI2Pd0YY=; b=N2GWTzhlf/MnV6QkjZ4wZUV4VpmCb9qH2arCj0tIF9kzRa+oN/Eq4wQmrSMezTRHN6 PRlKtUrnnU+zmHIcc6OxMPtTlHDlX8DU7GV+9MpasYmXy6m+wcoUV2tphG7DvOE18n9s ytzxEhQfr8QHBFjGPRGxz8KpksFLkxHK21mOE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=wWG7coqWVEN0uY8K0MGOz8JxiSkmqYR84JuBt7lm2k+8WVAkJEAe8tBuItT/0Zxy5w 7HS/GBgRIxvWQ0D5BBpwV7mCz3b8b40HqP88wTe8vlN+21Y+GGNCfb36e0jDxln8l3fp fvFcpSiIr+ZLRYsP/Kw8HFWm68Cx9ZePls1zc= Received: by 10.216.11.205 with SMTP id 55mr7529407wex.51.1283326695474; Wed, 01 Sep 2010 00:38:15 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id v11sm5875861weq.40.2010.09.01.00.38.09 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Sep 2010 00:38:14 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Wed, 1 Sep 2010 09:38:15 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009010855.49344.naylor.b.david@gmail.com> <201009010919.55484.hselasky@c2i.net> In-Reply-To: <201009010919.55484.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1312622.zRuti0FdKW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009010938.18380.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 07:38:17 -0000 --nextPart1312622.zRuti0FdKW Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > Will it matter if my kernel is a bit old (about 3 months)? Are there a= ny > > (small) live linux distros that have good webcam support (so that I can > > check if the cam works at all with gspca)? > >=20 > > David >=20 > Maybe you could check your webcam in Ubuntu? I'm downloading it now... I've checked that the cam works under Windows so the hardware is sound. =20 I'll report back if the cam works under Ubuntu. =20 --nextPart1312622.zRuti0FdKW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx+AuoACgkQUaaFgP9pFrJLFgCcDZ+KoE471kP6bmR7xGkzpnxc uYYAnRolpPEH7IiYJyDrqxk/GdJch9N5 =q2rZ -----END PGP SIGNATURE----- --nextPart1312622.zRuti0FdKW-- From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 08:01:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A10A10656B2; Wed, 1 Sep 2010 08:01:59 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 079818FC15; Wed, 1 Sep 2010 08:01:59 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o8181uDN096220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Sep 2010 01:01:56 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o8181u2n096219; Wed, 1 Sep 2010 01:01:56 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA07247; Wed, 1 Sep 10 00:57:22 PDT Date: Wed, 01 Sep 2010 00:57:15 -0700 From: perryh@pluto.rain.com To: remegius@comcast.net Message-Id: <4c7e075b.8edSaF5Xw9mGHkRS%perryh@pluto.rain.com> References: <20100901000413.GA1559@bsd.remdog.net> In-Reply-To: <20100901000413.GA1559@bsd.remdog.net> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Interactive Port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 08:01:59 -0000 Rem P Roberti wrote: > Brother! Muttprint is now working fine. The problem: the printer > was offline! Now, before you go accusing me of being a complete > dufus, let me say that I had no way of knowing that that condition > existed. The printer itself indicated that it was online---no > problem. What happened is that somehow, and I'm not sure what > caused this, the printer became disengaged from its usb port. I'd call it a bug in the printer that it continues to indicate online when it has lost its connection to its host (unless it also has a network connection, and in that case I imagine you'd be using the network instead of USB). > ... The only way that I could get it talking again to usb was by > doing a reboot. Now _that_ sounds like a possible bug in the USB subsystem, since USB is supposed to be completely hot-pluggable and should not need a reboot to get itself straightened out after a mishap. Cc-ing usb@ list. One question which will surely arise is, which FreeBSD version are you using? The USB stack was completely rewritten in 8.0. From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 14:20:01 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0CDC1065697 for ; Wed, 1 Sep 2010 14:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 63DE88FC1A for ; Wed, 1 Sep 2010 14:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o81EK1gl098232 for ; Wed, 1 Sep 2010 14:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o81EK1vJ098231; Wed, 1 Sep 2010 14:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 1 Sep 2010 14:20:01 GMT Resent-Message-Id: <201009011420.o81EK1vJ098231@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Derrick Brashear Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 135791065697 for ; Wed, 1 Sep 2010 14:10:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 026A78FC12 for ; Wed, 1 Sep 2010 14:10:12 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o81EABlt011025 for ; Wed, 1 Sep 2010 14:10:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o81EABtb011024; Wed, 1 Sep 2010 14:10:11 GMT (envelope-from nobody) Message-Id: <201009011410.o81EABtb011024@www.freebsd.org> Date: Wed, 1 Sep 2010 14:10:11 GMT From: Derrick Brashear To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/150189: if_run appears to corrupt IP traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 14:20:01 -0000 >Number: 150189 >Category: usb >Synopsis: if_run appears to corrupt IP traffic >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 01 14:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Derrick Brashear >Release: 8.1-RELEASE >Organization: OpenAFS >Environment: FreeBSD rtr.sside.dementia.org 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Mon Aug 30 14:50:15 EDT 2010 sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense.8 i386 >Description: Adding a run interface to the machine in hostap mode. In all of WEP, WPA and no crypt, clients can associate. In WEP or WPA mode, a circumstance like usb/132722 arises: no lease can be had, and traffic on the run looks the same in tcpdump, unknown SSAP, unknown DSAP... In no crypt mode, a lease can be obtained, but performance is poor; it appears some frames are being transmitted back to the client corrupted. I can provide IEEE802_11_RADIO or regular tcpdumps, if that would help, but they're pretty mundane, so before I did I figured I'd ask what you actually want to see rather than just dropping a large blob at you. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 17:10:02 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB26D10656B4 for ; Wed, 1 Sep 2010 17:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DB2288FC15 for ; Wed, 1 Sep 2010 17:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o81HA2Dd075184 for ; Wed, 1 Sep 2010 17:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o81HA2vW075183; Wed, 1 Sep 2010 17:10:02 GMT (envelope-from gnats) Date: Wed, 1 Sep 2010 17:10:02 GMT Message-Id: <201009011710.o81HA2vW075183@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Derrick Brashear Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Derrick Brashear List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 17:10:03 -0000 The following reply was made to PR usb/150189; it has been noted by GNATS. From: Derrick Brashear To: bug-followup@freebsd.org Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic Date: Wed, 1 Sep 2010 12:38:41 -0400 I suppose you might want to know: run0: <1.0> on usbus2 run0: MAC/BBP RT2872 (rev 0x0202), RF RT2850 (MIMO 2T2R), address 00:0e:8e:24:9b:48 run0: firmware RT2870 loaded And e.g.: 00:46:06.498940 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > ff:ff:ff:ff:ff:ff IPX Information, send seq 27, rcv seq 0, Flags [Response], length 344 00:46:06.498994 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > ff:ff:ff:ff:ff:ff IPX Information, send seq 27, rcv seq 0, Flags [Response], length 344 00:46:09.715426 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > 01:00:5e:00:00:fb Unknown DSAP 0xe2 Information, send seq 27, rcv seq 0, Flags [Response], length 611 00:46:09.715481 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > 01:00:5e:00:00:fb Unknown DSAP 0xe2 Information, send seq 27, rcv seq 0, Flags [Response], length 611 00:46:09.716380 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > 33:33:00:00:00:fb Unknown DSAP 0xe2 Information, send seq 27, rcv seq 0, Flags [Response], length 631 00:46:09.716416 c4:2c:03:d5:91:a1 Unknown SSAP 0x72 > 33:33:00:00:00:fb Unknown DSAP 0xe2 Information, send seq 27, rcv seq 0, Flags [Response], length 631 From owner-freebsd-usb@FreeBSD.ORG Wed Sep 1 23:50:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8517910656A9 for ; Wed, 1 Sep 2010 23:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58BBE8FC0A for ; Wed, 1 Sep 2010 23:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o81No3N6086442 for ; Wed, 1 Sep 2010 23:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o81No3B6086441; Wed, 1 Sep 2010 23:50:03 GMT (envelope-from gnats) Date: Wed, 1 Sep 2010 23:50:03 GMT Message-Id: <201009012350.o81No3B6086441@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/125736: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 23:50:03 -0000 The following reply was made to PR usb/125736; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/125736: commit references a PR Date: Wed, 1 Sep 2010 23:48:07 +0000 (UTC) Author: thompsa Date: Wed Sep 1 23:47:53 2010 New Revision: 212122 URL: http://svn.freebsd.org/changeset/base/212122 Log: Add missing MODULE_VERSION() definitions, this resolves problems around duplicate module loads. PR: usb/125736 Submitted by: danger, mm Reviewed by: hselasky Modified: head/sys/dev/if_ndis/if_ndis_usb.c head/sys/dev/usb/input/atp.c head/sys/dev/usb/input/uep.c head/sys/dev/usb/input/uhid.c head/sys/dev/usb/input/ukbd.c head/sys/dev/usb/input/ums.c head/sys/dev/usb/misc/udbp.c head/sys/dev/usb/misc/ufm.c head/sys/dev/usb/net/if_aue.c head/sys/dev/usb/net/if_axe.c head/sys/dev/usb/net/if_cue.c head/sys/dev/usb/net/if_kue.c head/sys/dev/usb/net/if_rue.c head/sys/dev/usb/net/if_udav.c head/sys/dev/usb/serial/u3g.c head/sys/dev/usb/serial/uark.c head/sys/dev/usb/serial/ubsa.c head/sys/dev/usb/serial/ubser.c head/sys/dev/usb/serial/uchcom.c head/sys/dev/usb/serial/ucycom.c head/sys/dev/usb/serial/ufoma.c head/sys/dev/usb/serial/uftdi.c head/sys/dev/usb/serial/ugensa.c head/sys/dev/usb/serial/uipaq.c head/sys/dev/usb/serial/ulpt.c head/sys/dev/usb/serial/umct.c head/sys/dev/usb/serial/umoscom.c head/sys/dev/usb/serial/uvisor.c head/sys/dev/usb/storage/umass.c head/sys/dev/usb/storage/urio.c head/sys/dev/usb/usb_compat_linux.c head/sys/dev/usb/usb_hub.c head/sys/dev/usb/wlan/if_rum.c head/sys/dev/usb/wlan/if_run.c head/sys/dev/usb/wlan/if_uath.c head/sys/dev/usb/wlan/if_ural.c head/sys/dev/usb/wlan/if_urtw.c head/sys/dev/usb/wlan/if_zyd.c Modified: head/sys/dev/if_ndis/if_ndis_usb.c ============================================================================== --- head/sys/dev/if_ndis/if_ndis_usb.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/if_ndis/if_ndis_usb.c Wed Sep 1 23:47:53 2010 (r212122) @@ -107,6 +107,7 @@ static driver_t ndis_driver = { static devclass_t ndis_devclass; DRIVER_MODULE(ndis, uhub, ndis_driver, ndis_devclass, ndisdrv_modevent, 0); +MODULE_VERSION(ndis, 1); static int ndisusb_devcompare(interface_type bustype, struct ndis_usb_type *t, device_t dev) Modified: head/sys/dev/usb/input/atp.c ============================================================================== --- head/sys/dev/usb/input/atp.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/input/atp.c Wed Sep 1 23:47:53 2010 (r212122) @@ -2222,3 +2222,4 @@ static devclass_t atp_devclass; DRIVER_MODULE(atp, uhub, atp_driver, atp_devclass, NULL, 0); MODULE_DEPEND(atp, usb, 1, 1, 1); +MODULE_VERSION(atp, 1); Modified: head/sys/dev/usb/input/uep.c ============================================================================== --- head/sys/dev/usb/input/uep.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/input/uep.c Wed Sep 1 23:47:53 2010 (r212122) @@ -439,3 +439,4 @@ static driver_t uep_driver = { DRIVER_MODULE(uep, uhub, uep_driver, uep_devclass, NULL, NULL); MODULE_DEPEND(uep, usb, 1, 1, 1); +MODULE_VERSION(uep, 1); Modified: head/sys/dev/usb/input/uhid.c ============================================================================== --- head/sys/dev/usb/input/uhid.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/input/uhid.c Wed Sep 1 23:47:53 2010 (r212122) @@ -801,3 +801,4 @@ static driver_t uhid_driver = { DRIVER_MODULE(uhid, uhub, uhid_driver, uhid_devclass, NULL, 0); MODULE_DEPEND(uhid, usb, 1, 1, 1); +MODULE_VERSION(uhid, 1); Modified: head/sys/dev/usb/input/ukbd.c ============================================================================== --- head/sys/dev/usb/input/ukbd.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/input/ukbd.c Wed Sep 1 23:47:53 2010 (r212122) @@ -1887,3 +1887,4 @@ static driver_t ukbd_driver = { DRIVER_MODULE(ukbd, uhub, ukbd_driver, ukbd_devclass, ukbd_driver_load, 0); MODULE_DEPEND(ukbd, usb, 1, 1, 1); +MODULE_VERSION(ukbd, 1); Modified: head/sys/dev/usb/input/ums.c ============================================================================== --- head/sys/dev/usb/input/ums.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/input/ums.c Wed Sep 1 23:47:53 2010 (r212122) @@ -1010,3 +1010,4 @@ static driver_t ums_driver = { DRIVER_MODULE(ums, uhub, ums_driver, ums_devclass, NULL, 0); MODULE_DEPEND(ums, usb, 1, 1, 1); +MODULE_VERSION(ums, 1); Modified: head/sys/dev/usb/misc/udbp.c ============================================================================== --- head/sys/dev/usb/misc/udbp.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/misc/udbp.c Wed Sep 1 23:47:53 2010 (r212122) @@ -261,6 +261,7 @@ static driver_t udbp_driver = { DRIVER_MODULE(udbp, uhub, udbp_driver, udbp_devclass, udbp_modload, 0); MODULE_DEPEND(udbp, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION); MODULE_DEPEND(udbp, usb, 1, 1, 1); +MODULE_VERSION(udbp, 1); static int udbp_modload(module_t mod, int event, void *data) Modified: head/sys/dev/usb/misc/ufm.c ============================================================================== --- head/sys/dev/usb/misc/ufm.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/misc/ufm.c Wed Sep 1 23:47:53 2010 (r212122) @@ -117,6 +117,7 @@ static driver_t ufm_driver = { DRIVER_MODULE(ufm, uhub, ufm_driver, ufm_devclass, NULL, 0); MODULE_DEPEND(ufm, usb, 1, 1, 1); +MODULE_VERSION(ufm, 1); static int ufm_probe(device_t dev) Modified: head/sys/dev/usb/net/if_aue.c ============================================================================== --- head/sys/dev/usb/net/if_aue.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_aue.c Wed Sep 1 23:47:53 2010 (r212122) @@ -281,6 +281,7 @@ MODULE_DEPEND(aue, uether, 1, 1, 1); MODULE_DEPEND(aue, usb, 1, 1, 1); MODULE_DEPEND(aue, ether, 1, 1, 1); MODULE_DEPEND(aue, miibus, 1, 1, 1); +MODULE_VERSION(aue, 1); static const struct usb_ether_methods aue_ue_methods = { .ue_attach_post = aue_attach_post, Modified: head/sys/dev/usb/net/if_axe.c ============================================================================== --- head/sys/dev/usb/net/if_axe.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_axe.c Wed Sep 1 23:47:53 2010 (r212122) @@ -256,6 +256,7 @@ MODULE_DEPEND(axe, uether, 1, 1, 1); MODULE_DEPEND(axe, usb, 1, 1, 1); MODULE_DEPEND(axe, ether, 1, 1, 1); MODULE_DEPEND(axe, miibus, 1, 1, 1); +MODULE_VERSION(axe, 1); static const struct usb_ether_methods axe_ue_methods = { .ue_attach_post = axe_attach_post, Modified: head/sys/dev/usb/net/if_cue.c ============================================================================== --- head/sys/dev/usb/net/if_cue.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_cue.c Wed Sep 1 23:47:53 2010 (r212122) @@ -173,6 +173,7 @@ DRIVER_MODULE(cue, uhub, cue_driver, cue MODULE_DEPEND(cue, uether, 1, 1, 1); MODULE_DEPEND(cue, usb, 1, 1, 1); MODULE_DEPEND(cue, ether, 1, 1, 1); +MODULE_VERSION(cue, 1); static const struct usb_ether_methods cue_ue_methods = { .ue_attach_post = cue_attach_post, Modified: head/sys/dev/usb/net/if_kue.c ============================================================================== --- head/sys/dev/usb/net/if_kue.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_kue.c Wed Sep 1 23:47:53 2010 (r212122) @@ -215,6 +215,7 @@ DRIVER_MODULE(kue, uhub, kue_driver, kue MODULE_DEPEND(kue, uether, 1, 1, 1); MODULE_DEPEND(kue, usb, 1, 1, 1); MODULE_DEPEND(kue, ether, 1, 1, 1); +MODULE_VERSION(kue, 1); static const struct usb_ether_methods kue_ue_methods = { .ue_attach_post = kue_attach_post, Modified: head/sys/dev/usb/net/if_rue.c ============================================================================== --- head/sys/dev/usb/net/if_rue.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_rue.c Wed Sep 1 23:47:53 2010 (r212122) @@ -213,6 +213,7 @@ MODULE_DEPEND(rue, uether, 1, 1, 1); MODULE_DEPEND(rue, usb, 1, 1, 1); MODULE_DEPEND(rue, ether, 1, 1, 1); MODULE_DEPEND(rue, miibus, 1, 1, 1); +MODULE_VERSION(rue, 1); static const struct usb_ether_methods rue_ue_methods = { .ue_attach_post = rue_attach_post, Modified: head/sys/dev/usb/net/if_udav.c ============================================================================== --- head/sys/dev/usb/net/if_udav.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/net/if_udav.c Wed Sep 1 23:47:53 2010 (r212122) @@ -172,6 +172,7 @@ MODULE_DEPEND(udav, uether, 1, 1, 1); MODULE_DEPEND(udav, usb, 1, 1, 1); MODULE_DEPEND(udav, ether, 1, 1, 1); MODULE_DEPEND(udav, miibus, 1, 1, 1); +MODULE_VERSION(udav, 1); static const struct usb_ether_methods udav_ue_methods = { .ue_attach_post = udav_attach_post, Modified: head/sys/dev/usb/serial/u3g.c ============================================================================== --- head/sys/dev/usb/serial/u3g.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/u3g.c Wed Sep 1 23:47:53 2010 (r212122) @@ -178,6 +178,7 @@ static driver_t u3g_driver = { DRIVER_MODULE(u3g, uhub, u3g_driver, u3g_devclass, u3g_driver_loaded, 0); MODULE_DEPEND(u3g, ucom, 1, 1, 1); MODULE_DEPEND(u3g, usb, 1, 1, 1); +MODULE_VERSION(u3g, 1); static const struct usb_device_id u3g_devs[] = { #define U3G_DEV(v,p,i) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, i) } Modified: head/sys/dev/usb/serial/uark.c ============================================================================== --- head/sys/dev/usb/serial/uark.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/uark.c Wed Sep 1 23:47:53 2010 (r212122) @@ -169,6 +169,7 @@ static driver_t uark_driver = { DRIVER_MODULE(uark, uhub, uark_driver, uark_devclass, NULL, 0); MODULE_DEPEND(uark, ucom, 1, 1, 1); MODULE_DEPEND(uark, usb, 1, 1, 1); +MODULE_VERSION(uark, 1); static const struct usb_device_id uark_devs[] = { {USB_VPI(USB_VENDOR_ARKMICRO, USB_PRODUCT_ARKMICRO_ARK3116, 0)}, Modified: head/sys/dev/usb/serial/ubsa.c ============================================================================== --- head/sys/dev/usb/serial/ubsa.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ubsa.c Wed Sep 1 23:47:53 2010 (r212122) @@ -277,6 +277,7 @@ static driver_t ubsa_driver = { DRIVER_MODULE(ubsa, uhub, ubsa_driver, ubsa_devclass, NULL, 0); MODULE_DEPEND(ubsa, ucom, 1, 1, 1); MODULE_DEPEND(ubsa, usb, 1, 1, 1); +MODULE_VERSION(ubsa, 1); static int ubsa_probe(device_t dev) Modified: head/sys/dev/usb/serial/ubser.c ============================================================================== --- head/sys/dev/usb/serial/ubser.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ubser.c Wed Sep 1 23:47:53 2010 (r212122) @@ -215,6 +215,7 @@ static driver_t ubser_driver = { DRIVER_MODULE(ubser, uhub, ubser_driver, ubser_devclass, NULL, 0); MODULE_DEPEND(ubser, ucom, 1, 1, 1); MODULE_DEPEND(ubser, usb, 1, 1, 1); +MODULE_VERSION(ubser, 1); static int ubser_probe(device_t dev) Modified: head/sys/dev/usb/serial/uchcom.c ============================================================================== --- head/sys/dev/usb/serial/uchcom.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/uchcom.c Wed Sep 1 23:47:53 2010 (r212122) @@ -855,3 +855,4 @@ static devclass_t uchcom_devclass; DRIVER_MODULE(uchcom, uhub, uchcom_driver, uchcom_devclass, NULL, 0); MODULE_DEPEND(uchcom, ucom, 1, 1, 1); MODULE_DEPEND(uchcom, usb, 1, 1, 1); +MODULE_VERSION(uchcom, 1); Modified: head/sys/dev/usb/serial/ucycom.c ============================================================================== --- head/sys/dev/usb/serial/ucycom.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ucycom.c Wed Sep 1 23:47:53 2010 (r212122) @@ -176,6 +176,7 @@ static driver_t ucycom_driver = { DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, NULL, 0); MODULE_DEPEND(ucycom, ucom, 1, 1, 1); MODULE_DEPEND(ucycom, usb, 1, 1, 1); +MODULE_VERSION(ucycom, 1); /* * Supported devices Modified: head/sys/dev/usb/serial/ufoma.c ============================================================================== --- head/sys/dev/usb/serial/ufoma.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ufoma.c Wed Sep 1 23:47:53 2010 (r212122) @@ -326,6 +326,7 @@ static driver_t ufoma_driver = { DRIVER_MODULE(ufoma, uhub, ufoma_driver, ufoma_devclass, NULL, 0); MODULE_DEPEND(ufoma, ucom, 1, 1, 1); MODULE_DEPEND(ufoma, usb, 1, 1, 1); +MODULE_VERSION(ufoma, 1); static int ufoma_probe(device_t dev) Modified: head/sys/dev/usb/serial/uftdi.c ============================================================================== --- head/sys/dev/usb/serial/uftdi.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/uftdi.c Wed Sep 1 23:47:53 2010 (r212122) @@ -205,6 +205,7 @@ static driver_t uftdi_driver = { DRIVER_MODULE(uftdi, uhub, uftdi_driver, uftdi_devclass, NULL, 0); MODULE_DEPEND(uftdi, ucom, 1, 1, 1); MODULE_DEPEND(uftdi, usb, 1, 1, 1); +MODULE_VERSION(uftdi, 1); static struct usb_device_id uftdi_devs[] = { #define UFTDI_DEV(v,p,t) \ Modified: head/sys/dev/usb/serial/ugensa.c ============================================================================== --- head/sys/dev/usb/serial/ugensa.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ugensa.c Wed Sep 1 23:47:53 2010 (r212122) @@ -153,6 +153,7 @@ static driver_t ugensa_driver = { DRIVER_MODULE(ugensa, uhub, ugensa_driver, ugensa_devclass, NULL, 0); MODULE_DEPEND(ugensa, ucom, 1, 1, 1); MODULE_DEPEND(ugensa, usb, 1, 1, 1); +MODULE_VERSION(ugensa, 1); static const struct usb_device_id ugensa_devs[] = { {USB_VPI(USB_VENDOR_AIRPRIME, USB_PRODUCT_AIRPRIME_PC5220, 0)}, Modified: head/sys/dev/usb/serial/uipaq.c ============================================================================== --- head/sys/dev/usb/serial/uipaq.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/uipaq.c Wed Sep 1 23:47:53 2010 (r212122) @@ -1085,6 +1085,7 @@ static driver_t uipaq_driver = { DRIVER_MODULE(uipaq, uhub, uipaq_driver, uipaq_devclass, NULL, 0); MODULE_DEPEND(uipaq, ucom, 1, 1, 1); MODULE_DEPEND(uipaq, usb, 1, 1, 1); +MODULE_VERSION(uipaq, 1); static int uipaq_probe(device_t dev) Modified: head/sys/dev/usb/serial/ulpt.c ============================================================================== --- head/sys/dev/usb/serial/ulpt.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/ulpt.c Wed Sep 1 23:47:53 2010 (r212122) @@ -745,3 +745,4 @@ static driver_t ulpt_driver = { DRIVER_MODULE(ulpt, uhub, ulpt_driver, ulpt_devclass, NULL, 0); MODULE_DEPEND(ulpt, usb, 1, 1, 1); MODULE_DEPEND(ulpt, ucom, 1, 1, 1); +MODULE_VERSION(ulpt, 1); Modified: head/sys/dev/usb/serial/umct.c ============================================================================== --- head/sys/dev/usb/serial/umct.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/umct.c Wed Sep 1 23:47:53 2010 (r212122) @@ -219,6 +219,7 @@ static driver_t umct_driver = { DRIVER_MODULE(umct, uhub, umct_driver, umct_devclass, NULL, 0); MODULE_DEPEND(umct, ucom, 1, 1, 1); MODULE_DEPEND(umct, usb, 1, 1, 1); +MODULE_VERSION(umct, 1); static int umct_probe(device_t dev) Modified: head/sys/dev/usb/serial/umoscom.c ============================================================================== --- head/sys/dev/usb/serial/umoscom.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/umoscom.c Wed Sep 1 23:47:53 2010 (r212122) @@ -279,6 +279,7 @@ static driver_t umoscom_driver = { DRIVER_MODULE(umoscom, uhub, umoscom_driver, umoscom_devclass, NULL, 0); MODULE_DEPEND(umoscom, ucom, 1, 1, 1); MODULE_DEPEND(umoscom, usb, 1, 1, 1); +MODULE_VERSION(umoscom, 1); static const struct usb_device_id umoscom_devs[] = { {USB_VPI(USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7703, 0)} Modified: head/sys/dev/usb/serial/uvisor.c ============================================================================== --- head/sys/dev/usb/serial/uvisor.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/serial/uvisor.c Wed Sep 1 23:47:53 2010 (r212122) @@ -252,6 +252,7 @@ static driver_t uvisor_driver = { DRIVER_MODULE(uvisor, uhub, uvisor_driver, uvisor_devclass, NULL, 0); MODULE_DEPEND(uvisor, ucom, 1, 1, 1); MODULE_DEPEND(uvisor, usb, 1, 1, 1); +MODULE_VERSION(uvisor, 1); static const struct usb_device_id uvisor_devs[] = { #define UVISOR_DEV(v,p,i) { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, i) } Modified: head/sys/dev/usb/storage/umass.c ============================================================================== --- head/sys/dev/usb/storage/umass.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/storage/umass.c Wed Sep 1 23:47:53 2010 (r212122) @@ -715,6 +715,7 @@ static driver_t umass_driver = { DRIVER_MODULE(umass, uhub, umass_driver, umass_devclass, NULL, 0); MODULE_DEPEND(umass, usb, 1, 1, 1); MODULE_DEPEND(umass, cam, 1, 1, 1); +MODULE_VERSION(umass, 1); /* * USB device probe/attach/detach Modified: head/sys/dev/usb/storage/urio.c ============================================================================== --- head/sys/dev/usb/storage/urio.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/storage/urio.c Wed Sep 1 23:47:53 2010 (r212122) @@ -197,6 +197,7 @@ static driver_t urio_driver = { DRIVER_MODULE(urio, uhub, urio_driver, urio_devclass, NULL, 0); MODULE_DEPEND(urio, usb, 1, 1, 1); +MODULE_VERSION(urio, 1); static int urio_probe(device_t dev) Modified: head/sys/dev/usb/usb_compat_linux.c ============================================================================== --- head/sys/dev/usb/usb_compat_linux.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/usb_compat_linux.c Wed Sep 1 23:47:53 2010 (r212122) @@ -122,6 +122,7 @@ static driver_t usb_linux_driver = { static devclass_t usb_linux_devclass; DRIVER_MODULE(usb_linux, uhub, usb_linux_driver, usb_linux_devclass, NULL, 0); +MODULE_VERSION(usb_linux, 1); /*------------------------------------------------------------------------* * usb_linux_lookup_id Modified: head/sys/dev/usb/usb_hub.c ============================================================================== --- head/sys/dev/usb/usb_hub.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/usb_hub.c Wed Sep 1 23:47:53 2010 (r212122) @@ -170,6 +170,7 @@ static driver_t uhub_driver = { DRIVER_MODULE(uhub, usbus, uhub_driver, uhub_devclass, 0, 0); DRIVER_MODULE(uhub, uhub, uhub_driver, uhub_devclass, NULL, 0); +MODULE_VERSION(uhub, 1); static void uhub_intr_callback(struct usb_xfer *xfer, usb_error_t error) Modified: head/sys/dev/usb/wlan/if_rum.c ============================================================================== --- head/sys/dev/usb/wlan/if_rum.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_rum.c Wed Sep 1 23:47:53 2010 (r212122) @@ -139,9 +139,6 @@ static const struct usb_device_id rum_de #undef RUM_DEV }; -MODULE_DEPEND(rum, wlan, 1, 1, 1); -MODULE_DEPEND(rum, usb, 1, 1, 1); - static device_probe_t rum_match; static device_attach_t rum_attach; static device_detach_t rum_detach; @@ -2360,3 +2357,6 @@ static driver_t rum_driver = { static devclass_t rum_devclass; DRIVER_MODULE(rum, uhub, rum_driver, rum_devclass, NULL, 0); +MODULE_DEPEND(rum, wlan, 1, 1, 1); +MODULE_DEPEND(rum, usb, 1, 1, 1); +MODULE_VERSION(rum, 1); Modified: head/sys/dev/usb/wlan/if_run.c ============================================================================== --- head/sys/dev/usb/wlan/if_run.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_run.c Wed Sep 1 23:47:53 2010 (r212122) @@ -294,10 +294,6 @@ static const struct usb_device_id run_de #undef RUN_DEV }; -MODULE_DEPEND(run, wlan, 1, 1, 1); -MODULE_DEPEND(run, usb, 1, 1, 1); -MODULE_DEPEND(run, firmware, 1, 1, 1); - static device_probe_t run_match; static device_attach_t run_attach; static device_detach_t run_detach; @@ -4871,3 +4867,7 @@ static driver_t run_driver = { static devclass_t run_devclass; DRIVER_MODULE(run, uhub, run_driver, run_devclass, NULL, 0); +MODULE_DEPEND(run, wlan, 1, 1, 1); +MODULE_DEPEND(run, usb, 1, 1, 1); +MODULE_DEPEND(run, firmware, 1, 1, 1); +MODULE_VERSION(run, 1); Modified: head/sys/dev/usb/wlan/if_uath.c ============================================================================== --- head/sys/dev/usb/wlan/if_uath.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_uath.c Wed Sep 1 23:47:53 2010 (r212122) @@ -2892,3 +2892,4 @@ static devclass_t uath_devclass; DRIVER_MODULE(uath, uhub, uath_driver, uath_devclass, NULL, 0); MODULE_DEPEND(uath, wlan, 1, 1, 1); MODULE_DEPEND(uath, usb, 1, 1, 1); +MODULE_VERSION(uath, 1); Modified: head/sys/dev/usb/wlan/if_ural.c ============================================================================== --- head/sys/dev/usb/wlan/if_ural.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_ural.c Wed Sep 1 23:47:53 2010 (r212122) @@ -400,6 +400,7 @@ static devclass_t ural_devclass; DRIVER_MODULE(ural, uhub, ural_driver, ural_devclass, NULL, 0); MODULE_DEPEND(ural, usb, 1, 1, 1); MODULE_DEPEND(ural, wlan, 1, 1, 1); +MODULE_VERSION(ural, 1); static int ural_match(device_t self) Modified: head/sys/dev/usb/wlan/if_urtw.c ============================================================================== --- head/sys/dev/usb/wlan/if_urtw.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_urtw.c Wed Sep 1 23:47:53 2010 (r212122) @@ -4441,3 +4441,4 @@ static devclass_t urtw_devclass; DRIVER_MODULE(urtw, uhub, urtw_driver, urtw_devclass, NULL, 0); MODULE_DEPEND(urtw, wlan, 1, 1, 1); MODULE_DEPEND(urtw, usb, 1, 1, 1); +MODULE_VERSION(urtw, 1); Modified: head/sys/dev/usb/wlan/if_zyd.c ============================================================================== --- head/sys/dev/usb/wlan/if_zyd.c Wed Sep 1 22:50:11 2010 (r212121) +++ head/sys/dev/usb/wlan/if_zyd.c Wed Sep 1 23:47:53 2010 (r212122) @@ -2948,3 +2948,4 @@ static devclass_t zyd_devclass; DRIVER_MODULE(zyd, uhub, zyd_driver, zyd_devclass, NULL, 0); MODULE_DEPEND(zyd, usb, 1, 1, 1); MODULE_DEPEND(zyd, wlan, 1, 1, 1); +MODULE_VERSION(zyd, 1); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 00:49:14 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFE4F10656E5; Thu, 2 Sep 2010 00:49:14 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 85CB28FC25; Thu, 2 Sep 2010 00:49:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o820nEY7048269; Thu, 2 Sep 2010 00:49:14 GMT (envelope-from thompsa@freefall.freebsd.org) Received: (from thompsa@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o820nDt4048265; Thu, 2 Sep 2010 00:49:13 GMT (envelope-from thompsa) Date: Thu, 2 Sep 2010 00:49:13 GMT Message-Id: <201009020049.o820nDt4048265@freefall.freebsd.org> To: admin@lissyara.su, thompsa@FreeBSD.org, freebsd-usb@FreeBSD.org, thompsa@FreeBSD.org From: thompsa@FreeBSD.org Cc: Subject: Re: usb/125736: [ukbd] [hang] system hangs after AT keyboard detect if ukbd loaded as a module X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 00:49:14 -0000 Synopsis: [ukbd] [hang] system hangs after AT keyboard detect if ukbd loaded as a module State-Changed-From-To: open->patched State-Changed-By: thompsa State-Changed-When: Thu Sep 2 00:48:49 UTC 2010 State-Changed-Why: Committed to svn. Responsible-Changed-From-To: freebsd-usb->thompsa Responsible-Changed-By: thompsa Responsible-Changed-When: Thu Sep 2 00:48:49 UTC 2010 Responsible-Changed-Why: Committed to svn. http://www.freebsd.org/cgi/query-pr.cgi?pr=125736 From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 03:50:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CB3F1065708 for ; Thu, 2 Sep 2010 03:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D5848FC16 for ; Thu, 2 Sep 2010 03:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o823o3mC032220 for ; Thu, 2 Sep 2010 03:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o823o3Ot032219; Thu, 2 Sep 2010 03:50:03 GMT (envelope-from gnats) Date: Thu, 2 Sep 2010 03:50:03 GMT Message-Id: <201009020350.o823o3Ot032219@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/141212: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 03:50:03 -0000 The following reply was made to PR usb/141212; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/141212: commit references a PR Date: Thu, 2 Sep 2010 03:42:41 +0000 (UTC) Author: thompsa Date: Thu Sep 2 03:42:26 2010 New Revision: 212128 URL: http://svn.freebsd.org/changeset/base/212128 Log: Silence debug error by default. PR: usb/141212 Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/input/ukbd.c Modified: head/sys/dev/usb/input/ukbd.c ============================================================================== --- head/sys/dev/usb/input/ukbd.c Thu Sep 2 03:28:03 2010 (r212127) +++ head/sys/dev/usb/input/ukbd.c Thu Sep 2 03:42:26 2010 (r212128) @@ -720,7 +720,7 @@ ukbd_set_leds_callback(struct usb_xfer * break; default: /* Error */ - DPRINTFN(0, "error=%s\n", usbd_errstr(error)); + DPRINTFN(1, "error=%s\n", usbd_errstr(error)); break; } } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 08:57:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA827106577F for ; Thu, 2 Sep 2010 08:57:45 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A2AB8FC08 for ; Thu, 2 Sep 2010 08:57:45 +0000 (UTC) Received: by wyb33 with SMTP id 33so1003wyb.13 for ; Thu, 02 Sep 2010 01:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=Azl8GwI8sWmZcacosIZ1Rju7ikWB1Z/kC+OSC8T27mE=; b=vGZQaiM0cp/ekCH7S1euKCdntzX0zFrpGcZyMlXMvm933iQlSZzB9n9nnWjwVffxHK 5E07CitFVO9cCPsqGGxKrdrddBMlUBOHCMJd8YfumT6X9+5ba4HGgDnmBqaLwYjHkGQE KSpEvkSrJZpZTtWuCb37WAk89pIZzw5Ys9gOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=XLTGnuAzxrMRUMGMnn1mLSglE/xYMG30tf+kRqYE38kwQWuX/nvNPy3WcVmepCNHA5 k5/n0UN1RuNzd2ZdQBMscFgoacEzhq7ME8HO+QLrnr6OmB29jwcSu6LmKoU2fmbDM/rZ Vx1mQCCxzZu/J451agV1RHjHjGz1eSe7sPgAQ= Received: by 10.216.93.16 with SMTP id k16mr9045510wef.78.1283417864537; Thu, 02 Sep 2010 01:57:44 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id o49sm125471wej.19.2010.09.02.01.57.41 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 01:57:43 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Thu, 2 Sep 2010 10:57:52 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009010855.49344.naylor.b.david@gmail.com> <201009010919.55484.hselasky@c2i.net> In-Reply-To: <201009010919.55484.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2162396.Sv1eMWdymk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009021057.55901.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 08:57:46 -0000 --nextPart2162396.Sv1eMWdymk Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > Will it matter if my kernel is a bit old (about 3 months)? Are there a= ny > > (small) live linux distros that have good webcam support (so that I can > > check if the cam works at all with gspca)? > >=20 > > David >=20 > Maybe you could check your webcam in Ubuntu? >=20 > --HPS Just before I was about to check the webcam with Ubuntu I tried it on anot= her=20 computer... and it worked. =20 To make sure: I copied across the debug build of webcam and it worked with= =20 that as well. It certainly is not the software on the webcamd side. cuse4= bsd=20 is the same on both computers. Both systems are running different custom=20 kernels but contain the same usb devices (the same as GENERIC). =20 On the computer that works `pwcview -s vga` does not work. I expect that t= o=20 be a limitation of the device. =20 On the other computer, I tried every USB port and none of them work. The U= SB=20 controllers are: ohci0@pci0:0:11:0: class=3D0x0c0310 card=3D0x50041458 chip=3D0x026d10d= e=20 rev=3D0xa3 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'MCP51 USB Controller' class =3D serial bus subclass =3D USB ehci0@pci0:0:11:1: class=3D0x0c0320 card=3D0x50041458 chip=3D0x026e10d= e=20 rev=3D0xa3 hdr=3D0x00 vendor =3D 'NVIDIA Corporation' device =3D 'MCP51 USB Controller' class =3D serial bus subclass =3D USB The USB ports do work for umass, u3g and umodem devices. Will the kernel=20 version have an impact, should I upgrade to head? The webcam works with Ubuntu on both computers. =20 David --nextPart2162396.Sv1eMWdymk Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx/ZxMACgkQUaaFgP9pFrKQsACfYRXi99EjQWrV0LsQD+kEcMvf qbAAn0HgeWgKXlHLIzgo0/vAuY3BcS0n =E6DF -----END PGP SIGNATURE----- --nextPart2162396.Sv1eMWdymk-- From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 09:13:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C23D0106574F for ; Thu, 2 Sep 2010 09:13:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 47C768FC16 for ; Thu, 2 Sep 2010 09:13:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=59NVUfGIdAMoNfLj0wsA:9 a=lismycrDVYadMkQYgJoA:7 a=m1Cf5ApW_FiVlBMJHsAF8ROefskA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 15540436; Thu, 02 Sep 2010 11:12:46 +0200 From: Hans Petter Selasky To: David Naylor Date: Thu, 2 Sep 2010 11:08:55 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009010919.55484.hselasky@c2i.net> <201009021057.55901.naylor.b.david@gmail.com> In-Reply-To: <201009021057.55901.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009021108.55301.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 09:13:03 -0000 On Thursday 02 September 2010 10:57:52 David Naylor wrote: > On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > > Will it matter if my kernel is a bit old (about 3 months)? Are there > > > any (small) live linux distros that have good webcam support (so that > > > I can check if the cam works at all with gspca)? > > > > > > David > > > > Maybe you could check your webcam in Ubuntu? > > > > --HPS > > Just before I was about to check the webcam with Ubuntu I tried it on > another computer... and it worked. > > To make sure: I copied across the debug build of webcam and it worked with > that as well. It certainly is not the software on the webcamd side. > cuse4bsd is the same on both computers. Both systems are running > different custom kernels but contain the same usb devices (the same as > GENERIC). > > On the computer that works `pwcview -s vga` does not work. I expect that > to be a limitation of the device. > > On the other computer, I tried every USB port and none of them work. The > USB controllers are: > > ohci0@pci0:0:11:0: class=0x0c0310 card=0x50041458 chip=0x026d10de > rev=0xa3 hdr=0x00 > vendor = 'NVIDIA Corporation' > device = 'MCP51 USB Controller' > class = serial bus > subclass = USB > ehci0@pci0:0:11:1: class=0x0c0320 card=0x50041458 chip=0x026e10de > rev=0xa3 hdr=0x00 > vendor = 'NVIDIA Corporation' > device = 'MCP51 USB Controller' > class = serial bus > subclass = USB > > The USB ports do work for umass, u3g and umodem devices. Will the kernel > version have an impact, should I upgrade to head? > > The webcam works with Ubuntu on both computers. There has been some updates in the kernel in the USB area (isochronous transfers), which might affect Webcam operation. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 10:43:08 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7531910656D4 for ; Thu, 2 Sep 2010 10:43:08 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id EFC1D8FC1A for ; Thu, 2 Sep 2010 10:43:07 +0000 (UTC) Received: by ewy4 with SMTP id 4so130386ewy.13 for ; Thu, 02 Sep 2010 03:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=9bxfvq2dhXrIEh2wjRPS/kvlPMCHspcRToAPCpf4n1M=; b=eVXQB2TpkakereEE/BilFBspqhrsEK8GHxn3CFbhLF3S6QuErrG3HcJUKjCdOrblff NlTu1yLAEYJf0yz0KdqVeIHizRkwJZlNJzxn3lNJSgRvxeBXULrRRiSHgIX/l4nS/fTO AeKC2qnX7vuO3MPfJ5kMm5RILQ/iIiboTf5w0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=Hnvlmo6dgmfKKCkY4i3z0arUFvkhYkCe59FZG+2lqVHisOzE3UNWD6IZ6dyJA3fH3L H8DcHCpsk12S2M6dJBnquhlUM0Ym6t+lrae8C+25bas238L2k9a0JtKeBuM7E+a4e01I EqTnlnVQFRtksVerLTBla9pXMsRY9stSFPMko= Received: by 10.216.164.71 with SMTP id b49mr1510087wel.1.1283424186673; Thu, 02 Sep 2010 03:43:06 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id w14sm206185weq.9.2010.09.02.03.43.03 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 03:43:05 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Thu, 2 Sep 2010 12:43:12 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009021057.55901.naylor.b.david@gmail.com> <201009021108.55301.hselasky@c2i.net> In-Reply-To: <201009021108.55301.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5197803.raLs5ZIWKD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009021243.17869.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 10:43:08 -0000 --nextPart5197803.raLs5ZIWKD Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Thursday 02 September 2010 11:08:55 Hans Petter Selasky wrote: > On Thursday 02 September 2010 10:57:52 David Naylor wrote: > > On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > > > Will it matter if my kernel is a bit old (about 3 months)? Are the= re > > > > any (small) live linux distros that have good webcam support (so th= at > > > > I can check if the cam works at all with gspca)? > > > >=20 > > > > David > > >=20 > > > Maybe you could check your webcam in Ubuntu? > > >=20 > > > --HPS > >=20 > > Just before I was about to check the webcam with Ubuntu I tried it on > > another computer... and it worked. > >=20 > > To make sure: I copied across the debug build of webcam and it worked > > with that as well. It certainly is not the software on the webcamd > > side. cuse4bsd is the same on both computers. Both systems are running > > different custom kernels but contain the same usb devices (the same as > > GENERIC). > >=20 > > On the computer that works `pwcview -s vga` does not work. I expect th= at > > to be a limitation of the device. > >=20 > > On the other computer, I tried every USB port and none of them work. T= he > > USB controllers are: > >=20 > > ohci0@pci0:0:11:0: class=3D0x0c0310 card=3D0x50041458 chip=3D0x026= d10de > > rev=3D0xa3 hdr=3D0x00 > >=20 > > vendor =3D 'NVIDIA Corporation' > > device =3D 'MCP51 USB Controller' > > class =3D serial bus > > subclass =3D USB > >=20 > > ehci0@pci0:0:11:1: class=3D0x0c0320 card=3D0x50041458 chip=3D0x026= e10de > > rev=3D0xa3 hdr=3D0x00 > >=20 > > vendor =3D 'NVIDIA Corporation' > > device =3D 'MCP51 USB Controller' > > class =3D serial bus > > subclass =3D USB > >=20 > > The USB ports do work for umass, u3g and umodem devices. Will the kern= el > > version have an impact, should I upgrade to head? > >=20 > > The webcam works with Ubuntu on both computers. >=20 > There has been some updates in the kernel in the USB area (isochronous > transfers), which might affect Webcam operation. I've updated the kernel, cuse4bsd (0.1.13) and webcamd (0.1.15). Still no= =20 luck. =20 --nextPart5197803.raLs5ZIWKD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx/f8UACgkQUaaFgP9pFrIq9wCeIMg0L9ZQL54AvDNo8INHQPvv smwAnA0cyjLMWyqFp1FSJO19AiuzeL3X =C7UQ -----END PGP SIGNATURE----- --nextPart5197803.raLs5ZIWKD-- From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 14:32:07 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE84E1065716 for ; Thu, 2 Sep 2010 14:32:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 37EFE8FC14 for ; Thu, 2 Sep 2010 14:32:06 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=9afp_linm7giO8VhUHkA:9 a=yES-1_lopWcevUlrIWIA:7 a=P1PAgniOMi_DwtYdyFuwziMZGbEA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 15735562; Thu, 02 Sep 2010 16:31:49 +0200 From: Hans Petter Selasky To: David Naylor Date: Thu, 2 Sep 2010 16:27:57 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009021108.55301.hselasky@c2i.net> <201009021243.17869.naylor.b.david@gmail.com> In-Reply-To: <201009021243.17869.naylor.b.david@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009021627.57894.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 14:32:07 -0000 On Thursday 02 September 2010 12:43:12 David Naylor wrote: > On Thursday 02 September 2010 11:08:55 Hans Petter Selasky wrote: > > On Thursday 02 September 2010 10:57:52 David Naylor wrote: > > > On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > > > > Will it matter if my kernel is a bit old (about 3 months)? Are > > > > > there any (small) live linux distros that have good webcam support > > > > > (so that I can check if the cam works at all with gspca)? > > > > > > > > > > David > > > > > > > > Maybe you could check your webcam in Ubuntu? > > > > > > > > --HPS > > > > > > Just before I was about to check the webcam with Ubuntu I tried it on > > > another computer... and it worked. > > > > > > To make sure: I copied across the debug build of webcam and it worked > > > with that as well. It certainly is not the software on the webcamd > > > side. cuse4bsd is the same on both computers. Both systems are running > > > different custom kernels but contain the same usb devices (the same as > > > GENERIC). > > > > > > On the computer that works `pwcview -s vga` does not work. I expect > > > that to be a limitation of the device. > > > > > > On the other computer, I tried every USB port and none of them work. > > > The USB controllers are: > > > > > > ohci0@pci0:0:11:0: class=0x0c0310 card=0x50041458 chip=0x026d10de > > > rev=0xa3 hdr=0x00 > > > > > > vendor = 'NVIDIA Corporation' > > > device = 'MCP51 USB Controller' > > > class = serial bus > > > subclass = USB > > > > > > ehci0@pci0:0:11:1: class=0x0c0320 card=0x50041458 chip=0x026e10de > > > rev=0xa3 hdr=0x00 > > > > > > vendor = 'NVIDIA Corporation' > > > device = 'MCP51 USB Controller' > > > class = serial bus > > > subclass = USB > > > > > > The USB ports do work for umass, u3g and umodem devices. Will the > > > kernel version have an impact, should I upgrade to head? > > > > > > The webcam works with Ubuntu on both computers. > > > > There has been some updates in the kernel in the USB area (isochronous > > transfers), which might affect Webcam operation. > > I've updated the kernel, cuse4bsd (0.1.13) and webcamd (0.1.15). Still no > luck. Do one of the PC's have an internal USB HUB perhaps? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 14:59:17 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8FAD106566B for ; Thu, 2 Sep 2010 14:59:17 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 32B808FC19 for ; Thu, 2 Sep 2010 14:59:16 +0000 (UTC) Received: by wyb33 with SMTP id 33so414136wyb.13 for ; Thu, 02 Sep 2010 07:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=drNw/yIFNiFcN6fd+ZOqL5XYN0735knzgTv/bBzRh7w=; b=Y3NMLJL7/BTDmSB+N1UimDjog9OnRjcN2SoQdnwPcTPL8h5A78IKXFv40lyTlvQ3EQ jp45TpEnVBk7kejpU1t9ybtxRIRg3GCeZNssmTg/DJPC1I/KlafHJSFbAZtz7kbSH47i mLLkkWlOKFBYQo82SVjjzLhNT2tmZUeOaaMwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=AdjVF4dhJDqS3SK+ISqbnJfhtjRZzn9RqLwKHDR19IRioYOCHHhiJ/38bDFSdBgQaG pVjSWasyrrPoO5BY9PAWEKR9ZJOcCtx/Fz/MBwNtD6GaGs2aTCtbkHv6xkNAosokQJmB S+ml3XLNRMee+1CGgxbOKzvNXy69XWU4ZSugI= Received: by 10.227.39.199 with SMTP id h7mr8090105wbe.174.1283439556090; Thu, 02 Sep 2010 07:59:16 -0700 (PDT) Received: from dragon.dg (41-132-25-181.dsl.mweb.co.za [41.132.25.181]) by mx.google.com with ESMTPS id b23sm452744wbb.22.2010.09.02.07.59.13 (version=SSLv3 cipher=RC4-MD5); Thu, 02 Sep 2010 07:59:15 -0700 (PDT) From: David Naylor Organization: Private To: Hans Petter Selasky Date: Thu, 2 Sep 2010 16:59:25 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) References: <201008292147.09750.naylor.b.david@gmail.com> <201009021243.17869.naylor.b.david@gmail.com> <201009021627.57894.hselasky@c2i.net> In-Reply-To: <201009021627.57894.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2886071.Aj7oU6OhJm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009021659.29030.naylor.b.david@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: webcamd and Pixart Imaging X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 14:59:17 -0000 --nextPart2886071.Aj7oU6OhJm Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Thursday 02 September 2010 16:27:57 Hans Petter Selasky wrote: > On Thursday 02 September 2010 12:43:12 David Naylor wrote: > > On Thursday 02 September 2010 11:08:55 Hans Petter Selasky wrote: > > > On Thursday 02 September 2010 10:57:52 David Naylor wrote: > > > > On Wednesday 01 September 2010 09:19:55 Hans Petter Selasky wrote: > > > > > > Will it matter if my kernel is a bit old (about 3 months)? Are > > > > > > there any (small) live linux distros that have good webcam > > > > > > support (so that I can check if the cam works at all with > > > > > > gspca)? > > > > > >=20 > > > > > > David > > > > >=20 > > > > > Maybe you could check your webcam in Ubuntu? > > > > >=20 > > > > > --HPS > > > >=20 > > > > Just before I was about to check the webcam with Ubuntu I tried it > > > > on another computer... and it worked. > > > >=20 > > > > To make sure: I copied across the debug build of webcam and it work= ed > > > > with that as well. It certainly is not the software on the webcamd > > > > side. cuse4bsd is the same on both computers. Both systems are > > > > running different custom kernels but contain the same usb devices > > > > (the same as GENERIC). > > > >=20 > > > > On the computer that works `pwcview -s vga` does not work. I expect > > > > that to be a limitation of the device. > > > >=20 > > > > On the other computer, I tried every USB port and none of them work. > > > > The USB controllers are: > > > >=20 > > > > ohci0@pci0:0:11:0: class=3D0x0c0310 card=3D0x50041458 > > > > chip=3D0x026d10de rev=3D0xa3 hdr=3D0x00 > > > >=20 > > > > vendor =3D 'NVIDIA Corporation' > > > > device =3D 'MCP51 USB Controller' > > > > class =3D serial bus > > > > subclass =3D USB > > > >=20 > > > > ehci0@pci0:0:11:1: class=3D0x0c0320 card=3D0x50041458 > > > > chip=3D0x026e10de rev=3D0xa3 hdr=3D0x00 > > > >=20 > > > > vendor =3D 'NVIDIA Corporation' > > > > device =3D 'MCP51 USB Controller' > > > > class =3D serial bus > > > > subclass =3D USB > > > >=20 > > > > The USB ports do work for umass, u3g and umodem devices. Will the > > > > kernel version have an impact, should I upgrade to head? > > > >=20 > > > > The webcam works with Ubuntu on both computers. > > >=20 > > > There has been some updates in the kernel in the USB area (isochronous > > > transfers), which might affect Webcam operation. > >=20 > > I've updated the kernel, cuse4bsd (0.1.13) and webcamd (0.1.15). Still > > no luck. >=20 > Do one of the PC's have an internal USB HUB perhaps? Both only have root HUBs: (Computer that works): ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps)=20 pwr=3DON ugen4.2: at usbus4, cfg=3D0 md=3DHOST= =20 spd=3DFULL (12Mbps) pwr=3DON (Computer that does not work): ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12= Mbps)=20 pwr=3DSAVE ugen0.2: at usbus0, cfg=3D0 md=3DHOST= =20 spd=3DFULL (12Mbps) pwr=3DON The only difference is the chipset (and that nvidia is in power save mode).= I=20 tried `usbconfig -d 0.1 power_on` but that failed ``invalid argument''. =20 --nextPart2886071.Aj7oU6OhJm Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEABECAAYFAkx/u9EACgkQUaaFgP9pFrJRdACfQBTnHqwF+gO9ibJ8+6DhFO6s L6YAn34v2peKFCKz2PxCJEP8GExpId4g =gNeW -----END PGP SIGNATURE----- --nextPart2886071.Aj7oU6OhJm-- From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 16:22:02 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A76E106583C; Thu, 2 Sep 2010 16:22:02 +0000 (UTC) (envelope-from root@tensor.gdynia.pl) Received: from tensor.gdynia.pl (tensor.gdynia.pl [89.206.35.72]) by mx1.freebsd.org (Postfix) with ESMTP id 836D58FC1C; Thu, 2 Sep 2010 16:22:01 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by tensor.gdynia.pl (8.14.3/8.14.4) with ESMTP id o82FoTU0063528; Thu, 2 Sep 2010 17:50:29 +0200 (CEST) (envelope-from root@tensor.gdynia.pl) Received: (from root@localhost) by tensor.gdynia.pl (8.14.4/8.14.4/Submit) id o82FoTZO063527; Thu, 2 Sep 2010 17:50:29 +0200 (CEST) (envelope-from root) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by tensor.gdynia.pl (8.14.3/8.14.4) with ESMTP id o8182s06060033 for ; Wed, 1 Sep 2010 10:02:55 +0200 (CEST) (envelope-from owner-freebsd-questions@freebsd.org) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 880F1179D85; Wed, 1 Sep 2010 08:02:17 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 1E7741065763; Wed, 1 Sep 2010 08:02:13 +0000 (UTC) (envelope-from owner-freebsd-questions@freebsd.org) Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A10A10656B2; Wed, 1 Sep 2010 08:01:59 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 079818FC15; Wed, 1 Sep 2010 08:01:59 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o8181uDN096220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Sep 2010 01:01:56 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o8181u2n096219; Wed, 1 Sep 2010 01:01:56 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA07247; Wed, 1 Sep 10 00:57:22 PDT Date: Wed, 01 Sep 2010 00:57:15 -0700 From: perryh@pluto.rain.com To: remegius@comcast.net Message-Id: <4c7e075b.8edSaF5Xw9mGHkRS%perryh@pluto.rain.com> References: <20100901000413.GA1559@bsd.remdog.net> In-Reply-To: <20100901000413.GA1559@bsd.remdog.net> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-questions@freebsd.org Errors-To: owner-freebsd-questions@freebsd.org Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Interactive Port X-BeenThere: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 16:22:02 -0000 Rem P Roberti wrote: > Brother! Muttprint is now working fine. The problem: the printer > was offline! Now, before you go accusing me of being a complete > dufus, let me say that I had no way of knowing that that condition > existed. The printer itself indicated that it was online---no > problem. What happened is that somehow, and I'm not sure what > caused this, the printer became disengaged from its usb port. I'd call it a bug in the printer that it continues to indicate online when it has lost its connection to its host (unless it also has a network connection, and in that case I imagine you'd be using the network instead of USB). > ... The only way that I could get it talking again to usb was by > doing a reboot. Now _that_ sounds like a possible bug in the USB subsystem, since USB is supposed to be completely hot-pluggable and should not need a reboot to get itself straightened out after a mishap. Cc-ing usb@ list. One question which will surely arise is, which FreeBSD version are you using? The USB stack was completely rewritten in 8.0. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 17:18:11 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D74FE1065679 for ; Thu, 2 Sep 2010 17:18:11 +0000 (UTC) (envelope-from shadow@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id AB4A68FC17 for ; Thu, 2 Sep 2010 17:18:11 +0000 (UTC) Received: by pzk7 with SMTP id 7so244319pzk.13 for ; Thu, 02 Sep 2010 10:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=5EKkGZHmpfWF4krqJ9QQPUy/gbTp0+zQCy8DKBO70R4=; b=W2dwnl01VuEYnIkUaU4AyD0hujp2JIM15M8Hf4RzVfFsRFoOViC6LdXlbF54G5Q/lu FEDZwRej1TQXzS19Jn2LcNyP02/qQepP8YPV8OHAcmu4YfAym186P9lH9ntp8JhxqIf9 7R+NBdKHNdpMSt+9Mhtk0M8aHpnrJq8ipYj+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZRI7PDATcEDI87Kq73vV31JMSkWTr6UHmdS+ahhpACp6sOauiL8unYhsb9age4EILN FUO5aGM8UdehxN/9YT6pt2PRkyzfnrlBtgfBrq2BTljASfWTBgZHy8N2fTM7UrmbCTr3 2I2+1+YYp2rhQX2gnGbGR1gmzEqfBcpwPQ86Y= MIME-Version: 1.0 Received: by 10.114.108.15 with SMTP id g15mr54697wac.52.1283447883648; Thu, 02 Sep 2010 10:18:03 -0700 (PDT) Received: by 10.220.48.218 with HTTP; Thu, 2 Sep 2010 10:18:03 -0700 (PDT) In-Reply-To: References: <201007201610.o6KGA3lK051365@freefall.freebsd.org> <201007221755.39597.hselasky@c2i.net> Date: Thu, 2 Sep 2010 13:18:03 -0400 Message-ID: From: Derrick Brashear To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 17:18:11 -0000 On Tue, Aug 24, 2010 at 12:23 AM, Derrick Brashear wrote: > At Pyun's suggestion, I am using > http://people.freebsd.org/~yongari/axe/if_axe.c > http://people.freebsd.org/~yongari/axe/if_axereg.h > > after s/if USB_DEBUG/ifdef USB_DEBUG/ things appear to be ok. I am > continuing to test, however I can tell you with confidence that it > works at least as well as before. It seemed for a bit like I was out of the water, but with this version, the problem still occurs. I'll see what differences exist between this and CURRENT and either try them or follow up. From owner-freebsd-usb@FreeBSD.ORG Thu Sep 2 18:35:33 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B16CD10657DB for ; Thu, 2 Sep 2010 18:35:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 137DB8FC0A for ; Thu, 2 Sep 2010 18:35:32 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=skgvEfutgnGSr0/z2w9BnbiJ4B+NZJZqOB5vgMWy4GQ= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=GKysJfYJAAAA:8 a=C_IRinGWAAAA:8 a=ovCXebbxOOWB07kr6n4A:9 a=tGt-r7Yszt1pGkdDLvcA:7 a=av5ks0yT_aX0cqz5eDPVjihx1aYA:4 a=wPNLvfGTeEIA:10 a=si9q_4b84H0A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 14751112; Thu, 02 Sep 2010 20:35:20 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 2 Sep 2010 20:31:24 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100901000413.GA1559@bsd.remdog.net> <4c7e075b.8edSaF5Xw9mGHkRS%perryh@pluto.rain.com> In-Reply-To: <4c7e075b.8edSaF5Xw9mGHkRS%perryh@pluto.rain.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009022031.24920.hselasky@c2i.net> Cc: remegius@comcast.net, freebsd-questions@freebsd.org Subject: Re: Interactive Port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 18:35:33 -0000 On Wednesday 01 September 2010 09:57:15 perryh@pluto.rain.com wrote: > Rem P Roberti wrote: > > Brother! Muttprint is now working fine. The problem: the printer > > was offline! Now, before you go accusing me of being a complete > > dufus, let me say that I had no way of knowing that that condition > > existed. The printer itself indicated that it was online---no > > problem. What happened is that somehow, and I'm not sure what > > caused this, the printer became disengaged from its usb port. > > I'd call it a bug in the printer that it continues to indicate > online when it has lost its connection to its host (unless it > also has a network connection, and in that case I imagine you'd > be using the network instead of USB). > > > ... The only way that I could get it talking again to usb was by > > doing a reboot. > > Now _that_ sounds like a possible bug in the USB subsystem, since > USB is supposed to be completely hot-pluggable and should not need > a reboot to get itself straightened out after a mishap. Cc-ing usb@ > list. > > One question which will surely arise is, which FreeBSD version are > you using? The USB stack was completely rewritten in 8.0. If the USB application does not close the /dev/XXX handles, it will block the enumeration of new USB devices on that bus. Also see "usbconfig -d X.Y reset" --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 01:00:13 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FEDA106566B for ; Fri, 3 Sep 2010 01:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F0D008FC1C for ; Fri, 3 Sep 2010 01:00:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8310CYF088251 for ; Fri, 3 Sep 2010 01:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8310CVe088232; Fri, 3 Sep 2010 01:00:12 GMT (envelope-from gnats) Date: Fri, 3 Sep 2010 01:00:12 GMT Message-Id: <201009030100.o8310CVe088232@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: PseudoCylon Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: PseudoCylon List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 01:00:13 -0000 The following reply was made to PR usb/150189; it has been noted by GNATS. From: PseudoCylon To: bug-followup@freebsd.org, Derrick Brashear Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic Date: Thu, 2 Sep 2010 17:32:32 -0700 (PDT) Hi, Can you try these and see if encryption works? http://p4web.freebsd.org/@rev1=head@//depot/projects/usb/src/sys/dev/usb/wlan/if_run.c http://p4web.freebsd.org/@rev1=head@//depot/projects/usb/src/sys/dev/usb/wlan/if_runvar.h (no change in if_runreg.h) Can you check Tx rate on AP (if_run) during poor performance? % ifconfig wlan0 list sta From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 03:10:08 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78D2C106580A for ; Fri, 3 Sep 2010 03:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E73C8FC15 for ; Fri, 3 Sep 2010 03:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o833A8Mc023390 for ; Fri, 3 Sep 2010 03:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o833A8A6023389; Fri, 3 Sep 2010 03:10:08 GMT (envelope-from gnats) Date: Fri, 3 Sep 2010 03:10:08 GMT Message-Id: <201009030310.o833A8A6023389@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: PseudoCylon Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: PseudoCylon List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 03:10:08 -0000 The following reply was made to PR usb/150189; it has been noted by GNATS. From: PseudoCylon To: bug-followup@freebsd.org, Derrick Brashear Cc: Subject: Re: usb/150189: if_run appears to corrupt IP traffic Date: Thu, 2 Sep 2010 20:07:41 -0700 (PDT) Oops, please use this if_run.c instead. Previous one won't compile on 8.1-RELEASE http://p4web.freebsd.org/@md=d&cd=//&cdf=//depot/projects/usb/src/sys/dev/usb/wlan/if_run.c&sr=182194&c=jE5@//depot/projects/usb/src/sys/dev/usb/wlan/if_run.c From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 06:42:25 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC0A710656B1 for ; Fri, 3 Sep 2010 06:42:25 +0000 (UTC) (envelope-from pki@ex.com.pl) Received: from mx-out.strefa.interia.pl (mx-out.strefa.interia.pl [217.74.66.73]) by mx1.freebsd.org (Postfix) with ESMTP id 77E5F8FC15 for ; Fri, 3 Sep 2010 06:42:25 +0000 (UTC) Received: by mx-out.strefa.interia.pl (Postfix, from userid 1235) id E30AAC5B2C2; Fri, 3 Sep 2010 08:12:55 +0200 (CEST) Received: from zgred (katastrofa.ex.com.pl [62.121.86.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by poczta.strefa.pl (Postfix) with ESMTPSA id B87B028004BA8 for ; Fri, 3 Sep 2010 08:12:55 +0200 (CEST) Received: from pki by zgred with local (Exim 4.69) (envelope-from ) id 1OrPWC-0007An-6E for freebsd-usb@freebsd.org; Fri, 03 Sep 2010 08:12:56 +0200 Date: Fri, 3 Sep 2010 08:12:56 +0200 From: Piotr Isajew To: freebsd-usb@freebsd.org Message-ID: <20100903061256.GA27081@zgred.localnet> Mail-Followup-To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline X-PGP-Key: 0x481BC5D8 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: device attach problem on boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 06:42:25 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I'm considering to move one of my projects from Linux to FreeBSD. The project uses lots of USB modems. To test if my hardware is supported by FreeBSD I installed 8.1-STABLE. During first test I noticed that no modems are detected by OS during startup (i.e. "usbconfig list" doesn't show any of those devices). However if I remove a modem from USB port once the system is running and then plug it in again, it's properly detected and works without problems. The only dmesg lines that looks suspicious to me are: usb_alloc_device: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: getting device descriptor at addr 3 failed, USB_ERR_STALLED I'll apreciate any help on solving this problem. Kind regards, Piotr --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyAkegACgkQ0vhon0gbxdgsiQCfWeG5qc/9pSywoEYGbW3427bd Oo0AniLe/IPER8MmgXyyDc169kWSX9X1 =MjSr -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 07:16:54 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC9D510656CA for ; Fri, 3 Sep 2010 07:16:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 43B938FC0A for ; Fri, 3 Sep 2010 07:16:53 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=tumaaA6jyRO6uOJXwJ9zBqfKx0+WtA7m4Qh1fZXYtZM= c=1 sm=1 a=d6smFd8tRnYA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=tLemlfqP_k8e7l--V60A:9 a=JJVg4enleDFmwZL17oEA:7 a=0SsT7Cz4CZGBuupW5n3SxrtvlOcA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 15731581; Fri, 03 Sep 2010 09:16:42 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 3 Sep 2010 09:12:45 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100903061256.GA27081@zgred.localnet> In-Reply-To: <20100903061256.GA27081@zgred.localnet> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009030912.45579.hselasky@c2i.net> Cc: Subject: Re: device attach problem on boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 07:16:54 -0000 On Friday 03 September 2010 08:12:56 Piotr Isajew wrote: > Hello, > > I'm considering to move one of my projects from Linux to FreeBSD. The > project uses lots of USB modems. To test if my hardware is supported > by FreeBSD I installed 8.1-STABLE. During first test I noticed that no > modems are detected by OS during startup (i.e. "usbconfig list" > doesn't show any of those devices). However if I remove a modem from > USB port once the system is running and then plug it in again, it's > properly detected and works without problems. > > The only dmesg lines that looks suspicious to me are: > > usb_alloc_device: getting device descriptor at addr 3 failed, > USB_ERR_STALLED usbd_req_re_enumerate: getting device descriptor at addr 3 > failed, USB_ERR_STALLED > > I'll apreciate any help on solving this problem. > > Kind regards, > > Piotr Have you tried using an external powered USB HUB? Do these modems have autoinstall disks? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 12:25:23 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57D8C1065767 for ; Fri, 3 Sep 2010 12:25:23 +0000 (UTC) (envelope-from pki@ex.com.pl) Received: from mx-out.strefa.interia.pl (mx-out.strefa.interia.pl [217.74.66.73]) by mx1.freebsd.org (Postfix) with ESMTP id 0FC5E8FC22 for ; Fri, 3 Sep 2010 12:25:22 +0000 (UTC) Received: by mx-out.strefa.interia.pl (Postfix, from userid 1235) id C85C7C5B4C3; Fri, 3 Sep 2010 14:25:20 +0200 (CEST) Received: from zgred (katastrofa.ex.com.pl [62.121.86.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by poczta.strefa.pl (Postfix) with ESMTPSA id 92EAC120A75 for ; Fri, 3 Sep 2010 14:25:20 +0200 (CEST) Received: from pki by zgred with local (Exim 4.69) (envelope-from ) id 1OrVKb-0000hr-8Y for freebsd-usb@freebsd.org; Fri, 03 Sep 2010 14:25:21 +0200 Date: Fri, 3 Sep 2010 14:25:21 +0200 From: Piotr Isajew To: freebsd-usb@freebsd.org Message-ID: <20100903122521.GB2545@zgred.localnet> Mail-Followup-To: freebsd-usb@freebsd.org References: <20100903061256.GA27081@zgred.localnet> <201009030912.45579.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <201009030912.45579.hselasky@c2i.net> X-PGP-Key: 0x481BC5D8 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: device attach problem on boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 12:25:23 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 03, 2010 at 09:12:45AM +0200, Hans Petter Selasky wrote: > On Friday 03 September 2010 08:12:56 Piotr Isajew wrote: > > Hello, > >=20 > > I'm considering to move one of my projects from Linux to FreeBSD. The > > project uses lots of USB modems. To test if my hardware is supported > > by FreeBSD I installed 8.1-STABLE. During first test I noticed that no > > modems are detected by OS during startup (i.e. "usbconfig list" > > doesn't show any of those devices). However if I remove a modem from > > USB port once the system is running and then plug it in again, it's > > properly detected and works without problems. > >=20 > > The only dmesg lines that looks suspicious to me are: > >=20 > > usb_alloc_device: getting device descriptor at addr 3 failed, > > USB_ERR_STALLED usbd_req_re_enumerate: getting device descriptor at add= r 3 > > failed, USB_ERR_STALLED > >=20 > > I'll apreciate any help on solving this problem. > >=20 > > Kind regards, > >=20 > > Piotr >=20 > Have you tried using an external powered USB HUB? >=20 > Do these modems have autoinstall disks? >=20 > --HPS >=20 >=20 Yes, they have autoinstall disks, but that's ok --- once modem is attached to umass driver I can easly switch it to modem mode :-) More important: after reading your post I just tried to boot with modem plugged via external powered HUB (previously only plugged directly to internal port with negative results). It works, so thanks a lot for this hint. Kind regards, Piotr --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyA6TEACgkQ0vhon0gbxdgntQCfVZkddZK/TpQ9svBr/dPECo1H 3tMAn1NC0emiblhjH62EKBJ2DlvY82ex =nrYy -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f-- From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 13:56:58 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0967210656D1 for ; Fri, 3 Sep 2010 13:56:58 +0000 (UTC) (envelope-from tuksgig@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id CD35E8FC1B for ; Fri, 3 Sep 2010 13:56:57 +0000 (UTC) Received: by pvg4 with SMTP id 4so732346pvg.13 for ; Fri, 03 Sep 2010 06:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=+LlCTQ+SorRX+rOxKK8Yzaa0rYNC8GY4oGg+sa6apBc=; b=dS0v6aZOW9tk7JIHVgBsgMX2QidLcDOBY0157FJIDrUYSmU4T4DDXUELapUUGcAZUA jXEf3k85qJTV1AmybrjI4KGpX+Mc+s52eZGKitJg7cb3ajVDoDC5GaBqyrfIGJi4eAE/ f+p1FvSyHcSLpxmt8H5grotJvOiut4wYgbNMM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xiaY7yvG23QtIvEyBYXeuCtW3/O9KuZbP3b3KTpL+CuHHVSol7BcJKU8EK7xVq9gOD Bbs6ar/E5jWElmt52OaHXPZdRDL1UhtL0ruNISu3NnOs+KhOVdTWiW02A5UZPfFOQZQI IVuuqctOQtZ0CrITyZTwCVtC2LOs9kv946gyM= MIME-Version: 1.0 Received: by 10.114.39.18 with SMTP id m18mr45380wam.196.1283522210376; Fri, 03 Sep 2010 06:56:50 -0700 (PDT) Received: by 10.220.86.143 with HTTP; Fri, 3 Sep 2010 06:56:49 -0700 (PDT) In-Reply-To: <201008310947.07460.hselasky@c2i.net> References: <201008302113.33960.hselasky@c2i.net> <201008310947.07460.hselasky@c2i.net> Date: Fri, 3 Sep 2010 15:56:49 +0200 Message-ID: From: Piet Skiet To: Hans Petter Selasky Content-Type: multipart/mixed; boundary=001636417e496a4162048f5b4d0f Cc: freebsd-usb@freebsd.org Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 13:56:58 -0000 --001636417e496a4162048f5b4d0f Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 31, 2010 at 9:47 AM, Hans Petter Selasky wrote: > On Tuesday 31 August 2010 09:39:46 Piet Skiet wrote: >> On Mon, Aug 30, 2010 at 9:13 PM, Hans Petter Selasky > wrote: >> > On Monday 30 August 2010 14:41:56 Piet Skiet wrote: >> >> On Mon, Aug 30, 2010 at 10:51 AM, Piet Skiet wrote: >> >> > Hi, >> >> > >> >> > Can anyone clarify how to go about doing a synchronous usb control >> >> > transfer, similar to Linux's usb_control_msg? I want to implement the >> >> > TIOCMGET ioctl on a usb-to-serial converter. The Linux driver uses >> >> > synchronous control messages to read DCE and CTS serial pin status, >> >> > and I want to do something similar in FreeBSD. The usbdi(9) manpage >> >> > talks about control transfers using usbd_transfer_submit, but they're >> >> > not synchronous. What about using usbd_transfer_drain? Is there an >> >> > example driver showing setting up and doing control transfers? >> >> > >> >> > The ucom driver seems to only implement TIOCSBRK and TIOCCBRK iotcls >> >> > at the moment. >> >> > >> >> > Thanks >> >> >> >> Scanning through the ucom code, it seems to me that the >> >> usbd_do_request_proc has somehting to do with blocking control >> >> transfers. Am I on the right track here? >> > >> > Yes, this is correct. You have to re-format the do request information a >> > little bit compared with Linux. This function is supposed to be called >> > from a UCOM callback. Please also check recent changes in USB P4: >> > >> > http://p4web.freebsd.org/@md=d&cd=//depot/projects/usb/src/sys/dev/usb/co >> > ntroller/&cdf=//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c&c= >> > LJN@//depot/projects/usb/src/sys/dev/usb/serial/usb_serial.c?ac=22 >> > >> > --HPS >> >> OK, but I'm still a bit confused. I'm not sure in which callback to >> put the usb_do_request. For instance, the driver that I'm interested >> in is the uslcom.c driver for the cp210x usb-to-serial converter. It >> has two usb_config structs defined of type UE_BULK for read and write >> transfers. Do I need to add a third usb_config struct for UE_CONTROL? >> Should the usb_do_request then be called from the UE_CONTROL callback? > > Hi, > > The usb_config's are for asynchronous operation. The usbd_do_request_proc() > function is synchronous. I.E. it completes when it returns. The reason we have > this variant is to allow smooth exit and entry of the mutex which is locked > when you get callbacks from UCOM. All UCOM callbacks are pre-locked, and if > you don't exit the lock the kernel will complain. > >> The plan is to add a .ucom_ioctl to the uslcom.c driver and implement >> the TIOCMGET directly in the driver ioctl using synchronous usb >> transfers. I've already tested the .ucom_ioctl override and it works, >> now I just need to figure out how to do the usb transfers. >> >> BTW, the FTDI driver (uftdi.c) does things differently. It updates the >> msr (modem status register?) in the bulk read callback and then calls >> ucom_status_change to update any changes to ucom. > > The FTDI driver uses another mechanism to transfer that information. Probably > what you want to do is to add a timer/watchdog to poll that information > regularly. Then you can use a single asynchronous control transfer, and set > the interval of the transfer to 250ms, for example, so that you don't need to > allocate a separate timer to do this. Or maybe 100ms is better. You need to > test this. > > --HPS > Hi, Attached is the patch adding a 250ms polling control transfer to update the port status flags. I've also added CRTSCTS hardware flow control. I did some tests with minicom and with gtkterm. Minicom works perfectly, but gtkterm has problems at baud 115200 and also with hardware flow control. I also testes the Prolific driver (uplcom) with minicom and gtkterm, and gtkterm has the same problems at 115200 baud, so I'm assuming it's a gtkterm bug (not maintained anymore). BTW, do the usb-to-serial drivers need the force_short_xfer usb transfer flag? gtkterm seems to work slightly better without the flag... Anyway, thanks for the help so far --001636417e496a4162048f5b4d0f Content-Type: application/octet-stream; name="uslcom.patch" Content-Disposition: attachment; filename="uslcom.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdn3jigp0 NjdkNjYKPCAvKiBSZXF1ZXN0IHR5cGVzICovCjcxZDY5CjwgLyogUmVxdWVzdCBjb2RlcyAqLwo3 Nyw3OGQ3NAo8ICNkZWZpbmUgVVNMQ09NX1JDVFJMCQkweDA4CjwgI2RlZmluZSBVU0xDT01fU0VU X0ZMT1dDVFJMCTB4MTMKODBkNzUKPCAvKiBVU0xDT01fVUFSVCB2YWx1ZXMgKi8KODRkNzgKPCAv KiBVU0xDT01fQ1RSTC9VU0xDT01fUkNUUkwgdmFsdWVzICovCjkxZDg0CjwgI2RlZmluZSBVU0xD T01fQ1RSTF9SSQkJMHgwMDQwCjk0ZDg2CjwgLyogVVNMQ09NX0JBVURfUkFURSB2YWx1ZXMgKi8K OTdkODgKPCAvKiBVU0xDT01fREFUQSB2YWx1ZXMgKi8KOTlhOTEKPiAKMTA2ZDk3CjwgLyogVVNM Q09NX0JSRUFLIHZhbHVlcyAqLwoxMTAsMTE3ZDEwMAo8IC8qIFVTTENPTV9TRVRfRkxPV0NUUkwg dmFsdWVzIC0gMXN0IHdvcmQgKi8KPCAjZGVmaW5lIFVTTENPTV9GTE9XX0RUUl9PTgkweDAwMDAw MDAxCjwgI2RlZmluZSBVU0xDT01fRkxPV19DVFNfSFMJMHgwMDAwMDAwOCAvKiBDVFMgaGFuZHNo YWtlICovCjwgI2RlZmluZSBVU0xDT01fRkxPV19SRVNFUlZFRAkweEZGRkZGRjgwCjwgLyogVVNM Q09NX1NFVF9GTE9XQ1RSTCB2YWx1ZXMgLSAybmQgd29yZCAqLwo8ICNkZWZpbmUgVVNMQ09NX0ZM T1dfUlRTX09OCTB4MDAwMDAwNDANCjwgI2RlZmluZSBVU0xDT01fRkxPV19SVFNfSFMJMHgwMDAw MDA4MCAvKiBSVFMgaGFuZHNoYWtlICovCjwgCjEyMWQxMDMKPCAJVVNMQ09NX0NUUkxfRFRfUkQs CjE0M2QxMjQKPCBzdGF0aWMgdXNiX2NhbGxiYWNrX3QgdXNsY29tX2NvbnRyb2xfY2FsbGJhY2s7 CjE2NmMxNDcKPCAJCS5mbGFncyA9IHsucGlwZV9ib2YgPSAxLC8qLmZvcmNlX3Nob3J0X3hmZXIg PSAxLCovfSwKLS0tCj4gCQkuZmxhZ3MgPSB7LnBpcGVfYm9mID0gMSwuZm9yY2Vfc2hvcnRfeGZl ciA9IDEsfSwKMTc4LDE4NmQxNTgKPCAJW1VTTENPTV9DVFJMX0RUX1JEXSA9IHsKPCAJCS50eXBl ID0gVUVfQ09OVFJPTCwKPCAJCS5lbmRwb2ludCA9IDB4MDAsCjwgCQkuZGlyZWN0aW9uID0gVUVf RElSX0FOWSwKPCAJCS5pbnRlcnZhbCA9IDI1MCwgLyogcG9sbCBzdGF0dXMgZXZlcnkgMjUwIG1z ICovCjwgCQkuYnVmc2l6ZSA9IFVTTENPTV9CVUxLX0JVRl9TSVpFLAo8IAkJLmZsYWdzID0gey5w aXBlX2JvZiA9IDEsLnNob3J0X3hmZXJfb2sgPSAxLH0sCjwgCQkuY2FsbGJhY2sgPSAmdXNsY29t X2NvbnRyb2xfY2FsbGJhY2ssCjwgCX0sCjI5M2QyNjQKPCAJdXNiZF94ZmVyX3NldF9zdGFsbChz Yy0+c2NfeGZlcltVU0xDT01fQ1RSTF9EVF9SRF0pOwozMzgsMzM5ZDMwOAo8IAkvKiBTdGFydCBw b2xsaW5nIHN0YXR1cyAqLwo8IAl1c2JkX3RyYW5zZmVyX3N0YXJ0KHNjLT5zY194ZmVyW1VTTENP TV9DVFJMX0RUX1JEXSk7CjM0OCwzNTBkMzE2CjwgCS8qIFN0b3AgcG9sbGluZyBzdGF0dXMgKi8K PCAJdXNiZF90cmFuc2Zlcl9zdG9wKHNjLT5zY194ZmVyW1VTTENPTV9DVFJMX0RUX1JEXSk7Cjwg CjQyNWQzOTAKPCAJdWludDMyX3QgZmxvd2N0cmxbNF07CjQ3Niw0OTVkNDQwCjwgCQo8IAlpZiAo dC0+Y19jZmxhZyAmIENSVFNDVFMpIHsKPCAJCWZsb3djdHJsWzBdID0gVVNMQ09NX0ZMT1dfUkVT RVJWRUQgfCBVU0xDT01fRkxPV19EVFJfT04gfCAKPCAJCQlVU0xDT01fRkxPV19DVFNfSFM7Cjwg CQlmbG93Y3RybFsxXSA9IFVTTENPTV9GTE9XX1JUU19IUzsKPCAJfSBlbHNlIHsKPCAJCWZsb3dj dHJsWzBdID0gVVNMQ09NX0ZMT1dfUkVTRVJWRUQgfCBVU0xDT01fRkxPV19EVFJfT047CjwgCQlm bG93Y3RybFsxXSA9IFVTTENPTV9GTE9XX1JUU19PTjsKPCAJfQo8IAlyZXEuYm1SZXF1ZXN0VHlw ZSA9IFVTTENPTV9XUklURTsKPCAJcmVxLmJSZXF1ZXN0ID0gVVNMQ09NX1NFVF9GTE9XQ1RSTDsK PCAJVVNFVFcocmVxLndWYWx1ZSwgMCk7CjwgCVVTRVRXKHJlcS53SW5kZXgsIFVTTENPTV9QT1JU X05PKTsKPCAJVVNFVFcocmVxLndMZW5ndGgsIHNpemVvZihmbG93Y3RybCkpOwo8IAo8ICAgICAg ICAgaWYgKHVjb21fY2ZnX2RvX3JlcXVlc3Qoc2MtPnNjX3VkZXYsICZzYy0+c2NfdWNvbSwgCjwg CSAgICAmcmVxLCBmbG93Y3RybCwgMCwgMTAwMCkpIHsKPCAJCURQUklOVEYoIlNldCBmbG93Y29u dHJvbCBmYWlsZWQgKGlnbm9yZWQpXG4iKTsKPCAJfQo8IAkKNTkyLDY0NmQ1MzYKPCB1c2xjb21f Y29udHJvbF9jYWxsYmFjayhzdHJ1Y3QgdXNiX3hmZXIgKnhmZXIsIHVzYl9lcnJvcl90IGVycm9y KQo8IHsKPCAJc3RydWN0IHVzbGNvbV9zb2Z0YyAqc2MgPSB1c2JkX3hmZXJfc29mdGMoeGZlcik7 CjwgCXN0cnVjdCB1c2JfcGFnZV9jYWNoZSAqcGM7CjwgCXVpbnQ4X3QgYnVmOwo8IAlzdHJ1Y3Qg dXNiX2RldmljZV9yZXF1ZXN0IHJlcTsKPCAJdWludDhfdCBtc3IgPSAwOwo8IAo8IAlzd2l0Y2gg KFVTQl9HRVRfU1RBVEUoeGZlcikpIHsKPCAJY2FzZSBVU0JfU1RfVFJBTlNGRVJSRUQ6CjwgCQlw YyA9IHVzYmRfeGZlcl9nZXRfZnJhbWUoeGZlciwgMSk7CjwgCQl1c2JkX2NvcHlfb3V0KHBjLCAw LCAmYnVmLCBzaXplb2YoYnVmKSk7CjwgCQlpZiAoYnVmICYgVVNMQ09NX0NUUkxfQ1RTKQo8IAkJ CW1zciB8PSBTRVJfQ1RTOwo8IAkJaWYgKGJ1ZiAmIFVTTENPTV9DVFJMX0RTUikKPCAJCQltc3Ig fD0gU0VSX0RTUjsKPCAJCWlmIChidWYgJiBVU0xDT01fQ1RSTF9SSSkKPCAJCQltc3IgfD0gU0VS X1JJOwo8IAkJaWYgKGJ1ZiAmIFVTTENPTV9DVFJMX0RDRCkKPCAJCQltc3IgfD0gU0VSX0RDRDsK PCAKPCAJCWlmIChtc3IgIT0gc2MtPnNjX21zcikgewo8IAkJCURQUklOVEYoInN0YXR1cyBjaGFu Z2UgbXNyPTB4JTAyeCAod2FzIDB4JTAyeClcbiIsIG1zciwgc2MtPnNjX21zcik7CjwgCQkJc2Mt PnNjX21zciA9IG1zcjsKPCAJCQl1Y29tX3N0YXR1c19jaGFuZ2UoJnNjLT5zY191Y29tKTsKPCAJ CX0KPCAJCS8qIG5vIGJyZWFrICovCjwgCWNhc2UgVVNCX1NUX1NFVFVQOgo8IHRyX3NldHVwOgkJ CjwgCQlyZXEuYm1SZXF1ZXN0VHlwZSA9IFVTTENPTV9SRUFEOwo8IAkJcmVxLmJSZXF1ZXN0ID0g VVNMQ09NX1JDVFJMOwo8IAkJVVNFVFcocmVxLndWYWx1ZSwgMCk7CjwgCQlVU0VUVyhyZXEud0lu ZGV4LCAwKTsKPCAJCVVTRVRXKHJlcS53TGVuZ3RoLCBzaXplb2YoYnVmKSk7CjwgCQkKPCAJCXVz YmRfeGZlcl9zZXRfZnJhbWVzKHhmZXIsIDIpOwo8IAkJdXNiZF94ZmVyX3NldF9mcmFtZV9sZW4o eGZlciwgMCwgc2l6ZW9mKHJlcSkpOwo8IAkJdXNiZF94ZmVyX3NldF9mcmFtZV9sZW4oeGZlciwg MSwgc2l6ZW9mKGJ1ZikpOwo8IAo8IAkJcGMgPSB1c2JkX3hmZXJfZ2V0X2ZyYW1lKHhmZXIsIDAp Owo8IAkJdXNiZF9jb3B5X2luKHBjLCAwLCAmcmVxLCBzaXplb2YocmVxKSk7CjwgCQl1c2JkX3Ry YW5zZmVyX3N1Ym1pdCh4ZmVyKTsKPCAJCXJldHVybjsKPCAKPCAJZGVmYXVsdDoJCQkvKiBFcnJv ciAqLwo8IAkJaWYgKGVycm9yICE9IFVTQl9FUlJfQ0FOQ0VMTEVEKSB7CjwgCQkJLyogdHJ5IHRv IGNsZWFyIHN0YWxsIGZpcnN0ICovCjwgCQkJdXNiZF94ZmVyX3NldF9zdGFsbCh4ZmVyKTsKPCAJ CQlnb3RvIHRyX3NldHVwOwo8IAkJfQo8IAkJcmV0dXJuOwo8IAl9CjwgfQo8IAo8IHN0YXRpYyB2 b2lkCg== --001636417e496a4162048f5b4d0f-- From owner-freebsd-usb@FreeBSD.ORG Fri Sep 3 17:17:53 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B4A610656C0 for ; Fri, 3 Sep 2010 17:17:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id D1AFE8FC16 for ; Fri, 3 Sep 2010 17:17:52 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=DY18j03bvBIA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=mOGvVXIxCkfvGyPnMG0A:9 a=0yAeP6KHUUa8CPSkYkoA:7 a=qgEDCiJjM_0OUNDMyWM36CXra9oA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 16376459; Fri, 03 Sep 2010 19:17:32 +0200 From: Hans Petter Selasky To: Piet Skiet Date: Fri, 3 Sep 2010 19:13:44 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008310947.07460.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009031913.44078.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB synchronous control transfers (for usb-to-serial) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 17:17:53 -0000 > > Hi, > > Attached is the patch adding a 250ms polling control transfer to > update the port status flags. I've also added CRTSCTS hardware flow > control. I did some tests with minicom and with gtkterm. Minicom works > perfectly, but gtkterm has problems at baud 115200 and also with > hardware flow control. I also testes the Prolific driver (uplcom) with > minicom and gtkterm, and gtkterm has the same problems at 115200 baud, > so I'm assuming it's a gtkterm bug (not maintained anymore). > > BTW, do the usb-to-serial drivers need the force_short_xfer usb > transfer flag? gtkterm seems to work slightly better without the > flag... > > Anyway, thanks for the help so far You can remove the force_short_xfer usb transfer flag, if you can verify that the chip receive data if you send a USB packet of exactly 64 or 512 bytes, depending on USB full or high-speed. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Sep 4 18:05:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 655B110656A3 for ; Sat, 4 Sep 2010 18:05:47 +0000 (UTC) (envelope-from clcchu@hotmail.com) Received: from snt0-omc1-s7.snt0.hotmail.com (snt0-omc1-s7.snt0.hotmail.com [65.55.90.18]) by mx1.freebsd.org (Postfix) with ESMTP id 3DD618FC15 for ; Sat, 4 Sep 2010 18:05:47 +0000 (UTC) Received: from SNT132-W55 ([65.55.90.7]) by snt0-omc1-s7.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 4 Sep 2010 10:53:46 -0700 Message-ID: X-Originating-IP: [123.203.190.215] From: Clarence Chu To: Date: Sun, 5 Sep 2010 01:53:46 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 04 Sep 2010 17:53:46.0924 (UTC) FILETIME=[1F7CEEC0:01CB4C5A] Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Unable to boot from umass(4) since 8.1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 18:05:47 -0000 Dear Sirs: I was unable to boot from umass(4) devices with the following symtom: 1) kernel and all loader.conf modules were loaded 2) unable to mount ufs:/dev/da0s3a as root, 3) when "ufs:/dev/da0s3a" was supplied to the mount prompt, mounting continue. situation persist on using USB->IDE converter and USB key. the umass(4) devices were able to boot using [67].x but refuse to work with the 8.1-STABLE as of today. Any suggestions? Best wishes, Clarence CHU From owner-freebsd-usb@FreeBSD.ORG Sat Sep 4 19:32:15 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40017106577C for ; Sat, 4 Sep 2010 19:32:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id C727C8FC14 for ; Sat, 4 Sep 2010 19:32:14 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8nVFKzxAJNCZJh2yHDOpnep+nZeeqVU+af0AVP5CZ7Y= c=1 sm=1 a=zgo065br4PoA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=Ch2QRIDDb0NPwLBF1rAA:9 a=inSJIsrQiRTrqT5zGth47YszyI4A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 16075304; Sat, 04 Sep 2010 21:31:56 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 4 Sep 2010 21:28:08 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009042128.08474.hselasky@c2i.net> Cc: Subject: Re: Unable to boot from umass(4) since 8.1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 19:32:15 -0000 On Saturday 04 September 2010 19:53:46 Clarence Chu wrote: > Dear Sirs: > > I was unable to boot from umass(4) devices with the following symtom: > 1) kernel and all loader.conf modules were loaded > 2) unable to mount ufs:/dev/da0s3a as root, > 3) when "ufs:/dev/da0s3a" was supplied to the mount prompt, mounting > continue. > > situation persist on using USB->IDE converter and USB key. > > the umass(4) devices were able to boot using [67].x but refuse to work > with the 8.1-STABLE as of today. > > Any suggestions? You can try setting: kern.cam.boot_delay --HPS