From owner-freebsd-usb@FreeBSD.ORG Sun Oct 7 09:05:09 2007 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 0058716A419; Sun, 7 Oct 2007 09:05:08 +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 2032E13C45A; Sun, 7 Oct 2007 09:05:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 638835062; Sun, 07 Oct 2007 11:05:06 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org, Lars Engels Date: Sun, 7 Oct 2007 11:05:30 +0200 User-Agent: KMail/1.9.7 References: <20071006193259.GY30704@e.0x20.net> In-Reply-To: <20071006193259.GY30704@e.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710071105.31043.hselasky@c2i.net> Cc: current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb_insert_transfer panic with if_zyd 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, 07 Oct 2007 09:05:09 -0000 On Saturday 06 October 2007, Lars Engels wrote: > When I use my ZyXEL G-220 Wireless USB Stick with the if_zyd driver, I > get a usb_insert_transfer panic after some traffic went trough. > The mainboard is an Asus P5K with Intel P35 chipset. > FreBSD version: > FreeBSD dhcppc2 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu Oct 4 22:15:47 > CEST 2007 root@dhcppc1:/usr/obj/usr/src/sys/GENERIC i386 > > Attached is the backtrace, dmesg and the output of pciconf and usbdevs. > > Lars Hi Lars, What is the panic message ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 7 09:16:20 2007 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 C048B16A419 for ; Sun, 7 Oct 2007 09:16:20 +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 35CE413C458 for ; Sun, 7 Oct 2007 09:16:19 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 541214527; Sun, 07 Oct 2007 11:01:18 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 7 Oct 2007 11:01:41 +0200 User-Agent: KMail/1.9.7 References: <20071006192650.GA23085@panix.com> In-Reply-To: <20071006192650.GA23085@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710071101.42353.hselasky@c2i.net> Cc: Joe Altman , freebsd-questions@freebsd.org Subject: Re: Kernel panic; fatal trap 12; on task 22, USB0: was Re: Moused issues? 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, 07 Oct 2007 09:16:20 -0000 On Saturday 06 October 2007, Joe Altman wrote: > chthonic.com/crash-crash-crash Hi, Do you have "options KDB" in your kernel config file ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-options.html You should get a prompt when it panics. Then you type in "bt" for backtrace. Maybe you could take a picture of that. Probably someone is accessing a NULL pointer. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 7 17:44:21 2007 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 B2A1D16A418 for ; Sun, 7 Oct 2007 17:44:21 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: from earth.parts-unknown.org (earth.parts-unknown.org [66.93.170.243]) by mx1.freebsd.org (Postfix) with SMTP id 8852413C48E for ; Sun, 7 Oct 2007 17:44:21 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: (qmail 17318 invoked by uid 501); 7 Oct 2007 17:43:36 -0000 Date: Sun, 7 Oct 2007 10:43:36 -0700 From: David Benfell To: "M. Warner Losh" Message-ID: <20071007174336.GA14347@parts-unknown.org> References: <20071002041552.GA43023@parts-unknown.org> <20071001.225544.-1929099703.imp@bsdimp.com> <20071002055139.GA27687@parts-unknown.org> <20071002.030341.-278292810.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <20071002.030341.-278292810.imp@bsdimp.com> X-gnupg-public-key: http://www.parts-unknown.org/gnupg/export-0DD1D1E3 X-stardate: [-29]8318.66 X-moon: The Moon is Waning Crescent (12% of Full) User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-usb@FreeBSD.org, benfell@parts-unknown.org Subject: CURRENT appears to solve, Re: USB goes away 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, 07 Oct 2007 17:44:21 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 02 Oct 2007 03:03:41 -0600, M. Warner Losh wrote: > In message: <20071002055139.GA27687@parts-unknown.org> > David Benfell writes: > : On Mon, 01 Oct 2007 22:55:44 -0600, M. Warner Losh wrote: > : > In message: <20071002041552.GA43023@parts-unknown.org> > : > David Benfell writes: > : > : On Mon, 01 Oct 2007 22:02:43 -0600, M. Warner Losh wrote: > : > : > In message: <20071002025715.GA10999@parts-unknown.org> > : > : > David Benfell writes: > : > : > : I gather that USB has, in the past, been troublesome on > : > : > : FreeBSD. From my present experience, it still is. > : > : >=20 > : > : > Which version? > : > : >=20 > : > : earth% uname -a > : > : FreeBSD earth.cybernude.org 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #= 53: Sat Sep 29 20:25:11 PDT 2007 root@earth.cybernude.org:/usr/obj/usr/= src/sys/EARTH i386 > : >=20 > : > We're working on getting -current out the door. Any chance you can > : > try that? Or will I need to backport current's USB stack for you? :-) > : >=20 > : I will try upgrading to current. (Oh what fun it is to live on the > : bleeding edge!) >=20 > Well, it isn't so bleeding since we're trying to do a Release. >=20 After some considerable fumbling about, I now have CURRENT installed and running. I *did* install userland; I noticed some kldxref errors that probably weren't really errors about static modules and decided I was nervous. But the Palm Treo seems to connect up reliably on an initial test, both to sync updates from the Palm to a backup directory on the system, and to install a bunch of files from the system onto the Palm. This is a test it was failing miserably under the last instance of 6.2 I had tested. So your new USB stack is at least better. Also, someone did some nice work someplace that impacted Xorg (I also updated some ports, so maybe it is just that); it comes up much faster now. Thanks! --=20 David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/ NOTE: I sign all messages with GnuPG (0DD1D1E3). --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHCRrIUd+dMw3R0eMRAuFCAJ9KDfJ6kX1aKVJqTzmpVdhnA7DgyACgj0Pt DhTmlTUtthXhusJboG65LrM= =mjKI -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- From owner-freebsd-usb@FreeBSD.ORG Sun Oct 7 23:42:09 2007 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 AD91916A419; Sun, 7 Oct 2007 23:42:09 +0000 (UTC) (envelope-from fj@panix.com) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5382E13C48E; Sun, 7 Oct 2007 23:42:09 +0000 (UTC) (envelope-from fj@panix.com) Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id 5C31213A864; Sun, 7 Oct 2007 19:42:08 -0400 (EDT) Received: (from fj@localhost) by panix5.panix.com (8.11.6p3/8.8.8/PanixN1.1) id l97Ng8r21836; Sun, 7 Oct 2007 19:42:08 -0400 (EDT) Date: Sun, 7 Oct 2007 19:42:08 -0400 From: Joe Altman To: Hans Petter Selasky Message-ID: <20071007234208.GA5326@panix.com> References: <20071006192650.GA23085@panix.com> <200710071101.42353.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710071101.42353.hselasky@c2i.net> User-Agent: Mutt/1.5.10i Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Kernel panic; fatal trap 12; on task 22, USB0: was Re: Moused issues? 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, 07 Oct 2007 23:42:09 -0000 On Sun, Oct 07, 2007 at 11:01:41AM +0200, Hans Petter Selasky wrote: > On Saturday 06 October 2007, Joe Altman wrote: > > chthonic.com/crash-crash-crash > > Hi, > > Do you have "options KDB" in your kernel config file ? Following your suggestion, I did try this; and there was no change from kernel panic and reboot. > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-options.html > > You should get a prompt when it panics. There was no prompt. > Then you type in "bt" for backtrace. > Maybe you could take a picture of that. Personally, it's a bit embarassing to be so helpless that I am forced to take a picture. I suppose if I could be certain about how to compile bootblocks, I might be able to do something on the serial console with a laptop. But the one time I attempted that was a disaster. Is my speculation about the "...no dump device found..." correct? Is it that swapon and multiuser has not occurred, and so there can occur no dump to the swap space? > Probably someone is accessing a NULL pointer. If any more damage occurs, ISTM that my entire installation will be accessing a NULL pointer; the following message is from the most recent dmesg, and is new: warning: KLD '/boot/kernel.old.bootable/drm.ko' is newer than the linker.hints file Since my hardware appears to not work with the available source, who knows how that will go? From owner-freebsd-usb@FreeBSD.ORG Mon Oct 8 03:50:57 2007 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 D2C8616A419 for ; Mon, 8 Oct 2007 03:50:57 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: from earth.parts-unknown.org (earth.parts-unknown.org [66.93.170.243]) by mx1.freebsd.org (Postfix) with SMTP id 9B07E13C455 for ; Mon, 8 Oct 2007 03:50:57 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: (qmail 53807 invoked by uid 501); 8 Oct 2007 03:50:57 -0000 Date: Sun, 7 Oct 2007 20:50:57 -0700 From: David Benfell To: "M. Warner Losh" Message-ID: <20071008035057.GA49030@parts-unknown.org> References: <20071002041552.GA43023@parts-unknown.org> <20071001.225544.-1929099703.imp@bsdimp.com> <20071002055139.GA27687@parts-unknown.org> <20071002.030341.-278292810.imp@bsdimp.com> <20071007174336.GA14347@parts-unknown.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <20071007174336.GA14347@parts-unknown.org> X-gnupg-public-key: http://www.parts-unknown.org/gnupg/export-0DD1D1E3 X-stardate: [-29]8320.76 X-moon: The Moon is Waning Crescent (9% of Full) User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-usb@FreeBSD.org, benfell@parts-unknown.org Subject: USB no longer goes away, but doesn't respond to Treo 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, 08 Oct 2007 03:50:58 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 07 Oct 2007 10:43:36 -0700, David Benfell wrote: > On Tue, 02 Oct 2007 03:03:41 -0600, M. Warner Losh wrote: > > In message: <20071002055139.GA27687@parts-unknown.org> > > David Benfell writes: > > : On Mon, 01 Oct 2007 22:55:44 -0600, M. Warner Losh wrote: > > : > In message: <20071002041552.GA43023@parts-unknown.org> > > : > David Benfell writes: > > : > : On Mon, 01 Oct 2007 22:02:43 -0600, M. Warner Losh wrote: > > : > : > In message: <20071002025715.GA10999@parts-unknown.org> > > : > : > David Benfell writes: > > : > : > : I gather that USB has, in the past, been troublesome on > > : > : > : FreeBSD. From my present experience, it still is. > > : > : >=20 > > : > : > Which version? > > : > : >=20 > > : > : earth% uname -a > > : > : FreeBSD earth.cybernude.org 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7= #53: Sat Sep 29 20:25:11 PDT 2007 root@earth.cybernude.org:/usr/obj/us= r/src/sys/EARTH i386 > > : >=20 So now I have: FreeBSD earth.cybernude.org 7.0-CURRENT FreeBSD 7.0-CURRENT #55: Sat Oct 6= 14:02:17 PDT 2007 root@earth.cybernude.org:/usr/obj/usr/src/sys/EARTH = i386 > > : > We're working on getting -current out the door. Any chance you can > > : > try that? Or will I need to backport current's USB stack for you? = :-) > > : >=20 > > : I will try upgrading to current. (Oh what fun it is to live on the > > : bleeding edge!) > >=20 > > Well, it isn't so bleeding since we're trying to do a Release. > >=20 > After some considerable fumbling about, I now have CURRENT installed > and running. I *did* install userland; I noticed some kldxref errors > that probably weren't really errors about static modules and decided I > was nervous. >=20 > But the Palm Treo seems to connect up reliably on an initial test, both > to sync updates from the Palm to a backup directory on the system, and > to install a bunch of files from the system onto the Palm. This is a > test it was failing miserably under the last instance of 6.2 I had tested. >=20 So I went away for a while, and came back and tried it again. The system once again failed to recognize the Treo on connection and, so of course, an attempt to synchronize also failed. Rats. earth% usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 addr 2: high speed, self powered, config 1, product 0x0606(0x0606),= vendor 0x05e3(0x05e3), rev 7.02 port 1 powered port 2 powered port 3 powered port 4 addr 3: high speed, self powered, config 1, product 0x0606(0x0606)= , vendor 0x05e3(0x05e3), rev 7.02 port 1 powered port 2 powered port 3 addr 5: full speed, self powered, config 1, product 0x0061(0x0061= ), vendor 0x0830(0x0830), rev 1.00 port 4 addr 4: high speed, self powered, config 1, product 0x0121(0x0121= ), vendor 0x04b8(0x04b8), rev 1.10 port 3 powered port 4 powered port 5 powered port 6 powered But usbdevs shows the device. From my usbd.conf: device "Palm Treo 700p" devname "ugen[0-9]+" vendor 0x0830 product 0x0061 attach "rm -f /dev/pilot; chmod 660 /dev/${DEVNAME}; ln -s /dev/${D= EVNAME} /dev/pilot" detach "rm -f /dev/pilot"=20 So this problem is, at least, different. I think that's progress. In the = previous iteration, the device didn't appear in usbdevs. Now it just seems unrespon= sive. So, now what? Thanks! --=20 David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/ NOTE: I sign all messages with GnuPG (0DD1D1E3). --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHCakgUd+dMw3R0eMRAvNEAJwNe4NoO5bq8ZeQut3bU13N7AOfsACfQp+S uHiVPVe9uKem+xbbIELXpE4= =/f8T -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 8 11:08:45 2007 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 F0FCA16A41B for ; Mon, 8 Oct 2007 11:08:44 +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 D7C6913C44B for ; Mon, 8 Oct 2007 11:08:44 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l98B8ilD083492 for ; Mon, 8 Oct 2007 11:08:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l98B8hBc083486 for freebsd-usb@FreeBSD.org; Mon, 8 Oct 2007 11:08:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Oct 2007 11:08:43 GMT Message-Id: <200710081108.l98B8hBc083486@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 you 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, 08 Oct 2007 11:08:45 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb [umass] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb o usb/114682 usb USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb Turning off USB printer panics kernel o usb/116561 usb RELENG_6 umodem panic "trying to sleep while sleeping o usb/116947 usb [patch] enable boot protocol on the USB keyboards 101 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass p usb/114860 usb if_udav / ShanTou ST268 USB NIC o usb/114916 usb USB Maxtor drive (L300RO) requires quirk. o usb/115080 usb using a Hercules HWGUSB2-54-V2 wifi usb adapter o usb/115197 usb can not install from USB stick drive o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115737 usb uplcom doesn't identify my Prolific 2303 any more o usb/115933 usb RATOC REX-USB60F (usb serial converter) is working o usb/115935 usb [patch] kernel counterproductively attaches to Cyber P o usb/116057 usb [patch] Update quirks for the MetaGeek Wi-Spy o usb/116282 usb Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [patch] Add device ids for ICH8 USB chipsets o usb/116898 usb panic: sleeping thread while using USB hard drive 104 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 9 17:08:01 2007 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 E72BF16A418 for ; Tue, 9 Oct 2007 17:08:01 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd15624.kasserver.com (dd15624.kasserver.com [85.13.136.215]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE2913C45A for ; Tue, 9 Oct 2007 17:08:00 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from hundertwasser.cs.tcd.ie (dslb-084-060-125-142.pools.arcor-ip.net [84.60.125.142]) by dd15624.kasserver.com (Postfix) with ESMTP id D7BB018008937 for ; Tue, 9 Oct 2007 18:47:37 +0200 (CEST) Message-ID: <470BB0B6.5000102@chillt.de> Date: Tue, 09 Oct 2007 17:47:50 +0100 From: Bartosz Fabianowski User-Agent: Thunderbird 2.0.0.6 (X11/20070810) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: multipart/mixed; boundary="------------090005080400010106050709" Subject: Introducing support for Wacom Cintiq USB tablet 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, 09 Oct 2007 17:08:02 -0000 This is a multi-part message in MIME format. --------------090005080400010106050709 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi list I got a Wacom Cintiq tablet last week and wrote a driver to make it usable under FreeBSD. On the hardware side, the driver communicates with the tablet via the FreeBSD USB stack. On the user side, it implements a subset of the Linux input framework just large enough to make the Linux Wacom X driver happy. The driver is thus compatible with the X driver from the Linux Wacom project [1]. The latter driver compiles and works on FreeBSD once two missing include files are copied over from Linux. To allow the tablet to be accessed by multiple processes concurrently, the driver implements device cloning. As the tablet is detected, it shows up as /dev/uwacom0. This is just a placeholder device and cannot be opened. To read data from the tablet, open /dev/event0 - that device node is invisible, as that is how device cloning works. Caveats: * Only the Cintiq is supported at this time. It would be trivial to extend the driver to other Wacom models, but I don't want to publish code I cannot test. * This is my first device driver, so expect there to be bugs. Feedback from people more knowledgeable is most welcome. I am especially uncertain about proper locking, 64 bit support and device cloning. * The driver works well when X is launched via startx. When using a display manager such as kdm, the monitors for some reason are reset on X startup, leading to the Cintiq briefly detaching so that X does not detect it. The workaround I use is to log in via kdm, log out (at which point X restarts without reseting the monitors) and then log in again. * The Linux Wacom X driver currently does not build or work with X.org 7.3. You will need to portdowngrade your x11-servers/xorg-server to version 1.2.0_2,1. * From the Linux Wacom package, wacdump, the X driver, xidump and xsetwacom work out of the box. wacomcpl-exec is a TCL/Tk script that hardcodes some paths which need to be patched before it will run on FreeBSD. I have attached my driver and instructions for compiling the Linux Wacom X driver. In case the binary attachment gets scrubbed by mailman, I have also uploaded a copy at [2]. I hope others find this driver useful. I certainly am glad I can stick with FreeBSD while enjoying the pressure and tilt sensitivity of a Wacom tablet :). Finally, as writing this driver was done as part of my PhD: This work is financed by the "Irish Research Council for Science, Engineering and Technology: funded by the National Development Plan" - Bartosz [1] http://linuxwacom.sourceforge.net/ [2] http://www.chillt.de/bsdwacom.tbz --------------090005080400010106050709 Content-Type: application/octet-stream; name="bsdwacom.tbz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bsdwacom.tbz" YnNkd2Fjb20vAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDc1NSAA MDAxNzUxIAAwMDAwMDAgADAwMDAwMDAwMDAwIDEwNzAyNzI2NTczIDAxMjc2NQAgNQAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMHVuZG8A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd2hlZWwAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAwMDAwMDAgADAwMDAwMCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABic2R3YWNvbS9saW51eHdhY29tLwAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ZGUgPGRl di91c2IvdXNiZGkuaD4KI2luY2x1ZGUgPGRldi91c2IvdXNiZGlfdXRpbC5oPgoKI2RlZmlu ZSBVU0JfVkVORE9SX1dBQ09NICAgICAgICAgICAgICAweDA1NmEKI2RlZmluZSBVU0JfUFJP RFVDVF9XQUNPTV9DSU5USVFfMjFVWCAweDAwM2YKCiNkZWZpbmUgVVNCX1BBQ0tFVF9TSVpF ICAgICAgICAgICAgICAgMTAKCiNkZWZpbmUgTUlOT1IodCwgaCkgICAgICAgICAgICAgICAg ICAgKHVuaXQybWlub3IoKCh0KSA8PCAxNikgfCAoaCkpKQojZGVmaW5lIFRBQkxFVCh4KSAg ICAgICAgICAgICAgICAgICAgICgoZGV2MnVuaXQoeCkgPj4gMTYpICYgMHhmZikKI2RlZmlu ZSBIQU5ETEVSKHgpICAgICAgICAgICAgICAgICAgICAoZGV2MnVuaXQoeCkgJiAweGZmZmYp CiNkZWZpbmUgSEFORExFUl9NQVggICAgICAgICAgICAgICAgICAgMHgxMDAwMAoKI2RlZmlu ZSBQQUNLRVRfQklUKGIsIHMpICAgICAgICAgICAgICAoKHBhY2tldFtiXSA+PiAocykpICYg MSkKI2RlZmluZSBQQUNLRVRfQklUUyhiLCBzLCBuKSAgICAgICAgICAoKCgocykgKyAobikg PiAzMiA/ICgocGFja2V0WyhiKSAtIDRdKSA8PCAoMzIgLSAocykpKSA6IDApIHwgXAogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKChzKSArIChuKSA+IDI0ID8g KChwYWNrZXRbKGIpIC0gM10pIDw8ICgyNCAtIChzKSkpIDogMCkgfCBcCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKHMpICsgKG4pID4gMTYgPyAoKHBhY2tl dFsoYikgLSAyXSkgPDwgKDE2IC0gKHMpKSkgOiAwKSB8IFwKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICgocykgKyAobikgPiAgOCA/ICgocGFja2V0WyhiKSAt IDFdKSA8PCAoIDggLSAocykpKSA6IDApIHwgXAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKChwYWNrZXRbKGIpICAgIF0pID4+ ICAgICAgIChzKSkpICYgXAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKChuKSA9PSAzMiA/IDB4ZmZmZmZmZmYgOiAoMSA8PCAobikpIC0gMSkpCgojZGVmaW5l IEVVV0FDT01HRVRWRVJTSU9OICAgICAgICAgICAgIDB4MDEKI2RlZmluZSBFVVdBQ09NR0VU SUQgICAgICAgICAgICAgICAgICAweDAyCiNkZWZpbmUgRVVXQUNPTUdFVEJNICAgICAgICAg ICAgICAgICAgMHgyMAojZGVmaW5lIEVVV0FDT01HRVRBQlMgICAgICAgICAgICAgICAgIDB4 NDAKCnN0cnVjdCBpZCB7CiAgdWludDE2X3QgYnVzOwojZGVmaW5lIElEX0JVU19VU0IgMwog IHVpbnQxNl90IHZlbmRvcjsKICB1aW50MTZfdCBwcm9kdWN0OwogIHVpbnQxNl90IHZlcnNp b247Cn07CgojZGVmaW5lIEVWVF9TWU4gICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMAoj ZGVmaW5lIEVWVF9CVE4gICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMQojZGVmaW5lIEVW VF9SRUwgICAgICAgICAgICAgICAgICAgICAgIDB4MDAwMgojZGVmaW5lIEVWVF9BQlMgICAg ICAgICAgICAgICAgICAgICAgIDB4MDAwMwojZGVmaW5lIEVWVF9NU0MgICAgICAgICAgICAg ICAgICAgICAgIDB4MDAwNAojZGVmaW5lIEVWVF9VU0VEICAgICAgICAgICAgICAgICAgICAg IDB4MDAwNQojZGVmaW5lIEVWVF9NQVggICAgICAgICAgICAgICAgICAgICAgIDB4MDAxZgoK I2RlZmluZSBTWU5fUkVQT1JUICAgICAgICAgICAgICAgICAgICAweDAwMDAKCiNkZWZpbmUg QlROX01JU0NfMCAgICAgICAgICAgICAgICAgICAgMHgwMTAwCiNkZWZpbmUgQlROX01JU0Nf MSAgICAgICAgICAgICAgICAgICAgMHgwMTAxCiNkZWZpbmUgQlROX01JU0NfMiAgICAgICAg ICAgICAgICAgICAgMHgwMTAyCiNkZWZpbmUgQlROX01JU0NfMyAgICAgICAgICAgICAgICAg ICAgMHgwMTAzCiNkZWZpbmUgQlROX01JU0NfNCAgICAgICAgICAgICAgICAgICAgMHgwMTA0 CiNkZWZpbmUgQlROX01JU0NfNSAgICAgICAgICAgICAgICAgICAgMHgwMTA1CiNkZWZpbmUg QlROX01JU0NfNiAgICAgICAgICAgICAgICAgICAgMHgwMTA2CiNkZWZpbmUgQlROX01JU0Nf NyAgICAgICAgICAgICAgICAgICAgMHgwMTA3CiNkZWZpbmUgQlROX0xFRlQgICAgICAgICAg ICAgICAgICAgICAgMHgwMTEwCiNkZWZpbmUgQlROX1JJR0hUICAgICAgICAgICAgICAgICAg ICAgMHgwMTExCiNkZWZpbmUgQlROX01JRERMRSAgICAgICAgICAgICAgICAgICAgMHgwMTEy CiNkZWZpbmUgQlROX1NJREUgICAgICAgICAgICAgICAgICAgICAgMHgwMTEzCiNkZWZpbmUg QlROX0VYVFJBICAgICAgICAgICAgICAgICAgICAgMHgwMTE0CiNkZWZpbmUgQlROX1RPT0xf UEVOICAgICAgICAgICAgICAgICAgMHgwMTQwCiNkZWZpbmUgQlROX1RPT0xfRVJBU0VSICAg ICAgICAgICAgICAgMHgwMTQxCiNkZWZpbmUgQlROX1RPT0xfRklOR0VSICAgICAgICAgICAg ICAgMHgwMTQ1CiNkZWZpbmUgQlROX1RPT0xfTU9VU0UgICAgICAgICAgICAgICAgMHgwMTQ2 CiNkZWZpbmUgQlROX1RPVUNIICAgICAgICAgICAgICAgICAgICAgMHgwMTRhCiNkZWZpbmUg QlROX1NUWUxVU18xICAgICAgICAgICAgICAgICAgMHgwMTRiCiNkZWZpbmUgQlROX1NUWUxV U18yICAgICAgICAgICAgICAgICAgMHgwMTRjCiNkZWZpbmUgQlROX1VTRUQgICAgICAgICAg ICAgICAgICAgICAgMHgwMTRkCiNkZWZpbmUgQlROX01BWCAgICAgICAgICAgICAgICAgICAg ICAgMHgwMWZmCgojZGVmaW5lIFJFTF9XSEVFTCAgICAgICAgICAgICAgICAgICAgIDB4MDAw OAojZGVmaW5lIFJFTF9NQVggICAgICAgICAgICAgICAgICAgICAgIDB4MDAwZgoKI2RlZmlu ZSBBQlNfWCAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDAKI2RlZmluZSBBQlNfWSAg ICAgICAgICAgICAgICAgICAgICAgICAweDAwMDEKI2RlZmluZSBBQlNfUlggICAgICAgICAg ICAgICAgICAgICAgICAweDAwMDMKI2RlZmluZSBBQlNfUlkgICAgICAgICAgICAgICAgICAg ICAgICAweDAwMDQKI2RlZmluZSBBQlNfUFJFU1NVUkUgICAgICAgICAgICAgICAgICAweDAw MTgKI2RlZmluZSBBQlNfRElTVEFOQ0UgICAgICAgICAgICAgICAgICAweDAwMTkKI2RlZmlu ZSBBQlNfVElMVF9YICAgICAgICAgICAgICAgICAgICAweDAwMWEKI2RlZmluZSBBQlNfVElM VF9ZICAgICAgICAgICAgICAgICAgICAweDAwMWIKI2RlZmluZSBBQlNfTUlTQyAgICAgICAg ICAgICAgICAgICAgICAweDAwMjgKI2RlZmluZSBBQlNfVVNFRCAgICAgICAgICAgICAgICAg ICAgICAweDAwMjkKI2RlZmluZSBBQlNfTUFYICAgICAgICAgICAgICAgICAgICAgICAweDAw M2YKCiNkZWZpbmUgTVNDX1NFUklBTCAgICAgICAgICAgICAgICAgICAgMHgwMDAwCiNkZWZp bmUgTVNDX01BWCAgICAgICAgICAgICAgICAgICAgICAgMHgwMDA3CgojZGVmaW5lIEJNX1NJ WkUoeCkgICAgICAgICAgICAgICAgICAgICgoKHgpIC8gKHNpemVvZihsb25nKSAqIDgpICsg MSkgKiBzaXplb2YobG9uZykpCiNkZWZpbmUgQk1fU0VUX0JJVC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Y2RldnN3ID0g ewogIC5kX3ZlcnNpb24gPSBEX1ZFUlNJT04sCiAgLmRfZmxhZ3MgICA9IERfTkVFREdJQU5U LAogIC5kX29wZW4gICAgPSB1d2Fjb21vcGVuLAogIC5kX2Nsb3NlICAgPSB1d2Fjb21jbG9z ZSwKICAuZF9yZWFkICAgID0gdXdhY29tcmVhZCwKICAuZF9pb2N0bCAgID0gdXdhY29taW9j dGwsCiAgLmRfcG9sbCAgICA9IHV3YWNvbXBvbGwsCiAgLmRfcHVyZ2UgICA9IHV3YWNvbXB1 cmdlLAogIC5kX25hbWUgICAgPSAidXdhY29tIiwKfTsKCnN0cnVjdCB1d2Fjb21faGFuZGxl ciB7CiAgTElTVF9FTlRSWSh1d2Fjb21faGFuZGxlcikgbGluazsKCiAgc3RydWN0IGNsaXN0 ICAgICAgICAgICAgICAgcXVldWU7CiAgc3RydWN0IHNpZ2lvICAgICAgICAgICAgICAqcXVl dWVfc2lnaW87CiAgc3RydWN0IHNlbGluZm8gICAgICAgICAgICAgcnNlbDsKCiAgdV9jaGFy ICAgICAgICAgICAgICAgICAgICAgc2xlZXBpbmc7CiAgdV9jaGFyICAgICAgICAgICAgICAg ICAgICAgYXN5bmM7Cn07CgpzdHJ1Y3QgdXdhY29tX3NvZnRjIHsKICBVU0JCQVNFREVWSUNF ICAgICAgICAgICAgICAgc2NfZGV2OwogIHN0cnVjdCBjZGV2ICAgICAgICAgICAgICAgICpk ZXY7CgogIHVzYmRfaW50ZXJmYWNlX2hhbmRsZSAgICAgICBzY19pZmFjZTsKICBpbnQgICAg ICAgICAgICAgICAgICAgICAgICAgc2NfZXBfYWRkcjsKICB1c2JkX3BpcGVfaGFuZGxlICAg ICAgICAgICAgc2NfaW50cnBpcGU7CiAgdV9jaGFyICAgICAgICAgICAgICAgICAgICAgIHNj X2J1ZltVU0JfUEFDS0VUX1NJWkVdOwoKICB1X2NoYXIgICAgICAgICAgICAgICAgICAgICAg c2Nfc3RhbGxlZDsKICB1X2NoYXIgIC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AqKGludCopYWRkciA9IGhhbmRsZXIt PnF1ZXVlLmNfY2M7CiAgICAgIHNwbHgocyk7CiAgICAgIGJyZWFrOwogICAgfQoKICAgIGNh c2UgRklPTkJJTzoKICAgICAgYnJlYWs7CgogICAgY2FzZSBGSU9BU1lOQzoKICAgICAgaGFu ZGxlci0+YXN5bmMgPSAqKGludCopYWRkcjsKICAgICAgYnJlYWs7CgogICAgY2FzZSBGSU9T RVRPV046CiAgICAgIHJldHVybiBmc2V0b3duKCooaW50KilhZGRyLCAmaGFuZGxlci0+cXVl dWVfc2lnaW8pOwoKICAgIGRlZmF1bHQ6IHsKICAgICAgaW50IG51bSA9IGNtZCAmIDB4ZmY7 CiAgICAgIGludCBsZW4gPSBJT0NQQVJNX0xFTihjbWQpOwoKICAgICAgaWYgKElPQ0dST1VQ KGNtZCkgIT0gJ0UnIHx8IChjbWQgJiBJT0NfRElSTUFTSykgIT0gSU9DX09VVCkKICAgICAg ICByZXR1cm4gRUlOVkFMOwoKICAgICAgc3dpdGNoIChudW0pIHsKICAgICAgICBjYXNlIEVV V0FDT01HRVRWRVJTSU9OOgogICAgICAgICAgaWYgKGxlbiAhPSBzaXplb2YoaW50KSkKICAg ICAgICAgICAgcmV0dXJuIEVJTlZBTDsKICAgICAgICAgICooaW50KilhZGRyID0gMHgwMDAx MDAwMDsKICAgICAgICAgIGJyZWFrOwoKICAgICAgICBjYXNlIEVVV0FDT01HRVRJRDoKICAg ICAgICAgIGlmIChsZW4gIT0gc2l6ZW9mKHN0cnVjdCBpZCkpCiAgICAgICAgICAgIHJldHVy biBFSU5WQUw7CiAgICAgICAgICBtZW1jcHkoYWRkciwgJnNjLT5zY19pZCwgc2l6ZW9mKHN0 cnVjdCBpZCkpOwogICAgICAgICAgYnJlYWs7CgogICAgICAgIGRlZmF1bHQ6CiAgICAgICAg ICBpZiAobnVtID49IEVVV0FDT01HRVRCTSAmJiBudW0gPCBFVVdBQ09NR0VUQk0gKyBFVlRf VVNFRCkgewogICAgICAgICAgICBpbnQgaWR4ID0gbnVtIC0gRVVXQUNPTUdFVEJNOwogICAg ICAgICAgICBzaXplX3QgbGVuZ3RoID0gbWluKGJtX3NpemVbaWR4XSwgbGVuKTsKICAgICAg ICAgICAgbWVtY3B5KGFkZHIsIHNjLT5zY19ibVtpZHhdLCBsZW5ndGgpOwogICAgICAgICAg ICAvLyBSZXR1cm5pbmcgYSBwb3NpdGl2ZSB2YWx1ZSBmcm9tIGFuIGlvY3RsIGlzIHNvbWV3 aGF0IG9mIGEgZ2FtYmxlCiAgICAgICAgICAgIC8vIFNvbWV0aW1lcyBpdCBoYXMgdG8gYmUg aW4gdGRfcmV0dmFsWzBdLCBzb21ldGltZXMgaW4gdGRfcmV0dmFsWzFdCiAgICAgICAgICAg IHAtPnRkX3JldHZhbFswXSA9IGxlbmd0aDsKICAgICAgICAgICAgcC0+dGRfcmV0dmFsWzFd ID0gbGVuZ3RoOwogICAgICAgICAgICByZXR1cm4gMDsKCiAgICAgICAgICB9IGVsc2UgaWYg KG51bSA+PSBFVVdBQ09NR0VUQUJTICYmIG51bSA8IEVVV0FDT01HRVRBQlMgKyBBQlNfVVNF RCkgewogICAgICAgICAgICBpZiAobGVuICE9IHNpemVvZihzdHJ1Y3QgYWJzX2F4aXMpKQog ICAgICAgICAgICAgIHJldHVybiBFSU5WQUw7CiAgICAgICAgICAgIGludCBpZHggPSBudW0g LSBFVVdBQ09NR0VUQUJTOwogICAgICAgICAgICBtZW1jcHkoYWRkciwgJnNjLT5zY19hYnNb aWR4XSwgc2l6ZW9mKHN0cnVjdCBhYnNfYXhpcykpOwoKICAgICAgICAgIH0gZWxzZQogICAg ICAgICAgICByZXR1cm4gRUlOVkFMOwogICAgICB9CiAgICB9CiAgfQoKICByZXR1cm4gMDsK fQoKaW50IHV3YWNvbXBvbGwoc3RydWN0IGNkZXYgKmRldiwgaW50IGV2ZW50cywgdXNiX3By b2NfcHRyIHApIHsKICBzdHJ1Y3QgdXdhY29tX3NvZnRjICpzYzsKIC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NlcmlhbFtpbmRleF0gPSBQ QUNLRVRfQklUUyg3LCA0LCAzMik7CgogICAgICAgIHN3aXRjaCAoc2MtPnNjX3Rvb2xfaWRb aW5kZXhdKSB7CiAgICAgICAgICBjYXNlIDB4ODIzOgogICAgICAgICAgICBzYy0+c2NfdG9v bFtpbmRleF0gPSBCVE5fVE9PTF9QRU47CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAg Y2FzZSAweDgyYjoKICAgICAgICAgICAgc2MtPnNjX3Rvb2xbaW5kZXhdID0gQlROX1RPT0xf RVJBU0VSOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgMHgwMTc6CiAgICAg ICAgICAgIHNjLT5zY190b29sW2luZGV4XSA9IEJUTl9UT09MX01PVVNFOwogICAgICAgICAg ICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHNjLT5zY190b29sW2lu ZGV4XSA9IEJUTl9UT09MX1BFTjsKICAgICAgICB9CgogICAgICAvLyBUb29sIGxlYXZpbmcg cHJveGltaXR5CiAgICAgIH0gZWxzZSBpZiAoUEFDS0VUX0JJVFMoMSwgMSwgNykgPT0gMHg0 MCkgewogICAgICAgIHV3YWNvbV9wb3NfZXZlbnRzKHNjLCAwLCAwLCAwKTsKCiAgICAgICAg aWYgKHNjLT5zY190b29sW2luZGV4XSA9PSBCVE5fVE9PTF9NT1VTRSkKICAgICAgICAgIHV3 YWNvbV9tb3VzZV9ldmVudHMoc2MsIDAsIDAsIDAsIDAsIDAsIDApOwogICAgICAgIGVsc2UK ICAgICAgICAgIHV3YWNvbV9wZW5fZXZlbnRzKHNjLCAwLCAwLCAwLCAwLCAwLCAwKTsKCiAg ICAgICAgc2MtPnNjX3Rvb2xfaWRbaW5kZXhdID0gMDsKICAgICAgICB1d2Fjb21fdG9vbF9l dmVudHMoc2MsIGluZGV4LCAwKTsKCiAgICAgIC8vIFN0YW5kYXJkIHBhY2tldCB3aXRoIHJl YWR5IGJpdCBzZXQKIC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ZGUpOwogIHV3YWNvbV9ldmVudChzYywgRVZUX1JFTCwgUkVM X1dIRUVMLCB3aGVlbCk7Cn0KCnZvaWQgdXdhY29tX3BhZF9ldmVudHMoc3RydWN0IHV3YWNv bV9zb2Z0YyAqc2MsIGludCBidG5fMCwgaW50IGJ0bl8xLCBpbnQgYnRuXzIsIGludCBidG5f MywgaW50IGJ0bl80LCBpbnQgYnRuXzUsIGludCBidG5fNiwgaW50IGJ0bl83LCBpbnQgcngs IGludCByeSkgewogIHV3YWNvbV9ldmVudChzYywgRVZUX0JUTiwgQlROX01JU0NfMCwgYnRu XzApOwogIHV3YWNvbV9ldmVudChzYywgRVZUX0JUTiwgQlROX01JU0NfMSwgYnRuXzEpOwog IHV3YWNvbV9ldmVudChzYywgRVZUX0JUTiwgQlROX01JU0NfMiwgYnRuXzIpOwogIHV3YWNv bV9ldmVudChzYywgRVZUX0JUTiwgQlROX01JU0NfMywgYnRuXzMpOwogIHV3YWNvbV9ldmVu dChzYywgRVZUX0JUTiwgQlROX01JU0NfNCwgYnRuXzQpOwogIHV3YWNvbV9ldmVudChzYywg RVZUX0JUTiwgQlROX01JU0NfNSwgYnRuXzUpOwogIHV3YWNvbV9ldmVudChzYywgRVZUX0JU TiwgQlROX01JU0NfNiwgYnRuXzYpOwogIHV3YWNvbV9ldmVudChzYywgRVZUX0JUTiwgQlRO X01JU0NfNywgYnRuXzcpOwogIHV3YWNvbV9ldmVudChzYywgRVZUX0FCUywgQUJTX1JYLCBy eCk7CiAgdXdhY29tX2V2ZW50KHNjLCBFVlRfQUJTLCBBQlNfUlksIHJ5KTsKfQoKdm9pZCB1 d2Fjb21fdG9vbF9ldmVudHMoc3RydWN0IHV3YWNvbV9zb2Z0YyAqc2MsIGludCBpbmRleCwg aW50IHByb3hpbWl0eSkgewogIHV3YWNvbV9ldmVudChzYywgRVZUX0JUTiwgc2MtPnNjX3Rv b2xbaW5kZXhdLCBwcm94aW1pdHkpOwogIHV3YWNvbV9ldmVudChzYywgRVZ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= --------------090005080400010106050709-- From owner-freebsd-usb@FreeBSD.ORG Tue Oct 9 18:05:59 2007 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 DBDE316A418 for ; Tue, 9 Oct 2007 18:05:59 +0000 (UTC) (envelope-from emdgaurav@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id 79EF413C467 for ; Tue, 9 Oct 2007 18:05:59 +0000 (UTC) (envelope-from emdgaurav@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1534340wxd for ; Tue, 09 Oct 2007 11:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=SVMK6GxvVCn+aCWsEZP2gMj1UNxR29Ym6HOUpZeDUW4=; b=CihLKhQ7gGDeiFB3a7DFb1yCs3kz7qDdwj8QdE2xMUnYSn0ZbKgtUcfFej4XdYm84uLZhKSzRArEmf6EihNe2+rj1AduseWo/IMr0G74XmygI4L8WAwoKfvYGdGXmGDis0x1UmPoFhRnwemC/2jYr05nAlOaqminGG+IsCmQ0dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QDjGfvYkfbgfYRPwrEbrszyWmVJaMC6vrQjQBHQN/fjEaTzmmirMbMT6MH4DV80TlfyN1bZaUghnEi3QFwlPJfrKVwLeIios5HCWovE/MIJZtx8tAQPWvdEjHrBNraIsyEUbdFh9XSg6lDZsQvZRXEN9QzZGelORQ/o+jrIJXQQ= Received: by 10.70.61.3 with SMTP id j3mr27358088wxa.1191951482583; Tue, 09 Oct 2007 10:38:02 -0700 (PDT) Received: by 10.70.62.12 with HTTP; Tue, 9 Oct 2007 10:38:02 -0700 (PDT) Message-ID: Date: Tue, 9 Oct 2007 23:08:02 +0530 From: "GAURAV GUPTA" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: help for understand the usb calls: 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, 09 Oct 2007 18:06:00 -0000 Hi all, My name is tarru .i am trying to understand the usb call . and currently i got struck and i would like to know the difference between functions. usbd_transfer() and usbd_do_request() are we doing anything different ? .i confused since in both cases we are transferring/queering for data to usb device Please let me know if anybody can help on this Thanks, Tarru From owner-freebsd-usb@FreeBSD.ORG Tue Oct 9 19:54:24 2007 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 1A09116A41B for ; Tue, 9 Oct 2007 19:54:24 +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 5FD1213C48A for ; Tue, 9 Oct 2007 19:54:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 646406274; Tue, 09 Oct 2007 21:39:11 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 9 Oct 2007 21:39:35 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710092139.36278.hselasky@c2i.net> Cc: Subject: Re: help for understand the usb calls: 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, 09 Oct 2007 19:54:24 -0000 On Tuesday 09 October 2007, GAURAV GUPTA wrote: > Hi all, > > My name is tarru .i am trying to understand the usb call . > > and currently i got struck and i would like to know the difference > between functions. > > > usbd_transfer() > > and > > usbd_do_request() > > are we doing anything different ? .i confused since in both cases we are > transferring/queering for data to usb device > > Please let me know if anybody can help on this > > Thanks, > > Tarru Hi, "usbd_do_request()" is a wrapper function for "usbd_transfer()" that does synchronous control transfers on endpoint zero only. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Oct 10 13:41:52 2007 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 1FF8216A418 for ; Wed, 10 Oct 2007 13:41:52 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 080D613C448 for ; Wed, 10 Oct 2007 13:41:51 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IfbYi-0008K4-07 for freebsd-usb@freebsd.org; Wed, 10 Oct 2007 06:25:08 -0700 Message-ID: <15016327.323291192022707996.JavaMail.nabble@isper.nabble.com> From: brian.lincks@subzero.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 10 Oct 2007 06:25:08 -0700 Subject: USB driver for motorola v323i cell 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: Wed, 10 Oct 2007 13:41:52 -0000 From owner-freebsd-usb@FreeBSD.ORG Wed Oct 10 18:20:54 2007 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 A35F416A41B for ; Wed, 10 Oct 2007 18:20:54 +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 37A4713C48D for ; Wed, 10 Oct 2007 18:20:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 545923291; Wed, 10 Oct 2007 20:20:51 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 10 Oct 2007 20:21:11 +0200 User-Agent: KMail/1.9.7 References: <15016327.323291192022707996.JavaMail.nabble@isper.nabble.com> In-Reply-To: <15016327.323291192022707996.JavaMail.nabble@isper.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710102021.11598.hselasky@c2i.net> Cc: brian.lincks@subzero.com Subject: Re: USB driver for motorola v323i cell 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: Wed, 10 Oct 2007 18:20:54 -0000 Hi, Maybe this will work: man umodem kldload umodem man cdce kldload cdce --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Oct 10 18:24:12 2007 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 58F3516A417; Wed, 10 Oct 2007 18:24:12 +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 B055713C44B; Wed, 10 Oct 2007 18:24:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 646030227; Wed, 10 Oct 2007 20:24:10 +0200 From: Hans Petter Selasky To: freebsd-hardware@freebsd.org Date: Wed, 10 Oct 2007 20:24:34 +0200 User-Agent: KMail/1.9.7 References: <470C5DDE.2000401@yahoo.com> In-Reply-To: <470C5DDE.2000401@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710102024.35465.hselasky@c2i.net> Cc: williamkow , freebsd-usb@freebsd.org, "freebsd-questions@freebsd.org" Subject: Re: how to setup internet access via GPRS/EDGE network using Nokia 6230 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: Wed, 10 Oct 2007 18:24:12 -0000 Hi, On Wednesday 10 October 2007, williamkow wrote: > Could anybody advise me on how to enable internet access (GPRS/EDGE) in > GSM network, using Nokia mobile phone (USB cable connect to computer). > Please provide me the exact PORT name to install to FreeBSD 6.2 system, > also please assist me on how to use the ports, example, (1) execute it > (2) establish the connection, (3) disconnect ...etc. > Looks like an USB issue: If you execute the following commands like the Super User: kldload umodem kldload cdce Does your phone show up if you run the command "dmesg | less" ? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Oct 10 19:45:14 2007 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 D6BE716A417 for ; Wed, 10 Oct 2007 19:45:14 +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 6B15B13C45A for ; Wed, 10 Oct 2007 19:45:14 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 644802095; Wed, 10 Oct 2007 21:45:12 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 10 Oct 2007 21:45:32 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710102145.32585.hselasky@c2i.net> Cc: Andreas Davour Subject: Re: How do I use my USB headset? 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, 10 Oct 2007 19:45:14 -0000 On Wednesday 10 October 2007, Andreas Davour wrote: > Hi! > > I've bought a Logitech USB headset, and realized that since it's a USB > device it shows up as new audio unit with it's own mixer and other > devices. Now TeamSpeak and Skype, which are the programs I bought the > headset for, don't seem to like the idea of sending the audio output > anywhere except the first unit i.e. pcm0 which unfortunately is my built > in laptop audio device. > > Anyone know if I can somehow route all output/input to pcm1 or somehow > get the headset to work with Skype? > > I can use some programs, like 'mplayer' which take a lot of options like > to what device it shall render audio/video. But since not all programs > are that forgiving I had hoped there would be some kind of system wide > way to direct the audio system to use my USB device instead. > > Any suggestions? > > I am using KDE if that's important (and I have checked the volume on all > devices and it's not zero). > > /andreas Hi, If you are not using FreeBSD-7 current, something like the following might do the trick: rm /dev/dsp0 ln -s /dev/dsp1 /dev/dsp0 Although that means you will loose access to /dev/dsp0 . --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Oct 10 20:07:44 2007 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 E6AA616A420 for ; Wed, 10 Oct 2007 20:07:44 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outO.internet-mail-service.net (outO.internet-mail-service.net [216.240.47.238]) by mx1.freebsd.org (Postfix) with ESMTP id 68B9613C48A for ; Wed, 10 Oct 2007 20:07:44 +0000 (UTC) (envelope-from julian@elischer.org) Received: from Unknown (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Wed, 10 Oct 2007 13:07:43 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 166301265FC; Wed, 10 Oct 2007 13:07:37 -0700 (PDT) Message-ID: <470D3113.2070007@elischer.org> Date: Wed, 10 Oct 2007 13:07:47 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Hans Petter Selasky References: <200710102145.32585.hselasky@c2i.net> In-Reply-To: <200710102145.32585.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andreas Davour , freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 10 Oct 2007 20:07:45 -0000 Hans Petter Selasky wrote: > On Wednesday 10 October 2007, Andreas Davour wrote: >> Hi! >> >> I've bought a Logitech USB headset, and realized that since it's a USB >> device it shows up as new audio unit with it's own mixer and other >> devices. Now TeamSpeak and Skype, which are the programs I bought the >> headset for, don't seem to like the idea of sending the audio output >> anywhere except the first unit i.e. pcm0 which unfortunately is my built >> in laptop audio device. >> >> Anyone know if I can somehow route all output/input to pcm1 or somehow >> get the headset to work with Skype? >> >> I can use some programs, like 'mplayer' which take a lot of options like >> to what device it shall render audio/video. But since not all programs >> are that forgiving I had hoped there would be some kind of system wide >> way to direct the audio system to use my USB device instead. >> >> Any suggestions? >> >> I am using KDE if that's important (and I have checked the volume on all >> devices and it's not zero). >> >> /andreas > > Hi, > > If you are not using FreeBSD-7 current, something like the following might do > the trick: > > rm /dev/dsp0 > ln -s /dev/dsp1 /dev/dsp0 > > Although that means you will loose access to /dev/dsp0 . back when I used skype on BSD it was a linux binary, which means it was looking in /compat/linux/dev you need to have the correct symlinks in there.. > > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 13:00:32 2007 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 9323B16A418 for ; Thu, 11 Oct 2007 13:00:32 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 5F5F713C4A5 for ; Thu, 11 Oct 2007 13:00:32 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so390428nzf for ; Thu, 11 Oct 2007 06:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=dhE50zMg2nkeg+vyOxfjR/ofTyRQ/ILIMuSfpsw/eRw=; b=FpoolQVZVpiH/OFA9FRTiyNfnduKIOMrrpdjP5VVnmTSf+zOvlM8S2iG0pRmSBgvFYYxqxoZ34gQhVttdyNATP1z4b1AVl4Mjio3D7hHHQ0+8Np3Rz2HzawrjYr4fefpW1uBmy02ZJtvoNsYVKZt9ubpvS4YnxakdDiGHFobtJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fias1Yw+X/REHHKVYN8RYnkqr7MEkykZK5onIaF/mT298xA8yxfxyBUXjlDXszR0kcJ5xwUjonIgq/7oZYjt1NvJSteSeUz/TJE3zIyt/KwvboJiniYpuHF8g1JYuVdGO/3bqq7xYomkiFwmpkCrQXlx96HizuroA6gaXUa3pH4= Received: by 10.114.153.18 with SMTP id a18mr2143248wae.1192107630928; Thu, 11 Oct 2007 06:00:30 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Thu, 11 Oct 2007 06:00:30 -0700 (PDT) Message-ID: Date: Thu, 11 Oct 2007 21:00:30 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: VID parser problem with usbdevs 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, 11 Oct 2007 13:00:32 -0000 Somehow the vendor ID is parsed wrongly. 0x04d8 is for Microchip technology. ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v Controller /dev/usb1: addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 port 4 addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # uname -a FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Oct 11 19:50:55 SGT 2007 root@FreeBsd62.Mshome:/home/obj/home/src/sys/USBDEBUG i386 I am running kernel 6.2-STABLE with the latest SVN version of HPS Stack. Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 13:04:52 2007 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 ABD8216A41B for ; Thu, 11 Oct 2007 13:04:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7887E13C469 for ; Thu, 11 Oct 2007 13:04:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l9BD2cgm030875; Thu, 11 Oct 2007 07:02:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 11 Oct 2007 07:02:49 -0600 (MDT) Message-Id: <20071011.070249.2073896410.imp@bsdimp.com> To: xiaofanc@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 11 Oct 2007 07:02:39 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: VID parser problem with usbdevs 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, 11 Oct 2007 13:04:52 -0000 In message: "Xiaofan Chen" writes: : Somehow the vendor ID is parsed wrongly. 0x04d8 is for Microchip technology. : : ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v : Controller /dev/usb1: : addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), : I-Tuner Networks(0x04d8), rev 0.00 : port 4 addr 126: full speed, power 100 mA, config 1, product : 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 While 4d8 is for microchip technology, we get the name that we print here directly from the usb device itself. What makes you think that the vendor ID is parsed wrong? Warner From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 13:17:42 2007 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 DC46916A41B for ; Thu, 11 Oct 2007 13:17:41 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id A37A613C442 for ; Thu, 11 Oct 2007 13:17:41 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so394287nzf for ; Thu, 11 Oct 2007 06:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Ql1/p71jMfQokdoCMdGCW5hBWZBiWLAEPJh3ssLNKpM=; b=qRbE1iCqKf8iDjc41JK2o80AKOUX99KbJ7XrmCRg8Kk/cQCLiPVk8ki0hF3E7gTuX3frWrFTLtbVXCVF93+BDWdzKPbJbURYwQmT8TJ3wQsuGeyzPtVULaaqwMna4etL96WtNzAdzbjhf9inFhwbdiVle7YnB2K1JPzPN2sAxGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tghtwLpidWoxi3vROywZ09JnIuQxxoPnNAB5W5rNwwf0J75Kn6fmjshtszbAxj3e/J5CSpvrIhRAmqKf6Wo16lqvvD0b/BCsoCI7Jb2FSLUKRU1P0FjLMrvslz9Y2JuP0Eu+LtHn8bjPNVMRo9q3cZV9wp7K5y5p08UaZAopcRk= Received: by 10.115.108.1 with SMTP id k1mr2138194wam.1192108659023; Thu, 11 Oct 2007 06:17:39 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Thu, 11 Oct 2007 06:17:38 -0700 (PDT) Message-ID: Date: Thu, 11 Oct 2007 21:17:38 +0800 From: "Xiaofan Chen" To: "M. Warner Losh" In-Reply-To: <20071011.070249.2073896410.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071011.070249.2073896410.imp@bsdimp.com> Cc: freebsd-usb@freebsd.org Subject: Re: VID parser problem with usbdevs 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, 11 Oct 2007 13:17:42 -0000 On 10/11/07, M. Warner Losh wrote: > In message: > : ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v > : Controller /dev/usb1: > : addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), > : I-Tuner Networks(0x04d8), rev 0.00 > : port 4 addr 126: full speed, power 100 mA, config 1, product > : 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 > > While 4d8 is for microchip technology, we get the name that we print > here directly from the usb device itself. > What makes you think that the vendor ID is parsed wrong? > I have read the firmware source codes so I do not think there is anything called "I-Tuner" in the descriptors or anywhere in the firmware. 04d8/000b is the bootloader firmware VID/PID for Microchip PICDEM FS USB demo board. The following is the relevant descriptor. #pragma romdata /* Device Descriptor */ rom USB_DEV_DSC device_dsc= { sizeof(USB_DEV_DSC), // Size of this descriptor in bytes DSC_DEV, // DEVICE descriptor type 0x0200, // USB Spec Release Number in BCD format 0x00, // Class Code 0x00, // Subclass code 0x00, // Protocol code EP0_BUFF_SIZE, // Max packet size for EP0, see usbcfg.h 0x04D8, // Vendor ID 0x000b, // Product ID: PICDEM FS USB (Boot Mode) 0x0001, // Device release number in BCD format 0x00, // Manufacturer string index 0x00, // Product string index 0x00, // Device serial number string index 0x01 // Number of possible configurations }; /* Configuration 1 Descriptor */ CFG01= { /* Configuration Descriptor */ sizeof(USB_CFG_DSC), // Size of this descriptor in bytes DSC_CFG, // CONFIGURATION descriptor type sizeof(cfg01), // Total length of data for this cfg 1, // Number of interfaces in this cfg 1, // Index value of this configuration 0, // Configuration string index _DEFAULT, // Attributes, see usbdefs_std_dsc.h 50, // Max power consumption (2X mA) /* Interface Descriptor */ sizeof(USB_INTF_DSC), // Size of this descriptor in bytes DSC_INTF, // INTERFACE descriptor type 0, // Interface Number 0, // Alternate Setting Number 2, // Number of endpoints in this intf 0x00, // Class code 0x00, // Subclass code 0x00, // Protocol code 0, // Interface string index /* Endpoint Descriptors */ sizeof(USB_EP_DSC),DSC_EP,_EP01_OUT,_BULK,BOOT_EP_SIZE,0x00, sizeof(USB_EP_DSC),DSC_EP,_EP01_IN,_BULK,BOOT_EP_SIZE,0x00 }; rom struct{byte bLength;byte bDscType;word string[1];}sd000={ sizeof(sd000),DSC_STR,0x0409}; So I plug in PICkit 2, another Microchip product. It is fine. ===[mcuee] ~ # sudo usbdev -v addr 125: full speed, power 100 mA, config 1, PICkit 2 Microcontroller Programme r(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 port 2 addr 125: full speed, power 100 mA, config 1, PICkit 2 Microcontroller P rogrammer(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 Kind of strange. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:13:09 2007 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 C234A16A419 for ; Thu, 11 Oct 2007 18:13:09 +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 0823413C4A6 for ; Thu, 11 Oct 2007 18:13:08 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 647434231; Thu, 11 Oct 2007 20:13:07 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 11 Oct 2007 20:13:31 +0200 User-Agent: KMail/1.9.7 References: <20071011.070249.2073896410.imp@bsdimp.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710112013.32721.hselasky@c2i.net> Cc: Subject: Re: VID parser problem with usbdevs 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, 11 Oct 2007 18:13:09 -0000 On Thursday 11 October 2007, Xiaofan Chen wrote: > On 10/11/07, M. Warner Losh wrote: > > In message: > > : ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo usbdevs -v > > : Controller /dev/usb1: > > : addr 126: full speed, power 100 mA, config 1, product 0x000b(0x000b), > > : I-Tuner Networks(0x04d8), rev 0.00 > > : port 4 addr 126: full speed, power 100 mA, config 1, product > > : 0x000b(0x000b), I-Tuner Networks(0x04d8), rev 0.00 > > > > While 4d8 is for microchip technology, we get the name that we print > > here directly from the usb device itself. > > What makes you think that the vendor ID is parsed wrong? > > I have read the firmware source codes so I do not think there > is anything called "I-Tuner" in the descriptors or anywhere in the > firmware. 04d8/000b is the bootloader firmware VID/PID for > Microchip PICDEM FS USB demo board. > > The following is the relevant descriptor. Hi Xiaofan Chen, When you compile any FreeBSD USB stack with "options USB_DEBUG", which might be hardcoded in the sources, then the kernel will search "usbdevs" for a vendor description. This will be done hence you have no valid strings for the manufacturer nor product : > 0x00, // Manufacturer string index > 0x00, // Product string index > 0x00, // Device serial number string index --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:33:36 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from misaki (localhost [IPv6:::1]) by hub.freebsd.org (Postfix) with SMTP id 7DB0616A421; Thu, 11 Oct 2007 18:33:35 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Fri, 12 Oct 2007 02:32:55 +0800 From: Ariff Abdullah To: Andreas Davour Message-Id: <20071012023255.63e06a2e.ariff@FreeBSD.org> In-Reply-To: References: <200710102145.32585.hselasky@c2i.net> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__12_Oct_2007_02_32_55_+0800_MlgRM3lcfSo8W/W8" Cc: freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 11 Oct 2007 18:33:36 -0000 --Signature=_Fri__12_Oct_2007_02_32_55_+0800_MlgRM3lcfSo8W/W8 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 11 Oct 2007 20:00:48 +0200 (CEST) Andreas Davour wrote: > On Wed, 10 Oct 2007, Hans Petter Selasky wrote: >=20 > > On Wednesday 10 October 2007, Andreas Davour wrote: > >> Hi! > >> > >> I've bought a Logitech USB headset, and realized that since it's > >a USB > device it shows up as new audio unit with it's own mixer > >and other > devices. Now TeamSpeak and Skype, which are the > >programs I bought the > headset for, don't seem to like the idea of > >sending the audio output > anywhere except the first unit i.e. pcm0 > >which unfortunately is my built > in laptop audio device. > >> > >> Anyone know if I can somehow route all output/input to pcm1 or > >somehow > get the headset to work with Skype? > >> > >> I can use some programs, like 'mplayer' which take a lot of > >options like > to what device it shall render audio/video. But > >since not all programs > are that forgiving I had hoped there would > >be some kind of system wide > way to direct the audio system to use > >my USB device instead. > > >> Any suggestions? > >> > >> I am using KDE if that's important (and I have checked the volume > >on all > devices and it's not zero). > > > > Hi, > > > > If you are not using FreeBSD-7 current, something like the > > following might do the trick: > > > > rm /dev/dsp0 > > ln -s /dev/dsp1 /dev/dsp0 > > This is so wrong / undefined behaviour, since FreeBSD 5.x and beyond. You should use sysctl hw.snd.unit _OR_ hw.snd.default_unit (depending on FreeBSD version) to toggle default device for application that requesting "/dev/dsp" or "/dev/mixer". Most application does not really care about what unit they are accessing, all they care is "/dev/dsp" (with the unit numbering being omitted). > > Although that means you will loose access to /dev/dsp0 . >=20 > Sorry, I should have mentioned that I use 6.2-RELEASE fully patched. >=20 > That's a good suggestion, and loosing /dev/dsp0 is ok for the > moment. The sad thing is it didn't work. :-( >=20 Of course it didn't work, since the behaviour of forcing rm/ln is undefined. You probably have to reboot or reload or re-attach, since rm/ln will screw it. -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Fri__12_Oct_2007_02_32_55_+0800_MlgRM3lcfSo8W/W8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHDmxXlr+deMUwTNoRAi+GAJ0Vk+ZNKjgEprEc3ttubEW4F0hefwCdGhLm +Fx6AHn0EpQe2MA184/yolA= =HB93 -----END PGP SIGNATURE----- --Signature=_Fri__12_Oct_2007_02_32_55_+0800_MlgRM3lcfSo8W/W8-- From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:39:29 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from misaki (localhost [IPv6:::1]) by hub.freebsd.org (Postfix) with SMTP id 000FB16A417; Thu, 11 Oct 2007 18:39:27 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Fri, 12 Oct 2007 02:38:47 +0800 From: Ariff Abdullah To: Andreas Davour Message-Id: <20071012023847.0dd51021.ariff@FreeBSD.org> In-Reply-To: References: <200710102145.32585.hselasky@c2i.net> <470D3113.2070007@elischer.org> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__12_Oct_2007_02_38_47_+0800_wDDYmGX22E/lKLjE" Cc: freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 11 Oct 2007 18:39:29 -0000 --Signature=_Fri__12_Oct_2007_02_38_47_+0800_wDDYmGX22E/lKLjE Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 11 Oct 2007 20:24:44 +0200 (CEST) Andreas Davour wrote: > On Wed, 10 Oct 2007, Julian Elischer wrote: >=20 > > Hans Petter Selasky wrote: > >>=20 > >> Hi, > >>=20 > >> If you are not using FreeBSD-7 current, something like the > >following might > do the trick: > >>=20 > >> rm /dev/dsp0 > >> ln -s /dev/dsp1 /dev/dsp0 > >>=20 > >> Although that means you will loose access to /dev/dsp0 . > > > > back when I used skype on BSD it was a linux binary, > > which means it was looking in /compat/linux/dev > > > > you need to have the correct symlinks in there.. >=20 > I didn't think that the fact it was a linux binary could cause > michief, but of course that's a prime suspect for troubles. > Strangely enough I didn't even have a /dev folder under > /compat/linux ! >=20 > /dev/dsp1: Device or resource busy is the response I get from Skype, > and oddly enough the only device I can choose from now is /dev/dsp1 > so maybe the port maintainger managed to patch Skype to look in the > right place after all. Still no response from either program > though, the microphone is not working. :( >=20 Are you really sure the microphone is working in the first place? Full duplex capabilities are largely improved with FreeBSD 7.x and beyond, or you might want to try these binary modules for 6.x: http://people.freebsd.org/~ariff/BINARY_MODULES/ -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Fri__12_Oct_2007_02_38_47_+0800_wDDYmGX22E/lKLjE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHDm23lr+deMUwTNoRAiKjAJ9hwgHwoWWEo21tOgt6GojqjG/jGwCeP5SR GdxxCZgF7LUdYAhMmp8gHFA= =EjZV -----END PGP SIGNATURE----- --Signature=_Fri__12_Oct_2007_02_38_47_+0800_wDDYmGX22E/lKLjE-- From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:40:37 2007 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 2F33A16A41B for ; Thu, 11 Oct 2007 18:40:37 +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 BDF3613C4A3 for ; Thu, 11 Oct 2007 18:40:36 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 645001914; Thu, 11 Oct 2007 20:40:33 +0200 From: Hans Petter Selasky To: Ariff Abdullah Date: Thu, 11 Oct 2007 20:40:58 +0200 User-Agent: KMail/1.9.7 References: <20071012023255.63e06a2e.ariff@FreeBSD.org> In-Reply-To: <20071012023255.63e06a2e.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710112040.59091.hselasky@c2i.net> Cc: Andreas Davour , freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 11 Oct 2007 18:40:37 -0000 On Thursday 11 October 2007, Ariff Abdullah wrote: > On Thu, 11 Oct 2007 20:00:48 +0200 (CEST) > Andreas Davour wrote: > > On Wed, 10 Oct 2007, Hans Petter Selasky wrote: > > > On Wednesday 10 October 2007, Andreas Davour wrote: > > > > Although that means you will loose access to /dev/dsp0 . > > > > Sorry, I should have mentioned that I use 6.2-RELEASE fully patched. > > > > That's a good suggestion, and loosing /dev/dsp0 is ok for the > > moment. The sad thing is it didn't work. :-( > > Of course it didn't work, since the behaviour of forcing rm/ln is > undefined. You probably have to reboot or reload or re-attach, since > rm/ln will screw it. > It is an USB device. Re-plugging it will do the trick :-) Ariff: Does the Audio system support detach during playback ? Some users have bugged me about that recently. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Oct 11 18:54:02 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from misaki (localhost [IPv6:::1]) by hub.freebsd.org (Postfix) with SMTP id 06C6C16A418; Thu, 11 Oct 2007 18:54:01 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Fri, 12 Oct 2007 02:53:07 +0800 From: Ariff Abdullah To: Hans Petter Selasky Message-Id: <20071012025307.67f956b3.ariff@FreeBSD.org> In-Reply-To: <200710112040.59091.hselasky@c2i.net> References: <20071012023255.63e06a2e.ariff@FreeBSD.org> <200710112040.59091.hselasky@c2i.net> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__12_Oct_2007_02_53_07_+0800_ViH3QF=dz.oc91xI" Cc: freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 11 Oct 2007 18:54:03 -0000 --Signature=_Fri__12_Oct_2007_02_53_07_+0800_ViH3QF=dz.oc91xI Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 11 Oct 2007 20:40:58 +0200 Hans Petter Selasky wrote: > On Thursday 11 October 2007, Ariff Abdullah wrote: > > On Thu, 11 Oct 2007 20:00:48 +0200 (CEST) > > Andreas Davour wrote: > > > On Wed, 10 Oct 2007, Hans Petter Selasky wrote: > > > > On Wednesday 10 October 2007, Andreas Davour wrote: >=20 > > > > > > Although that means you will loose access to /dev/dsp0 . > > > > > > Sorry, I should have mentioned that I use 6.2-RELEASE fully > > > patched. > > > > > > That's a good suggestion, and loosing /dev/dsp0 is ok for the > > > moment. The sad thing is it didn't work. :-( > > > > Of course it didn't work, since the behaviour of forcing rm/ln is > > undefined. You probably have to reboot or reload or re-attach, > > since rm/ln will screw it. > > >=20 > It is an USB device. Re-plugging it will do the trick :-) >=20 > Ariff: Does the Audio system support detach during playback ? Some > users have bugged me about that recently. > The current situations are no differences with pulling out mounted usb sticks, although there is an ongoing work on supporting suicidal notification. Even so, I will not recommend it for pleasure. -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Fri__12_Oct_2007_02_53_07_+0800_ViH3QF=dz.oc91xI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHDnETlr+deMUwTNoRAuffAKC42qxMDyU2cTKC5aFcw7yt0XS4FQCg3rR7 6ZkqV+pjhY9/wqn4iOP3lkQ= =smjK -----END PGP SIGNATURE----- --Signature=_Fri__12_Oct_2007_02_53_07_+0800_ViH3QF=dz.oc91xI-- From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 07:02:18 2007 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 A610A16A46D for ; Fri, 12 Oct 2007 07:02:18 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 57CA113C465 for ; Fri, 12 Oct 2007 07:02:18 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55A9A.dip.t-dialin.net [84.165.90.154]) by redbull.bpaserver.net (Postfix) with ESMTP id A0B9E2E07A; Fri, 12 Oct 2007 08:43:43 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 63B215B4800; Fri, 12 Oct 2007 08:42:46 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.1/8.13.8/Submit) id l9C6gjT2060052; Fri, 12 Oct 2007 08:42:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 12 Oct 2007 08:42:45 +0200 Message-ID: <20071012084245.uzh2iman34c44ksc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 12 Oct 2007 08:42:45 +0200 From: Alexander Leidinger To: Andreas Davour References: <200710102145.32585.hselasky@c2i.net> <470D3113.2070007@elischer.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 8, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Julian Elischer , freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 12 Oct 2007 07:02:18 -0000 Quoting Andreas Davour (from Thu, 11 Oct 2007 =20 20:24:44 +0200 (CEST)): > On Wed, 10 Oct 2007, Julian Elischer wrote: > >> Hans Petter Selasky wrote: >>> >>> Hi, >>> >>> If you are not using FreeBSD-7 current, something like the =20 >>> following might do the trick: >>> >>> rm /dev/dsp0 >>> ln -s /dev/dsp1 /dev/dsp0 >>> >>> Although that means you will loose access to /dev/dsp0 . >> >> back when I used skype on BSD it was a linux binary, >> which means it was looking in /compat/linux/dev >> >> you need to have the correct symlinks in there.. No. > I didn't think that the fact it was a linux binary could cause michief, > but of course that's a prime suspect for troubles. Strangely enough I > didn't even have a /dev folder under /compat/linux ! This is intended. If the linux emulation can not find /compat/linux/X, =20 it searches for /X. As there's no /compat/linux/dev/, it goes to /dev/ =20 directly. Bye, Alexander. --=20 I am just a nice, clean-cut Mongolian boy. =09=09-- Yul Brynner, 1956 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 07:02:18 2007 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 A739E16A46E; Fri, 12 Oct 2007 07:02:18 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 57BB613C45D; Fri, 12 Oct 2007 07:02:18 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55A9A.dip.t-dialin.net [84.165.90.154]) by redbull.bpaserver.net (Postfix) with ESMTP id 507EC2E0FE; Fri, 12 Oct 2007 08:46:15 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 343115B4800; Fri, 12 Oct 2007 08:45:18 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.1/8.13.8/Submit) id l9C6jI5I060605; Fri, 12 Oct 2007 08:45:18 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 12 Oct 2007 08:45:17 +0200 Message-ID: <20071012084517.wyweh3c4e8wokc44@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 12 Oct 2007 08:45:17 +0200 From: Alexander Leidinger To: Ariff Abdullah References: <200710102145.32585.hselasky@c2i.net> <470D3113.2070007@elischer.org> <20071012023847.0dd51021.ariff@FreeBSD.org> In-Reply-To: <20071012023847.0dd51021.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-15.4, required 8, autolearn=not spam, BAYES_00 -15.00, RDNS_DYNAMIC 0.10, SMILEY -0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Andreas Davour , freebsd-usb@FreeBSD.org Subject: Re: How do I use my USB headset? 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, 12 Oct 2007 07:02:18 -0000 Quoting Ariff Abdullah (from Fri, 12 Oct 2007 =20 02:38:47 +0800): >> /dev/dsp1: Device or resource busy is the response I get from Skype, >> and oddly enough the only device I can choose from now is /dev/dsp1 >> so maybe the port maintainger managed to patch Skype to look in the >> right place after all. Still no response from either program >> though, the microphone is not working. :( >> > > Are you really sure the microphone is working in the first place? > > Full duplex capabilities are largely improved with FreeBSD 7.x and > beyond, or you might want to try these binary modules for 6.x: We have full duplex support now in uaudio? I thought it is still =20 disabled by intend (because of problems with some usb chipsets). If it =20 is still disabled... any ideas how to autodetect the problem and fall =20 back to simplex instead of hardcoding it for all chips? Bye, Alexander. --=20 Another megabytes the dust. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 10:32:47 2007 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 C236616A474 for ; Fri, 12 Oct 2007 10:32:47 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 58EC513C4B5 for ; Fri, 12 Oct 2007 10:32:47 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so981445waf for ; Fri, 12 Oct 2007 03:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=114EvOd83zhdzhbGABWhdTi91aq2prq9bO1hO8SfMDA=; b=Tmkxv55/xN8x6RsA2BpJJB5UuZD9l5yZB3TWvbcHKzoz0opNKSjUFJ6Lf88ey1FT39pv3yt2EgsN2onZCF1sPiGjqRauezz5nsjV0oLodM5j8jtBAXg/YvIdvapTyynaXHSQpL73AL6goVES34GOqSzNuarE5h/Zuc9ee6Bt6Mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qrKcKfKlPitGtYq0r+PnPnKnq4qMty3TbZlhVKH6q1SG6TNQyxptxkbahA5mzLy54UfDVOfsEfpSl8aHtlRqnHzCUo8Y5AMZO5NWhO2bfCoeFlKmbgJlwazdv9mb1el9Jlfb1NGmzNNXY3kZbRrEc4zei2aWwq8p2r4/MK3qy1Y= Received: by 10.115.59.4 with SMTP id m4mr3342182wak.1192185166612; Fri, 12 Oct 2007 03:32:46 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Fri, 12 Oct 2007 03:32:46 -0700 (PDT) Message-ID: Date: Fri, 12 Oct 2007 18:32:46 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PICkit 2 again with HPS stack 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, 12 Oct 2007 10:32:47 -0000 I have updated the kernel and the new HPD stack and now PICkit 2 is again not working. I have updated the firmware based on the newly released Microchip stack and I thought I solved the data toggle problem by changing a line as suggested by Leo Bodnar. http://forum.microchip.com/tm.aspx?m=275422&mpage=2 Apparent there is still a problem with the clear feature request. Enclosed is the running log. Since the file ugen.c is now changed, I dare not to apply the old patches provided by Hans. FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Oct 11 19:50:55 SGT 2007 root@FreeBsd62.Mshome:/home/obj/home/src/sys/USBDEBUG i386 ===[mcuee] ~/Desktop/build/pk2-2.04 # sudo sysctl hw.usb.debug=15 Password: hw.usb.debug: 0 -> 15 ===[mcuee] ~/Desktop/build/pk2-2.04 # sudo ./pk2 --on PK2 version 2.04 - 2006/12/17 ./pk2 --on usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe7e8 8 1000 usb_control_msg: 128 6 512 0 0x806b080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe7e8 8 1000 usb_control_msg: 128 6 513 0 0x8066100 32 1000 Found USB PICkit as device '/dev/ugen0' on USB bus /dev/usb1 Setting USB configuration is okay. Claiming USB interface is okay. Sending GETVERSION command using interrupt transfer. USB> 76 Receiving PICkit VERSION information using interrupt transfer. USB error: error reading from interrupt endpoint /dev/ugen0.1: Resource temporarily unavailable Fatal error> USB read did not return 64 bytes ===[mcuee] ~/Desktop/build/pk2-2.04 # dmesg | grep ugen ugen0: ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 1, sc=0xc31bf000 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugen_write_clear_stall_callback: sce=0xc31bf084: stall cleared ugen_default_write_callback: waking 0xc31bf084 ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: ugen_open_pipe_read: interrupt open done ugen_read_clear_stall_callback: sce=0xc31bf084: stall cleared ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 ===[mcuee] ~/Desktop/build/pyusb-0.4.1/samples # sudo usbdevs -v Controller /dev/usb0: addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb1: addr 126: full speed, power 100 mA, config 1, PICkit 2 Microcontroller Programmer(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 addr 126: full speed, power 100 mA, config 1, PICkit 2 Microcontroller Programmer(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 port 3 powered port 4 powered Controller /dev/usb2: addr 127: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Xiaofan From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 15:06:40 2007 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 1316316A417 for ; Fri, 12 Oct 2007 15:06:40 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by mx1.freebsd.org (Postfix) with ESMTP id C2A6413C474 for ; Fri, 12 Oct 2007 15:06:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so658447nzf for ; Fri, 12 Oct 2007 08:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=h152fFhftpynptjeVsJLFtrSbmxtXI6fXl1ZfPkxTKY=; b=AxxVf7/z15Vsg+Z0UO9KT2rdC1neyEYe2mzhUr/MtAKsRfzmBblmYMKbFKogvEXUjW1N03W4j0n3PK+79m+1br5BCBK+veE/sq3Ud4X4pnp5EVmxxE/nj/Mom1WwoFRD1AhnyiI9jas3ZaEL2KD5pF7iZoMYRnTuROoVXYJHoqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mbSv233uSirTwJFHTMh491VWYlA3FoRvVjrzjw4glEW1y132YO6ROafkn3ZQMtPEK1d38KG1cWd42+KsVaQhH7xit2R7QBu9UUCj6D3Ts4wzR46gBV5zgeGcrOHQOrT3c7gjfcJYbhfNkxbJ7N/+qceJdN/oQ6MzZAmcNAtMf+k= Received: by 10.114.80.4 with SMTP id d4mr3621767wab.1192201598121; Fri, 12 Oct 2007 08:06:38 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Fri, 12 Oct 2007 08:06:38 -0700 (PDT) Message-ID: Date: Fri, 12 Oct 2007 23:06:38 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PICDEM FS USB Bootloader under FreeBSD 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, 12 Oct 2007 15:06:40 -0000 I am trying to get the PICDEM FS USB demo board working under FreeBSD. There are two libusb based application for it which work under Linux and Windows. I am now trying to get the bootloader working first. It is not working. Possibly this is again a firmware bug related issue but I would like to get it working either by patching the kernel code or by fixing the firmware. I am running the latest SVN version of HPS stack and the latest FreeBSD 6.2 Stable version. http://www.internetking.org/fsusb (original under Linux) http://forum.microchip.com/tm.aspx?m=106426 (minor patch by me) ===[mcuee] ~ # uname -a FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Oct 11 19:50:55 SGT 2007 root@FreeBsd62.Mshome:/home/obj/home/src/sys/USBDEBUG i386 ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # dmesg | grep ugen ugen0: ugen1: ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo sysctl hw.usb.debug=15 hw.usb.debug: 0 -> 15 ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo ./fsusb --read test.hex usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 USB error: error sending control message: Input/output error Unable to get descriptor (-5) usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 usb_control_msg: 128 6 512 0 0x8052080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe828 8 1000 usb_control_msg: 128 6 513 0 0x804d100 32 1000 Found USB PICDEM-FS USB as device '/dev/ugen0' on USB bus /dev/usb1 USB error: error writing to bulk endpoint /dev/ugen0.1: Input/output error usb_bulk_write: Input/output error Fatal error> rjl_request_version(): USB write failed ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # dmesg | grep ugen ugen0: ugen1: ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 1, sc=0xc35cd000 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 5 bytes ugen_write_clear_stall_callback: sce=0xc35cd084: stall cleared ugen_default_write_callback: waking 0xc35cd084 ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 17:11:40 2007 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 5CB5016A469 for ; Fri, 12 Oct 2007 17:11:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id BA7B813C46B for ; Fri, 12 Oct 2007 17:11:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 479122377; Fri, 12 Oct 2007 19:11:38 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 12 Oct 2007 19:12:02 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710121912.03585.hselasky@c2i.net> Cc: Subject: Re: PICkit 2 again with HPS stack 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, 12 Oct 2007 17:11:40 -0000 On Friday 12 October 2007, Xiaofan Chen wrote: > I have updated the kernel and the new HPD stack and now > PICkit 2 is again not working. I have updated the firmware > based on the newly released Microchip stack and I thought > I solved the data toggle problem by changing a line as > suggested by Leo Bodnar. > http://forum.microchip.com/tm.aspx?m=275422&mpage=2 > > Apparent there is still a problem with the clear feature > request. Enclosed is the running log. Since the file ugen.c > is now changed, I dare not to apply the old patches provided > by Hans. > > Receiving PICkit VERSION information using interrupt transfer. > USB error: error reading from interrupt endpoint /dev/ugen0.1: > Resource temporarily unavailable > Fatal error> USB read did not return 64 bytes > Resource temporarily unavailable maps to EAGAIN according to "man errno". From what I can see from the log you have provided this means that the "msleep()" call in "ugenread" timed out. What timeout have you programmed in your PICkit ? Can you set the debugging value to 15 using the PICkit ? Alternativly: sysctl hw.usb.debug=15 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 18:19:13 2007 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 C3FFE16A419 for ; Fri, 12 Oct 2007 18:19:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3D51413C44B for ; Fri, 12 Oct 2007 18:19:13 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe13.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 255790034; Fri, 12 Oct 2007 19:19:10 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 12 Oct 2007 19:19:35 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710121919.36175.hselasky@c2i.net> Cc: Subject: Re: PICDEM FS USB Bootloader under FreeBSD 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, 12 Oct 2007 18:19:13 -0000 On Friday 12 October 2007, Xiaofan Chen wrote: > I am trying to get the PICDEM FS USB demo board working under > FreeBSD. There are two libusb based application for it which work > under Linux and Windows. I am now trying to get the bootloader > working first. It is not working. Possibly this is again a firmware bug > related issue but I would like to get it working either by patching > the kernel code or by fixing the firmware. I am running the latest > SVN version of HPS stack and the latest FreeBSD 6.2 Stable version. > > http://www.internetking.org/fsusb (original under Linux) > http://forum.microchip.com/tm.aspx?m=106426 (minor patch by me) > > ===[mcuee] ~ # uname -a > FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Oct 11 > 19:50:55 SGT 2007 > root@FreeBsd62.Mshome:/home/obj/home/src/sys/USBDEBUG i386 > > ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # dmesg | grep ugen > ugen0: 126> ugen1: class 0/0, rev 2.00/0.01, addr 125> > > ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo sysctl > hw.usb.debug=15 hw.usb.debug: 0 -> 15 > > ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo ./fsusb --read > test.hex usb_set_debug: Setting debugging level to 255 (on) > Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b) > usb_os_find_busses: Found /dev/usb0 > usb_os_find_busses: Found /dev/usb1 > usb_os_find_busses: Found /dev/usb2 > usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 > usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 > usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 > USB error: error sending control message: Input/output error > Unable to get descriptor (-5) > usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 > usb_control_msg: 128 6 512 0 0x8052080 41 1000 > skipped 1 class/vendor specific interface descriptors > usb_control_msg: 128 6 513 0 0xbfbfe828 8 1000 > usb_control_msg: 128 6 513 0 0x804d100 32 1000 > Found USB PICDEM-FS USB as device '/dev/ugen0' on USB bus /dev/usb1 > USB error: error writing to bulk endpoint /dev/ugen0.1: Input/output error > usb_bulk_write: Input/output error > Fatal error> rjl_request_version(): USB write failed > ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # dmesg | grep ugen > ugen0: 126> ugen1: class 0/0, rev 2.00/0.01, addr 125> > ugenopen: flag=1, mode=8192 > ugenioctl: cmd=40125569 > ugenclose: flag=1, mode=8192 > ugenopen: flag=1, mode=8192 > ugenioctl: cmd=40125569 > ugenclose: flag=1, mode=8192 > ugenopen: flag=3, mode=8192 > ugenioctl: cmd=80045572 > ugenioctl: cmd=c018556f > ugenclose: flag=3, mode=8192 > ugenopen: flag=3, mode=8192 > ugenioctl: cmd=80045572 > ugenioctl: cmd=c018556f > ugenioctl: cmd=80045572 > ugenioctl: cmd=c018556f > ugenioctl: cmd=80045572 > ugenioctl: cmd=c018556f > ugenioctl: cmd=80045572 > ugenioctl: cmd=c018556f > ugenclose: flag=3, mode=8192 > ugenopen: flag=3, mode=8192 > ugenioctl: cmd=80045565 > ugen_set_config: configno 1, sc=0xc35cd000 > ugenclose: flag=0, mode=0 > ugenopen: flag=3, mode=8192 > ugenioctl: cmd=80045572 > ugenwrite: > ugenwrite: transferred 5 bytes > ugen_write_clear_stall_callback: sce=0xc35cd084: stall cleared > ugen_default_write_callback: waking 0xc35cd084 > ugenclose: flag=3, mode=8192 > ugenclose: flag=3, mode=8192 I think that the write STALLED. You can check this by turning on debugging on the OHCI controller by: systctl hw.usb.ohci.debug=15 Replace "ohci" by "ehci" or "uhci" if you are using such controllers. Do you have any USB protocol analyser by hand so that you can trace the USB cable ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 09:40:51 2007 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 0D4C916A419 for ; Sat, 13 Oct 2007 09:40:51 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id DE52313C45D for ; Sat, 13 Oct 2007 09:40:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1319540waf for ; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tt5uAgPbcg4blHFjw62pofOz+JnlMv4oUEu7Znt7QYY=; b=IKJ83TCm7QQzsDm+AHEQEsPPAyFZLkTrjORhtD8fhrQDHeuUJOAa5QV3bhpz4tGwOae9cJjGZh+eMHLWvazTqFPSgRRFo1PWu28AcZUMrdJSkPgIdMDAFLUW9EqCx4s7w3hduZjymV9APhAcTLelxcSNBez+9TB+jp02ZLLOuyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EyYv4ma2Xppdo2LEgs4B6TLIXghybRuXXhk+jKCzl05VWpBl+whK+C2DVMZjsHQNUQlVvWxh7BCEiDLAC9m67BGplC9dmRK5lzvBcLQYc+bx6D9Kk7s1c+ipY37UgJjeYpbbWgs1rWSQqKzMVx/WqvlvzmPSB6/x6WFl+rYO5ug= Received: by 10.114.150.1 with SMTP id x1mr4563177wad.1192268450613; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 17:40:50 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710121919.36175.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121919.36175.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICDEM FS USB Bootloader under FreeBSD 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, 13 Oct 2007 09:40:51 -0000 On 10/13/07, Hans Petter Selasky wrote: > I think that the write STALLED. You can check this by turning on > debugging on the OHCI controller by: > > systctl hw.usb.ohci.debug=15 > > Replace "ohci" by "ehci" or "uhci" if you are using such controllers. Strange today reading seems to work. I will check other functionality later. This bootloader device uses bulk transfer. ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo ./fsusb --read test3.hex usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 usb_control_msg: 128 6 512 0 0x804d0e0 32 1000 Found USB PICDEM-FS USB as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. Onboard firmware version is 1.0 Finished reading More info about the bootloader device: ===[mcuee] /usr/ports/sysutils/usbutil # sudo usbgen -f ugen0 -v -D Dumping all descriptors DEVICE descriptor: bLength=18 bDescriptorType=1 bcdUSB=2.00 bDeviceClass=0 bDeviceSubClass=0 bDeviceProtocol=0 bMaxPacketSize=8 idVendor=0x04d8 idProduct=0x000b bcdDevice=0 iManufacturer=0 iProduct=0 iSerialNumber=0 bNumConfigurations=1 Current configuration is number 1 CONFIGURATION descriptor index 0: bLength=9 bDescriptorType=2 wTotalLength=32 bNumInterface=1 bConfigurationValue=1 iConfiguration=0 bmAttributes=80 bMaxPower=100 mA INTERFACE descriptor index 0, alt index 0: bLength=9 bDescriptorType=4 bInterfaceNumber=0 bAlternateSetting=0 bNumEndpoints=2 bInterfaceClass=0 bInterfaceSubClass=0 bInterfaceProtocol=0 iInterface=0 ENDPOINT descriptor index 0: bLength=7 bDescriptorType=5 bEndpointAddress=1-out bmAttributes=2 wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor index 1: bLength=7 bDescriptorType=5 bEndpointAddress=1-in bmAttributes=2 wMaxPacketSize=64 bInterval=0 > Do you have any USB protocol analyser by hand so that you can trace the USB > cable ? Not yet. I am only doing this as a USB hobbyist. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 09:52:59 2007 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 D2E0F16A417 for ; Sat, 13 Oct 2007 09:52:59 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id AE64213C465 for ; Sat, 13 Oct 2007 09:52:58 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1322142waf for ; Sat, 13 Oct 2007 02:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=B+Xs2pZH9s4DTKA2b4p8dTILOZKspm8lA8ztxsMO67E=; b=li/ItbYOBNGkzD7Jj+gohBNzOiK/QllsECYH+CMa2zcQKn3LIy/n+EyxHkU2ax5Sx0PdtmfmEYhvw/4v1URk5Ll1GPTH6qmUNbZIu+lUoLDnEspSzcW3r8xTR2hCTdj7hZN8UCGE1MWkiZCZz6pncHT+5wE6ofkgXaRktKz8dCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IAi+rOn6D1oEDlyjz+/MDtgglPoetWc/82ZvZkbcJCv0UnZulQ2XfpwLSrCyS1MDfKWkypGr+B7Ebrl08+CBgzNA31BLDuORdXpioz2YXx4U4zm96/9x3hARRE0ygFnVq+hyetwBL0CbihLQ4W0oq5ArRmDEzIBkwi+U21GSexQ= Received: by 10.114.81.1 with SMTP id e1mr4617947wab.1192269177790; Sat, 13 Oct 2007 02:52:57 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 02:52:57 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 17:52:57 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710121912.03585.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121912.03585.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 13 Oct 2007 09:52:59 -0000 On 10/13/07, Hans Petter Selasky wrote: > Resource temporarily unavailable maps to EAGAIN > according to "man errno". From what I can see from the log > you have provided this means that the "msleep()" > call in "ugenread" timed out. > > What timeout have you programmed in your PICkit ? It is 1000ms. I change it to 10000ms but this does not help. > Can you set the debugging value to 15 using the PICkit ? > Alternativly: > sysctl hw.usb.debug=15 ===[mcuee] ~/Desktop/build/pk2-2.04 # sudo sysctl hw.usb.debug=15 hw.usb.debug: 15 -> 15 ===[mcuee] ~/Desktop/build/pk2-2.04 # sudo ./pk2 --on PK2 version 2.04 - 2006/12/17 ./pk2 --on usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe7e8 8 1000 usb_control_msg: 128 6 512 0 0x8066120 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe7e8 8 1000 usb_control_msg: 128 6 512 0 0x806c0c0 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe7e8 8 1000 usb_control_msg: 128 6 513 0 0x8066160 32 1000 Found USB PICkit as device '/dev/ugen1' on USB bus /dev/usb1 Setting USB configuration is okay. Claiming USB interface is okay. Sending GETVERSION command using interrupt transfer. USB> 76 Receiving PICkit VERSION information using interrupt transfer. USB error: error reading from interrupt endpoint /dev/ugen1.1: Resource temporarily unavailable Fatal error> USB read did not return 64 bytes ===[mcuee] ~/Desktop/build/pk2-2.04 # dmesg | grep ugen ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 1, sc=0xc35c7000 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugen_write_clear_stall_callback: sce=0xc35c7084: stall cleared ugen_default_write_callback: waking 0xc35c7084 ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: ugen_open_pipe_read: interrupt open done ugen_read_clear_stall_callback: sce=0xc35c7084: stall cleared ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 To Hans: The full dmesg log will be sent to you per email. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 10:03:19 2007 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 F305A16A418 for ; Sat, 13 Oct 2007 10:03:18 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id D201113C457 for ; Sat, 13 Oct 2007 10:03:18 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1324421waf for ; Sat, 13 Oct 2007 03:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=/TWHujBwDbS11Ar0WKoAhJr2Wmpv1d44ApE0OtfNDdU=; b=LqF0+FmUO+jJKZ2L/QEWsGb3fvvfdNO8rDqVTrsAtOYGOGBw4kyU46EgD01ShqWztXnSUlExvh7XmB9rvXA1gV4+114vz05VcOBTckHeDV+LmYqN2Wrvp2rrhFBjSaXvz8D+SiCX5HPETbAsKTxjXxdbv4pA1a/mk7b0seHFOKk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rw4JV6m5xQye8j/TkZooOj6FY14shT4ewjvOc6T1Pc+B8t7sbFV/4UC8nAOHc7f+35fV9oriH8pH1BeCetIyNlactxbnn8vWWtutRDJsVLf4AEyvQkw3lfGzl8RYML5eEhBWqU74D0/WU9Li2zPxEVRT35NBkB1KI5ZBR9W3fH8= Received: by 10.114.146.1 with SMTP id t1mr4621053wad.1192269798392; Sat, 13 Oct 2007 03:03:18 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 03:03:18 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 18:03:18 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PICDEM FS USB Demo under FreeBSD with HPS Stack 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, 13 Oct 2007 10:03:19 -0000 Today I checked the Demo mode of PICDEM FS USB demo board. it does not work either. Again this uses interrupt transfer. ===[mcuee] ~/Desktop/build/pyusb-0.4.1/samples # sudo ./usbenum.py Device: /dev/ugen0 Device class: 0 Device sub class: 0 Device protocol: 0 Max packet size: 8 idVendor: 1240 idProduct: 12 Device Version: 00.00 Configuration: 1 Total length: 32 selfPowered: 0 remoteWakeup: 0 maxPower: 200 Interface: 0 Alternate Setting: 0 Interface class: 0 Interface sub class: 0 Interface protocol: 0 Endpoint: 0x1 Type: 3 Max packet size: 64 Interval: 32 Endpoint: 0x81 Type: 3 Max packet size: 64 Interval: 32 ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo Password: Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe888 8 1000 usb_control_msg: 128 6 512 0 0x804b100 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe888 8 1000 usb_control_msg: 128 6 512 0 0x80500c0 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe888 8 1000 usb_control_msg: 128 6 513 0 0x804b140 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. USB error: error reading from bulk endpoint /dev/ugen0.1: Resource temporarily unavailable usb PICDEM FS USB read: Resource temporarily unavailable Fatal error> USB read failed ===[mcuee] ~/Desktop/build/fsusb/Demo # dmesg | grep ugen ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 1, sc=0xc3a72000 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 2 bytes ugen_write_clear_stall_callback: sce=0xc3a72084: stall cleared ugen_default_write_callback: waking 0xc3a72084 ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: ugen_open_pipe_read: interrupt open done ugen_read_clear_stall_callback: sce=0xc3a72084: stall cleared ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 10:33:26 2007 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 2A4A816A419 for ; Sat, 13 Oct 2007 10:33:26 +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 C189B13C4D9 for ; Sat, 13 Oct 2007 10:33:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 549468947; Sat, 13 Oct 2007 12:33:24 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Sat, 13 Oct 2007 12:33:49 +0200 User-Agent: KMail/1.9.7 References: <200710121912.03585.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710131233.50073.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 13 Oct 2007 10:33:26 -0000 On Saturday 13 October 2007, Xiaofan Chen wrote: > On 10/13/07, Hans Petter Selasky wrote: > > Resource temporarily unavailable maps to EAGAIN > > according to "man errno". From what I can see from the log > > you have provided this means that the "msleep()" > > call in "ugenread" timed out. > > > > What timeout have you programmed in your PICkit ? > > It is 1000ms. I change it to 10000ms but this does not help. > Do you see that the code is waiting 10 seconds for the timeout ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 10:39:30 2007 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 DBC1B16A41A for ; Sat, 13 Oct 2007 10:39:30 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id BA5CE13C467 for ; Sat, 13 Oct 2007 10:39:30 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1332410waf for ; Sat, 13 Oct 2007 03:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nDMQP2W6FyDISK8uEorwdwdSvdIX2om6ljwi/ZeKVFA=; b=Qj5z4NpTZuWkw66MlIC4b5TAeQa/DcrEVZ7aPxaW23/vmIIQXsb6g954gc5kXrj5j4xSBJwNNVTjbPXANed6cGyRW4YumtQI4U7SAKhlqFfM8nHPzA5A92IM0cTWmCeZEXnQsazMfxXqWkJl0BWnf2v1ULJYAx8vZNLRcbXX/eU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FvDEXBviVI+vItuwxV9rwTF3eEHKM9DNBCIjSmAUOkzs7XRHqdgN7JawyAcNVdodGCJ2orOyIiD3k3RdG/PLi8zeQqJ1EwEfPdxdXZhHZy1CukYkE9c6pFmW2kS+c7gs2K15a40CzvqryrerY/hfXhdEdXE40cxT16ZxmWl2aWU= Received: by 10.114.75.1 with SMTP id x1mr4610654waa.1192271970405; Sat, 13 Oct 2007 03:39:30 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 03:39:30 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 18:39:30 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710131233.50073.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121912.03585.hselasky@c2i.net> <200710131233.50073.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 13 Oct 2007 10:39:30 -0000 On 10/13/07, Hans Petter Selasky wrote: > > > What timeout have you programmed in your PICkit ? > > > > It is 1000ms. I change it to 10000ms but this does not help. > > > > Do you see that the code is waiting 10 seconds for the timeout ? > I think so. The program stops quite a while before quit. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 10:44:35 2007 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 511F516A417 for ; Sat, 13 Oct 2007 10:44:35 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 3256E13C455 for ; Sat, 13 Oct 2007 10:44:35 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1333586waf for ; Sat, 13 Oct 2007 03:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=wiuw0Xbt6fLxmt9vGNbl/Ms+9DLSiY4cDev263WW+cQ=; b=h5S9sRGzMyMp5i4gDPlITQNqhb6Aj1Tn7CjrvgTcmAGVXQzvadDZ5S1WV4kSEhUQp7kMhxonZrymf9KuS19/X0B22WUxD4v/uVUNyXRKEpsjHqstcM1NsrxBUmAqw7k0M0qOn+qGAS7nqSSIQ6A10TnNsVYqFoLGcONWz3beQXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sy5EhQMQFTxxFICXqm4Gi1nuBGzr4VsjNhPn1ksuaqDJSrJBobnD1/wQVQC0tLHcHgKmuIl1AzxVIOCWOshLzq8BDA0jjMIMrIuaSdLhp+aykaHwMwB0s+MVU/QmdzVdhEW4Z8gVjqlCYQLEamMBQdSRBujhCA/UIhEWBDsBIvs= Received: by 10.115.109.1 with SMTP id l1mr4612645wam.1192272274922; Sat, 13 Oct 2007 03:44:34 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 03:44:34 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 18:44:34 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: PICDEM FS USB Demo under FreeBSD with HPS Stack 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, 13 Oct 2007 10:44:35 -0000 On 10/13/07, Xiaofan Chen wrote: > Today I checked the Demo mode of PICDEM FS USB demo board. > it does not work either. Again this uses interrupt transfer. > Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 > Communication established. > USB error: error reading from bulk endpoint /dev/ugen0.1: Resource > temporarily unavailable > usb PICDEM FS USB read: Resource temporarily unavailable > Fatal error> USB read failed > Oops, the original code is using bulk transfer. I changed it to interrupt transfer but the error is the same. ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe858 8 1000 usb_control_msg: 128 6 512 0 0x804b0e0 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. USB error: error reading from interrupt endpoint /dev/ugen0.1: Resource temporarily unavailable usb PICDEM FS USB read: Resource temporarily unavailable Fatal error> USB read failed Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 10:59:10 2007 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 6D3AD16A417 for ; Sat, 13 Oct 2007 10:59:10 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id F400913C43E for ; Sat, 13 Oct 2007 10:59:09 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1336731waf for ; Sat, 13 Oct 2007 03:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2ixqWhB3hvH+sBY2pMVEqvS1Er4QVTZJLIsOKPMOi+Q=; b=GqnrVK4wIARqexv26LjQ8hBVGqTYAabBFk8reogJ13VQU+0LvmGn37Sr6vlI1/Nn6uFn8iCvRaU0lQOolzWIcOdvnxw+omqaxfGJ1UaLhTBy7DY59C85gVRnPdluv2+KGgkeXtBievSTX8Pn2IpYqcrcRprRQU2mCSbhhER9viU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lt4Py3fZSUvFHIlQk1j1p/0yhOpxVORrscPq41EeURLUMxywvjYHM2EW+nfDXbXMBtAbbnyUy/p5AAeckKT/X7kWze924WoFT+1v2CZzk2Qa3E40E0yJf9EkWck6/ydQuuJFBfxQPAj1MUdPpbOgwzpmXahDBt1u6Vkrf71EFwc= Received: by 10.114.38.2 with SMTP id l2mr4641459wal.1192273149723; Sat, 13 Oct 2007 03:59:09 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 03:59:09 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 18:59:09 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: PICDEM FS USB Demo under FreeBSD with HPS Stack 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, 13 Oct 2007 10:59:10 -0000 On 10/13/07, Xiaofan Chen wrote: > Oops, the original code is using bulk transfer. I changed it to interrupt > transfer but the error is the same. > > ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo > Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor > 0x04d8/product 0x000c) > usb_set_debug: Setting debugging level to 255 (on) > setting USB debug on by adding usb_set_debug(255) > usb_os_find_busses: Found /dev/usb0 > usb_os_find_busses: Found /dev/usb1 > usb_os_find_busses: Found /dev/usb2 > usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 > usb_control_msg: 128 6 512 0 0xbfbfe858 8 1000 > usb_control_msg: 128 6 512 0 0x804b0e0 32 1000 > Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 > Communication established. > USB error: error reading from interrupt endpoint /dev/ugen0.1: > Resource temporarily unavailable > usb PICDEM FS USB read: Resource temporarily unavailable > Fatal error> USB read failed So I go back to the old kernel and it actually works. ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo Password: Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe868 8 1000 usb_control_msg: 128 6 512 0 0x804b100 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe868 8 1000 usb_control_msg: 128 6 512 0 0x8052080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe868 8 1000 usb_control_msg: 128 6 513 0 0x804b160 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. answer was correct! Onboard firmware version is 1.0 fsusb_demo: Software for PICDEM Full Speed USB demo board fsusb_demo --ledon n, n=3 or 4: ON LED D3 or D4 fsusb_demo --ledff n, n=3 or 4: Off LED D3 or D4 fsusb_demo --readtemp: read out temperature fsusb_demo --readpot: read out poti value fsusb_demo --reset: to reset the PICDEM FS USB demo board ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo --readpot Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe848 8 1000 usb_control_msg: 128 6 512 0 0x804b100 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe848 8 1000 usb_control_msg: 128 6 512 0 0x8052080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe848 8 1000 usb_control_msg: 128 6 513 0 0x804b160 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. answer was correct! Onboard firmware version is 1.0 Potentiometer now reads 263 usb_os_close: closing endpoint 4 FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Apr 4 07:47:03 SGT 2007 root@FreeBsd61.Mshome:/home/obj/home/src/sys/USBDEBUG i386 Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 11:09:33 2007 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 C566B16A41A for ; Sat, 13 Oct 2007 11:09:33 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id A9DE913C468 for ; Sat, 13 Oct 2007 11:09:33 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1338883waf for ; Sat, 13 Oct 2007 04:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=WFsmxeShjRILbv4k2VX1Bbr45yKHmTvjNIdEwVgtXho=; b=dLN7BJrgHzMLSeaiZ8XE2JMh16UlRw+hb5gIlYWIp2/rfn6DITM3+PiLlnFthrG5mXejrdztZYCWPa05sKMCd3oIicJdTgeXkCpkroCuNcMamPI2yDkLalcwkax98Rjm4ZIexBUIkwSzdNJSrCFmS3KupAq+kqovDrn6NEfOlyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CRf+ykwihPDKwsYpZQmXV1rHDOuayuvCDEX9t4p9WH+as+IBVyokpHC0xyWpshVCPEJFfeK65WckFzSdxE5V1VPHBl7L+b5Q6vVsEqS56ZmZpzQa89QE2sQes+KYx0H8CykhSsGfo8LT5DS9lD73OaiTRjKFhgkhAVZvbhMngQk= Received: by 10.114.161.11 with SMTP id j11mr4636826wae.1192273773330; Sat, 13 Oct 2007 04:09:33 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 04:09:33 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 19:09:33 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PICkit 2 again with HPS stack 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, 13 Oct 2007 11:09:33 -0000 Strange. Gmail is playing with me that this thread is gone in my inbox. Luckily the mailing list archive is pretty good. On 10/13/07, Hans Petter Selasky wrote: > Resource temporarily unavailable maps to EAGAIN > according to "man errno". From what I can see from the log > you have provided this means that the "msleep()" > call in "ugenread" timed out. > So I go back to the old kernel and again it is working. ===[mcuee] ~/Desktop/build/pk2-3.00-alpha6 # uname -a FreeBSD FreeBsd62.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Apr 4 07:47:03 SGT 2007 root@FreeBsd61.Mshome:/home/obj/home/src/sys/USBDEBUG i386 ===[mcuee] ~/Desktop/build/pk2-3.00-alpha6 # sudo sysctl hw.usb.debug=15 hw.usb.debug: 0 -> 15 ===[mcuee] ~/Desktop/build/pk2-3.00-alpha6 # sudo ./pk2 --on PK2 version 3.00 alpha 6 - 2007/01/14 ./pk2 --on usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe7c8 8 1000 usb_control_msg: 128 6 512 0 0x80a9120 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe7c8 8 1000 usb_control_msg: 128 6 512 0 0x80b1080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe7c8 8 1000 usb_control_msg: 128 6 513 0 0x80a9180 32 1000 Found USB PICkit as device '/dev/ugen1' on USB bus /dev/usb1 Setting USB configuration is okay. Claiming USB interface is okay. Communication established. PICkit2 firmware version is 2.10.0 ===[mcuee] ~/Desktop/build/pk2-3.00-alpha6 # dmesg | grep ugen ugen0: ugen1: ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 2, sc=0xc3348000 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: ugen_open_pipe_read: interrupt open done ugen_interrupt_callback: xfer=0xc3086c20 actlen=64 ugen_interrupt_callback: waking 0xc3348084 ugenread: transferring 64 bytes ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 15:00:11 2007 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 411CA16A418 for ; Sat, 13 Oct 2007 15:00:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 67D4413C455 for ; Sat, 13 Oct 2007 15:00:10 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 477991469 for freebsd-usb@freebsd.org; Sat, 13 Oct 2007 17:00:08 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 13 Oct 2007 17:00:34 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710131700.35048.hselasky@c2i.net> Subject: New mailing list for USB P4 project ? 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, 13 Oct 2007 15:00:11 -0000 Hi, I've gotten some feedback that it might be an idea to make a separate mailing list for the USB P4 project, so that users that have questions about USB on FreeBSD 6.x and 7.x don't get confused by all this new stuff. Any comments ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 20:38:26 2007 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 7614B16A420 for ; Sat, 13 Oct 2007 20:38:26 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9E913C46B for ; Sat, 13 Oct 2007 20:38:26 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.163.71]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JPV0049SAN6O6X4@vms046.mailsrvcs.net> for freebsd-usb@freebsd.org; Sat, 13 Oct 2007 15:37:55 -0500 (CDT) Date: Sat, 13 Oct 2007 16:37:48 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: To: Andreas Davour Message-id: <1192307868.865.2.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <200710102145.32585.hselasky@c2i.net> <470D3113.2070007@elischer.org> Cc: Julian Elischer , freebsd-usb@freebsd.org Subject: Re: How do I use my USB headset? 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, 13 Oct 2007 20:38:26 -0000 On Thu, 2007-10-11 at 20:24 +0200, Andreas Davour wrote: > On Wed, 10 Oct 2007, Julian Elischer wrote: > > > Hans Petter Selasky wrote: > >> > >> Hi, > >> > >> If you are not using FreeBSD-7 current, something like the following might > >> do the trick: > >> > >> rm /dev/dsp0 > >> ln -s /dev/dsp1 /dev/dsp0 > >> > >> Although that means you will loose access to /dev/dsp0 . > > > > back when I used skype on BSD it was a linux binary, > > which means it was looking in /compat/linux/dev > > > > you need to have the correct symlinks in there.. > > I didn't think that the fact it was a linux binary could cause michief, > but of course that's a prime suspect for troubles. Strangely enough I > didn't even have a /dev folder under /compat/linux ! > > /dev/dsp1: Device or resource busy is the response I get from Skype, and > oddly enough the only device I can choose from now is /dev/dsp1 so maybe > the port maintainger managed to patch Skype to look in the right place > after all. Still no response from either program though, the microphone > is not working. :( I am sorry if this was covered previously, but what does mixer rec say? At least on my system (admittedly -CURRENT), I have to set it to 75:75 before Skype starts hearing me. > > /Andreas > -- Alexandre "Sunny" Kovalenko. From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 21:04:53 2007 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 4969B16A417 for ; Sat, 13 Oct 2007 21:04:53 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from smtp4.yandex.ru (smtp4.yandex.ru [213.180.223.136]) by mx1.freebsd.org (Postfix) with ESMTP id 7F5FE13C442 for ; Sat, 13 Oct 2007 21:04:52 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from [193.138.149.197] ([193.138.149.197]:63174 "EHLO nx7400.local.domain" smtp-auth: "cvs-src" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S737906AbXJMUch (ORCPT ); Sun, 14 Oct 2007 00:32:37 +0400 X-Comment: RFC 2476 MSA function at smtp4.yandex.ru logged sender identity as: cvs-src Message-ID: <47116328.6070108@yandex.ru> Date: Sun, 14 Oct 2007 00:30:32 +0000 From: "R.Mahmatkhanov" User-Agent: Thunderbird 2.0.0.6 (X11/20070819) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Getting panic on uhci.c: uhci_abort_xfer() 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, 13 Oct 2007 21:04:53 -0000 Good day! A couple of weeks ago i begun meeting with system hangs and arbitrary reboots. It occurs when some intensive traffic come into play with using mobile usb modem. After i move to todays RELENG_7 (from ex-7 -CURRENT) i saw this message after arbitrary reboot in /var/log/messages: Oct 13 23:54:04 nx7400 syslogd: kernel boot file is /boot/kernel/kernel Oct 13 23:54:04 nx7400 kernel: panic: uhci_abort_xfer: not in process context Oct 13 23:54:04 nx7400 kernel: cpuid = 0 Oct 13 23:54:04 nx7400 kernel: Uptime: 2h53m44s Oct 13 23:54:04 nx7400 kernel: Physical memory: 747 MB Oct 13 23:54:04 nx7400 kernel: Dumping 147 MB: 132 116 100 84 68 52 36 20 4 Oct 13 23:54:04 nx7400 kernel: Dump complete Oct 13 23:54:04 nx7400 kernel: Automatic reboot in 15 seconds - press a key on the console to abort Oct 13 23:54:04 nx7400 kernel: --> Press a key on the console to reboot, Oct 13 23:54:04 nx7400 kernel: --> or switch off the system now. Oct 13 23:54:04 nx7400 kernel: Rebooting... This panic is initiated if (xfer->device->bus->intr_context || !curproc) in uhci_abort_xfer(). What i can do to eliminate such situations or what i do wrong? My system is FreeBSD 7.0-PRERELEASE i386 GENERIC from todays cvs. Thanks in advance for answer. From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 23:59:56 2007 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 62DB116A419 for ; Sat, 13 Oct 2007 23:59:56 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4BA1413C448 for ; Sat, 13 Oct 2007 23:59:56 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 16EE11A4D89; Sat, 13 Oct 2007 16:59:56 -0700 (PDT) Date: Sat, 13 Oct 2007 16:59:56 -0700 From: Alfred Perlstein To: Hans Petter Selasky Message-ID: <20071013235956.GA31826@elvis.mu.org> References: <200710131700.35048.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710131700.35048.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: New mailing list for USB P4 project ? 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, 13 Oct 2007 23:59:56 -0000 * Hans Petter Selasky [071013 08:01] wrote: > Hi, > > I've gotten some feedback that it might be an idea to make a separate mailing > list for the USB P4 project, so that users that have questions about USB on > FreeBSD 6.x and 7.x don't get confused by all this new stuff. > > Any comments ? At this time the FreeBSD project has a committer assigned "full time" to integration of your stack. At the time that the integration is complete there will be no need for such a list. -- - Alfred Perlstein