From owner-freebsd-usb@FreeBSD.ORG Sun Apr 27 01:00:04 2008 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 EA3481065672 for ; Sun, 27 Apr 2008 01:00:04 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB648FC12 for ; Sun, 27 Apr 2008 01:00:04 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m3R0QtPK091170 for ; Sat, 26 Apr 2008 18:26:55 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m3QK6dO7026168; Sat, 26 Apr 2008 14:06:39 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m3QK6dOA026165; Sat, 26 Apr 2008 14:06:39 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18451.35663.21335.553446@gromit.timing.com> Date: Sat, 26 Apr 2008 14:06:39 -0600 From: John E Hein To: "Xiaofan Chen" In-Reply-To: References: X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and 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: Sun, 27 Apr 2008 01:00:05 -0000 Xiaofan Chen wrote at 16:16 +0800 on Apr 26, 2008: > On Sat, Apr 26, 2008 at 3:51 PM, Xiaofan Chen wrote: > > > [mcuee@freebsd7 ~]$ sudo kldload ucycom > > kldload: can't load ucycom: No such file or directory Sometimes you'll get that message not becuase /boot/kernel/ucycom.ko doesn't exist but because it's trying to reference external symbols defined in other modules or the kernel that aren't there for whatever reason, or that a module dependency can't be loaded. Look in /var/log/messages or dmesg. From owner-freebsd-usb@FreeBSD.ORG Sun Apr 27 11:44:45 2008 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 ECDFD1065675 for ; Sun, 27 Apr 2008 11:44:45 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A24E58FC12 for ; Sun, 27 Apr 2008 11:44:45 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jq5JE-0002Xi-0K for freebsd-usb@freebsd.org; Sun, 27 Apr 2008 11:44:44 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 11:44:43 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 11:44:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Sun, 27 Apr 2008 13:44:34 +0200 Lines: 38 Message-ID: <48146722.3080107@system.pl> References: <48123B80.8000806@netwolves.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig98B6857C92614B4AD1088753" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <48123B80.8000806@netwolves.com> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: sierra wireless compass 597 aircard 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, 27 Apr 2008 11:44:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig98B6857C92614B4AD1088753 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Steve Clark wrote: > Hello List, >=20 > I am trying to get the above usb device to work on 6.x. It is a bit=20 > unusual in the > fact that when it is first inserted it comes up in installer mode=20 > looking like a fake cd > drive with the software on it for windoze. It has to have a control=20 > message sent to it > to put it in modem mode. Can you install sysutils/udesc_dump from ports and post the output here? I have solved the "fake CD" problem for the Option Globetrotter GTMax+=20 card by patching the umass driver. --Marcin --------------enig98B6857C92614B4AD1088753 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBRnJT2W2v2wY27ZAQOi2gP/Z8kK070QVcLGchk7Zd9idXtsmCo7JTdC oNNAR/oSKw22UwDYvNPggTQD/d7mW3sAMtkxcuCaMFbjXYxoc/k58KRsbyvgWKcn bwmb2dZKjfTFS16P1bFhTQaCobYXsUJMz/PVTh0cG1cZW4N2OUFbqy3GRvDPv7VI MTgYDdKkb6w= =zIN+ -----END PGP SIGNATURE----- --------------enig98B6857C92614B4AD1088753-- From owner-freebsd-usb@FreeBSD.ORG Sun Apr 27 13:00:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 161741065670 for ; Sun, 27 Apr 2008 13:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ED4F58FC15 for ; Sun, 27 Apr 2008 13:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3RD03fl025268 for ; Sun, 27 Apr 2008 13:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3RD03on025267; Sun, 27 Apr 2008 13:00:03 GMT (envelope-from gnats) Date: Sun, 27 Apr 2008 13:00:03 GMT Message-Id: <200804271300.m3RD03on025267@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Charles Neubauer Cc: Subject: Re: usb/122992: MotoROKR Z6 Phone not recognised by umass as USB disk. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Charles Neubauer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 13:00:04 -0000 The following reply was made to PR usb/122992; it has been noted by GNATS. From: Charles Neubauer To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/122992: MotoROKR Z6 Phone not recognised by umass as USB disk. Date: Sun, 27 Apr 2008 12:39:44 +0000 Marcin Cieslak said: > It would be nice if you could provide your real email address - without > feedback we will need to close this bug as invalid. O.K. This is my e-mail address. What can be done about the bug? Upgrading FreeBSD is currently not an option for me. -- gemellus@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From owner-freebsd-usb@FreeBSD.ORG Sun Apr 27 14:50:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C45421065683 for ; Sun, 27 Apr 2008 14:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AEF858FC23 for ; Sun, 27 Apr 2008 14:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3REo4Xs034119 for ; Sun, 27 Apr 2008 14:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3REo4xZ034118; Sun, 27 Apr 2008 14:50:04 GMT (envelope-from gnats) Date: Sun, 27 Apr 2008 14:50:04 GMT Message-Id: <200804271450.m3REo4xZ034118@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Marcin Cieslak Cc: Subject: Re: usb/122992: MotoROKR Z6 Phone not recognised by umass as USB disk. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Cieslak List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 14:50:04 -0000 The following reply was made to PR usb/122992; it has been noted by GNATS. From: Marcin Cieslak To: bug-followup@FreeBSD.org, Charles Neubauer Cc: Subject: Re: usb/122992: MotoROKR Z6 Phone not recognised by umass as USB disk. Date: Sun, 27 Apr 2008 16:45:38 +0200 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFCDCD3B9868642ABEAC9FAB0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Can you install misc/udesc_dump port and attach the output once the=20 phone is connected? --=20 << Marcin Cieslak // saper@system.pl >> --------------enigFCDCD3B9868642ABEAC9FAB0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBSRlT2W2v2wY27ZAQMSwgQAmbnlZxLYW9cdwtVU8/eld6VzV6iax2Ew UCqsl0K8Y57kIYysEY+bZHv7p89Y3R1EUGHfFw/5qsAGfjvRf1B/izjqY3keDBw+ V0dyQXo/IOi4VFNYACmTTc/YZiSoompTqjhVr3kEtdc4pSzs6/Z77VF12Y3F1Lu+ yPnVLboO8Co= =V8cp -----END PGP SIGNATURE----- --------------enigFCDCD3B9868642ABEAC9FAB0-- From owner-freebsd-usb@FreeBSD.ORG Sun Apr 27 16:50:35 2008 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 B57BA106564A for ; Sun, 27 Apr 2008 16:50:35 +0000 (UTC) (envelope-from scb@techwires.net) Received: from mx02.netsrc.de (cvs.netsrc.de [213.131.252.24]) by mx1.freebsd.org (Postfix) with ESMTP id 771DB8FC17 for ; Sun, 27 Apr 2008 16:50:35 +0000 (UTC) (envelope-from scb@techwires.net) Received: from amelie.lab.sad1.techwires.net (dslb-088-065-056-234.pools.arcor-ip.net [88.65.56.234]) by mx02.netsrc.de (Postfix) with ESMTP id D0EBE3CBCB4; Sun, 27 Apr 2008 18:50:33 +0200 (CEST) Message-ID: <4814AED9.1000707@techwires.net> Date: Sun, 27 Apr 2008 18:50:33 +0200 From: Bernhard Schmidt User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <48139320.5040905@techwires.net> In-Reply-To: <48139320.5040905@techwires.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Macbook Fn key, ukbd 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, 27 Apr 2008 16:50:35 -0000 Bernhard Schmidt schrieb: > Hi, > > The attached patch enables the Fn key on Macbooks which is required to > get Home, End, [..] keys to work. Updated version: http://techwires.net/~scb/patches/freebsd/macbook/macbook-ukbd-20080427.diff Well, I missed some things, mainly autorepeat. Regards, Bernhard Schmidt From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 08:36:24 2008 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 2E0F910656E6 for ; Mon, 28 Apr 2008 08:36:24 +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 BCE538FC1F for ; Mon, 28 Apr 2008 08:36:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 914790612; Mon, 28 Apr 2008 10:36:21 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Mon, 28 Apr 2008 10:37:38 +0200 User-Agent: KMail/1.9.7 References: <200804251849.11283.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: <200804281037.39065.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: Mon, 28 Apr 2008 08:36:24 -0000 On Saturday 26 April 2008, Xiaofan Chen wrote: > On Sat, Apr 26, 2008 at 12:49 AM, Hans Petter Selasky wrote: > > Hi, > > > > 1) Try to get debugging from USB instead of OHCI. > > > > sysctl hw.usb.ohci.debug=0 > > > > sysctl hw.usb.debug=15 > > > > Retry. > > > Maybe this is a stupid question but how do I compile ugen only and not > the whole kernel? I will analyse your log later today. You can get ugen alone by using loading the ugen module: kldload ugen kldunload ugen Thanks for doing all the traces. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 08:51:17 2008 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 672F71065672 for ; Mon, 28 Apr 2008 08:51:17 +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 0107A8FC21 for ; Mon, 28 Apr 2008 08:51:16 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 815504519; Mon, 28 Apr 2008 10:51:15 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 28 Apr 2008 10:52:34 +0200 User-Agent: KMail/1.9.7 References: <18451.35663.21335.553446@gromit.timing.com> In-Reply-To: <18451.35663.21335.553446@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804281052.35658.hselasky@c2i.net> Cc: Subject: Re: USB CDC-ACM device under FreeBSD and 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: Mon, 28 Apr 2008 08:51:17 -0000 On Saturday 26 April 2008, John E Hein wrote: > Xiaofan Chen wrote at 16:16 +0800 on Apr 26, 2008: > > On Sat, Apr 26, 2008 at 3:51 PM, Xiaofan Chen wrote: > > > [mcuee@freebsd7 ~]$ sudo kldload ucycom > > > kldload: can't load ucycom: No such file or directory > > Sometimes you'll get that message not becuase /boot/kernel/ucycom.ko > doesn't exist but because it's trying to reference external symbols defined > in other modules or the kernel that aren't there for whatever reason, or > that a module dependency can't be loaded. > > Look in /var/log/messages or dmesg. > _______________________________________________ > 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" I found it: Edit /sys/dev/usb/ucycom.c and change: --- src/sys/dev/usb/ucycom.c (revision 711) +++ src/sys/dev/usb/ucycom.c (working copy) @@ -167,8 +167,8 @@ }; DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, usbd_driver_load, 0); -MODULE_VERSION(ucycom, 1); MODULE_DEPEND(ucycom, usb, 1, 1, 1); +MODULE_DEPEND(ucycom, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER); Then recompile the ucycom module. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 11:07:12 2008 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 99050106568E for ; Mon, 28 Apr 2008 11:07:12 +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 8DAA68FC18 for ; Mon, 28 Apr 2008 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3SB7CoM056303 for ; Mon, 28 Apr 2008 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3SB7Baq056299 for freebsd-usb@FreeBSD.org; Mon, 28 Apr 2008 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Apr 2008 11:07:11 GMT Message-Id: <200804281107.m3SB7Baq056299@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 11:07:12 -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 i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] [hang] mounting write-protected umass device a o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb [pcm] 5.3-STABLE(2005 1/4) detect USB headset, But can o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa a usb/79656 usb [ehci] RHSC interrupts lost o usb/79722 usb [ehci] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80829 usb [modules] [panic] possible panic when loading USB-modu o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82660 usb [echi] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83677 usb [usb] [request] usb controller often not detected (Sun 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. p usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/89954 usb [umass] [panic] 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 [boot] booting very slow with usb devices connection ( o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg 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 [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb 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 [echi] [irq] device ehci causes interrupt storm on thi o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/94166 usb [umass] [boot] 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 s usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 s usb/96120 usb [ums] [request] USB mouse not always detected o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync o usb/96457 usb [umass] [panic] fatback on umass = reboot s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan 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 f usb/102096 usb [patch] usbd(8) does not handle multiple devices in on o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse s 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 [ohci] [panic] ohci_add_done addr not found o usb/107848 usb [umass] [request] 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 s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] [request] FreeBSD could not start on Core2Duo n s 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 s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114682 usb [umass] generic USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116947 usb [ukbd] [patch] enable boot protocol on the USB keyboar o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118391 usb [usbdevs] [patch] Add uscanner ID for Epson CX4800 o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/119018 usb [usbd] HP ScanJet 4300C found as knowndev but not reco o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120786 usb Kernelpanik when forced umount of a dettached USB Hard f usb/120873 usb [zyd] [panic] if_zyd and if_rum panic in usb_transfer_ o usb/121232 usb remove PCCARD rebooted system o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121708 usb [kbd] nforce 650i mobo w/ usb keyboard infinite key re o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121861 usb [kbd] Don't work Fn keys on USB Microsoft Natural Ergo o usb/122462 usb [boot] Fails to boot from an usb harddrive o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122803 usb Add usbdevs and ubsa support for Dell internal CDMA Mo o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa 135 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 [umass] [request] USB HP CDW8200 does not work o usb/48342 usb [usbd] [patch] usbd dynamic device list. s usb/51958 usb [urio] [patch] update for urio driver s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [umct] [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 [umass] Slow USB umass performance of 5.3 s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R a usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL 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 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade 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 o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ s usb/80777 usb [request] usb_rem_task() should wait for callback to c o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via s usb/85067 usb [uscanner] 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 [umass] Compact Flash in HP Photosmart 2610 return " o usb/91896 usb [camcontrol] Serial Number of USB Memory Sticks is not o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/97472 usb [cam] [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 [usb] [patch] [request] usb.h: increase maximal size o 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 causes panic on in o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103418 usb [usbhidctl] [patch] [request] usbhidctl: add ability t o usb/103917 usb [uhub] 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 [umass] [request] Rave C-201 MP3 player does not commu o usb/105065 usb [sata] SATA - USB Bridge o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear 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 [cam] [patch] Apacer USB Flash Drive quirk o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) ( o usb/107665 usb [usbdevs] [patch] uscanner support for epson stylus DX s usb/107701 usb [usbd] [request] 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 s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af 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 o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o usb/115080 usb [usbdevs] [patch] allow using a Hercules HWGUSB2-54-V2 o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 f usb/116898 usb [panic] sleeping thread while using USB hard drive to o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117546 usb [usbdevs] [patch] Add MaxStream ZigBee product ID to u o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/118374 usb [usbdevs] [patch] support Option GlobeTrotter Max 3.6 o usb/118479 usb [ubsa] [patch] ubsa driver does not recognize AnyDATA o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround s usb/118571 usb [boot] [request] fix BTX issues when booting FreeBSD 7 o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118741 usb [umass] [patch] Support for Nikon D300 digital camera o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED (regress o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR (regression) o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119981 usb [usbdevs] [patch] add support for LOGITEC LAN-GTJ/U2 g o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a f usb/120859 usb laserjet1000 PR#99460 how to install the patch? o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/121052 usb [ums] Microsoft Notebook Optical Mouse 3000 (model 104 o usb/121169 usb Issues with usb mp3 player o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/122025 usb [patch] uscanner does not attach to Epson RX620 printe o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122547 usb [ehci] USB Printer not being recognized after reboot p usb/122610 usb Add Verizon v740 support to ubsa(4) o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122712 usb [usbdevs] [patch] Sony Vaio RF keyboard/mouse receiver o usb/122819 usb Patch to provide dynamic additions to the usb quirks t o usb/122936 usb [ucom][ubsa] Device does not receive interrupt o usb/122956 usb Support for Novatel Wireless XU870 3G Card o usb/122992 usb MotoROKR Z6 Phone not recognised by umass as USB disk. 130 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 11:47:20 2008 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 47F731065680 for ; Mon, 28 Apr 2008 11:47:20 +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 2331C8FC1B for ; Mon, 28 Apr 2008 11:47:20 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7296528waf.3 for ; Mon, 28 Apr 2008 04:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=M7nQvwr5uKEgucZOEdkb/tVvqUc6ITZ5RO5Nhs+4hOw=; b=S62LENtfvm5O+bleD3zJ1AyXtlDVejbBKU+vos3UPrhwPphxkqDMrFDvubkXS4twRFPv2IAI43/QbxtPl8KVkgZNukqYDVpklUUGNuOW3BZj4uD71TNNj81jz4mXdd/QdQI+yowb/opm5m/H517QryoAZlU6lR6vnaoyph//+ck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AsxrMLMrmokS4sEHVNdORkRFrVEW419Pd7/VhYY399Ck8vNDmtdf0TX5ZYhu0hvB/Oadq46SEz0TKVP2D+wLzCfICcfiXi+YeW6s9jmkxHlr4cpF461OjI2u+cwlXenTlzFO886WTvkVLBKMc4gSJeWEnBNXMbuB44l8fWpRhv0= Received: by 10.114.126.1 with SMTP id y1mr6278230wac.108.1209383239790; Mon, 28 Apr 2008 04:47:19 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Mon, 28 Apr 2008 04:47:19 -0700 (PDT) Message-ID: Date: Mon, 28 Apr 2008 19:47:19 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804281037.39065.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804251849.11283.hselasky@c2i.net> <200804281037.39065.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: Mon, 28 Apr 2008 11:47:20 -0000 On Mon, Apr 28, 2008 at 4:37 PM, Hans Petter Selasky wrote: > > > > Maybe this is a stupid question but how do I compile ugen only and not > > the whole kernel? > You can get ugen alone by using loading the ugen module: > > kldload ugen > kldunload ugen > I know this one. Actually my question is how to build ugen module only without rebuild the full kernel. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 12:40:53 2008 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 0D8481065672 for ; Mon, 28 Apr 2008 12:40:53 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-junco.atl.sa.earthlink.net (elasmtp-junco.atl.sa.earthlink.net [209.86.89.63]) by mx1.freebsd.org (Postfix) with ESMTP id CB55F8FC0A for ; Mon, 28 Apr 2008 12:40:52 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-junco.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JqSf5-0003vB-Pc; Mon, 28 Apr 2008 08:40:51 -0400 Message-ID: <4815C5D2.9000804@netwolves.com> Date: Mon, 28 Apr 2008 08:40:50 -0400 From: Steve Clark User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080421 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcin Cieslak , freebsd-usb@freebsd.org References: <48123B80.8000806@netwolves.com> <48146722.3080107@system.pl> In-Reply-To: <48146722.3080107@system.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7970109d601eed60c50c7fb91c0299ea87350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: Subject: Re: sierra wireless compass 597 aircard 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, 28 Apr 2008 12:40:53 -0000 Marcin Cieslak wrote: > Steve Clark wrote: > >>Hello List, >> >>I am trying to get the above usb device to work on 6.x. It is a bit >>unusual in the >>fact that when it is first inserted it comes up in installer mode >>looking like a fake cd >>drive with the software on it for windoze. It has to have a control >>message sent to it >>to put it in modem mode. > > > Can you install sysutils/udesc_dump from ports and post the output here? > I have solved the "fake CD" problem for the Option Globetrotter GTMax+ > card by patching the umass driver. > > --Marcin > Hi Martin, I installed udesc_dump but am unable to get any output from it. It looks for a /dev/ugen? device and none get created when I insert the 597 usb device. When I insert the device I get: usbd_new_device bus=0xc48e2000 port=6 depth=1 speed=2 usbd_new_device: adding unit addr=2, rev=110, class=0, subclass=0, protocol=0, maxpacket=64, len=18, speed=2 usbd_new_device: new dev (addr 2), dev=0xc870b000, parent=0xc48f9280 usbd_probe_and_attach: trying device specific drivers usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_set_config_index: status=0x0000, error=NORMAL_COMPLETION usbd_set_config_index: (addr 1) cno=2 attr=0xc0, selfpowered=0, power=100 usbd_set_config_index: set config 1 umass0: Sierra Wireless USB MMC Storage, rev 1.10/0.00, addr 2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 1.000MB/s transfers cd0: cd present [44672 x 2048 byte records] da0 at umass-sim0 bus 0 target 0 lun 1 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 2 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): NOT READY asc:3a,0 (cd0:umass-sim0:0:0:0): Medium not present (cd0:umass-sim0:0:0:0): Unretryable error (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): NOT READY asc:3a,0 (cd0:umass-sim0:0:0:0): Medium not present (cd0:umass-sim0:0:0:0): Unretryable error (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 1 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): NOT READY asc:3a,0 (cd0:umass-sim0:0:0:0): Medium not present (cd0:umass-sim0:0:0:0): Unretryable error (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): NOT READY asc:3a,0 (cd0:umass-sim0:0:0:0): Medium not present (cd0:umass-sim0:0:0:0): Unretryable error (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0 (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (cd0:umass-sim0:0:0:0): NOT READY asc:3a,0 (cd0:umass-sim0:0:0:0): Medium not present (cd0:umass-sim0:0:0:0): Unretryable error (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back (da0:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:1): SCSI Status: Check Condition (da0:umass-sim0:0:0:1): NOT READY asc:3a,0 (da0:umass-sim0:0:0:1): Medium not present (da0:umass-sim0:0:0:1): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:1): SCSI Status: Check Condition (da0:umass-sim0:0:0:1): NOT READY asc:3a,0 (da0:umass-sim0:0:0:1): Medium not present (da0:umass-sim0:0:0:1): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:1): SCSI Status: Check Condition (da0:umass-sim0:0:0:1): NOT READY asc:3a,0 (da0:umass-sim0:0:0:1): Medium not present (da0:umass-sim0:0:0:1): Unretryable error The device is an evdo wireless card with 3 ttyUSB devices that show up with Linux + it has a microsd card slot, that is currently empty, plus the fake cd device that is the TRU-Install device where the drivers for windows are. When the device it first plugged in it says the usb device id is 1199:0fff - when it is put in modem mode it then reports, under Linux, usb device id ad 1199:0023. Any other ideas? OBTW is there any documentation that explains the USB driver api for FreeBSD. The sierra linux driver checks if the usb device id is 1199:0fff and send a usb control message to place the device in modem mode. And thanks for the response. Steve From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 13:35:04 2008 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 D5D0C106564A for ; Mon, 28 Apr 2008 13:35:04 +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 AFAB08FC23 for ; Mon, 28 Apr 2008 13:35:04 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7348801waf.3 for ; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+4X1YtyRomCv7+sSsR5gPWvVltnlXfScbvDRpivSKOo=; b=tjyS5ng6CL8WHiuN9q1duy8iVUvRE1oIdMjjS8vBjJXKJXnME4ETJijo5BNg6Rn6ehsTtddtVpIS0yo07dmQZXCUVnFjIWsvmdSyl7X3BCl53s4Zx12fvzce6/rKeMYv9U60TFkykGTuMxQhylLLiDDlEocsYICQoF3Gj9pxSc0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=goaQLXxvqZa+nMIrSj284G1mcbVEcnktPYIrZFkBBLuy+QcNq/OjiFgHq5/IdJ7TAGjR6mOvR8eO0fj9cob+r6W2a5rkoAu5P9Ykh0mC1A0IGGSeROVLIz5KkSgY5uCClM2HrRdqr73223AqALFJUwRcvps4dhBghmfbcUuGjF0= Received: by 10.114.148.2 with SMTP id v2mr587786wad.173.1209389704249; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) Message-ID: Date: Mon, 28 Apr 2008 21:35:04 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804281052.35658.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18451.35663.21335.553446@gromit.timing.com> <200804281052.35658.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and 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: Mon, 28 Apr 2008 13:35:04 -0000 On Mon, Apr 28, 2008 at 4:52 PM, Hans Petter Selasky wrote: > > I found it: > > Edit /sys/dev/usb/ucycom.c and change: > > --- src/sys/dev/usb/ucycom.c (revision 711) > +++ src/sys/dev/usb/ucycom.c (working copy) > @@ -167,8 +167,8 @@ > }; > > DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, usbd_driver_load, > 0); > -MODULE_VERSION(ucycom, 1); > MODULE_DEPEND(ucycom, usb, 1, 1, 1); > +MODULE_DEPEND(ucycom, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER); > > Then recompile the ucycom module. Thanks, this works for ucycom. I also just learned how to build the module only thanks to the help from a list member: cd /sys/modules/ucycom (or ugen); make; make install. But as I said, ucycom is actually not what I wanted. I'd like to use Silabs CP210x (which is only supported by 8-Current) and generic cdc-acm. For example, even if I load ucom and umodem, the generic CDC device (LPC-P2148 example from http://jcwren.com/arm/) still show up as ugen device. [mcuee@freebsd7 ~]$ sudo kldload ucom [mcuee@freebsd7 ~]$ sudo kldload umodem [mcuee@freebsd7 ~]$ dmesg ugen2: on usb0 The same steps seem to work under NetBSD 4.0. The Silicon Labs CP2101 device I have seems to work under NetBSD 4.0 as well. But PICkit 2 and PICDEM FS USB demo work under FreeBSD 7.0-Release and HPS USB stack Revision 711 but not NetBSD 4.0 (libusb related problem). So I might want to try out the HPS stack with NetBSD 4.0 but I am too new to NetBSD. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 13:46:49 2008 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 9F8841065677 for ; Mon, 28 Apr 2008 13:46:49 +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 47FAE8FC17 for ; Mon, 28 Apr 2008 13:46:49 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7354747waf.3 for ; Mon, 28 Apr 2008 06:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DPqEzeyCPOc5Dd3YMgU+3lRyORpNwbMu+poZ5DYgooA=; b=MjiBFPTPFGAHAJY2bVJnqiRiP/cR29JwRozyEb2gCUN4sQ4a3PgP1vl1rEZJxIYsKxs0yh6EGwY3Y6vzkaWSiL0uY80SDPmtLfqq3IV6vMN5xKDI8CocZKL90/dzk0cdcIk2OdnLrERQhmmLJS5HrE1oJLLltK7Se/69qP3p7rc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JlwIqCIFNmGNIG84JCq5WTYsf33bYYAt0DjBT9TXwzYYdr+j9AJBRgi0Z/5HgfRJa4ElO1M+j+gZ37imacYtm7PB3ChMzHexsGsfFFnK8Sf5dsnAuheQdu0qujkCNTcmM7sEiqu6VQzqeWoQ247+C8Chh5TIzfJucibi7WGL9V4= Received: by 10.115.50.5 with SMTP id c5mr6393964wak.167.1209390408913; Mon, 28 Apr 2008 06:46:48 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Mon, 28 Apr 2008 06:46:48 -0700 (PDT) Message-ID: Date: Mon, 28 Apr 2008 21:46:48 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804281035.30155.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804252349.25954.hselasky@c2i.net> <200804281035.30155.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Mon, 28 Apr 2008 13:46:49 -0000 On Mon, Apr 28, 2008 at 4:35 PM, Hans Petter Selasky wrote: > > > > > Then try to mount again. You can also try loading ata-usb instead of > > > umass. ata-usb will query the disk size regularly. > > > > Hmm, I do not see any thing similar to ata-usb module in the kernel and > > I can not load ata-usb. > > > Do you have: > > /sys/modules/ata/atausb ? > Hmm yes I have the module. [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo make [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo make install install -o root -g wheel -m 555 atausb.ko /boot/kernel kldxref /boot/kernel [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo kldload atausb After plugging in the USB disk, I got the following: [mcuee@freebsd7 ~]$ dmesg umass0: on usb2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 477MB (976896 512 byte sectors: 64H 32S/T 477C) cd0 at umass-sim0 bus 0 target 0 lun 1 cd0: Removable CD-ROM SCSI-2 device cd0: 40.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present GEOM_LABEL: Label for provider da0s1 is msdosfs/NATIONAL. [mcuee@freebsd7 ~]$ sudo cat /dev/null > /dev/cd0 bash: /dev/cd0: Permission denied [mcuee@freebsd7 ~]$ su - freebsd7# bash [root@freebsd7 ~]# cat /dev/null > /dev/cd0 [root@freebsd7 ~]# mount_cd9660 /dev/cd0 /media/usbcd mount_cd9660: /dev/cd0: Invalid argument [root@freebsd7 ~]# kldunload umass kldunload: can't find file umass So it seems that umass is still claiming the device. How do I unload umass without rebuilding the kernel? Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 00:36:46 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 395461065670; Tue, 29 Apr 2008 00:36:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 085488FC1F; Tue, 29 Apr 2008 00:36:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3T0ajML026163; Tue, 29 Apr 2008 00:36:45 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3T0aj66026159; Tue, 29 Apr 2008 00:36:45 GMT (envelope-from linimon) Date: Tue, 29 Apr 2008 00:36:45 GMT Message-Id: <200804290036.m3T0aj66026159@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/123148: [usbdevs] [patch] Epson DX8400/50 needs uscanner to scan. 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, 29 Apr 2008 00:36:46 -0000 Old Synopsis: Epson DX8400/50 needs uscanner to scan. New Synopsis: [usbdevs] [patch] Epson DX8400/50 needs uscanner to scan. Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Tue Apr 29 00:36:20 UTC 2008 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=123148 From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 00:54:11 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01EAE1065675; Tue, 29 Apr 2008 00:54:11 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C47F98FC1B; Tue, 29 Apr 2008 00:54:10 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (imp@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3T0sAOe026778; Tue, 29 Apr 2008 00:54:10 GMT (envelope-from imp@freefall.freebsd.org) Received: (from imp@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3T0sA0n026774; Mon, 28 Apr 2008 18:54:10 -0600 (MDT) (envelope-from imp) Date: Mon, 28 Apr 2008 18:54:10 -0600 (MDT) Message-Id: <200804290054.m3T0sA0n026774@freefall.freebsd.org> To: billsf@cuba.calyx.nl, imp@FreeBSD.org, freebsd-usb@FreeBSD.org From: imp@FreeBSD.org Cc: Subject: Re: usb/123148: [usbdevs] [patch] Epson DX8400/50 needs uscanner to scan. 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, 29 Apr 2008 00:54:11 -0000 Synopsis: [usbdevs] [patch] Epson DX8400/50 needs uscanner to scan. State-Changed-From-To: open->patched State-Changed-By: imp State-Changed-When: Mon Apr 28 18:53:47 MDT 2008 State-Changed-Why: Committed to head. http://www.freebsd.org/cgi/query-pr.cgi?pr=123148 From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 01:00:14 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70C03106567B for ; Tue, 29 Apr 2008 01:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 57C8A8FC1B for ; Tue, 29 Apr 2008 01:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3T10EBO026997 for ; Tue, 29 Apr 2008 01:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3T10EwO026996; Tue, 29 Apr 2008 01:00:14 GMT (envelope-from gnats) Date: Tue, 29 Apr 2008 01:00:14 GMT Message-Id: <200804290100.m3T10EwO026996@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/123148: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 01:00:14 -0000 The following reply was made to PR usb/123148; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/123148: commit references a PR Date: Tue, 29 Apr 2008 00:51:29 +0000 (UTC) imp 2008-04-29 00:51:21 UTC FreeBSD src repository Modified files: sys/dev/usb usbdevs uscanner.c Log: Add Epson DX8400 scanner. PR: 123148 Submitted by: Bill Squire Revision Changes Path 1.349 +1 -0 src/sys/dev/usb/usbdevs 1.91 +1 -0 src/sys/dev/usb/uscanner.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 06:59:54 2008 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 8DA88106566B for ; Tue, 29 Apr 2008 06:59:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id E295D8FC2C for ; Tue, 29 Apr 2008 06:59:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 747308895; Tue, 29 Apr 2008 08:59:52 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Tue, 29 Apr 2008 09:01:08 +0200 User-Agent: KMail/1.9.7 References: <200804281035.30155.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: <200804290901.08874.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 06:59:54 -0000 On Monday 28 April 2008, Xiaofan Chen wrote: > On Mon, Apr 28, 2008 at 4:35 PM, Hans Petter Selasky wrote: > > > > Then try to mount again. You can also try loading ata-usb instead > > > > of umass. ata-usb will query the disk size regularly. > > > > > > Hmm, I do not see any thing similar to ata-usb module in the kernel > > > and I can not load ata-usb. > > > > Do you have: > > > > /sys/modules/ata/atausb ? > > Hmm yes I have the module. > > [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo make > [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo make install > install -o root -g wheel -m 555 atausb.ko /boot/kernel > kldxref /boot/kernel > [mcuee@freebsd7 /sys/modules/ata/atausb]$ sudo kldload atausb > > After plugging in the USB disk, I got the following: > [mcuee@freebsd7 ~]$ dmesg > umass0: on usb2 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:0:0:-1: Attached to scbus0 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 477MB (976896 512 byte sectors: 64H 32S/T 477C) > cd0 at umass-sim0 bus 0 target 0 lun 1 > cd0: Removable CD-ROM SCSI-2 device > cd0: 40.000MB/s transfers > cd0: Attempt to query device size failed: NOT READY, Medium not present > GEOM_LABEL: Label for provider da0s1 is msdosfs/NATIONAL. > > [mcuee@freebsd7 ~]$ sudo cat /dev/null > /dev/cd0 > bash: /dev/cd0: Permission denied > [mcuee@freebsd7 ~]$ su - > freebsd7# bash > [root@freebsd7 ~]# cat /dev/null > /dev/cd0 > [root@freebsd7 ~]# mount_cd9660 /dev/cd0 /media/usbcd > mount_cd9660: /dev/cd0: Invalid argument > > [root@freebsd7 ~]# kldunload umass > kldunload: can't find file umass > > So it seems that umass is still claiming the device. How do > I unload umass without rebuilding the kernel? > > Xiaofan If umass is in the kernel you need to rebuild. Else you "kldunload umass". --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 11:59:39 2008 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 6BDD6106564A for ; Tue, 29 Apr 2008 11:59:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id DFB9B8FC25 for ; Tue, 29 Apr 2008 11:59:38 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so7565192fka.11 for ; Tue, 29 Apr 2008 04:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DL5wVvh7OOuQS/vmZs8WwLIsTyXP1H71f5LrhlXdfR4=; b=Pw2fMtPEE/5xgaChiTK7nH94VZy0dDk0JfcP0wahciv2CLdDugn10K/h36Kcmq6Q8Jkec0M/h7urLozvvVc8j6sCBAVfk/G4XSjcUbPOZjKuaShJxHBJVGZWq1k9bQ29fBPVdhiw05l8I/3CUK2gksfyVj3DT1GRK+mwE3VapBQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SDZ7a71DElLdfFY1x5d0pX1UbF2esQnJcI4rGQGFy53hzvMPtST5k46fvnoD9IgFUblNVzgkYdsYYtRxxzjfECfenpse9oB8+t7wNk7sZvyTbuOVM/RPsrBRmAVjXtCATCjh3bo/4iDWodZWsH6grqtBns0JW6XbbM52+uqORs0= Received: by 10.78.155.4 with SMTP id c4mr598434hue.73.1209470377354; Tue, 29 Apr 2008 04:59:37 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Tue, 29 Apr 2008 04:59:37 -0700 (PDT) Message-ID: Date: Tue, 29 Apr 2008 19:59:37 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804290901.08874.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804281035.30155.hselasky@c2i.net> <200804290901.08874.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 11:59:39 -0000 On Tue, Apr 29, 2008 at 3:01 PM, Hans Petter Selasky wrote: > If umass is in the kernel you need to rebuild. Else you "kldunload umass". Ok I rebuild the kernel and use atausb instead of umass. Here is the dmesg output, so it is not working either. atausb0: on usb2 atausb0: using SCSI over Bulk-Only ata4: on atausb0 afd0: 476MB at ata4-master USB2 ata5: on atausb0 acd1: DEVICE_RESET unsupported afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 acd1: CDRW at ata5-master USB2 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 GEOM_LABEL: Label for provider afd0s1 is msdosfs/NATIONAL. acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 afd0: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST asc=0x24 ascq=0x00 If I use umass, umass0: on usb2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 477MB (976896 512 byte sectors: 64H 32S/T 477C) cd0 at umass-sim0 bus 0 target 0 lun 1 cd0: Removable CD-ROM SCSI-2 device cd0: 40.000MB/s transfers cd0: cd present [30720 x 2048 byte records] GEOM_LABEL: Label for provider da0s1 is msdosfs/NATIONAL. GEOM_LABEL: Label for provider cd0 is iso9660/NATIONAL. [mcuee@freebsd7 /usr/home/mcuee]$ sudo mount_cd9660 /dev/cd0 /media/usbcd/ mount_cd9660: /dev/cd0: Invalid argument Something is strange here. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 12:51:33 2008 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 022A0106566B for ; Tue, 29 Apr 2008 12:51:33 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 74A6A8FC12 for ; Tue, 29 Apr 2008 12:51:32 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so3805989mue.3 for ; Tue, 29 Apr 2008 05:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qCNEs0PWlu35JpQcgRHre06vgpKq0J/GqcFf5L3JUH0=; b=FOcwEZONiLkPGn9uI2V3jwLnwGsHVcLueldx2sg4Vy7ZcvbP3Q21SFvKjxnuhTyuyacnMm7WctaGWa5tJF0Dr6h6Opp/g1+K2+Nb17GR5FqvNxrX/6VLi0Vadh4Oa9NrBsqEDIhvj9eztTP2+YhFnnr5wLgWjy4mzsZSft6RKVw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rJSfuWegYUgjqnPMqAP9aGWUJdW8pKaquSwbZ8DkGcoBz4S4ZRgR5tDX+SwfQexNTEluRhXgMtsRv3YQ4xWpFo3hTLI1/gM9fZKw/fzKhNeSUdJTyjuJwfT0PstFz1aOaHrU9akF1QdSw8VdkSA3Rq7fpq2R0x2ZrHyvUTUyaTM= Received: by 10.78.29.6 with SMTP id c6mr1580439huc.48.1209473491064; Tue, 29 Apr 2008 05:51:31 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Tue, 29 Apr 2008 05:51:31 -0700 (PDT) Message-ID: Date: Tue, 29 Apr 2008 20:51:31 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804290901.08874.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804281035.30155.hselasky@c2i.net> <200804290901.08874.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 12:51:33 -0000 On Tue, Apr 29, 2008 at 3:01 PM, Hans Petter Selasky wrote: > If umass is in the kernel you need to rebuild. Else you "kldunload umass". I managed to crash the system again when playing with "kldload umass" and "kldunload umass". But maybe the backtrace does not make much sense, to me anyway. [root@freebsd7 /var/crash]# cat info.4 Dump header from device /dev/ad4s4b Architecture: i386 Architecture Version: 2 Dump Length: 152387584B (145 MB) Blocksize: 512 Dumptime: Tue Apr 29 20:34:58 2008 Hostname: freebsd7.MSHOME.net Magic: FreeBSD Kernel Dump Version String: FreeBSD 7.0-RELEASE #2: Tue Apr 29 19:47:40 SGT 2008 root@freebsd7.MSHOME.net:/usr/obj/usr/src/sys/custom Panic String: page fault Dump Parity: 3612086858 Bounds: 4 Dump Status: good [root@freebsd7 /usr/obj/usr/src/sys/custom]# kgdb kernel.debug /var/crash/vmcore.4 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x8 fault code = supervisor write, page not present instruction pointer = 0x20:0xc4fcb2f5 stack pointer = 0x28:0xe6fdfbf4 frame pointer = 0x28:0xe6fdfc10 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1376 (USB interrupt threa) trap number = 12 panic: page fault cpuid = 0 Uptime: 44m1s Physical memory: 1011 MB Dumping 145 MB: 130 114 98 82 66 50 34 18 2 #0 doadump () at pcpu.h:195 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list *0xc4fcb2f5 No source file for address 0xc4fcb2f5. (kgdb) backtrace #0 doadump () at pcpu.h:195 #1 0xc0739ac7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc0739d89 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:563 #3 0xc0a3fb4c in trap_fatal (frame=0xe6fdfbb4, eva=8) at /usr/src/sys/i386/i386/trap.c:899 #4 0xc0a3fdb0 in trap_pfault (frame=0xe6fdfbb4, usermode=0, eva=8) at /usr/src/sys/i386/i386/trap.c:812 #5 0xc0a40732 in trap (frame=0xe6fdfbb4) at /usr/src/sys/i386/i386/trap.c:490 #6 0xc0a270bb in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc4fcb2f5 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) quit Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 12:56:36 2008 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 F38681065677 for ; Tue, 29 Apr 2008 12:56:35 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7DBE08FC13 for ; Tue, 29 Apr 2008 12:56:35 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so3807699mue.3 for ; Tue, 29 Apr 2008 05:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TtTAYwxmze8MRcgIKVfGACtFqlSzbFFjmlNBz4caQB0=; b=vxswWTZYXjPtVi9RuXupp0wqVGUpHFS6HWQHYqfY5tzm+3Y1puNfXpUO/wk32Y2ypG912tPurfjAgpJDUO1qlDsr9/+J5pum8wctVgPK0fQqHV+4VMohlpItu2ZgP/2CkRFTyFViNf7TteQhYx6mq/BpE3cvCsbcVkHovmfX9hE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hUgADK04hquVZQe0GxkFNVukekNaDM0NEfO6bBECJKt8EDusZFXJcVU9PGdV80AaW5deWLJpFmrglR5MZv1mzwXHvvs1yjO3Olvnlv0Nr4/PMWmjTFas/Rpqu0K3150dQLRo5lZ4Gp5RT25JnBQQWvuPzcrYzgFAyZx4dGlejCM= Received: by 10.78.172.20 with SMTP id u20mr4616412hue.29.1209473794529; Tue, 29 Apr 2008 05:56:34 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Tue, 29 Apr 2008 05:56:34 -0700 (PDT) Message-ID: Date: Tue, 29 Apr 2008 20:56:34 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804281035.30155.hselasky@c2i.net> <200804290901.08874.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 12:56:36 -0000 On Tue, Apr 29, 2008 at 7:59 PM, Xiaofan Chen wrote: One more MP3 player which works under Windows XP and Linux but not FreeBSD 7.0-Release with HPS stack. [root@freebsd7 ~]# dmesg ... umass1: on usb2 umass1: 8070i (ATAPI) over Bulk-Only; quirks = 0x0000 umass1:1:1:-1: Attached to scbus1 da1 at umass-sim1 bus 1 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 1946MB (3987121 512 byte sectors: 255H 63S/T 248C) (da1:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 [root@freebsd7 ~]# usbdevs -v Controller /dev/usb0: addr 1: 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 1: 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/usb2: addr 1: high speed, self powered, config 1, EHCI root HUB(0x0000), nVidia(0x0000), rev 1.00 port 1 addr 3: high speed, power 500 mA, config 1, USB 2.0(HS) Flash Disk(0x1101), vendor 0x10d6(0x10d6), rev 1.00 port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 addr 2: high speed, power 100 mA, config 1, Mass Storage(0x2002), USB(0x178c), rev 2.00 port 1 addr 1 is the MP3 player, a cheap iPOD Nano clone (look-alike). port 8 addr 2 is the National Semiconductor USB Mass Storage device which has a read-only CDROM partition. Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 19:52:51 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E45C106566B; Tue, 29 Apr 2008 19:52:51 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 43FE78FC15; Tue, 29 Apr 2008 19:52:51 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3TJqp7d036675; Tue, 29 Apr 2008 19:52:51 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3TJqoaq036671; Tue, 29 Apr 2008 19:52:50 GMT (envelope-from gavin) Date: Tue, 29 Apr 2008 19:52:50 GMT Message-Id: <200804291952.m3TJqoaq036671@freefall.freebsd.org> To: volker@vwsoft.com, paul.belair@rogers.com, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/120859: laserjet1000 PR#99460 how to install the patch? 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, 29 Apr 2008 19:52:51 -0000 Synopsis: laserjet1000 PR#99460 how to install the patch? State-Changed-From-To: feedback->closed State-Changed-By: gavin State-Changed-When: Tue Apr 29 19:52:21 UTC 2008 State-Changed-Why: Feedback timeout (2 months) Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue Apr 29 19:52:21 UTC 2008 Responsible-Changed-Why: Feedback timeout (2 months) http://www.freebsd.org/cgi/query-pr.cgi?pr=120859 From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 19:57:52 2008 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 5154B1065672 for ; Tue, 29 Apr 2008 19:57:52 +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 DA4468FC19 for ; Tue, 29 Apr 2008 19:57:51 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 818040074; Tue, 29 Apr 2008 21:57:50 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Tue, 29 Apr 2008 21:59:10 +0200 User-Agent: KMail/1.9.7 References: <200804252349.25954.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: <200804292159.11467.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 19:57:52 -0000 On Saturday 26 April 2008, Xiaofan Chen wrote: > http://sourceforge.net/projects/pic18fusb Hi, This source code is not USB standard compliant and it is not good! For example: //Clear feature void clear_feature(void){ parity.msdi_parity = 0; //reset ep1 in parity UEP1bits.EPSTALL = 0; ep0Bi.CNT = 0; //send zero length packet ep0Bi.STAT = 0x80 | 0x40 | 0x08; send_csw(); //send csw } At least this function should check which endpoint you clear the stall on. Maybe you can get my USB stack working on your PIC board? It now supports the Device Side aswell as the host side! See "usbd_handle_request" in: http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/usb_transfer.c Mass storage driver: http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/ustorage_fs.c --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 20:44:03 2008 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 932A1106566C for ; Tue, 29 Apr 2008 20:44:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.tele2.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 298538FC21 for ; Tue, 29 Apr 2008 20:44:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 746073812; Tue, 29 Apr 2008 21:43:59 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 29 Apr 2008 21:45:21 +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: <200804292145.21817.hselasky@c2i.net> Cc: Subject: Re: USB CDC-ACM device under FreeBSD and 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: Tue, 29 Apr 2008 20:44:03 -0000 On Saturday 26 April 2008, Xiaofan Chen wrote: > Today is my FreeBSD USB day. :-) > So I am attaching various USB device to FreeBSD and see if > they work or not. ... > > As for the generic CDC-ACM device (the Olimex LPC-P2148), I do not know > how to load the necessary kernel module to get it work as a usb-serial > device. > > Under Linux, there is a generic cdc-acm device support. > kldload umodem --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 20:46:04 2008 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 CC9641065672 for ; Tue, 29 Apr 2008 20:46:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 617EF8FC17 for ; Tue, 29 Apr 2008 20:46:04 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 748223355; Tue, 29 Apr 2008 21:46:01 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Tue, 29 Apr 2008 21:47:24 +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: <200804292147.24784.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Tue, 29 Apr 2008 20:46:04 -0000 On Tuesday 29 April 2008, Xiaofan Chen wrote: > On Tue, Apr 29, 2008 at 7:59 PM, Xiaofan Chen wrote: > > One more MP3 player which works under Windows XP and Linux but not > FreeBSD 7.0-Release with HPS stack. Probably your device needs a quirk. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 29 20:49:37 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F97B1065681; Tue, 29 Apr 2008 20:49:37 +0000 (UTC) (envelope-from vwe@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EAEE38FC22; Tue, 29 Apr 2008 20:49:36 +0000 (UTC) (envelope-from vwe@FreeBSD.org) Received: from freefall.freebsd.org (vwe@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3TKna1W041819; Tue, 29 Apr 2008 20:49:36 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3TKnaYe041815; Tue, 29 Apr 2008 20:49:36 GMT (envelope-from vwe) Date: Tue, 29 Apr 2008 20:49:36 GMT Message-Id: <200804292049.m3TKnaYe041815@freefall.freebsd.org> To: vwe@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: kern/123224: [ums] Scroll wheel breakage w/ USB MS Wireless Intellimouse Explorer 2.0 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, 29 Apr 2008 20:49:37 -0000 Old Synopsis: Scroll wheel breakage w/ USB MS Wireless Intellimouse Explorer 2.0 New Synopsis: [ums] Scroll wheel breakage w/ USB MS Wireless Intellimouse Explorer 2.0 Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: vwe Responsible-Changed-When: Tue Apr 29 20:48:44 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=123224 From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 00:02:02 2008 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 023E0106564A for ; Wed, 30 Apr 2008 00:02:02 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 865278FC22 for ; Wed, 30 Apr 2008 00:02:01 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so100860fkk.11 for ; Tue, 29 Apr 2008 17:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4PBPCMxoOhoYrk5lR7p5vcs6DGZ04S52iUIM2jPT/LI=; b=STWLklcpn4u0HOLyqNYYCdEK120ZCwsLPY7qTEKIkGnu/PQkYuxWRWLRYlrJgCvilGCvVY2/k4lg+c4ib4cirtzFvBTboB9kmR8EAs1xODRH0NX60RaO+L8BIPf7jLa8xo3Kwp2SqyH2ilVbvC6TtkRuqmisK/9SeTZktDbmetg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vdl9YeghhHm2g3c98ATLRUdkQs9rIDrfwAU255+/lyH1QFWxBV3Fd6l8dsn8i+NGM6h1EmjPwKZVZcsdqofp0D2X89Hd4+LDEApxY5Pzhf1pVMD2bjBp7e98l8c8EyYtx9GlPVAWvmIC+5By7SuNh06oG8cLBQ7Cv3lzw9P7NLk= Received: by 10.78.188.10 with SMTP id l10mr155342huf.53.1209513718162; Tue, 29 Apr 2008 17:01:58 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Tue, 29 Apr 2008 17:01:58 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 08:01:58 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804292159.11467.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804252349.25954.hselasky@c2i.net> <200804292159.11467.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Wed, 30 Apr 2008 00:02:02 -0000 On Wed, Apr 30, 2008 at 3:59 AM, Hans Petter Selasky wrote: > Maybe you can get my USB stack working on your PIC board? It now supports the > Device Side aswell as the host side! See "usbd_handle_request" in: > > http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/usb_transfer.c > > Mass storage driver: > > http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/ustorage_fs.c > The PIC18F4550 is a lowly 8-bit MCU (12MIPS, 32KB Flash, 2KB SRAM including USB RAM). So maybe it is too low to run your USB stack's device side. What is the minimum requirement to run your USB stack's device side? XIaofan From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 00:05:50 2008 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 0F4F8106566B for ; Wed, 30 Apr 2008 00:05:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 8C02E8FC22 for ; Wed, 30 Apr 2008 00:05:49 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so101859fkk.11 for ; Tue, 29 Apr 2008 17:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=MQURZ2PC+tW7rA6lbvgTOg5awokcTF1FvpVgbtJk4AI=; b=s7y37ZN71wrxuFD7DaoJK3gYC3OzdgYFjlfiIEoFmfleDKkQZ4yfM0yz7C4QgKqeeuAdohvIsEVmrRVtpKLKeoxbOPl0wCIPeQpl8qxlcYmEkleOcFl3OvOdpcOy+i7HbPmO9wFMkprw2m46WUy0YJ1qkvoPI5ayzl6twLRLrXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ckfVA5pBPEXZDZzRY/fHEWWmrXWnT0T3A1P18LOn8hkFPQ25xSx7UZUkGZRS3glCWJ3/LXXGvQqqAvVmB+oWQa6u5dVFUzBSmteummei18Obx/cvnVijoBLv9c/tm1+7G0uPhcL50xMwrvczJyvb+FIiyhbo22WVGfDGStzBvHI= Received: by 10.78.138.14 with SMTP id l14mr179892hud.8.1209513948166; Tue, 29 Apr 2008 17:05:48 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Tue, 29 Apr 2008 17:05:48 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 08:05:48 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804292145.21817.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804292145.21817.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and 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: Wed, 30 Apr 2008 00:05:50 -0000 On Wed, Apr 30, 2008 at 3:45 AM, Hans Petter Selasky wrote: > > As for the generic CDC-ACM device (the Olimex LPC-P2148), I do not know > > how to load the necessary kernel module to get it work as a usb-serial > > device. > > > > Under Linux, there is a generic cdc-acm device support. > > > > kldload umodem I tried that and nothing happens. [root@freebsd7 ~]# kldload umodem [root@freebsd7 ~]# kldstat Id Refs Address Size Name 1 18 0xc0400000 90568c kernel 2 1 0xc0d06000 6f88 snd_ich.ko 3 2 0xc0d0d000 4a5ac sound.ko 4 1 0xc0d58000 6a32c acpi.ko 5 1 0xc4492000 22000 linux.ko 6 1 0xc46f7000 21000 radeon.ko 7 1 0xc4718000 f000 drm.ko 10 1 0xc4d9a000 4000 umodem.ko 11 1 0xc4d9f000 4000 ucom.ko [root@freebsd7 ~]# dmesg (nothing happens). [root@freebsd7 ~]# kldload ugen [root@freebsd7 ~]# dmesg ugen0: on usb2 ugen1: on usb0 [root@freebsd7 ~]# lsusb -vvv Bus /dev/usb0 Device /dev/ugen1: ID ffff:0005 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 2 Communications bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0xffff idProduct 0x0005 bcdDevice 1.00 iManufacturer 1 LPCUSB iProduct 2 USBSerial iSerial 3 DEADC0DE bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 67 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 2 Communications bInterfaceSubClass 2 Abstract (modem) bInterfaceProtocol 1 AT-commands (v.25ter) iInterface 0 CDC Header: bcdCDC 1.10 CDC Call Management: bmCapabilities 0x01 call management bDataInterface 1 CDC ACM: bmCapabilities 0x02 line coding and serial state CDC Union: bMasterInterface 0 bSlaveInterface 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 10 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 10 CDC Data bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x05 EP 5 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 can't get device qualifier: Input/output error can't get debug descriptor: Input/output error Device Status: 0x0000 (Bus Powered) Xiaofan From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 10:07:04 2008 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 8C8111065670 for ; Wed, 30 Apr 2008 10:07:04 +0000 (UTC) (envelope-from regisr@crocoite.regix.info) Received: from crocoite.regix.info (unknown [IPv6:2001:7a8:313c::1]) by mx1.freebsd.org (Postfix) with ESMTP id C71328FC12 for ; Wed, 30 Apr 2008 10:07:03 +0000 (UTC) (envelope-from regisr@crocoite.regix.info) Received: from crocoite.regix.info (localhost.regix.info [127.0.0.1]) by crocoite.regix.info (8.14.2/8.13.6) with ESMTP id m3UA70n2028501 for ; Wed, 30 Apr 2008 12:07:01 +0200 (CEST) (envelope-from regisr@crocoite.regix.info) Received: (from regisr@localhost) by crocoite.regix.info (8.14.2/8.13.3/Submit) id m3UA70YK028500 for freebsd-usb@freebsd.org; Wed, 30 Apr 2008 12:07:00 +0200 (CEST) (envelope-from regisr) Date: Wed, 30 Apr 2008 12:07:00 +0200 From: regis rampnoux To: freebsd-usb@freebsd.org Message-ID: <20080430100700.GA16636@crocoite.regix.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: [usm] FreeBSD 7.0 freezes or crashes when moving the mouse 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, 30 Apr 2008 10:07:04 -0000 Hi, I am not sure that it is an USB problem or may be there is two problems! I have upgraded from 6.3-STABLE to 7.0-STABLE and rebuild all ports. (twice for xorg related ports) When moving the mouse my computer freezes or crashes: ums0: on uhub2 ums0: 3 buttons and Z dir. [...] info: [drm] Setting GART location based on new memory map info: [drm] Loading R200 Microcode info: [drm] writeback test failed drm0: [ITHREAD] ums0: at uhub2 port 7 (addr 5) disconnected ums0: detached ums0: on uhub2 ums0: 3 buttons and Z dir. ums0: at uhub2 port 7 (addr 5) disconnected Fatal trap 12: page fault while in kernel mode fault virtual address = 0x14 fault code = supervisor read, page not present instruction pointer = 0x20:0xc050a4ca stack pointer = 0x28:0xe6628bc0 frame pointer = 0x28:0xe6628bc8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 21 (usb0) trap number = 12 panic: page fault # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, product 0x0234(0x0234), vendor 0x050d(0x050d), rev 0.00 port 1 powered port 2 powered port 3 powered port 4 addr 3: full speed, self powered, config 1, External HDD(0x1001), Western Digital(0x1058), rev 1.06 port 2 addr 4: full speed, self powered, config 1, product 0x0237(0x0237), vendor 0x050d(0x050d), rev 0.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 addr 5: low speed, power 100 mA, config 1, product 0x1030(0x1030), vendor 0x055d(0x055d), rev 0.04 I can't locate any help about this! My FreeBSD was cvsup'ed on saturday, April,26. I have tried with or without a window manager (twm or windowmaker) Sincerely, -- regis From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 16:29:30 2008 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 E195D1065676 for ; Wed, 30 Apr 2008 16:29:30 +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 6CF048FC20 for ; Wed, 30 Apr 2008 16:29:30 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=feXiF3FZNr0A:10 a=BGTpj-pkAg8A:10 a=HvMRop0xeNBHJIKbNfzU0w==:17 a=ndaoGXS1AAAA:8 a=m8gXJ_LNFsV3iCqLWW8A:9 a=vdls25QAlJESYOepQX8A:7 a=B6NfwH8jLResqFGtXX9QXwkQYHcA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 919771267; Wed, 30 Apr 2008 18:29:28 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Wed, 30 Apr 2008 18:30:48 +0200 User-Agent: KMail/1.9.7 References: <200804292159.11467.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: <200804301830.49842.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Wed, 30 Apr 2008 16:29:31 -0000 On Wednesday 30 April 2008, Xiaofan Chen wrote: > On Wed, Apr 30, 2008 at 3:59 AM, Hans Petter Selasky wrote: > > Maybe you can get my USB stack working on your PIC board? It now > > supports the Device Side aswell as the host side! See > > "usbd_handle_request" in: > > > > > > http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/usb_t > >ransfer.c > > > > Mass storage driver: > > > > > > http://www.selasky.org/hans_petter/isdn4bsd/sources/src/sys/dev/usb/ustor > >age_fs.c > > The PIC18F4550 is a lowly 8-bit MCU (12MIPS, 32KB Flash, 2KB SRAM including > USB RAM). So maybe it is too low to run your USB stack's device side. > What is the minimum requirement to run your USB stack's device side? > Hi, Try and find out. I know that many structures can be optimized for minimal memory usage. Currently I reserve space for 128 USB devices and 32 endpoints and interfaces. If you reduce those numbers then you will save a lot of memory. BTW: When you are out of paper you buy another paper. If the storage in the chip is too small, buy another one. Every line of code is written with a purpose. When you are removing code, like in the software you showed me, then I'm sorry it is not a USB device. Then you have to make your own standard that clearly defines the rules for removal of code. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 16:32:03 2008 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 579B71065689 for ; Wed, 30 Apr 2008 16:32:03 +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 AA4048FC29 for ; Wed, 30 Apr 2008 16:32:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=CqgOVngIvo0A:10 a=_9GYL50AgMgA:10 a=HvMRop0xeNBHJIKbNfzU0w==:17 a=omXzgoD2CHyYyHZguOQA:9 a=NdJ-lNW-CyooYG4kYXYA:7 a=omfwQBwaGPKvYAxRZ1-QxKz3IowA:4 a=9aOQ2cSd83gA:10 a=50e4U0PicR4A:10 Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 919774766; Wed, 30 Apr 2008 18:32:01 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Wed, 30 Apr 2008 18:33:19 +0200 User-Agent: KMail/1.9.7 References: <200804292145.21817.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: <200804301833.20214.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and 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: Wed, 30 Apr 2008 16:32:03 -0000 Hi, Edit "/sys/dev/usb/ugensa.c" and add the VID+PID to the "ugensa_devs" structure. Recompile the ugensa module (/sys/module/ugensa) and load it. --HPS On Wednesday 30 April 2008, Xiaofan Chen wrote: > On Wed, Apr 30, 2008 at 3:45 AM, Hans Petter Selasky wrote: > > > As for the generic CDC-ACM device (the Olimex LPC-P2148), I do not > > > know how to load the necessary kernel module to get it work as a > > > usb-serial device. > > > > > > Under Linux, there is a generic cdc-acm device support. > > > > kldload umodem > > I tried that and nothing happens. > > > [root@freebsd7 ~]# kldload umodem > [root@freebsd7 ~]# kldstat > Id Refs Address Size Name > 1 18 0xc0400000 90568c kernel > 2 1 0xc0d06000 6f88 snd_ich.ko > 3 2 0xc0d0d000 4a5ac sound.ko > 4 1 0xc0d58000 6a32c acpi.ko > 5 1 0xc4492000 22000 linux.ko > 6 1 0xc46f7000 21000 radeon.ko > 7 1 0xc4718000 f000 drm.ko > 10 1 0xc4d9a000 4000 umodem.ko > 11 1 0xc4d9f000 4000 ucom.ko > [root@freebsd7 ~]# dmesg > (nothing happens). > [root@freebsd7 ~]# kldload ugen > [root@freebsd7 ~]# dmesg > ugen0: 2.00/1.00, addr 2> on usb2 > ugen1: on usb0 > > [root@freebsd7 ~]# lsusb -vvv > > Bus /dev/usb0 Device /dev/ugen1: ID ffff:0005 > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 2.00 > bDeviceClass 2 Communications > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 64 > idVendor 0xffff > idProduct 0x0005 > bcdDevice 1.00 > iManufacturer 1 LPCUSB > iProduct 2 USBSerial > iSerial 3 DEADC0DE > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 67 > bNumInterfaces 2 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0xc0 > Self Powered > MaxPower 100mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 1 > bInterfaceClass 2 Communications > bInterfaceSubClass 2 Abstract (modem) > bInterfaceProtocol 1 AT-commands (v.25ter) > iInterface 0 > CDC Header: > bcdCDC 1.10 > CDC Call Management: > bmCapabilities 0x01 > call management > bDataInterface 1 > CDC ACM: > bmCapabilities 0x02 > line coding and serial state > CDC Union: > bMasterInterface 0 > bSlaveInterface 1 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 10 > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 1 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 10 CDC Data > bInterfaceSubClass 0 Unused > bInterfaceProtocol 0 > iInterface 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x05 EP 5 OUT > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0040 1x 64 bytes > bInterval 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x82 EP 2 IN > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0040 1x 64 bytes > bInterval 0 > can't get device qualifier: Input/output error > can't get debug descriptor: Input/output error > Device Status: 0x0000 > (Bus Powered) > > > Xiaofan From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 16:34:44 2008 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 7613C106564A for ; Wed, 30 Apr 2008 16:34:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id CAD8D8FC15 for ; Wed, 30 Apr 2008 16:34:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Op5RPn-5j2QA:10 a=a08c-rToBTQA:10 a=HvMRop0xeNBHJIKbNfzU0w==:17 a=T8taV6bhbl9CPc43rCwA:9 a=S9rg4JG7gpIf3nGQoR4A:7 a=J3sx9sQg482_N3F9VGcIYCL6g70A:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.156] (account mc467741@c2i.net [62.113.132.156] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 899432929; Wed, 30 Apr 2008 18:34:41 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 30 Apr 2008 18:35:59 +0200 User-Agent: KMail/1.9.7 References: <20080430100700.GA16636@crocoite.regix.info> In-Reply-To: <20080430100700.GA16636@crocoite.regix.info> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804301835.59703.hselasky@c2i.net> Cc: Subject: Re: [usm] FreeBSD 7.0 freezes or crashes when moving the mouse 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, 30 Apr 2008 16:34:44 -0000 On Wednesday 30 April 2008, regis rampnoux wrote: > Hi, > > I am not sure that it is an USB problem or may be there is two problems! > > I have upgraded from 6.3-STABLE to 7.0-STABLE and rebuild all ports. > (twice for xorg related ports) > When moving the mouse my computer freezes or crashes: > Type in "bt" when you get the debugging prompt to get the backtrace. --HPS > > ums0: on > uhub2 ums0: 3 buttons and Z dir. > [...] > info: [drm] Setting GART location based on new memory map > info: [drm] Loading R200 Microcode > info: [drm] writeback test failed > drm0: [ITHREAD] > ums0: at uhub2 port 7 (addr 5) disconnected > ums0: detached > ums0: on > uhub2 ums0: 3 buttons and Z dir. > ums0: at uhub2 port 7 (addr 5) disconnected > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x14 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc050a4ca > stack pointer = 0x28:0xe6628bc0 > frame pointer = 0x28:0xe6628bc8 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 21 (usb0) > trap number = 12 > panic: page fault > > # usbdevs -v > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > VIA(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, > product 0x0234(0x0234), vendor 0x050d(0x050d), rev 0.00 port 1 powered > port 2 powered > port 3 powered > port 4 addr 3: full speed, self powered, config 1, External HDD(0x1001), > Western Digital(0x1058), rev 1.06 port 2 addr 4: full speed, self powered, > config 1, product 0x0237(0x0237), vendor 0x050d(0x050d), rev 0.00 port 1 > powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > port 7 addr 5: low speed, power 100 mA, config 1, product 0x1030(0x1030), > vendor 0x055d(0x055d), rev 0.04 > > I can't locate any help about this! > My FreeBSD was cvsup'ed on saturday, April,26. > I have tried with or without a window manager (twm or windowmaker) > > Sincerely, From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 16:51:24 2008 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 8D02D106566C for ; Wed, 30 Apr 2008 16:51:24 +0000 (UTC) (envelope-from regisr@crocoite.regix.info) Received: from crocoite.regix.info (unknown [IPv6:2001:7a8:313c::1]) by mx1.freebsd.org (Postfix) with ESMTP id D0BF38FC16 for ; Wed, 30 Apr 2008 16:51:23 +0000 (UTC) (envelope-from regisr@crocoite.regix.info) Received: from crocoite.regix.info (localhost.regix.info [127.0.0.1]) by crocoite.regix.info (8.14.2/8.13.6) with ESMTP id m3UGpLW7056049 for ; Wed, 30 Apr 2008 18:51:21 +0200 (CEST) (envelope-from regisr@crocoite.regix.info) Received: (from regisr@localhost) by crocoite.regix.info (8.14.2/8.13.3/Submit) id m3UGpL3R056048 for freebsd-usb@freebsd.org; Wed, 30 Apr 2008 18:51:21 +0200 (CEST) (envelope-from regisr) Date: Wed, 30 Apr 2008 18:51:21 +0200 From: regis rampnoux To: freebsd-usb@freebsd.org Message-ID: <20080430165121.GA23661@crocoite.regix.info> References: <20080430100700.GA16636@crocoite.regix.info> <200804301835.59703.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804301835.59703.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Subject: Re: [usm] FreeBSD 7.0 freezes or crashes when moving the mouse 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, 30 Apr 2008 16:51:24 -0000 On Wed, Apr 30, 2008 at 06:35:59PM +0200, Hans Petter Selasky wrote: > > When moving the mouse my computer freezes or crashes: > > Type in "bt" when you get the debugging prompt to get the backtrace. I din't have access to the syscons ttyv0! It stays on the graphic display and I can't use the keyboard (which is on PS/2 port) to switch to it. No keys seems to work. -- regisr From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 17:40:07 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 285AD1065676 for ; Wed, 30 Apr 2008 17:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C28B18FC1F for ; Wed, 30 Apr 2008 17:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3UHe6in056585 for ; Wed, 30 Apr 2008 17:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3UHe6NO056584; Wed, 30 Apr 2008 17:40:06 GMT (envelope-from gnats) Date: Wed, 30 Apr 2008 17:40:06 GMT Message-Id: <200804301740.m3UHe6NO056584@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Yuri Cc: Subject: Re: usb/118741: [umass] [patch] Support for Nikon D300 digital camera (as USB mass storage device) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yuri List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2008 17:40:07 -0000 The following reply was made to PR usb/118741; it has been noted by GNATS. From: Yuri To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/118741: [umass] [patch] Support for Nikon D300 digital camera (as USB mass storage device) Date: Wed, 30 Apr 2008 10:37:40 -0700 Would anybody please check this patch in? Thanks in advance, Yuri From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 19:40:07 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B197106567D for ; Wed, 30 Apr 2008 19:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 714FF8FC12 for ; Wed, 30 Apr 2008 19:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3UJe7WT065795 for ; Wed, 30 Apr 2008 19:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3UJe7Qr065794; Wed, 30 Apr 2008 19:40:07 GMT (envelope-from gnats) Date: Wed, 30 Apr 2008 19:40:07 GMT Message-Id: <200804301940.m3UJe7Qr065794@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/121052: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2008 19:40:07 -0000 The following reply was made to PR usb/121052; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/121052: commit references a PR Date: Wed, 30 Apr 2008 19:37:59 +0000 (UTC) kaiw 2008-04-30 19:37:54 UTC FreeBSD src repository Modified files: sys/dev/usb ums.c usbdevs Log: Add support for Microsoft Notebook Optical Mouse 3000 Model 1049. Reviewed by: imp (RELENG-7) Tested by: Oliver Herold PR: usb/121052 MFC after: 1 month Revision Changes Path 1.99 +20 -0 src/sys/dev/usb/ums.c 1.350 +1 -0 src/sys/dev/usb/usbdevs _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 21:21:58 2008 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 C89271065670 for ; Wed, 30 Apr 2008 21:21:58 +0000 (UTC) (envelope-from sergio@house-forsale.org) Received: from dime64.dizinc.com (dime64.dizinc.com [72.29.73.123]) by mx1.freebsd.org (Postfix) with ESMTP id 7E88F8FC16 for ; Wed, 30 Apr 2008 21:21:58 +0000 (UTC) (envelope-from sergio@house-forsale.org) Received: from [76.109.206.145] (port=48946 helo=your4105e587b6) by dime64.dizinc.com with esmtpa (Exim 4.68) (envelope-from ) id 1JrI23-0005LV-6L for freebsd-usb@freebsd.org; Wed, 30 Apr 2008 15:32:02 -0400 From: "sergio" To: Date: Wed, 30 Apr 2008 15:31:52 -0400 Message-ID: <000001c8aaf8$dc184ad0$9448e070$@org> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Aciq9GsbDG6l9bzST/691PfjDo06Uw== Content-Language: en-us X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - dime64.dizinc.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - house-forsale.org X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Wed, 30 Apr 2008 22:39:06 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Motorola A41x/V32x driver 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, 30 Apr 2008 21:21:58 -0000 Need driver From owner-freebsd-usb@FreeBSD.ORG Wed Apr 30 23:01:25 2008 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 391E81065672 for ; Wed, 30 Apr 2008 23:01:25 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DA18B8FC16 for ; Wed, 30 Apr 2008 23:01:24 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JrLIh-0003es-6W for freebsd-usb@freebsd.org; Wed, 30 Apr 2008 23:01:23 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2008 23:01:23 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2008 23:01:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Thu, 01 May 2008 01:01:12 +0200 Lines: 26 Message-ID: <4818FA38.8060705@system.pl> References: <000001c8aaf8$dc184ad0$9448e070$@org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig1B2F1632FF5A538C5244ADBC" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <000001c8aaf8$dc184ad0$9448e070$@org> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: Motorola A41x/V32x driver 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, 30 Apr 2008 23:01:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1B2F1632FF5A538C5244ADBC Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable sergio wrote: > Need driver Provide information --------------enig1B2F1632FF5A538C5244ADBC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBj6OD2W2v2wY27ZAQOjnAP/R77d4GG1ftXhKL5zhtM5edwQKr9Q/5av PWNaU4JVIhuh4HYkofmOVqjG/8HY46KwL756admloGdd3bbZfg7z0GKECI4YR39D xIj3u2mzRKnzJJYFJxfs0NE1Q9fGiYcDNZWm2O0FwKpVnpsHJFyGUuEviKQs23d4 2EFg0TGsu1c= =HCkF -----END PGP SIGNATURE----- --------------enig1B2F1632FF5A538C5244ADBC-- From owner-freebsd-usb@FreeBSD.ORG Thu May 1 04:37:03 2008 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 07294106566B for ; Thu, 1 May 2008 04:37:03 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 7C8108FC12 for ; Thu, 1 May 2008 04:37:02 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so874896fge.35 for ; Wed, 30 Apr 2008 21:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZLR5TeU2ObLJTiDks8SgJ+sUU6NYgok+1vr63VX2yD4=; b=sluwf5JxLRbQe00/Ig6Qta+0NUaNWjiIQ7A+FBdiZ1ex7CLtgALp7XkQyFseBHyp4dXqxRB/OBla61X+u8w/hDWPne26RnvF+tl4HhOmhVzd9tJ/CoHJt4vmNZPnzd6iCFsAWa42GKZE6Zl0FdlS0NV5mEQCBQ01FdekpVW0Qx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YNUeVa23cI0um9Vztpb5y8m+tCVjNgnl9oRIv9QJ4BOr1T5RPCgATFINllbFqY2o8w6GN+TuME4BxEsXzMjmG//VXDvJX5+tODlhSUbQo3DfNxsKagjn6yRh0gTXFqdRdWkV1VWqiSujUO4q5t51c89i+9akIWBWcRorghH/1Zo= Received: by 10.78.123.4 with SMTP id v4mr555755huc.89.1209616621217; Wed, 30 Apr 2008 21:37:01 -0700 (PDT) Received: by 10.78.141.11 with HTTP; Wed, 30 Apr 2008 21:37:01 -0700 (PDT) Message-ID: Date: Thu, 1 May 2008 12:37:01 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804301833.20214.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804292145.21817.hselasky@c2i.net> <200804301833.20214.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and 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: Thu, 01 May 2008 04:37:03 -0000 On Thu, May 1, 2008 at 12:33 AM, Hans Petter Selasky wrote: > Hi, > > Edit "/sys/dev/usb/ugensa.c" and add the VID+PID to the "ugensa_devs" > structure. Recompile the ugensa module (/sys/module/ugensa) and load it. > Thanks. Again there is an error. ugensa0: on usb0 ugensa0: No interfaces! device_attach: ugensa0 attach returned 6 ugensa0: on usb0 ugensa0: No interfaces! device_attach: ugensa0 attach returned 6 Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu May 1 04:42:50 2008 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 F011B1065679 for ; Thu, 1 May 2008 04:42:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7D4258FC2A for ; Thu, 1 May 2008 04:42:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so673633fkk.11 for ; Wed, 30 Apr 2008 21:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8FDAJRNnx9blwrLVRbWmHjMkiqpoA24H2XXWjeNUJUY=; b=MP+TkounUbYWMYzqnLfDJrifF+QTlPG3iJsgRhJ8vSJhY8lEN88wBpYDradUOvNzBGWeLrTJ3C8kslSxYHzg4otUBN5Nkkpuydv492Gt+BAF5khFm2PdULvN/4k437o1VWdCTstn8r7rrgSm4uQv+BINT/xzNXbg6y1s78jNnTo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IyVHQEhZmhl1/SCLAxhOksXKaZALlmKnmqEuTh4JNsIawRrYVPeG8cinWbOqdRrQkn9wDPIJMwLv9eeces9EGU/zRupR6JxposonYrHCcxrLP6xAz0VgLzd5FAA42jWGWmEa1ibCOGC/palpK6BWP4tTQSWVxXqXUtdCtKzlaYs= Received: by 10.78.37.7 with SMTP id k7mr590323huk.25.1209616969186; Wed, 30 Apr 2008 21:42:49 -0700 (PDT) Received: by 10.78.172.3 with HTTP; Wed, 30 Apr 2008 21:42:46 -0700 (PDT) Message-ID: Date: Thu, 1 May 2008 12:42:46 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804301830.49842.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804292159.11467.hselasky@c2i.net> <200804301830.49842.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Thu, 01 May 2008 04:42:51 -0000 On Thu, May 1, 2008 at 12:30 AM, Hans Petter Selasky wrote: > Try and find out. I know that many structures can be optimized for minimal > memory usage. Currently I reserve space for 128 USB devices and 32 endpoints > and interfaces. If you reduce those numbers then you will save a lot of > memory. I am a bit confused now. So your USB stack now can be used for Device side which does not require FreeBSD OS support. Is this true? I thought your device side stack is like Linux Gadget which runs some kind of Linux and then act as an usb function device (slave) to a USB host. I am getting two new USB development boards from Microchip, PIC24 16bit and PIC32 32 bit (MIPS based) USB, both with OTG, both will not be able to run FreeBSD or Linux or even uClinux due to memory constraint. I have the Olimex LPC-P2148 (ARM7 based) as well which could not run FreeBSD/Linux either. Do you think any of them can run your stack's device side? What is your test platform for your stack's device side? Does it run FreeBSD? Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu May 1 05:33:43 2008 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 B1C471065686 for ; Thu, 1 May 2008 05:33:43 +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 83A8E8FC1B for ; Thu, 1 May 2008 05:33:43 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so1053832wah.3 for ; Wed, 30 Apr 2008 22:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=yIuSHxyrCKvHhEteCH+ASXDPVr4QotfS1UYWkKbxvos=; b=amSL0JfxZNPyvleuj6nn+jTq0smow1uK3Zw5l9GeOegTgQbAf8h6tylBr+QQC7YCMZ20dzzHbtyGpNub+7h1HY0y8XFD4G0VnMuvHO1uYJBIpuWCge9AO9aYVvn6Tv3wwg9r3kvNqMqNCzBErGIlfRB/2YQcMogH8zzZCXB2YD8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=u2XT7awOGysUyghOsZjubMx2Myx8t/UFEWHs0L9/EuSjydSLRqdHlfBLLCFYtVsT9u0gQKOGIwAo/RNktL4hEfthDfFvAtIX+Y2Wtrd5rMMGFSBXxbWk3S8g4kZKq9xkjq7TzqotdXr3SXTWGEl4ZxbJobEM76U4bHZjM52QR9M= Received: by 10.114.191.1 with SMTP id o1mr1665853waf.205.1209620023236; Wed, 30 Apr 2008 22:33:43 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Wed, 30 Apr 2008 22:33:43 -0700 (PDT) Message-ID: Date: Thu, 1 May 2008 13:33:43 +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: USB CDC-ACM device under FreeBSD and 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: Thu, 01 May 2008 05:33:43 -0000 On Sat, Apr 26, 2008 at 4:16 PM, Xiaofan Chen wrote: > CP210x seems to be only supported by 8-Current. But maybe this > can be ported to the HPS stack. > Actually it is supported by the HPS stack with uslcom. I just found it today. [root@freebsd7 ~]# dmesg uslcom0: on usb1 [root@freebsd7 ~]# ls -la /dev/ttyU* crw------- 1 root wheel 0, 127 May 1 11:44 /dev/ttyU0 crw------- 1 root wheel 0, 128 May 1 11:44 /dev/ttyU0.init crw------- 1 root wheel 0, 129 May 1 11:44 /dev/ttyU0.lock Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu May 1 13:10:41 2008 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 4B552106564A for ; Thu, 1 May 2008 13:10:41 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from caprica.sslcatacombnetworking.com (da.ce.5646.static.theplanet.com [70.86.206.218]) by mx1.freebsd.org (Postfix) with ESMTP id 25B9B8FC1C for ; Thu, 1 May 2008 13:10:40 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from [76.16.8.194] (helo=LaptopV) by caprica.sslcatacombnetworking.com with esmtpa (Exim 4.68) (envelope-from ) id 1JrXwZ-00013F-5Q for freebsd-usb@freebsd.org; Thu, 01 May 2008 07:31:23 -0500 From: "Engineering" To: Date: Thu, 1 May 2008 07:32:18 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - caprica.sslcatacombnetworking.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - athyriogames.com X-Source: X-Source-Args: X-Source-Dir: Subject: Intro and question about High speed Isochronous 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, 01 May 2008 13:10:41 -0000 Hi all, this is Sam Zehr. I am an embedded systems programmer working on porting an app to FreeBSD. I'm afraid I'm no expert in BSD, or any *nix stuff, but I'm plugging along. My project requires high-speed isochronous transfer. At first, I thought, no problem. I got it working in Windows with a generic USB driver, so BSD should be easy! I started using ugen and got most of the code ported. Then I found out ehci does not support isochronous! Looking through archives, and googling, I see that work is being done to fix this (and it would appear that this is the right list, as I see the same names as some of the websites I've been to) Basically, I'm trying to implement a limited subset of UVC. I'm open to doing this whichever way will work. So, my questions are: Is there a fix coming for ehci so iso will work? Is there a new USB stack coming with high-speed iso? Will it work with ugen? If not ugen, how do I get at it? Is anyone working on a UVC driver? I don't need all the features, just to get at the stream data. I apologize if the answers are common knowledge, but I couldn't find anything definative in my googling. Thanks Sam From owner-freebsd-usb@FreeBSD.ORG Thu May 1 18:24:04 2008 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 5C663106571C for ; Thu, 1 May 2008 18:24:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id DF7978FC24 for ; Thu, 1 May 2008 18:24:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=feXiF3FZNr0A:10 a=BGTpj-pkAg8A:10 a=Kh-K9tu1zxwjQkdMZdkA:9 a=yrvJSssOUkL9u7IKSCbdf6a-WksA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.64]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 927645808; Thu, 01 May 2008 20:24:01 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Thu, 1 May 2008 20:25:23 +0200 User-Agent: KMail/1.9.7 References: <200804301830.49842.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: <200805012025.24433.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device 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: Thu, 01 May 2008 18:24:04 -0000 On Thursday 01 May 2008, Xiaofan Chen wrote: > On Thu, May 1, 2008 at 12:30 AM, Hans Petter Selasky wrote: > > Try and find out. I know that many structures can be optimized for > > minimal memory usage. Currently I reserve space for 128 USB devices and > > 32 endpoints and interfaces. If you reduce those numbers then you will > > save a lot of memory. > > I am a bit confused now. So your USB stack now can be used for > Device side which does not require FreeBSD OS support. Is this > true? There you got it! My new USB stack is completely symmetric. You use the same callback API in USB Host mode and USB Device mode! > > I thought your device side stack is like Linux Gadget which runs > some kind of Linux and then act as an usb function device (slave) > to a USB host. Nope, it is fully symmetric. > > I am getting two new USB development boards from Microchip, > PIC24 16bit and PIC32 32 bit (MIPS based) USB, both with OTG, both > will not be able to run FreeBSD or Linux or even uClinux due to memory > constraint. I have the Olimex LPC-P2148 (ARM7 based) as well which > could not run FreeBSD/Linux either. > > Do you think any of them can run your stack's device side? With a little work it will not be a problem. You need to support mutexes and a few other things that are specific to USB. > > What is your test platform for your stack's device side? Does > it run FreeBSD? Yep. AT91RM9200 (KB9202B from Kwikbyte) --HPS From owner-freebsd-usb@FreeBSD.ORG Thu May 1 19:34:57 2008 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 9FFD3106566C for ; Thu, 1 May 2008 19:34:57 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 24B438FC0C for ; Thu, 1 May 2008 19:34:56 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JreYO-0007VE-Gt for freebsd-usb@freebsd.org; Thu, 01 May 2008 19:34:52 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2008 19:34:52 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2008 19:34:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Thu, 01 May 2008 21:34:38 +0200 Lines: 50 Message-ID: <481A1B4E.6010105@system.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigB0E117F862AA8FF78CEE0C00" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: Intro and question about High speed Isochronous 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, 01 May 2008 19:34:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB0E117F862AA8FF78CEE0C00 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Engineering wrote: > I started using ugen and got most of the code ported. Then I > found out ehci does not support isochronous! How did you try to use this? > Is there a new USB stack coming with high-speed iso? Will it work with= > ugen? If not ugen, how do I get at it? My advice would be not to use libusb, just prepare your own kernel=20 module. In most cases it is much simpler than ugen. Have a look at=20 simple drivers like uscanner to see how to start with the USB kernel driv= er. > Is anyone working on a UVC driver? I don't need all the features, just= to > get at the stream data. You might want to have a look at Luigi Rizzo's work on video: http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html --Marcin --------------enigB0E117F862AA8FF78CEE0C00 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBobUz2W2v2wY27ZAQOPQAQAgXS1EljCdPIXUYjmzMLhR5D0BdWWVFm4 HruIFmaLIKyqnqdKHD+dlHn0ettDZP+WjXcaAVq3EbSJxW9+mOBeapkZGGxjMd37 H2+IIGnmVafq80yfrojXTVYXtncMzcuaLDHmbBPHfdlJ6mMW7WNLlMLNYrhvLKHw gry5aeqsCtM= =NVzU -----END PGP SIGNATURE----- --------------enigB0E117F862AA8FF78CEE0C00-- From owner-freebsd-usb@FreeBSD.ORG Thu May 1 21:56:27 2008 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 4494C106564A for ; Thu, 1 May 2008 21:56:27 +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 C879C8FC16 for ; Thu, 1 May 2008 21:56:26 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=NbzFCQSHk6wA:10 a=iIDx98vlFCEA:10 a=_-lduxY3AAAA:8 a=aCyxkS_EIKxQS_j-aAQA:9 a=MU3QpEJZB19Wb3oB0U_3KiYpuQ0A:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.64]) by mailfe08.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 918970427; Thu, 01 May 2008 23:56:25 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 1 May 2008 23:57:47 +0200 User-Agent: KMail/1.9.7 References: <481A1B4E.6010105@system.pl> In-Reply-To: <481A1B4E.6010105@system.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805012357.48056.hselasky@c2i.net> Cc: Marcin Cieslak Subject: Re: Intro and question about High speed Isochronous 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, 01 May 2008 21:56:27 -0000 On Thursday 01 May 2008, Marcin Cieslak wrote: > Engineering wrote: > > I started using ugen and got most of the code ported. Then I > > found out ehci does not support isochronous! > > How did you try to use this? > > > Is there a new USB stack coming with high-speed iso? Will it work with > > ugen? If not ugen, how do I get at it? > > My advice would be not to use libusb, just prepare your own kernel > module. In most cases it is much simpler than ugen. Have a look at > simple drivers like uscanner to see how to start with the USB kernel > driver. > > > Is anyone working on a UVC driver? I don't need all the features, just > > to get at the stream data. > > You might want to have a look at Luigi Rizzo's work on video: > > http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html > > --Marcin Hi, You will need the my USB stack for HS ISOC transfers. You might be able to backport the HS ISOC part from my USB stack. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu May 1 23:48:34 2008 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 C7DA31065676 for ; Thu, 1 May 2008 23:48:34 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from caprica.sslcatacombnetworking.com (da.ce.5646.static.theplanet.com [70.86.206.218]) by mx1.freebsd.org (Postfix) with ESMTP id A13838FC12 for ; Thu, 1 May 2008 23:48:34 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from [76.16.8.194] (helo=LaptopV) by caprica.sslcatacombnetworking.com with esmtpa (Exim 4.68) (envelope-from ) id 1JriVq-0007bP-Dx for freebsd-usb@freebsd.org; Thu, 01 May 2008 18:48:30 -0500 From: "Engineering" To: Date: Thu, 1 May 2008 18:49:30 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <481A1B4E.6010105@system.pl> Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - caprica.sslcatacombnetworking.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - athyriogames.com X-Source: X-Source-Args: X-Source-Dir: Subject: RE: Intro and question about High speed Isochronous 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, 01 May 2008 23:48:34 -0000 > -----Original Message----- > From: owner-freebsd-usb@freebsd.org > > I started using ugen and got most of the code ported. Then I > > found out ehci does not support isochronous! > > How did you try to use this? It fails with EIO when I open ugen0.1 - which is the isochronous endpoint. If I go through a hub to force it to be USB 1.0, it works fine. Looking throught the ehci source seems to confirm that it just doesn't handles isochronous, and throws an error > > > Is there a new USB stack coming with high-speed iso? Will > it work with > > ugen? If not ugen, how do I get at it? > > My advice would be not to use libusb, just prepare your own kernel > module. In most cases it is much simpler than ugen. Have a look at > simple drivers like uscanner to see how to start with the USB > kernel driver. Thanks. I will take a look at uscanner, but if it uses ehci I will be in the same boat. > > > Is anyone working on a UVC driver? I don't need all the > features, just to > > get at the stream data. > > You might want to have a look at Luigi Rizzo's work on video: > > http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html Yes, I've been looking at that with a lot of interest. Unfortunately, my cameras are not supported, and I'm looking to use UVC cameras, as I believe this will be the standard soon. Thanks Sam From owner-freebsd-usb@FreeBSD.ORG Thu May 1 23:48:34 2008 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 EC4D61065677 for ; Thu, 1 May 2008 23:48:34 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from caprica.sslcatacombnetworking.com (da.ce.5646.static.theplanet.com [70.86.206.218]) by mx1.freebsd.org (Postfix) with ESMTP id C602F8FC17 for ; Thu, 1 May 2008 23:48:34 +0000 (UTC) (envelope-from ee@athyriogames.com) Received: from [76.16.8.194] (helo=LaptopV) by caprica.sslcatacombnetworking.com with esmtpa (Exim 4.68) (envelope-from ) id 1JriVq-0007bP-Ur; Thu, 01 May 2008 18:48:31 -0500 From: "Engineering" To: Date: Thu, 1 May 2008 18:49:41 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <200805012357.48056.hselasky@c2i.net> Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - caprica.sslcatacombnetworking.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - athyriogames.com X-Source: X-Source-Args: X-Source-Dir: Cc: Marcin Cieslak Subject: RE: Intro and question about High speed Isochronous 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, 01 May 2008 23:48:35 -0000 > -----Original Message----- > From: owner-freebsd-usb@freebsd.org > [mailto:owner-freebsd-usb@freebsd.org]On Behalf Of Hans Petter Selasky > Sent: Thursday, May 01, 2008 4:58 PM > > > I started using ugen and got most of the code ported. Then I > > > found out ehci does not support isochronous! > > Hi, > > You will need the my USB stack for HS ISOC transfers. You might > be able to > backport the HS ISOC part from my USB stack. > > --HPS Thank-you. I have been to your website for reference, it is nice to hear from you. How do I go about getting your stack? Is it compatible with ugen, or otherwise accessible from userland? Thanks Sam From owner-freebsd-usb@FreeBSD.ORG Fri May 2 12:30:09 2008 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 040AE1065679 for ; Fri, 2 May 2008 12:30:09 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by mx1.freebsd.org (Postfix) with ESMTP id D95508FC1B for ; Fri, 2 May 2008 12:30:08 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-spurfowl.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JruOu-0005Bf-7J for freebsd-usb@freebsd.org; Fri, 02 May 2008 08:30:08 -0400 Message-ID: <481B094F.1090408@netwolves.com> Date: Fri, 02 May 2008 08:30:07 -0400 From: Steve Clark User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec79609c26fe4be73f3e9d377d61b572ef25350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Subject: Documentation 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, 02 May 2008 12:30:09 -0000 Hello, Is there any detailed documentation on the FreeBSD usb device driver api? TIA, Steve From owner-freebsd-usb@FreeBSD.ORG Fri May 2 13:33:02 2008 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 D98D51065670 for ; Fri, 2 May 2008 13:33:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 773DC8FC14 for ; Fri, 2 May 2008 13:33:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=w-pPW7MPgFQP90En1mgA:9 a=y8srBqeXmuqUDYgc9AUA:7 a=LwBdjCUgqU0MP8tJHnh2kdN2oycA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 749679977; Fri, 02 May 2008 15:32:52 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 2 May 2008 15:34:12 +0200 User-Agent: KMail/1.9.7 References: <481B094F.1090408@netwolves.com> In-Reply-To: <481B094F.1090408@netwolves.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805021534.13848.hselasky@c2i.net> Cc: Subject: Re: Documentation 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, 02 May 2008 13:33:02 -0000 On Friday 02 May 2008, Steve Clark wrote: > Hello, > > Is there any detailed documentation on the FreeBSD usb device driver api? > > TIA, > Steve > _______________________________________________ > 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" Hi, For the usb.p4 there is a README. Else you have to look at the existing USB drivers. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri May 2 17:34:15 2008 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 A0B24106566B for ; Fri, 2 May 2008 17:34:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by mx1.freebsd.org (Postfix) with ESMTP id 613D28FC1F for ; Fri, 2 May 2008 17:34:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-banded.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Jrz9C-00043p-Gc; Fri, 02 May 2008 13:34:14 -0400 Message-ID: <481B5095.8080400@netwolves.com> Date: Fri, 02 May 2008 13:34:13 -0400 From: Steve Clark User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hans Petter Selasky References: <481B094F.1090408@netwolves.com> <200805021534.13848.hselasky@c2i.net> In-Reply-To: <200805021534.13848.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7931ff808d1343c74764908937341ac9ef350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: Documentation 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, 02 May 2008 17:34:15 -0000 Hans Petter Selasky wrote: > On Friday 02 May 2008, Steve Clark wrote: > >>Hello, >> >>Is there any detailed documentation on the FreeBSD usb device driver api? >> >>TIA, >>Steve >>_______________________________________________ >>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" > > > Hi, > > For the usb.p4 there is a README. Else you have to look at the existing USB > drivers. > > --HPS > > Well here is my problem. I am trying to get a sierra wireless 597 evdo usb modem to work with freebsd 6.1. The usb device when it is first plugged in has a product id of 0xfff and looks like a cdrom drive with software drivers on it for Windows. It has to have a control message sent to it to put it in modem mode. I sort of have it working by hacking ubsa.c to look for the sierra vendor id and product id of 0xfff in the usb_match function and return match. Then in the usb_attach code I look again for the vendor and product id of 0xfff and then send the control message to put it in modem mode. if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) { ubsa_request_real( sc, 0x0b, 1, 0x40 ); ucom->sc_dying = 1; goto error; } This puts in modem mode with product id of 0x0023 which i have plugged into usbdevs and also put in ubsa.c so now I get a ucom device and can successfully run ppp. The problem I am running into now is sometime after it remove the device I will get a page fault panic in the kernel. I think it is related to the sending the control_message - something is not cleaned up when I "goto error" in the USB_ATTACH function. I modified ubsa_reguest() to accept a request_type and called it ubsa_request_real() and then had ubsa_request() call ubsa_request_real as return (ubsa_request_real( sc, request, value, UT_WRITE_VENDOR_DEVICE )); Now that I looked up what UT_WRITE_VENDOR_DEVICE is I guess this was an unnecessary step. Any ideas how this should really be handled - That sending the control message to put the device in modem mode? Thanks, Steve From owner-freebsd-usb@FreeBSD.ORG Sat May 3 00:33:00 2008 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 7CE5B106564A for ; Sat, 3 May 2008 00:33:00 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id D7BDC8FC0C for ; Sat, 3 May 2008 00:32:59 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Js5gL-00014b-Te for freebsd-usb@freebsd.org; Sat, 03 May 2008 00:32:53 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 May 2008 00:32:53 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 May 2008 00:32:53 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Sat, 03 May 2008 02:32:40 +0200 Lines: 250 Message-ID: References: <481B094F.1090408@netwolves.com> <200805021534.13848.hselasky@c2i.net> <481B5095.8080400@netwolves.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigCF41D9640639D408450CA286" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <481B5095.8080400@netwolves.com> X-Enigmail-Version: 0.95.6 Sender: news X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: sierra wireless compass 597 aircard (Was: Documentation) 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, 03 May 2008 00:33:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCF41D9640639D408450CA286 Content-Type: multipart/mixed; boundary="------------020503050201000804010508" This is a multi-part message in MIME format. --------------020503050201000804010508 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Steve Clark wrote: >>> Is there any detailed documentation on the FreeBSD usb device driver = >>> api? This chapter helped me a lot to understand how this all works: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/usb.html > I sort of have it working by hacking ubsa.c to look for the sierra=20 > vendor id and product id of 0xfff in > the usb_match function and return match. Then in the usb_attach code I = > look again for the vendor and > product id of 0xfff and then send the control message to put it in mode= m=20 > mode. > if ( uaa->vendor =3D=3D USB_VENDOR_SIERRA && uaa->product =3D=3D 0x= fff ) It maybe a good idea to add 0xFFF to the usbdevs. Does the "umass" driver attach to the 0xFFF device? I would recommend=20 adding this as a quirk to umass.c then. There are patches attached (ubsa.c_patch, umass_c.patch, usbdevs.patch)=20 I am using to kill the "zeroconf" CD on the UMTS. They do not always=20 work - i.e. umass_attach does not wait until the device is really=20 detached. But setting USB_DEBUG helps :-) > { > ubsa_request_real( sc, 0x0b, 1, 0x40 ); > ucom->sc_dying =3D 1; > goto error; > } > This puts in modem mode with product id of 0x0023 which i have plugged = > into usbdevs and also put in ubsa.c > so now I get a ucom device and can successfully run ppp. The problem I = > am running into now is sometime after > it remove the device I will get a page fault panic in the kernel.=20 What kind of panic is this? > I think it is related to the sending the > control_message - something is not cleaned up when I "goto error" in th= e=20 > USB_ATTACH function. >=20 http://www.freebsd.org/cgi/query-pr.cgi?pr=3D121755 There are two patches, one to ohci_pci.c, the other to usb_subr.c. One=20 of them is not correct - after kldunloading the module you may run into=20 problems. But it makes everyday life easier - at least you can remove=20 the card and re-insert. And finally, you will need something to increase your ubsa buffers, I am = using the ubsa.c_buffers_patch attached. (Crude, but cleaner than http://www.freebsd.org/cgi/query-pr.cgi?pr=3D119227) --Marcin --------------020503050201000804010508 Content-Type: text/plain; name="ubsa.c_patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="ubsa.c_patch" --- /sys/dev/usb/ubsa.c 2007-06-22 07:56:05.000000000 +0200 +++ ubsa.c 2008-01-03 11:53:09.740739801 +0100 @@ -232,6 +232,8 @@ { USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GT3GQUAD }, /* Option GlobeTrotter 3G+ */ { USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GT3GPLUS }, + /* Option GlobeTrotter Max 3.6 */ + { USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36 }, /* Huawei Mobile */ { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE }, { 0, 0 } --------------020503050201000804010508 Content-Type: text/plain; name="umass.c_patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="umass.c_patch" --- /sys/dev/usb/umass.c 2007-07-05 07:26:08.000000000 +0200 +++ umass.c 2008-01-03 11:53:13.592156965 +0100 @@ -323,6 +323,8 @@ * sector number. */ # define READ_CAPACITY_OFFBY1 0x2000 + /* Needs to be initialised the Qualcomm way */ +# define TURNOFF_FLASH 0x4000 }; =20 static struct umass_devdescr_t umass_devdescrs[] =3D { @@ -636,6 +638,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, IGNORE_RESIDUE | NO_START_STOP }, + { USB_VENDOR_QUALCOMM2, USB_PRODUCT_QUALCOMM2_MMC, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + TURNOFF_FLASH + }, { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_YP_U2, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, SHUTTLE_INIT | NO_GETMAXLUN @@ -1027,6 +1033,8 @@ =20 /* quirk functions */ static void umass_init_shuttle (struct umass_softc *sc); +static void umass_turnoff_flash (struct umass_softc *sc); +static void umass_turnoff_flash_cb(struct umass_softc *sc, void *priv, i= nt residue, int status); =20 /* generic transfer functions */ static usbd_status umass_setup_transfer (struct umass_softc *sc, @@ -1472,6 +1480,13 @@ =20 if (sc->quirks & SHUTTLE_INIT) umass_init_shuttle(sc); + if (sc->quirks & TURNOFF_FLASH) { + DPRINTF(UDMASS_USB, ("%s: Detaching MMC\n", + device_get_nameunit(sc->sc_dev))); + umass_turnoff_flash(sc); + umass_detach(self); + return ENXIO; + } =20 /* Get the maximum LUN supported by the device. */ @@ -1576,6 +1591,21 @@ device_get_nameunit(sc->sc_dev), status[0], status[1])); } =20 +static void +umass_turnoff_flash(struct umass_softc *sc) +{ + static uint8_t cmd[] =3D { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }; + umass_bbb_transfer(sc, 0, cmd, sizeof(cmd), + NULL, 0, DIR_NONE, 0, + umass_turnoff_flash_cb, NULL); +} + +static void +umass_turnoff_flash_cb(struct umass_softc *sc, void *priv, int residue, = int status) +{ + /* Do nothing */ +} + /* * Generic functions to handle transfers */ --------------020503050201000804010508 Content-Type: text/plain; name="ubsa.c_buffers_patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="ubsa.c_buffers_patch" --- ubsa.c.orig 2008-03-08 04:22:00.333020955 +0100 +++ ubsa.c 2008-03-12 01:20:07.045184146 +0100 @@ -360,15 +360,15 @@ if (UE_GET_DIR(ed->bEndpointAddress) =3D=3D UE_DIR_IN && UE_GET_XFERTYPE(ed->bmAttributes) =3D=3D UE_INTERRUPT) { sc->sc_intr_number =3D ed->bEndpointAddress; - sc->sc_isize =3D UGETW(ed->wMaxPacketSize); + sc->sc_isize =3D 1024; } else if (UE_GET_DIR(ed->bEndpointAddress) =3D=3D UE_DIR_IN && UE_GET_XFERTYPE(ed->bmAttributes) =3D=3D UE_BULK) { ucom->sc_bulkin_no =3D ed->bEndpointAddress; - ucom->sc_ibufsize =3D UGETW(ed->wMaxPacketSize); + ucom->sc_ibufsize =3D 2048; } else if (UE_GET_DIR(ed->bEndpointAddress) =3D=3D UE_DIR_OUT && UE_GET_XFERTYPE(ed->bmAttributes) =3D=3D UE_BULK) { ucom->sc_bulkout_no =3D ed->bEndpointAddress; - ucom->sc_obufsize =3D UGETW(ed->wMaxPacketSize); + ucom->sc_obufsize =3D 2048; } } =20 --------------020503050201000804010508-- --------------enigCF41D9640639D408450CA286 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBuyqz2W2v2wY27ZAQM58AQAkH1OC+JIBukTPO+VSQgKB3aB+LZ81umn 6T4Run5isiRsHC4aAKDIpNiGxaINaZf1+Lh2B1wrP/agb7sgoqZBVd7WL8kJv4mP pcQWyNPOa3dhlGGJpjU9q7mcFpKHPRBAHVOJ3+qhsZPY3Yq/gYx4SmXXtSl31iXA oSxRrlW37os= =BWtV -----END PGP SIGNATURE----- --------------enigCF41D9640639D408450CA286-- From owner-freebsd-usb@FreeBSD.ORG Sat May 3 00:50:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A36D7106566B for ; Sat, 3 May 2008 00:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 77B088FC1D for ; Sat, 3 May 2008 00:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m430o4nn029841 for ; Sat, 3 May 2008 00:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m430o4NW029840; Sat, 3 May 2008 00:50:04 GMT (envelope-from gnats) Resent-Date: Sat, 3 May 2008 00:50:04 GMT Resent-Message-Id: <200805030050.m430o4NW029840@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcin Cieslak Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FB98106566B for ; Sat, 3 May 2008 00:47:10 +0000 (UTC) (envelope-from saper@saper.info) Received: from system.pl (system.pl [87.98.232.30]) by mx1.freebsd.org (Postfix) with ESMTP id E986A8FC17 for ; Sat, 3 May 2008 00:47:09 +0000 (UTC) (envelope-from saper@saper.info) Received: (qmail 17426 invoked by uid 10); 3 May 2008 02:39:11 +0200 Received: from radziecki.saper.info (localhost [127.0.0.1]) by radziecki.saper.info (8.14.2/8.14.2) with ESMTP id m430kcBV041443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 May 2008 02:46:38 +0200 (CEST) (envelope-from saper@saper.info) Received: (from saper@localhost) by radziecki.saper.info (8.14.2/8.14.2/Submit) id m430kcx5041442; Sat, 3 May 2008 02:46:38 +0200 (CEST) (envelope-from saper) Message-Id: <200805030046.m430kcx5041442@radziecki.saper.info> Date: Sat, 3 May 2008 02:46:38 +0200 (CEST) From: Marcin Cieslak To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: saper@SYSTEM.PL Subject: usb/123351: Add Reiner SCT cyberJack, Omnikey [26]020, Fujitsu Siemens SCR to usbdevs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Cieslak List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2008 00:50:04 -0000 >Number: 123351 >Category: usb >Synopsis: Add Reiner SCT cyberJack, Omnikey [26]020, Fujitsu Siemens SCR to usbdevs >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 03 00:50:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Marcin Cieslak >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD radziecki.saper.info 7.0-STABLE FreeBSD 7.0-STABLE #3: Wed Mar 26 00:33:58 CET 2008 saper@radziecki.saper.info:/usr/obj/usr/src/sys/VAIO amd64 >Description: Add some smart-card readers to usbdevs file. I am working on a driver for them and I need to clean up my local usbdevs patches :) >How-To-Repeat: >Fix: Index: usbdevs =================================================================== RCS file: /usr/home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.328.2.9 diff -u -r1.328.2.9 usbdevs --- usbdevs 25 Apr 2008 16:40:18 -0000 1.328.2.9 +++ usbdevs 3 May 2008 00:43:32 -0000 @@ -365,6 +365,7 @@ vendor AUREAL 0x0755 Aureal Semiconductor vendor MIDIMAN 0x0763 Midiman vendor SURECOM 0x0769 Surecom Technology +vendor OMNIKEY 0x076b Omnikey vendor LINKSYS2 0x077b Linksys vendor GRIFFIN 0x077d Griffin Technology vendor SANDISK 0x0781 SanDisk @@ -427,6 +428,7 @@ vendor 2WIRE 0x08c8 2Wire vendor AIPTEK 0x08ca AIPTEK International vendor SMARTBRIDGES 0x08d1 SmartBridges +vendor FUJITSUSIEMENS 0x08d4 Fujitsu-Siemens vendor BILLIONTON 0x08dd Billionton Systems vendor EXTENDED 0x08e9 Extended Systems vendor MSYSTEMS 0x08ec M-Systems @@ -499,6 +501,7 @@ vendor AGATE 0x0c08 Agate Technologies vendor DMI 0x0c0b DMI vendor MICRODIA 0x0c45 Chicony +vendor REINERSCT 0x0c4b Reiner-SCT vendor SEALEVEL 0x0c52 Sealevel System vendor LUWEN 0x0c76 Luwen vendor KYOCERA2 0x0c88 Kyocera Wireless Corp. @@ -1257,6 +1260,9 @@ /* Fujitsu protducts */ product FUJITSU AH_F401U 0x105b AH-F401U Air H device +/* Fujitsu-Siemens protducts */ +product FUJITSUSIEMENS SCR 0x0009 Fujitsu-Siemens SCR USB Reader + /* Garmin products */ product GARMIN IQUE_3600 0x0004 iQue 3600 @@ -1787,6 +1793,10 @@ product OLYMPUS C1 0x0102 C-1 Digital Camera product OLYMPUS C700 0x0105 C-700 Ultra Zoom +/* Omnikey products */ +product OMNIKEY CM2020 0x0596 Omnikey Cardman 2020 +product OMNIKEY CM6020 0x1784 Omnikey Cardman 6020 + /* OmniVision Technologies, Inc. products */ product OMNIVISION OV511 0x0511 OV511 Camera product OMNIVISION OV511PLUS 0xa511 OV511+ Camera @@ -1954,6 +1964,9 @@ /* Green House and CompUSA OEM this part */ product REALTEK USBKR100 0x8150 USBKR100 USB Ethernet +/* Reiner-SCT products */ +product REINERSCT CYBERJACK_ECOM 0x0100 e-com cyberjack + /* Roland products */ product ROLAND UM1 0x0009 UM-1 MIDI I/F product ROLAND UM880N 0x0014 EDIROL UM-880 MIDI I/F (native) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat May 3 01:00:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7B381065677 for ; Sat, 3 May 2008 01:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9BEB48FC16 for ; Sat, 3 May 2008 01:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m43105a7030047 for ; Sat, 3 May 2008 01:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m43105cc030042; Sat, 3 May 2008 01:00:05 GMT (envelope-from gnats) Resent-Date: Sat, 3 May 2008 01:00:05 GMT Resent-Message-Id: <200805030100.m43105cc030042@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcin Cieslak Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA6F5106566B for ; Sat, 3 May 2008 00:52:07 +0000 (UTC) (envelope-from saper@saper.info) Received: from system.pl (system.pl [87.98.232.30]) by mx1.freebsd.org (Postfix) with ESMTP id 44A7E8FC16 for ; Sat, 3 May 2008 00:52:07 +0000 (UTC) (envelope-from saper@saper.info) Received: (qmail 17805 invoked by uid 10); 3 May 2008 02:44:11 +0200 Received: from radziecki.saper.info (localhost [127.0.0.1]) by radziecki.saper.info (8.14.2/8.14.2) with ESMTP id m430pJ20041719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 May 2008 02:51:19 +0200 (CEST) (envelope-from saper@saper.info) Received: (from saper@localhost) by radziecki.saper.info (8.14.2/8.14.2/Submit) id m430pJEB041718; Sat, 3 May 2008 02:51:19 +0200 (CEST) (envelope-from saper) Message-Id: <200805030051.m430pJEB041718@radziecki.saper.info> Date: Sat, 3 May 2008 02:51:19 +0200 (CEST) From: Marcin Cieslak To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: saper@system.pl Subject: usb/123352: Add Option GTMAX3.6/7.2 and Quallcomm MMC module device identifiiers to usbdevs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Cieslak List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2008 01:00:05 -0000 >Number: 123352 >Category: usb >Synopsis: Add Option GTMAX3.6/7.2 and Quallcomm MMC module device identifiiers to usbdevs >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 03 01:00:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Marcin Cieslak >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD radziecki.saper.info 7.0-STABLE FreeBSD 7.0-STABLE #3: Wed Mar 26 00:33:58 CET 2008 saper@radziecki.saper.info:/usr/obj/usr/src/sys/VAIO amd64 >Description: I am have a preliminary set of patches to support Option GTMAX3.6/7.2 and to kill the MMC module containing "ZeroConf" CD with Windows drivers. In the meantime I need to clean up my local usbdevs patches :-) >How-To-Repeat: >Fix: Index: usbdevs =================================================================== RCS file: /usr/home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.328.2.9 diff -u -r1.328.2.9 usbdevs --- usbdevs 25 Apr 2008 16:40:18 -0000 1.328.2.9 +++ usbdevs 3 May 2008 00:47:58 -0000 @@ -1,4 +1,4 @@ -$FreeBSD: src/sys/dev/usb/usbdevs,v 1.328.2.9 2008/04/25 16:40:18 sam Exp $ +$FreeBSD: src/sys/dev/usb/usbdevs,v 1.328 2007/10/05 07:26:39 luigi Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- @@ -1807,6 +1807,7 @@ product OPTION GT3G 0x6000 GlobeTrotter 3G datacard product OPTION GT3GQUAD 0x6300 GlobeTrotter 3G QUAD datacard product OPTION GT3GPLUS 0x6600 GlobeTrotter 3G+ datacard +product OPTION GTMAX36 0x6701 GlobeTrotter MAX 3.6/7.2 /* OQO */ product OQO WIFI01 0x0002 model 01 WiFi interface @@ -1926,6 +1927,7 @@ /* Qualcomm products */ product QUALCOMM CDMA_MSM 0x6000 CDMA Technologies MSM phone +product QUALCOMM2 MMC 0x1000 MMC on various UMTS devices product QUALCOMM2 RWT_FCT 0x3100 RWT FCT-CDMA 2000 1xRTT modem product QUALCOMM2 CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat May 3 13:19:11 2008 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 9CEF6106564A for ; Sat, 3 May 2008 13:19:11 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from mx1.h3q.net (mx1.h3q.net [212.37.5.30]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5BC8FC18 for ; Sat, 3 May 2008 13:19:11 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from [192.168.1.61] (78-69-107-234-no83.tbcn.telia.com [78.69.107.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: fli@shapeshifter.se) by mx1.h3q.net (Postfix) with ESMTP id DEFE078C20; Sat, 3 May 2008 15:01:50 +0200 (CEST) Message-ID: <481C623D.7040902@shapeshifter.se> Date: Sat, 03 May 2008 15:01:49 +0200 From: Fredrik Lindberg User-Agent: Thunderbird 2.0.0.12 (X11/20080305) MIME-Version: 1.0 To: Marcin Cieslak References: <481B094F.1090408@netwolves.com> <200805021534.13848.hselasky@c2i.net> <481B5095.8080400@netwolves.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org Subject: Re: sierra wireless compass 597 aircard (Was: Documentation) 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, 03 May 2008 13:19:11 -0000 Marcin Cieslak wrote: > It maybe a good idea to add 0xFFF to the usbdevs. > Does the "umass" driver attach to the 0xFFF device? I would recommend > adding this as a quirk to umass.c then. > > There are patches attached (ubsa.c_patch, umass_c.patch, usbdevs.patch) > I am using to kill the "zeroconf" CD on the UMTS. They do not always > work - i.e. umass_attach does not wait until the device is really > detached. But setting USB_DEBUG helps :-) > Since your patches deals with Option cards I'll just let you know that all(?) Option based devices can be switched perfectly safe from user land, without patching ubsa, using camcontrol. The command to switch Option devices is a SCSI REZERO command. This should be enough to switch the device, given that pass0 is the modem (use camcontrol devlist) camcontrol cmd pass0 -c “01 00 00 00 00 00″ -i 1 i1 camcontrol might give you an error but the device will be switched. Note that this is ONLY for Option based devices, I don't know about the Sierra ones but the linux usb_modeswitch tool might be a good start. Fredrik From owner-freebsd-usb@FreeBSD.ORG Sat May 3 13:44:22 2008 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 F048B1065680 for ; Sat, 3 May 2008 13:44:22 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8537D8FC15 for ; Sat, 3 May 2008 13:44:22 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JsI2C-0006sg-34 for freebsd-usb@freebsd.org; Sat, 03 May 2008 13:44:16 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 May 2008 13:44:16 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 May 2008 13:44:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Marcin Cieslak Date: Sat, 03 May 2008 15:44:02 +0200 Lines: 42 Message-ID: <481C6C22.7040404@system.pl> References: <481B094F.1090408@netwolves.com> <200805021534.13848.hselasky@c2i.net> <481B5095.8080400@netwolves.com> <481C623D.7040902@shapeshifter.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigB32AAA840243696A52319251" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <481C623D.7040902@shapeshifter.se> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: sierra wireless compass 597 aircard (Was: Documentation) 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, 03 May 2008 13:44:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB32AAA840243696A52319251 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Fredrik Lindberg wrote: > This should be enough to switch the device, given that pass0 > is the modem (use camcontrol devlist) >=20 > camcontrol cmd pass0 -c =E2=80=9C01 00 00 00 00 00=E2=80=B3 -i 1 i1 >=20 > camcontrol might give you an error but the device will be switched. > Note that this is ONLY for Option based devices, I don't know about > the Sierra ones but the linux usb_modeswitch tool might be a good start= =2E Yes, this is option-specific. Last time I tried this command, it panics=20 the system. That's why I patched umass to do this for me at the attach ti= me. However, feel free to try other patches since they are not=20 option-specific in any way. --Marcin --------------enigB32AAA840243696A52319251 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSBxsJT2W2v2wY27ZAQP4HgQAjf1hEL0ITwwVcJjFwN1K6aU2k3q5QIGk xeKM9yU6Hjcls9in+Ce5+Og8mFQNggddxdirAQGSqUtREdkI43nvwQHzG34DKAWj 8Hnd3tSi4sfmXf9N9b72IKu6LuRTCt75iRYEh4BNWPAD9vEoAetesBqHLMfpMK/Z MCG6DLhI8PA= =V6bD -----END PGP SIGNATURE----- --------------enigB32AAA840243696A52319251-- From owner-freebsd-usb@FreeBSD.ORG Sat May 3 15:30:07 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D31431065674 for ; Sat, 3 May 2008 15:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C029B8FC14 for ; Sat, 3 May 2008 15:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m43FU4TH006418 for ; Sat, 3 May 2008 15:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m43FU49D006415; Sat, 3 May 2008 15:30:04 GMT (envelope-from gnats) Date: Sat, 3 May 2008 15:30:04 GMT Message-Id: <200805031530.m43FU49D006415@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Miguel Ramos" <2008@miguel.ramos.name> Cc: Subject: Re: usb/93640: [ehci] [irq] device ehci causes interrupt storm on this MSI amd64 motherboard X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Miguel Ramos <2008@miguel.ramos.name> List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2008 15:30:07 -0000 The following reply was made to PR usb/93640; it has been noted by GNATS. From: "Miguel Ramos" <2008@miguel.ramos.name> To: bug-followup@FreeBSD.org, miguel@anjos.strangled.net Cc: Subject: Re: usb/93640: [ehci] [irq] device ehci causes interrupt storm on this MSI amd64 motherboard Date: Sat, 3 May 2008 15:52:39 +0100 This problem is gone in RELENG_7 as of 2008-05-03. Interrupt count is now very low and normal, the machine is usable with device ehci. There has been a recent change in ehci_pci.c which might explain it, but I don't know what has been changed. $FreeBSD: src/sys/dev/usb/ehci_pci.c,v 1.28.2.3 2008/04/23 18:50:19 jhb Exp= $ Thanks, whoever did it, either knowingly or not. Miguel -- # vmstat -i interrupt total rate irq1: atkbd0 13026 3 irq12: psm0 40 0 irq14: ata0 91649 27 irq15: ata1 1585 0 irq16: ral0 100675 30 irq17: pcm0 1 0 irq18: rl0 drm0 75705 22 irq19: cbb0 ohci0* 220576 66 irq21: fwohci0+ 668 0 cpu0: timer 6647026 1999 Total 7150951 2151 -- # uname -a FreeBSD targa 7.0-STABLE FreeBSD 7.0-STABLE #1: Sat May 3 14:51:59 WEST 20= 08 root@targa:/var/tmp/usr/src/sys/TARGA amd64 --=20 Miguel Ramos miguel.ramos@albatroz-eng.com ALBATROZ Engenharia S.A. Rua da Concei=E7=E3o 60, 1=BA P-1100-154 Lisboa Portugal Tel.: (+351) 21 347 3079 Fax: (+351) 21 886 7109 http://www.albatroz-eng.com/