From owner-freebsd-usb@FreeBSD.ORG Sun May 11 10:43: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 54FF61065672 for ; Sun, 11 May 2008 10:43:24 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from heka.cenkes.org (heka.cenkes.org [208.79.80.110]) by mx1.freebsd.org (Postfix) with ESMTP id 2BDDC8FC1A for ; Sun, 11 May 2008 10:43:24 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from amilo.cenkes.org (ppp85-140-150-228.pppoe.mtu-net.ru [85.140.150.228]) (Authenticated sender: sat) by heka.cenkes.org (Postfix) with ESMTPSA id CC586242F8DB; Sun, 11 May 2008 14:24:23 +0400 (MSD) Date: Sun, 11 May 2008 14:24:20 +0400 From: Andrew Pantyukhin To: =?utf-8?B?0JzQuNGB0YLQtdGAINCQ0L3QtNC10YDRgdC+0L0=?= Message-ID: <20080511102419.GR92161@amilo.cenkes.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-OS: FreeBSD 8.0-CURRENT amd64 User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-usb@freebsd.org Subject: Re: damaged files (mp3,txt , etc) on flash-drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: infofarmer@FreeBSD.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2008 10:43:24 -0000 On Sat, May 10, 2008 at 11:41:54PM +0400, =D0=9C=D0=B8=D1=81=D1=82=D0=B5=D1= =80 =D0=90=D0=BD=D0=B4=D0=B5=D1=80=D1=81=D0=BE=D0=BD wrote: > # md5 Invasion_s01e06_DVDRip_RUS.avi > MD5 (Invasion_s01e06_DVDRip_RUS.avi) =3D > 8e1240afd0601f082f8a718e461f1531 > # cp Invasion_s01e06_DVDRip_RUS.avi /usr/home/fdkit/flash/ > # md5 /usr/home/fdkit/flash/Invasion_s01e06_DVDRip_RUS.avi > MD5 (/usr/home/fdkit/flash/Invasion_s01e06_DVDRip_RUS.avi) =3D > 533b5700c120b652a63079c5ff9ec386 >=20 > I wish to notice that if to copy files in the size up to ~1mb > that damages is not present. There are no files, Mr. Anderson! That said, I had similar problems when using cheap USB cables. Try getting a nice thick expensive one. Hard drive itself may be the culprit, too. Try attaching it directly and running several long tests with smartmontools (from ports). If you're looking for workarounds, try copying with rsync (multiple times). From owner-freebsd-usb@FreeBSD.ORG Sun May 11 11:28: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 5B0A2106566B for ; Sun, 11 May 2008 11:28:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swipnet.se [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id B68B08FC15 for ; Sun, 11 May 2008 11:28:35 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=vyXGIERaJTIA:10 a=ERze1Y4X33EA:10 a=8dRco+jkA7T8F7ca9kIWOg==:17 a=OCeA-q88x4-qrwHp7IUA:9 a=5GDMLeVtEJnbyQWr_t4A:7 a=TNCRpUcSVOmOAd_lxcUVdr0FxqsA:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.18] (account mc467741@c2i.net [62.73.248.18] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 761300767; Sun, 11 May 2008 13:28:33 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, infofarmer@freebsd.org Date: Sun, 11 May 2008 13:29:50 +0200 User-Agent: KMail/1.9.7 References: <20080511102419.GR92161@amilo.cenkes.org> In-Reply-To: <20080511102419.GR92161@amilo.cenkes.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200805111329.51918.hselasky@c2i.net> Cc: Subject: Re: damaged files (mp3,txt , etc) on flash-drive 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, 11 May 2008 11:28:36 -0000 On Sunday 11 May 2008, Andrew Pantyukhin wrote: > On Sat, May 10, 2008 at 11:41:54PM +0400, =D0=9C=D0=B8=D1=81=D1=82=D0=B5= =D1=80 =D0=90=D0=BD=D0=B4=D0=B5=D1=80=D1=81=D0=BE=D0=BD wrote: > > # md5 Invasion_s01e06_DVDRip_RUS.avi > > MD5 (Invasion_s01e06_DVDRip_RUS.avi) =3D > > 8e1240afd0601f082f8a718e461f1531 > > # cp Invasion_s01e06_DVDRip_RUS.avi /usr/home/fdkit/flash/ > > # md5 /usr/home/fdkit/flash/Invasion_s01e06_DVDRip_RUS.avi > > MD5 (/usr/home/fdkit/flash/Invasion_s01e06_DVDRip_RUS.avi) =3D > > 533b5700c120b652a63079c5ff9ec386 > > > > I wish to notice that if to copy files in the size up to ~1mb > > that damages is not present. > Could you do a hexdump of the two files and figure out what has changed ? cat a | hexdump -C > a.txt cat b | hexdump -C > b.txt diff -u -b a.txt b.txt =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Sun May 11 16:20:37 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 D227D106567C for ; Sun, 11 May 2008 16:20:37 +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 A3F428FC0A for ; Sun, 11 May 2008 16:20:37 +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 1JvEHq-0007p0-HV for freebsd-usb@freebsd.org; Sun, 11 May 2008 11:20:34 -0500 From: "Engineering" To: Date: Sun, 11 May 2008 11:21:36 -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: Subject: Webcam ugen iso transfer problems 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, 11 May 2008 16:20:37 -0000 Hello I am having much trouble trying to read isochronous data from a UVC webcam. I understand that a full driver is being worked on right now, but I'd love to be able to get my 'mini-driver' which only does one frame rate working in the meantime. I have updated the USB stack with Hans Petter Selasky's work, and am now able to get data. The problem is, much of the YUV data seems to be missing. I have just run tests through all of the Alt Interfaces, and have some results. I am just setting the cam to 160x120 uncompressed, and trying to get the stream In each case, I try to set the buffer to wMaxPacketSize * 400 (ugen seems to collect 50 * 8 packets) I notice at the faster interfaces, the ugen Frame Size no longer matches wMaxPacketSize. This should give me 12 byte stream headers, and lots of YUV data. I read the results as a 2 channel raw file in Photoshop. I discarded the 2nd channel (UV) for clarity, so the 12 bytes headers become 6 bytes, which you can see in the png files. the basic test code loop is dev->isopipe = open(pipename,O_RDONLY); (set the buffer size, timeout, short XFER) FILE *f; f = fopen("/usr/src/sys/dev/usb/test.raw","wb"); int i; int bytes; for(i = 0;i<210;i++) { bytes = read(dev->isopipe,uvcbuf,UVCBUFSIZE); // 42240 if (bytes > 0) { fwrite(&uvcbuf,bytes,1,f); zinfo("read %d bytes\n",bytes); } } fclose(f); Basic setup info... VS_FRAME_UNCOMPRESSED length 50 type 24 subtype 05 frame_index 5 capabilities 0 width 160 height 120 minbitrate 38400 maxbitrate 1152000 max_video_frame_buffer_size 38400 default_frame_interval 333333 frame_interval_type 6 frame_interval[0] 333333 USB_DO_REQUEST SEND...length = 34 USB_DO_REQUEST RECV...length = 34 UVC Stream probe bmHint 01 bFormatIndex 1 bFrameIndex 5 dwFrameInterval 333333 wKeyFrameRate 1 wPFrameRate 1 wCompQuality 10000 wCompWindowSize 0 wDelay 34055 dwMaxVideoFrameSize 42240 dwMaxPayloadTransferSize 1600 dwClockFrequency 1852381070 bmFramingInfo B2 bPreferedVersion 175 bMinVersion 250 bMaxVersion 180 Alt Interface 1: Setting altinterface to 1:1 Getting altinterface for 1 00 00 00 00 01 00 00 00 01 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 01 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 0080 (128) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting buffer size 51200 Setting short xfer... Setting timeout to 1 ugen Frame size 128 ugen Buffer size 51200 dev->MaxPacketSize = 128 dev->endpoint = 81 result: www.athyriogames.com/ai1.png Alt Interface 2: Setting altinterface to 1:2 Getting altinterface for 1 00 00 00 00 01 00 00 00 02 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 02 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 0100 (256) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting buffer size 102400 Setting short xfer... Setting timeout to 1 ugen Frame size 256 ugen Buffer size 102400 dev->MaxPacketSize = 256 dev->endpoint = 81 result: www.athyriogames.com/ai2.png Alt Interface 3: Setting altinterface to 1:3 Getting altinterface for 1 00 00 00 00 01 00 00 00 03 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 03 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 0320 (800) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting short xfer... Setting timeout to 1 ugen Frame size 800 ugen Buffer size 65536 dev->MaxPacketSize = 800 dev->endpoint = 81 result: www.athyriogames.com/ai3.png Alt Interface 4: Setting altinterface to 1:4 Getting altinterface for 1 00 00 00 00 01 00 00 00 04 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 04 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 0B20 (2848) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting buffer size 1139200 Setting short xfer... Setting timeout to 1 ugen Frame size 1600 ugen Buffer size 262144 dev->MaxPacketSize = 2848 dev->endpoint = 81 result: www.athyriogames.com/ai4.png Alt Interface 3: Setting altinterface to 1:5 Getting altinterface for 1 00 00 00 00 01 00 00 00 05 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 05 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 1320 (4896) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting buffer size 1958400 Setting short xfer... Setting timeout to 1 ugen Frame size 2400 ugen Buffer size 262144 dev->MaxPacketSize = 4896 dev->endpoint = 81 result: www.athyriogames.com/ai5.png Alt Interface 6: Setting altinterface to 1:6 Getting altinterface for 1 00 00 00 00 01 00 00 00 06 00 00 00 Getting interface description bLength 09 bDescriptorType 04 bInterfaceNumber 01 bAlternateSetting 06 bNumEndpoints 01 bInterfaceClass 0E bInterfaceSubClass 02 bInterfaceProtocol 00 iInterface 00 Getting endpoint description bLength 07 bDescriptorType 05 bEndpointAddress 81 bmAttributes 05 wMaxPacketSize 1400 (5120) bInterfaceSubClass 01 Opening isopipe /dev/ugen0.1... returned 5 Setting buffer size 2048000 Setting short xfer... Setting timeout to 1 ugen Frame size 3072 ugen Buffer size 262144 dev->MaxPacketSize = 5120 dev->endpoint = 81 result: www.athyriogames.com/ai6.png Thank you for any help you can give me Sam From owner-freebsd-usb@FreeBSD.ORG Sun May 11 16:24:10 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 515B3106566B; Sun, 11 May 2008 16:24:10 +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 27FFF8FC1A; Sun, 11 May 2008 16:24:10 +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 m4BGOAvX029957; Sun, 11 May 2008 16:24:10 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4BGO91X029953; Sun, 11 May 2008 16:24:09 GMT (envelope-from vwe) Date: Sun, 11 May 2008 16:24:09 GMT Message-Id: <200805111624.m4BGO91X029953@freefall.freebsd.org> To: a_hartwig@fastmail.fm, vwe@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: usb/123211: [udav] if_udav driver doesn't support Davicom 9601 USB ethernet adapter 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, 11 May 2008 16:24:10 -0000 Synopsis: [udav] if_udav driver doesn't support Davicom 9601 USB ethernet adapter State-Changed-From-To: feedback->open State-Changed-By: vwe State-Changed-When: Sun May 11 16:22:25 UTC 2008 State-Changed-Why: feedback received Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: vwe Responsible-Changed-When: Sun May 11 16:22:25 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). VID 0x9601 PID 0x0a46 needs to be added to usbdevs and udav http://www.freebsd.org/cgi/query-pr.cgi?pr=123211 From owner-freebsd-usb@FreeBSD.ORG Sun May 11 16:36:29 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 118681065674; Sun, 11 May 2008 16:36:29 +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 DE2548FC25; Sun, 11 May 2008 16:36:28 +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 m4BGaSCn032133; Sun, 11 May 2008 16:36:28 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4BGaSRO032129; Sun, 11 May 2008 16:36:28 GMT (envelope-from vwe) Date: Sun, 11 May 2008 16:36:28 GMT Message-Id: <200805111636.m4BGaSRO032129@freefall.freebsd.org> To: vwe@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: usb/122813: [udbp] [request] udbp driver should be removed in favour of cdce 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, 11 May 2008 16:36:29 -0000 Synopsis: [udbp] [request] udbp driver should be removed in favour of cdce Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: vwe Responsible-Changed-When: Sun May 11 16:34:19 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). Believing nobody uses code because no bug has been reported, is a nice assumption :) Probably it's a sign of good code? http://www.freebsd.org/cgi/query-pr.cgi?pr=122813 From owner-freebsd-usb@FreeBSD.ORG Sun May 11 17:10: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 D8354106567A for ; Sun, 11 May 2008 17:10:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swipnet.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 6B2BB8FC14 for ; Sun, 11 May 2008 17:10:35 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8dRco+jkA7T8F7ca9kIWOg==:17 a=he8gKdfgp4_w_3_6tHgA:9 a=dDND1Q1Cw4d_Kx4gCx8A:7 a=5gY9USOGhkyBdAK2haoBJXwfM_YA:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.18] (account mc467741@c2i.net [62.73.248.18] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 192970790; Sun, 11 May 2008 19:10:33 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 11 May 2008 19:11:53 +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: <200805111911.55524.hselasky@c2i.net> Cc: Subject: Re: Webcam ugen iso transfer problems 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, 11 May 2008 17:10:35 -0000 On Sunday 11 May 2008, Engineering wrote: > Hello > > I am having much trouble trying to read isochronous data from a UVC webcam. > I understand that a full driver is being worked on right now, but I'd love > to be able to get my 'mini-driver' which only does one frame rate working > in the meantime. > > I have updated the USB stack with Hans Petter Selasky's work, and am now > able to get data. The problem is, much of the YUV data seems to be missing. > > I have just run tests through all of the Alt Interfaces, and have some > results. > > I am just setting the cam to 160x120 uncompressed, and trying to get the > stream > > In each case, I try to set the buffer to wMaxPacketSize * 400 (ugen seems > to collect 50 * 8 packets) > > I notice at the faster interfaces, the ugen Frame Size no longer matches > wMaxPacketSize. > > This should give me 12 byte stream headers, and lots of YUV data. I read > the results as a 2 channel raw file in Photoshop. I discarded the 2nd > channel (UV) for clarity, so the 12 bytes headers become 6 bytes, which you > can see in the png files. > > the basic test code loop is > > dev->isopipe = open(pipename,O_RDONLY); > (set the buffer size, timeout, short XFER) > FILE *f; > f = fopen("/usr/src/sys/dev/usb/test.raw","wb"); > int i; > int bytes; > for(i = 0;i<210;i++) > { > bytes = read(dev->isopipe,uvcbuf,UVCBUFSIZE); // 42240 > if (bytes > 0) > { > fwrite(&uvcbuf,bytes,1,f); > zinfo("read %d bytes\n",bytes); > } > } > fclose(f); > Hi Sam, How does the parsing code look? Can you provide a Hexdump of the data you get from the ugen endpoint ? for (i = 0; i != 240; i++) { bytes = read(dev->isopipe,buf,count * wMaxPacketSize); if (bytes > 0) { ... } else { break; /* detached */ } } --HPS From owner-freebsd-usb@FreeBSD.ORG Sun May 11 19:27:45 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 36642106566C; Sun, 11 May 2008 19:27:45 +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 281058FC0C; Sun, 11 May 2008 19:27:45 +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 m4BJRiH2044939; Sun, 11 May 2008 19:27:44 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4BJRi1C044935; Sun, 11 May 2008 19:27:44 GMT (envelope-from vwe) Date: Sun, 11 May 2008 19:27:44 GMT Message-Id: <200805111927.m4BJRi1C044935@freefall.freebsd.org> To: polzun@scar.jinr.ru, vwe@FreeBSD.org, freebsd-usb@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: usb/84750: [hang] 6-BETA2 reboot/shutdown with root_fs on external HDD fails 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, 11 May 2008 19:27:45 -0000 Synopsis: [hang] 6-BETA2 reboot/shutdown with root_fs on external HDD fails State-Changed-From-To: open->feedback State-Changed-By: vwe State-Changed-When: Sun May 11 19:22:30 UTC 2008 State-Changed-Why: Ilya, can you please check if this is still an issue with latest 7-STABLE / 6-STABLE / 7.0-R / 6.3-R? Also from taking a look at your dmesg, these lines ACPI: overriding DSDT/SSDT with custom table ACPI-0377: *** Info: Table [DSDT] replaced by host OS acpi0: on motherboard ACPI-0356: *** Error: Region EmbeddedControl(3) has no handler ACPI-1304: *** Error: Method execution failed [\\_SB_.PCI0.SBRG.EC0_.ACS_] (Node 0xc1aaca60), AE_NOT_EXIST ACPI-1304: *** Error: Method execution failed [\\_SB_.AC__._INI] (Node 0xc1aac560), AE_NOT_EXIST ACPI-0356: *** Error: Region EmbeddedControl(3) has no handler ACPI-1304: *** Error: Method execution failed [\\_SB_.PCI0.SBRG.EC0_.BATS] (Node 0xc1aaca40), AE_NOT_EXIST ACPI-1304: *** Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc1aaece0), AE_NOT_EXIST ACPI-0239: *** Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc1aaece0), AE_NOT_EXIST make me wonder if you're able to install a BIOS update as the machine seems to have some ACPI issues. Also I'm pretty sure booting off umass is working fine in general as I'm tried it over the last weeks several times (but using mostly USB memory sticks - several different brands and only one USB-HDD). http://www.freebsd.org/cgi/query-pr.cgi?pr=84750 From owner-freebsd-usb@FreeBSD.ORG Sun May 11 23:20: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 B5CD2106564A for ; Sun, 11 May 2008 23:20: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 8D3168FC0A for ; Sun, 11 May 2008 23:20: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 m4BNK7N1064929 for ; Sun, 11 May 2008 23:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4BNK7ZO064928; Sun, 11 May 2008 23:20:07 GMT (envelope-from gnats) Date: Sun, 11 May 2008 23:20:07 GMT Message-Id: <200805112320.m4BNK7ZO064928@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volker Cc: Subject: Re: usb/123508: damaged files (mp3,txt , etc) on flash-drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2008 23:20:07 -0000 The following reply was made to PR usb/123508; it has been noted by GNATS. From: Volker To: bug-followup@FreeBSD.org, nobodydead@inbox.ru Cc: Subject: Re: usb/123508: damaged files (mp3,txt , etc) on flash-drive Date: Mon, 12 May 2008 02:16:36 +0200 Alexander, > fdisk /dev/da0s1 please don't do that as this gives nothing useful. A slice (DOS partition) doesn't contain a slice (partition) table. Please send the output of: `fdisk /dev/da0` While it still may be a problem of bad media, I would like to check if your partition table is fine, before blaming the manufacturer of your memory stick. Volker From owner-freebsd-usb@FreeBSD.ORG Mon May 12 11:07:07 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 E8408106566B for ; Mon, 12 May 2008 11:07:07 +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 D56038FC26 for ; Mon, 12 May 2008 11:07:07 +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 m4CB77mu038188 for ; Mon, 12 May 2008 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4CB77Zw038184 for freebsd-usb@FreeBSD.org; Mon, 12 May 2008 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 May 2008 11:07:07 GMT Message-Id: <200805121107.m4CB77Zw038184@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, 12 May 2008 11:07:08 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f 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 [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c 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 [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent 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] [regression] USB makes kernel hang at boot (reg 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] [regression] booting very slow with usb devices 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/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 [keyboard] 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 [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar 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 [keyboard] nforce 650i mobo w/ usb keyboard infinite k 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 [keyboard] Don't work Fn keys on USB Microsoft Natural 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 o usb/123508 usb [umass] damaged files (mp3,txt , etc) on flash-drive o kern/123510 usb [ums] Mouse Wheel Fails to Work [regression] 137 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 [keyboard] [patch] Rework of ukbd HID to AT code trans 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. o 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(8): Serial Number of USB Memory Sticks is n 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 [keyboard] while using USB keyboard default params of o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr 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 [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not 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 [ata] 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 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/122813 usb [udbp] [request] udbp driver should be removed in favo 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. p usb/123148 usb [usbdevs] [patch] Epson DX8400/50 needs uscanner to sc o usb/123211 usb [udav] if_udav driver doesn't support Davicom 9601 USB o kern/123224 usb [ums] Scroll wheel breakage w/ USB MS Wireless Intelli o usb/123351 usb Add Reiner SCT cyberJack, Omnikey [26]020, Fujitsu Sie o usb/123352 usb Add Option GTMAX3.6/7.2 and Quallcomm MMC module devic o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone 136 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon May 12 15:40:01 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 E29E81065674 for ; Mon, 12 May 2008 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C18718FC1A for ; Mon, 12 May 2008 15:40:01 +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 m4CFe1sb065498 for ; Mon, 12 May 2008 15:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4CFe1U7065497; Mon, 12 May 2008 15:40:01 GMT (envelope-from gnats) Resent-Date: Mon, 12 May 2008 15:40:01 GMT Resent-Message-Id: <200805121540.m4CFe1U7065497@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, "S. Hutchins" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 420B61065681 for ; Mon, 12 May 2008 15:39:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 324DA8FC13 for ; Mon, 12 May 2008 15:39:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4CFc0xS092258 for ; Mon, 12 May 2008 15:38:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4CFc0G4092257; Mon, 12 May 2008 15:38:00 GMT (envelope-from nobody) Message-Id: <200805121538.m4CFc0G4092257@www.freebsd.org> Date: Mon, 12 May 2008 15:38:00 GMT From: "S. Hutchins" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/123611: BBB reset failed, STALLED from Imation/Mitsumi USB Floppy Drive 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, 12 May 2008 15:40:02 -0000 >Number: 123611 >Category: usb >Synopsis: BBB reset failed, STALLED from Imation/Mitsumi USB Floppy Drive >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 12 15:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: S. Hutchins >Release: 7.0-RELEASE >Organization: >Environment: FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Imation D353FUE Floppy Drive (reported as Mitsumi) VID 0x03ee PID 0x6901. Connecting the device to a 7.0-RELEASE system doesn't seem to work: umass0: on uhub0 umass0: BBB reset failed, STALLED (after a delay, the message repeats) This message appears to be emitted from line sys/dev/usb/umass.c:2082 Disconnect the device and the following additional messages appear: umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: at uhub0 port 1 (addr 2) disconnected umass0: detached Reproduced on Shuttle XPC w. ICH6 and an Intel Server motherboard with ICH8 host controllers: Connecting a variety of other USB 2.0 mass storage devices to these two machines works, as well as connecting USB 2.0 devices through a USB 1.0 hub. I have no reason to believe any of the hardware is defective. This device works on FreeBSD 6.2-RELEASE but emits messages: Unsupported UFI command 0x35 (cam path) Synchronize cache failed, status == 0x6, scsi status == 0x00 Because the device works on 6.2-RELEASE, this may be a regression. It also works on Linux-2.6.23.15-137.fc8. >How-To-Repeat: Connect the Imation device described above to the FreeBSD 7.0-RELEASE system. Observe the message described above, and observe that it repeats after a delay. Observe that there is no device node for the device and consequently no I/O can be started. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon May 12 19:10:29 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 5566D1065681 for ; Mon, 12 May 2008 19:10:29 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7B48FC28 for ; Mon, 12 May 2008 19:10:28 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so577038ana.13 for ; Mon, 12 May 2008 12:10:28 -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:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=NGdKqgiEf42FB7G4v9wtkQqgsSdFVAJnyKqvY7/wVsY=; b=KMrCVKwL/8Pg8kpay0INjC68XsGFg+leTqreefzdVy1rIiFJVFGBi+EiCCXdDRB7hXkJfRIOZej6A9jfd5RvHyA19pB6fCAQ1RlDuJlp8CkeY2CJmZo7Q9Z2MM/fVZRr1ULb2CZqCGDYmxV7tsrjmNAuZWbdu47JoX7Xd0vs1L4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=QDs80+RdKYrhXKBcglQh4a+7nfdgRY6fxasKECvrW/hXW3JUvw136BTTl+a0OKZE2K/E6dwy0/oKL6kHanIjvxL2VmOoYov53Gt8abWB66aauyc2tdi2KR/Win036nbgujDLyQC1qm8EgIW+2Btflta5znOLIGdwhYJHhQzgGqU= Received: by 10.100.93.19 with SMTP id q19mr8652615anb.143.1210617922466; Mon, 12 May 2008 11:45:22 -0700 (PDT) Received: by 10.100.239.17 with HTTP; Mon, 12 May 2008 11:45:22 -0700 (PDT) Message-ID: <539c60b90805121145p3843045cvb2d382cf6bc82430@mail.gmail.com> Date: Mon, 12 May 2008 11:45:22 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: r.c.ladan@gmail.com, freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 51c7728aa163abf5 Cc: Subject: libusb usb_open(when using desc) broken? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 19:10:29 -0000 Hi, I've observed that several different projects which use libusb to talk to hardware are "broken" when built on freebsd - they fail on opening the device. If I corrupt them to open on just a vid+pid (as opposed to vid+pid+desc), they work fine. Is it possible that FreeBSD is handling usb "description" strings (alot of doc's are really unclear on just what "desc" is, exactly - I've heard serial number, name, content from dmesg, etc) differently than linux - because all these projects are linux-based, and the linux users are always confounded when I describe the problem to them. One of the projects is "openocd", which uses libusb through libftdi, and the other is "urjtag" which I assume uses it natively, since it's not ftdi-based hardware. I'm about to start digging around in the urjtag source today, previously I assumed it was a libftdi problem until it happened a second time. Best, Steve From owner-freebsd-usb@FreeBSD.ORG Mon May 12 20:36:55 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 448311065679 for ; Mon, 12 May 2008 20:36:55 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) by mx1.freebsd.org (Postfix) with ESMTP id 2134D8FC2C for ; Mon, 12 May 2008 20:36:54 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-masked.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JvelS-00042n-9W for freebsd-usb@freebsd.org; Mon, 12 May 2008 16:36:54 -0400 Message-ID: <4828AA64.7060306@netwolves.com> Date: Mon, 12 May 2008 16:36:52 -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: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7932c3d532226bfd9495f7924fc2736912350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Subject: In on control endpoint 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, 12 May 2008 20:36:55 -0000 Hello List, I have spent the afternoon going thru the usb code trying to figure out how to do a read on the control port (endpoint 80 ? ) instead of a write ( endpoint 0 ). I am still trying to emulate what the linux sierra.c usb serial driver does. Any pointers would be greatly appreciated. Thanks, Steve From owner-freebsd-usb@FreeBSD.ORG Mon May 12 23:19:28 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 88EA31065672 for ; Mon, 12 May 2008 23:19:28 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 3B41D8FC1C for ; Mon, 12 May 2008 23:19:28 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so601647ana.13 for ; Mon, 12 May 2008 16:19:27 -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:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=MIqMyjMbBL18qOpIMz4TW3Ad6+uolrLPUS4trPYPsTM=; b=Z5YJsG+nkIvL8qAQ9VoJiNyX6XaAazJeOHJKAX9tfpOetFFUYSnRtiFBNsq8b601+GZh+4wTxxaaW8tzK0i/k+gx840ypPevNO2v8kFlXdru4yTc38eJEKR5AgQrBbRmXy+znzSGBXU7M6HNObqK/OEuOfiIi5vHFBE/Pm4LD3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sBy4La4lmcHoxpAjLA4GfW9mQSw8//wMXB53/GquxeHyNpePhml7QT7n+hGNcRCSpohL5v+YjD57jYuQisSt9tEqJNhvJJ18g/Y/l1hGYovTs0fkH8s6bNyvFTRNcye2N5h9zKjrcPYI2udYVMp43OqU7MVSnFscXclimcaDYwM= Received: by 10.100.91.17 with SMTP id o17mr9068652anb.145.1210634367590; Mon, 12 May 2008 16:19:27 -0700 (PDT) Received: by 10.100.239.17 with HTTP; Mon, 12 May 2008 16:19:27 -0700 (PDT) Message-ID: <539c60b90805121619g3d7afe70yd7e733fea012ae9d@mail.gmail.com> Date: Mon, 12 May 2008 16:19:27 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "Roland Smith" , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org In-Reply-To: <20080512225049.GA35802@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539c60b90804111420kcb73e6do8a20dce574d13864@mail.gmail.com> <20080412213225.GB24224@slackbox.xs4all.nl> <539c60b90804141549u6a138ad9u9c77bbfcbbad0ff3@mail.gmail.com> <20080415175347.GA29045@slackbox.xs4all.nl> <539c60b90804291032v4a7e80d0w205354d4bf1be842@mail.gmail.com> <20080429214640.GA85715@slackbox.xs4all.nl> <539c60b90805121338n439c1a62sab5be6f6ea9485ff@mail.gmail.com> <20080512225049.GA35802@slackbox.xs4all.nl> X-Google-Sender-Auth: c37163105590529a Cc: Subject: Re: umass causes panic on 7 amd64 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 23:19:28 -0000 On Mon, May 12, 2008 at 3:50 PM, Roland Smith wrote: > On Mon, May 12, 2008 at 01:38:51PM -0700, Steve Franks wrote: > > I have added options USB DEBUG to my kernconf file ("DYSTANT"). Here > > is the backtrace: > > > > Steve > > > > [steve@dystant /usr/obj/usr/src/sys/DYSTANT]$ sudo kgdb kernel.debug > > /var/crash/vmcore.6 > > [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 "amd64-marcel-freebsd". > > > > Unread portion of the kernel message buffer: > > umass0: on uhub2 > > umass0: SCSI over (unknown 0x00); quirks = 0x0100 > > panic: /usr/src/sys/dev/usb/umass.c:1453: Unknown proto 0x100 > > It looks like the camera is not returning a wire protocol. > You definitely need to take this to the -usb list. > > > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) > Still shouldn't cause a panic, should it? Steve From owner-freebsd-usb@FreeBSD.ORG Tue May 13 06:32:21 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 5DAF1106567E for ; Tue, 13 May 2008 06:32:21 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id DD7B78FC15 for ; Tue, 13 May 2008 06:32:20 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4D5gUEg074812; Tue, 13 May 2008 07:42:30 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 4D6DCB854; Tue, 13 May 2008 07:42:30 +0200 (CEST) Date: Tue, 13 May 2008 07:42:30 +0200 From: Roland Smith To: Steve Franks Message-ID: <20080513054230.GA47218@slackbox.xs4all.nl> Mail-Followup-To: Steve Franks , freebsd-stable@freebsd.org, freebsd-usb@freebsd.org References: <539c60b90804111420kcb73e6do8a20dce574d13864@mail.gmail.com> <20080412213225.GB24224@slackbox.xs4all.nl> <539c60b90804141549u6a138ad9u9c77bbfcbbad0ff3@mail.gmail.com> <20080415175347.GA29045@slackbox.xs4all.nl> <539c60b90804291032v4a7e80d0w205354d4bf1be842@mail.gmail.com> <20080429214640.GA85715@slackbox.xs4all.nl> <539c60b90805121338n439c1a62sab5be6f6ea9485ff@mail.gmail.com> <20080512225049.GA35802@slackbox.xs4all.nl> <539c60b90805121619g3d7afe70yd7e733fea012ae9d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <539c60b90805121619g3d7afe70yd7e733fea012ae9d@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass causes panic on 7 amd64 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, 13 May 2008 06:32:21 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 12, 2008 at 04:19:27PM -0700, Steve Franks wrote: > On Mon, May 12, 2008 at 3:50 PM, Roland Smith wrote: > > On Mon, May 12, 2008 at 01:38:51PM -0700, Steve Franks wrote: > > > I have added options USB DEBUG to my kernconf file ("DYSTANT"). Here > > > is the backtrace: > > > > > > Steve > > > > > > [steve@dystant /usr/obj/usr/src/sys/DYSTANT]$ sudo kgdb kernel.debug > > > /var/crash/vmcore.6 > > > [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 co= nditions. > > > Type "show copying" to see the conditions. > > > There is absolutely no warranty for GDB. Type "show warranty" for d= etails. > > > This GDB was configured as "amd64-marcel-freebsd". > > > > > > Unread portion of the kernel message buffer: > > > umass0: = on uhub2 > > > umass0: SCSI over (unknown 0x00); quirks =3D 0x0100 > > > panic: /usr/src/sys/dev/usb/umass.c:1453: Unknown proto 0x100 > > > > It looks like the camera is not returning a wire protocol. > > You definitely need to take this to the -usb list. >=20 > Still shouldn't cause a panic, should it? Yes it should. It calls the 'panic' function. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgpKkYACgkQEnfvsMMhpyU9ygCfZG8fjRkSGTZcNqR0osD3l4Qp JqUAn24SBoeKdUSn2Udjn1Hn4/Ov5apJ =6qSA -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- From owner-freebsd-usb@FreeBSD.ORG Tue May 13 15:54: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 1EA2D1065674 for ; Tue, 13 May 2008 15:54:30 +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 A850C8FC18 for ; Tue, 13 May 2008 15:54:29 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8dRco+jkA7T8F7ca9kIWOg==:17 a=6I5d2MoRAAAA:8 a=Zu8uBkpam1UpjitomegA:9 a=FcaVMgPJIOxMMPx4crwA:7 a=8cipVYOkJJ5UXdo3yuqwc8xab20A:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.18] (account mc467741@c2i.net [62.73.248.18] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 933022767; Tue, 13 May 2008 17:54:27 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 13 May 2008 17:55:53 +0200 User-Agent: KMail/1.9.7 References: <4828AA64.7060306@netwolves.com> In-Reply-To: <4828AA64.7060306@netwolves.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805131755.54080.hselasky@c2i.net> Cc: Subject: Re: In on control endpoint 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, 13 May 2008 15:54:30 -0000 On Monday 12 May 2008, Steve Clark wrote: > Hello List, > > I have spent the afternoon going thru the usb code trying to figure out how > to do a read on the control port (endpoint 80 ? ) instead of a write ( > endpoint 0 ). I am still trying to emulate what the linux sierra.c usb > serial driver does. > > Any pointers would be greatly appreciated. > > Thanks, > 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, All transactions on the control endpoint (0) consist of three parts: SETUP DATA, if any STATUS The two most common variants are: 1) SETUP DATA OUT STATUS IN 2) SETUP DATA IN STATUS OUT Rules: The MSB of the first byte in the SETUP decides wheter the data is OUT (0x00) or IN (0x80). IN and OUT is relative to the USB Host. See: usbd_do_request and /sys/dev/usb/usb.h typedef struct { uByte bmRequestType; uByte bRequest; uWord wValue; uWord wIndex; uWord wLength; uByte bData[0]; } __packed usb_device_request_t; #define UT_WRITE 0x00 #define UT_READ 0x80 #define UT_STANDARD 0x00 #define UT_CLASS 0x20 #define UT_VENDOR 0x40 #define UT_DEVICE 0x00 #define UT_INTERFACE 0x01 #define UT_ENDPOINT 0x02 #define UT_OTHER 0x03 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 13 16:50:59 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 D499B106567B for ; Tue, 13 May 2008 16:50:59 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-curtail.atl.sa.earthlink.net (elasmtp-curtail.atl.sa.earthlink.net [209.86.89.64]) by mx1.freebsd.org (Postfix) with ESMTP id 6580E8FC2B for ; Tue, 13 May 2008 16:50:58 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-curtail.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JvxiM-0003Tm-46; Tue, 13 May 2008 12:50:58 -0400 Message-ID: <4829C6EE.8040404@netwolves.com> Date: Tue, 13 May 2008 12:50:54 -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: <4828AA64.7060306@netwolves.com> <200805131755.54080.hselasky@c2i.net> In-Reply-To: <200805131755.54080.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec79d2ffa0bf629b0d2e8e669053e298e275350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 13 May 2008 16:51:00 -0000 Hans Petter Selasky wrote: > On Monday 12 May 2008, Steve Clark wrote: > >>Hello List, >> >>I have spent the afternoon going thru the usb code trying to figure out how >>to do a read on the control port (endpoint 80 ? ) instead of a write ( >>endpoint 0 ). I am still trying to emulate what the linux sierra.c usb >>serial driver does. >> >>Any pointers would be greatly appreciated. >> >>Thanks, >>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, > > All transactions on the control endpoint (0) consist of three parts: > > SETUP > DATA, if any > STATUS > > The two most common variants are: > > 1) SETUP > DATA OUT > STATUS IN > > 2) SETUP > DATA IN > STATUS OUT > > Rules: > > The MSB of the first byte in the SETUP decides wheter the data is OUT (0x00) > or IN (0x80). IN and OUT is relative to the USB Host. > > See: usbd_do_request and /sys/dev/usb/usb.h > > typedef struct { > uByte bmRequestType; > uByte bRequest; > uWord wValue; > uWord wIndex; > uWord wLength; > uByte bData[0]; > } __packed usb_device_request_t; > > #define UT_WRITE 0x00 > #define UT_READ 0x80 > #define UT_STANDARD 0x00 > #define UT_CLASS 0x20 > #define UT_VENDOR 0x40 > #define UT_DEVICE 0x00 > #define UT_INTERFACE 0x01 > #define UT_ENDPOINT 0x02 > #define UT_OTHER 0x03 > > --HPS > > Hi Hans, Thanks so much - I have just been reviewing the usb spec and had about determined as much. So I need to have UT_READ or'ed in with my bmRequestType as I understand it. Regards, Steve From owner-freebsd-usb@FreeBSD.ORG Wed May 14 15:07:37 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 1FE0A1065671 for ; Wed, 14 May 2008 15:07:37 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-kukur.atl.sa.earthlink.net (elasmtp-kukur.atl.sa.earthlink.net [209.86.89.65]) by mx1.freebsd.org (Postfix) with ESMTP id D64DF8FC15 for ; Wed, 14 May 2008 15:07:36 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-kukur.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JwIZs-0002FN-0a; Wed, 14 May 2008 11:07:36 -0400 Message-ID: <482B0036.5060106@netwolves.com> Date: Wed, 14 May 2008 11:07:34 -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: <4828AA64.7060306@netwolves.com> <200805131755.54080.hselasky@c2i.net> In-Reply-To: <200805131755.54080.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec79f362f154a1caa277ed6a0712b19d9ec9350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 15:07:37 -0000 Hans Petter Selasky wrote: > On Monday 12 May 2008, Steve Clark wrote: > >>Hello List, >> >>I have spent the afternoon going thru the usb code trying to figure out how >>to do a read on the control port (endpoint 80 ? ) instead of a write ( >>endpoint 0 ). I am still trying to emulate what the linux sierra.c usb >>serial driver does. >> >>Any pointers would be greatly appreciated. >> >>Thanks, >>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, > > All transactions on the control endpoint (0) consist of three parts: > > SETUP > DATA, if any > STATUS > > The two most common variants are: > > 1) SETUP > DATA OUT > STATUS IN > > 2) SETUP > DATA IN > STATUS OUT > > Rules: > > The MSB of the first byte in the SETUP decides wheter the data is OUT (0x00) > or IN (0x80). IN and OUT is relative to the USB Host. > > See: usbd_do_request and /sys/dev/usb/usb.h > > typedef struct { > uByte bmRequestType; > uByte bRequest; > uWord wValue; > uWord wIndex; > uWord wLength; > uByte bData[0]; > } __packed usb_device_request_t; > > #define UT_WRITE 0x00 > #define UT_READ 0x80 > #define UT_STANDARD 0x00 > #define UT_CLASS 0x20 > #define UT_VENDOR 0x40 > #define UT_DEVICE 0x00 > #define UT_INTERFACE 0x01 > #define UT_ENDPOINT 0x02 > #define UT_OTHER 0x03 > > --HPS > > Hi Hans, I have decided to try your new usb stack. I am running on FreeBSD 6.1. The device I am trying to get working is a sierra wireless usb 597 EVDO modem. It is also has a slot for a micro-sd memory card, plus when it is first powered up it doesn't look like a modem it looks like a different device that has both the umass device plus a cdrom device that has windows software drivers on it. In this mode it has a VID of 0x1199 and a PID of 0xfff, after a message on the control pipe it changes its identity to VID = 0x1199, PID=0x0023. What I had done previously with the original 6.1 usba.c was in the match code look for the 1199:fff and then in the attach code send a message on the control pipe to set it in modem mode like the code below: { ubsa_cfg_request( sc, 0x0b, 1); ucom->sc_dying = 1; goto error; } I tried to do something similar in the usba.c that is part of your new code as follows: { ubsa_cfg_request( sc, 0x0b, 1); goto detach; } but I immediately get a panic: Fatal trap 12 page fault in kernel mode ... Stopped at usbd_config_td_is_gone bt gives: ucom_cfg_is_gone ubsa_cfg_request ubsa_attach ... Which looks like it doesn't like the device disappearing when it switched modes. Any ideas how this should be handled? Or where I should be trying to switch the device into modem mode? Thanks, Steve From owner-freebsd-usb@FreeBSD.ORG Wed May 14 15:38: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 73C061065671 for ; Wed, 14 May 2008 15:38:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id CDD458FC13 for ; Wed, 14 May 2008 15:38:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8dRco+jkA7T8F7ca9kIWOg==:17 a=6I5d2MoRAAAA:8 a=4rvDYiOYwetIWVFos50A:9 a=gUa60wpn3jr8toZYrhgA:7 a=AL3XWHFun27athkBXDeDoQcSfrEA:4 a=SV7veod9ZcQA:10 a=50e4U0PicR4A:10 Received: from [62.73.248.18] (account mc467741@c2i.net [62.73.248.18] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 765374283; Wed, 14 May 2008 17:38:21 +0200 From: Hans Petter Selasky To: Steve Clark Date: Wed, 14 May 2008 17:39:47 +0200 User-Agent: KMail/1.9.7 References: <4828AA64.7060306@netwolves.com> <200805131755.54080.hselasky@c2i.net> <482B0036.5060106@netwolves.com> In-Reply-To: <482B0036.5060106@netwolves.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805141739.48185.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 15:38:25 -0000 Hi Steve, Can you send me a diff between the original file and the new one so that I can see where you inserted that code ? I suppose you inserted it at the wrong location. --HPS On Wednesday 14 May 2008, Steve Clark wrote: > Hans Petter Selasky wrote: > > On Monday 12 May 2008, Steve Clark wrote: > >>Hello List, > >> > >>I have spent the afternoon going thru the usb code trying to figure out > >> how to do a read on the control port (endpoint 80 ? ) instead of a write > >> ( endpoint 0 ). I am still trying to emulate what the linux sierra.c usb > >> serial driver does. > >> > >>Any pointers would be greatly appreciated. > >> > >>Thanks, > >>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, > > > > All transactions on the control endpoint (0) consist of three parts: > > > > SETUP > > DATA, if any > > STATUS > > > > The two most common variants are: > > > > 1) SETUP > > DATA OUT > > STATUS IN > > > > 2) SETUP > > DATA IN > > STATUS OUT > > > > Rules: > > > > The MSB of the first byte in the SETUP decides wheter the data is OUT > > (0x00) or IN (0x80). IN and OUT is relative to the USB Host. > > > > See: usbd_do_request and /sys/dev/usb/usb.h > > > > typedef struct { > > uByte bmRequestType; > > uByte bRequest; > > uWord wValue; > > uWord wIndex; > > uWord wLength; > > uByte bData[0]; > > } __packed usb_device_request_t; > > > > #define UT_WRITE 0x00 > > #define UT_READ 0x80 > > #define UT_STANDARD 0x00 > > #define UT_CLASS 0x20 > > #define UT_VENDOR 0x40 > > #define UT_DEVICE 0x00 > > #define UT_INTERFACE 0x01 > > #define UT_ENDPOINT 0x02 > > #define UT_OTHER 0x03 > > > > --HPS > > Hi Hans, > > I have decided to try your new usb stack. I am running on FreeBSD 6.1. The > device I am trying to get working is a sierra wireless usb 597 EVDO modem. > It is also has a slot for a micro-sd memory card, plus when it is first > powered up it doesn't look like a modem it looks like a different device > that has both the umass device plus a cdrom device that has windows > software drivers on it. In this mode it has a VID of 0x1199 and a PID of > 0xfff, after a message on the control pipe it changes its identity to VID = > 0x1199, PID=0x0023. > > What I had done previously with the original 6.1 usba.c was in the match > code look for the 1199:fff and then in the attach code send a message on > the control pipe to set it in modem mode like the code below: { > ubsa_cfg_request( sc, 0x0b, 1); > ucom->sc_dying = 1; > goto error; > } > > I tried to do something similar in the usba.c that is part of your new code > as follows: { > ubsa_cfg_request( sc, 0x0b, 1); > goto detach; > } > > but I immediately get a panic: > Fatal trap 12 page fault in kernel mode > ... > Stopped at usbd_config_td_is_gone > bt gives: > ucom_cfg_is_gone > ubsa_cfg_request > ubsa_attach > ... > > Which looks like it doesn't like the device disappearing when it switched > modes. Any ideas how this should be handled? Or where I should be trying to > switch the device into modem mode? > > Thanks, > Steve From owner-freebsd-usb@FreeBSD.ORG Wed May 14 17:16:29 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 97099106564A for ; Wed, 14 May 2008 17:16:29 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-mealy.atl.sa.earthlink.net (elasmtp-mealy.atl.sa.earthlink.net [209.86.89.69]) by mx1.freebsd.org (Postfix) with ESMTP id 581828FC0C for ; Wed, 14 May 2008 17:16:29 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-mealy.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JwKaa-0003oR-Fn; Wed, 14 May 2008 13:16:28 -0400 Message-ID: <482B1E6B.3070309@netwolves.com> Date: Wed, 14 May 2008 13:16:27 -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: <4828AA64.7060306@netwolves.com> <200805131755.54080.hselasky@c2i.net> <482B0036.5060106@netwolves.com> <200805141739.48185.hselasky@c2i.net> In-Reply-To: <200805141739.48185.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7925827fbb747dea386ad52b4890667a19350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 17:16:29 -0000 Hans Petter Selasky wrote: > Hi Steve, > > Can you send me a diff between the original file and the new one so that I can > see where you inserted that code ? I suppose you inserted it at the wrong > location. > > --HPS > <....snip....> >> >>I have decided to try your new usb stack. I am running on FreeBSD 6.1. The >>device I am trying to get working is a sierra wireless usb 597 EVDO modem. >>It is also has a slot for a micro-sd memory card, plus when it is first >>powered up it doesn't look like a modem it looks like a different device >>that has both the umass device plus a cdrom device that has windows >>software drivers on it. In this mode it has a VID of 0x1199 and a PID of >>0xfff, after a message on the control pipe it changes its identity to VID = >>0x1199, PID=0x0023. >> >>What I had done previously with the original 6.1 usba.c was in the match >>code look for the 1199:fff and then in the attach code send a message on >>the control pipe to set it in modem mode like the code below: { >> ubsa_cfg_request( sc, 0x0b, 1); >> ucom->sc_dying = 1; >> goto error; >> } >> >>I tried to do something similar in the usba.c that is part of your new code >>as follows: { >> ubsa_cfg_request( sc, 0x0b, 1); >> goto detach; >> } >> >>but I immediately get a panic: >>Fatal trap 12 page fault in kernel mode >>... >>Stopped at usbd_config_td_is_gone >>bt gives: >>ucom_cfg_is_gone >>ubsa_cfg_request >>ubsa_attach >>... >> >>Which looks like it doesn't like the device disappearing when it switched >>modes. Any ideas how this should be handled? Or where I should be trying to >>switch the device into modem mode? >> >>Thanks, >>Steve > > > > Hi Hans, Below is the diff you asked for - thanks for repsonding. --- ubsa.c.orig Wed May 14 13:10:19 2008 +++ ubsa.c Wed May 14 11:13:26 2008 @@ -295,6 +295,9 @@ {USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE}, /* Qualcomm, Inc. ZTE CDMA */ {USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM}, + /* Sierra Wireless */ + { USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_COMPASS_597 }, + { USB_VENDOR_SIERRA, 0xfff }, {0, 0} }; @@ -322,7 +325,7 @@ { struct usb_attach_arg *uaa = device_get_ivars(dev); const struct ubsa_product *up = ubsa_products; - + printf("ubsa:vendor=%x,product=%x\n",uaa->vendor,uaa->product); if (uaa->usb_mode != USB_MODE_HOST) { return (UMATCH_NONE); } @@ -332,10 +335,14 @@ while (up->vendor) { if ((up->vendor == uaa->vendor) && (up->product == uaa->product)) { + printf("ubsa:MATCH\n"); + return (UMATCH_VENDOR_PRODUCT); } up++; } + printf("ubsa:NO_MATCH\n"); + return (UMATCH_NONE); } @@ -356,6 +363,12 @@ usbd_set_device_desc(dev); sc->sc_udev = uaa->device; + + if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) + { + ubsa_cfg_request( sc, 0x0b, 1 ); + goto detach; + } /* configure the device */ From owner-freebsd-usb@FreeBSD.ORG Wed May 14 19:45: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 4B8971065672 for ; Wed, 14 May 2008 19:45:52 +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 DCC738FC15 for ; Wed, 14 May 2008 19:45:51 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8dRco+jkA7T8F7ca9kIWOg==:17 a=bNV2zpzOUxYe98hsu-IA:9 a=vGs_uehHaUvn2AitxfihcOWoVdoA:4 a=50e4U0PicR4A:10 Received: from [62.73.248.18] (account mc467741@c2i.net [62.73.248.18] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 935657992; Wed, 14 May 2008 21:45:50 +0200 From: Hans Petter Selasky To: Steve Clark Date: Wed, 14 May 2008 21:47:03 +0200 User-Agent: KMail/1.9.7 References: <4828AA64.7060306@netwolves.com> <200805141739.48185.hselasky@c2i.net> <482B1E6B.3070309@netwolves.com> In-Reply-To: <482B1E6B.3070309@netwolves.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805142147.06261.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 19:45:52 -0000 Hi Steve, Try this: static void ubsa_sierra_unlock(struct usbd_device *udev) { usb_device_request_t req; req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = 0x0b; USETW(req.wValue, 0x0001); req.wIndex[0] = 0; req.wIndex[1] = 0; USETW(req.wLength, 0); if (usbd_do_request_flags (udev, NULL, &req, NULL, 0, NULL, 1000)) { /* ignore any errors */ } return; } static int ubsa_probe(device_t dev) { struct usb_attach_arg *uaa = device_get_ivars(dev); const struct ubsa_product *up = ubsa_products; if (uaa->usb_mode != USB_MODE_HOST) { return (UMATCH_NONE); } if (uaa->iface) { return (UMATCH_NONE); } if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) { ubsa_sierra_unlock(uaa->device); return (UMATCH_NONE); } while (up->vendor) { if ((up->vendor == uaa->vendor) && (up->product == uaa->product)) { return (UMATCH_VENDOR_PRODUCT); } up++; } return (UMATCH_NONE); } If it works, maybe you can send a complete patch including those entries you added to usbdevs ? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 14 19:53:07 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 4375F106564A for ; Wed, 14 May 2008 19:53:07 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) by mx1.freebsd.org (Postfix) with ESMTP id 010C68FC19 for ; Wed, 14 May 2008 19:53:06 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-masked.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JwN29-0003U7-4O; Wed, 14 May 2008 15:53:05 -0400 Message-ID: <482B431F.5050901@netwolves.com> Date: Wed, 14 May 2008 15:53:03 -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: Steve Clark References: <4828AA64.7060306@netwolves.com> <200805131755.54080.hselasky@c2i.net> <482B0036.5060106@netwolves.com> <200805141739.48185.hselasky@c2i.net> <482B1E6B.3070309@netwolves.com> In-Reply-To: <482B1E6B.3070309@netwolves.com> Content-Type: multipart/mixed; boundary="------------090505070209010307090106" X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec796a7a4f6873947fba9a6b8d77107a4d47350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 19:53:07 -0000 This is a multi-part message in MIME format. --------------090505070209010307090106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Steve Clark wrote: > Hans Petter Selasky wrote: > >>Hi Steve, >> >>Can you send me a diff between the original file and the new one so that I can >>see where you inserted that code ? I suppose you inserted it at the wrong >>location. >> >>--HPS >> > > <....snip....> > >>>I have decided to try your new usb stack. I am running on FreeBSD 6.1. The >>>device I am trying to get working is a sierra wireless usb 597 EVDO modem. >>>It is also has a slot for a micro-sd memory card, plus when it is first >>>powered up it doesn't look like a modem it looks like a different device >>>that has both the umass device plus a cdrom device that has windows >>>software drivers on it. In this mode it has a VID of 0x1199 and a PID of >>>0xfff, after a message on the control pipe it changes its identity to VID = >>>0x1199, PID=0x0023. >>> >>>What I had done previously with the original 6.1 usba.c was in the match >>>code look for the 1199:fff and then in the attach code send a message on >>>the control pipe to set it in modem mode like the code below: { >>> ubsa_cfg_request( sc, 0x0b, 1); >>> ucom->sc_dying = 1; >>> goto error; >>> } >>> >>>I tried to do something similar in the usba.c that is part of your new code >>>as follows: { >>> ubsa_cfg_request( sc, 0x0b, 1); >>> goto detach; >>> } >>> >>>but I immediately get a panic: >>>Fatal trap 12 page fault in kernel mode >>>... >>>Stopped at usbd_config_td_is_gone >>>bt gives: >>>ucom_cfg_is_gone >>>ubsa_cfg_request >>>ubsa_attach >>>... >>> >>>Which looks like it doesn't like the device disappearing when it switched >>>modes. Any ideas how this should be handled? Or where I should be trying to >>>switch the device into modem mode? >>> >>>Thanks, >>>Steve >> >> >> >> > Hi Hans, > > Below is the diff you asked for - thanks for repsonding. > > > --- ubsa.c.orig Wed May 14 13:10:19 2008 > +++ ubsa.c Wed May 14 11:13:26 2008 > @@ -295,6 +295,9 @@ > {USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE}, > /* Qualcomm, Inc. ZTE CDMA */ > {USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM}, > + /* Sierra Wireless */ > + { USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_COMPASS_597 }, > + { USB_VENDOR_SIERRA, 0xfff }, > {0, 0} > }; > > @@ -322,7 +325,7 @@ > { > struct usb_attach_arg *uaa = device_get_ivars(dev); > const struct ubsa_product *up = ubsa_products; > - > + printf("ubsa:vendor=%x,product=%x\n",uaa->vendor,uaa->product); > if (uaa->usb_mode != USB_MODE_HOST) { > return (UMATCH_NONE); > } > @@ -332,10 +335,14 @@ > while (up->vendor) { > if ((up->vendor == uaa->vendor) && > (up->product == uaa->product)) { > + printf("ubsa:MATCH\n"); > + > return (UMATCH_VENDOR_PRODUCT); > } > up++; > } > + printf("ubsa:NO_MATCH\n"); > + > return (UMATCH_NONE); > } > > @@ -356,6 +363,12 @@ > usbd_set_device_desc(dev); > > sc->sc_udev = uaa->device; > + > + if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) > + { > + ubsa_cfg_request( sc, 0x0b, 1 ); > + goto detach; > + } > > /* configure the device */ > > _______________________________________________ > 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 Hans, I tried moving the ubsa_cfg_reguest() to various places in the ubsa_attach routine. When I moved it after the call: error = usbd_transfer_setup(uaa->device, &(sc->sc_iface_index), sc->sc_xfer, ubsa_config, UBSA_N_TRANSFER, sc, &Giant); if (error) { DPRINTF(0, "could not allocate all pipes\n"); goto detach; } The error message "could not allocate all pipes" is printed and the ubsa_attach function exits. if I put before the if (error) it panics . Attached is a lsusb -vvv I got from a linux system before the device is put in the modem mode. sierra_tru.txt. I had previously posted an lsusb -vvv from the device after it had been placed in modem mode. when it is in modem mode it looks like a composite device? It has the modem which has 3 serial ports, and a UMASS device. Thanks again for taking an interest. Steve --------------090505070209010307090106 Content-Type: text/plain; name="sierra_tru.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sierra_tru.txt" Bus 002 Device 002: ID 1199:0fff Sierra Wireless, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1199 Sierra Wireless, Inc. idProduct 0x0fff bcdDevice 0.00 iManufacturer 1 Sierra Wireless iProduct 2 USB MMC Storage iSerial 3 SWOC22905731 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x86 EP 6 IN 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 0x07 EP 7 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 --------------090505070209010307090106-- From owner-freebsd-usb@FreeBSD.ORG Wed May 14 20:16: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 A0CC5106567C for ; Wed, 14 May 2008 20:16:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by mx1.freebsd.org (Postfix) with ESMTP id 79E508FC34 for ; Wed, 14 May 2008 20:16:15 +0000 (UTC) (envelope-from sclark@netwolves.com) Received: from [205.201.149.100] (helo=[10.0.129.1]) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JwNOY-0002t8-VY; Wed, 14 May 2008 16:16:15 -0400 Message-ID: <482B488D.1020704@netwolves.com> Date: Wed, 14 May 2008 16:16: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: <4828AA64.7060306@netwolves.com> <200805141739.48185.hselasky@c2i.net> <482B1E6B.3070309@netwolves.com> <200805142147.06261.hselasky@c2i.net> In-Reply-To: <200805142147.06261.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec7992e8c6e138d65aac04b118c606c94d08350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 205.201.149.100 Cc: freebsd-usb@freebsd.org Subject: Re: In on control endpoint 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, 14 May 2008 20:16:15 -0000 Hans Petter Selasky wrote: > Hi Steve, > > Try this: > > static void > ubsa_sierra_unlock(struct usbd_device *udev) > { > usb_device_request_t req; > > req.bmRequestType = UT_WRITE_VENDOR_DEVICE; > req.bRequest = 0x0b; > USETW(req.wValue, 0x0001); > req.wIndex[0] = 0; > req.wIndex[1] = 0; > USETW(req.wLength, 0); > > if (usbd_do_request_flags > (udev, NULL, &req, NULL, 0, NULL, 1000)) { > /* ignore any errors */ > } > return; > } > > static int > ubsa_probe(device_t dev) > { > struct usb_attach_arg *uaa = device_get_ivars(dev); > const struct ubsa_product *up = ubsa_products; > > if (uaa->usb_mode != USB_MODE_HOST) { > return (UMATCH_NONE); > } > if (uaa->iface) { > return (UMATCH_NONE); > } > if ( uaa->vendor == USB_VENDOR_SIERRA && uaa->product == 0xfff ) > { > ubsa_sierra_unlock(uaa->device); > return (UMATCH_NONE); > } > while (up->vendor) { > if ((up->vendor == uaa->vendor) && > (up->product == uaa->product)) { > return (UMATCH_VENDOR_PRODUCT); > } > up++; > } > return (UMATCH_NONE); > } > > If it works, maybe you can send a complete patch including those entries you > added to usbdevs ? > > --HPS > > Hi Hans, I am using the modem right now!!!! As soon as I am satisfied that it is working reliably I'll gladly send along the patches. Thanks again, Steve From owner-freebsd-usb@FreeBSD.ORG Wed May 14 21:08:26 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 D22E0106566B; Wed, 14 May 2008 21:08:26 +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 C7DF18FC18; Wed, 14 May 2008 21:08:26 +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 m4EL8QkR016784; Wed, 14 May 2008 21:08:26 GMT (envelope-from vwe@freefall.freebsd.org) Received: (from vwe@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4EL8Qp0016780; Wed, 14 May 2008 21:08:26 GMT (envelope-from vwe) Date: Wed, 14 May 2008 21:08:26 GMT Message-Id: <200805142108.m4EL8Qp0016780@freefall.freebsd.org> To: puga@mauibuilt.com, vwe@FreeBSD.org, freebsd-usb@FreeBSD.org, vwe@FreeBSD.org From: vwe@FreeBSD.org Cc: Subject: Re: usb/116898: [panic] sleeping thread while using USB hard drive to transfer lots of data 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, 14 May 2008 21:08:26 -0000 Synopsis: [panic] sleeping thread while using USB hard drive to transfer lots of data State-Changed-From-To: feedback->suspended State-Changed-By: vwe State-Changed-When: Wed May 14 21:06:42 UTC 2008 State-Changed-Why: unfortunately the required and requested information (backtrace) hasn't yet been provided. Without that information there's really no chance to have someone working on this. suspend this for now until either the required information will be posted or it will be closed within a reasonable timeframe. Responsible-Changed-From-To: freebsd-usb->vwe Responsible-Changed-By: vwe Responsible-Changed-When: Wed May 14 21:06:42 UTC 2008 Responsible-Changed-Why: track http://www.freebsd.org/cgi/query-pr.cgi?pr=116898 From owner-freebsd-usb@FreeBSD.ORG Wed May 14 21:08:29 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 51FD8106566C for ; Wed, 14 May 2008 21:08:29 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 37D888FC15 for ; Wed, 14 May 2008 21:08:29 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 7561 invoked from network); 14 May 2008 20:41:49 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 14 May 2008 20:41:49 -0000 Message-ID: <482B4C79.3030100@telenix.org> Date: Wed, 14 May 2008 16:32:57 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD USB List X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: USB HID parser 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, 14 May 2008 21:08:29 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I wrote a parser, and I don't know if anyone might be interested in it. I didn't write it as something to be used in a driver ... I wrote it as a learning aid, for someone who's trying to learn that horrible USB HID spec. It's quite verbose, most especially if you use it in GUI mode (I wrote it in Python, and it's got a integral Tkinter GUI. In Python mode, it's got help info available on every output it has, and displays the data it's parsing in a way taht makes it fairly easy to have the USB HID parser on your knee, while you slowly step the parser thru the input data. The input data, I originally wrote it to use the output of Kai Wang's USB HID parser/descriptor dumper, but it's more verbose, and (like I said) is perfectly set up to let you follow the parsing, item by item, from the orignal hex to the output. The Non-GUI is somewhat less verbose, but this is the first time I;ve let it be seen, and if you think you'd like to see it changed, I'm not against adding a special mode for a small group of users, even just one user if it seems like a likely-enough suggestion. I called it parsetool. I know that's a fairly dumb name )(there are one or two projects already oout with that name), come up with a better one, and I'll gladly use it (if it's not overly silly). Write me if you want it, I'll mail it to you, the tarball is fairly small (even with all those tables, it's only about 25K compressed) and installation couldn't really get any easier, just make sure you have a working python of 2.3 or later, with a working Tkinter. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIK0x5z62J6PPcoOkRAtcxAJ9YynzSQVfHDl2GujCbSSsjjqAdkQCZARak RuqJ8cD5MOEnN60VoJoq4u8= =h/zW -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Wed May 14 21:31: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 E7332106567C for ; Wed, 14 May 2008 21:31:17 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 87F048FC0C for ; Wed, 14 May 2008 21:31:17 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from fox.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 14 May 2008 23:16:30 +0200 id 0002E00A.482B56AE.0000A503 From: Milan Obuch To: freebsd-usb@freebsd.org Date: Wed, 14 May 2008 23:21:07 +0200 User-Agent: KMail/1.9.7 References: <482B4C79.3030100@telenix.org> In-Reply-To: <482B4C79.3030100@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805142321.08246.freebsd-usb@dino.sk> Subject: Re: USB HID parser 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, 14 May 2008 21:31:18 -0000 On Wednesday 14 May 2008, Chuck Robey wrote: > I wrote a parser, and I don't know if anyone might be interested in it. I > didn't write it as something to be used in a driver ... I wrote it as a > learning aid, for someone who's trying to learn that horrible USB HID spec. > It's quite verbose, most especially if you use it in GUI mode (I wrote it > in Python, and it's got a integral Tkinter GUI. In Python mode, it's got > help info available on every output it has, and displays the data it's > parsing in a way taht makes it fairly easy to have the USB HID parser on > your knee, while you slowly step the parser thru the input data. > > The input data, I originally wrote it to use the output of Kai Wang's USB > HID parser/descriptor dumper, but it's more verbose, and (like I said) is > perfectly set up to let you follow the parsing, item by item, from the > orignal hex to the output. > > The Non-GUI is somewhat less verbose, but this is the first time I;ve let > it be seen, and if you think you'd like to see it changed, I'm not against > adding a special mode for a small group of users, even just one user if it > seems like a likely-enough suggestion. > > I called it parsetool. I know that's a fairly dumb name )(there are one or > two projects already oout with that name), come up with a better one, and > I'll gladly use it (if it's not overly silly). > > Write me if you want it, I'll mail it to you, the tarball is fairly small > (even with all those tables, it's only about 25K compressed) and > installation couldn't really get any easier, just make sure you have a > working python of 2.3 or later, with a working Tkinter. > Could you eventually make a port from it and submit it this way? I think it could be usefull for many... Regards, Milan -- Address this mail is sent from is used only for this mailing list. Do not send any messages to it directly as a response, reply only to mailing list. For mail to me personally, use milan in address instead. From owner-freebsd-usb@FreeBSD.ORG Wed May 14 23:50:02 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 3140B1065675 for ; Wed, 14 May 2008 23:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1211D8FC20 for ; Wed, 14 May 2008 23:50:02 +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 m4ENo1Dr074463 for ; Wed, 14 May 2008 23:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4ENo18L074462; Wed, 14 May 2008 23:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 14 May 2008 23:50:01 GMT Resent-Message-Id: <200805142350.m4ENo18L074462@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, Aragon Gouveia Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94429106566C for ; Wed, 14 May 2008 23:41:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8738E8FC2E for ; Wed, 14 May 2008 23:41:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4ENePMC039751 for ; Wed, 14 May 2008 23:40:25 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4ENePxR039750; Wed, 14 May 2008 23:40:25 GMT (envelope-from nobody) Message-Id: <200805142340.m4ENePxR039750@www.freebsd.org> Date: Wed, 14 May 2008 23:40:25 GMT From: Aragon Gouveia To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/123690: Panic on USB device insertion when usb loaded as a module X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2008 23:50:02 -0000 >Number: 123690 >Category: usb >Synopsis: Panic on USB device insertion when usb loaded as a module >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 14 23:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Aragon Gouveia >Release: 7.0-STABLE >Organization: >Environment: FreeBSD igor.geek.sh 7.0-STABLE FreeBSD 7.0-STABLE #4: Thu May 15 00:09:56 SAST 2008 root@igor.geek.sh:/usr/obj/usr/src/sys/IGOR amd64 >Description: If a USB device is inserted into my system after it has booted up, the kernel panics. USB devices that are inserted before bootup do not cause a panic. This ONLY occurs if usb is loaded via a kernel module (in my case from loader.conf). If I had devices ehci, uhci, and usb to my kernel config then the problem goes away. Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x290 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff8061b1e5 stack pointer = 0x10:0xffffffffaad95dd0 frame pointer = 0x10:0xffffffffaad95e10 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 31 (usb3) trap number = 12 panic: page fault I have tried to get something that can be debugged, but when this crash occurs no dump gets written. The system completely hangs at this point and requires a hard reset. If I enable KDB/DDB in the kernel then the problem goes away! I am not sure how to debug this further - open to suggestions. My kernel config: ident IGOR maxusers 256 makeoptions DEBUG=-g options SCHED_ULE options COMPAT_43TTY options COMPAT_IA32 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options COMPAT_FREEBSD6 options SYSVSHM options SYSVMSG options SYSVSEM cpu HAMMER device acpi options SMP options PREEMPTION options ADAPTIVE_GIANT options STOP_NMI options INET device loop device ether device bpf options FFS options SOFTUPDATES options UFS_DIRHASH options UFS_GJOURNAL device random device pty device pci device atkbdc device atkbd options KBD_INSTALL_CDEV device kbdmux device psm device vga device sc options SC_HISTORY_SIZE=1000 device ata device atadisk device atapicd options ATA_STATIC_ID #Static device numbering options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options CONSPEED=115200 #device uhci #device ehci #device usb dmesg: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-STABLE #4: Thu May 15 00:09:56 SAST 2008 root@igor.geek.sh:/usr/obj/usr/src/sys/IGOR Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (3185.32-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 Features=0xbfebfbff Features2=0x8e3fd> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 8509706240 (8115 MB) avail memory = 8224993280 (7843 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 est0: on cpu0 est0: Setting 3163 MHz p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est1: Setting 3163 MHz p4tcc1: on cpu1 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x3000-0x30ff mem 0xd0000000-0xdfffffff,0xe0200000-0xe020ffff irq 16 at device 0.0 on pci1 pci1: at device 0.1 (no driver attached) pci0: at device 3.0 (no driver attached) em0: port 0x4400-0x441f mem 0xe0300000-0xe031ffff,0xe0324000-0xe0324fff irq 20 at device 25.0 on pci0 em0: Using MSI interrupt em0: Ethernet address: 00:1c:c0:30:9b:91 em0: [FILTER] uhci0: port 0x40e0-0x40ff irq 18 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x40c0-0x40df irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x40a0-0x40bf irq 17 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xe0325c00-0xe0325fff irq 17 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pci0: at device 27.0 (no driver attached) pcib2: at device 28.0 on pci0 pci2: on pcib2 pcib3: at device 28.1 on pci0 pci3: on pcib3 atapci0: port 0x2018-0x201f,0x2024-0x2027,0x2010-0x2017,0x2020-0x2023,0x2000-0x200f mem 0xe0100000-0xe01001ff irq 17 at device 0.0 on pci3 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] pcib4: at device 28.2 on pci0 pci4: on pcib4 pcib5: at device 28.3 on pci0 pci5: on pcib5 pcib6: at device 28.4 on pci0 pci6: on pcib6 uhci3: port 0x4080-0x409f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0x4060-0x407f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0x4040-0x405f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xe0325800-0xe0325bff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered pcib7: at device 30.0 on pci0 pci7: on pcib7 pci7: at device 1.0 (no driver attached) pci7: at device 3.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x4428-0x442f,0x4434-0x4437,0x4420-0x4427,0x4430-0x4433,0x4020-0x403f mem 0xe0325000-0xe03257ff irq 21 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.20 controller with 6 ports detected ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: [ITHREAD] pci0: at device 31.3 (no driver attached) orm0: at iomem 0xd2800-0xd3fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd0: on uhub0 kbd2 at ukbd0 ums0: on uhub2 ums0: 5 buttons and Z dir. ugen0: on uhub6 Timecounters tick every 1.000 msec acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR at ata2-master UDMA33 ad6: 715404MB at ata3-master SATA300 ad8: 715404MB at ata4-master SATA300 SMP: AP CPU #1 Launched! GEOM_MIRROR: Device mirror/gm0 launched (1/2). GEOM_MIRROR: Device gm0: rebuilding provider ad6s2. Trying to mount root from ufs:/dev/mirror/gm0a >How-To-Repeat: Load usb drivers as kernel module, boot up, insert usb device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu May 15 01:19:38 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 503C51065677 for ; Thu, 15 May 2008 01:19:38 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3196E8FC0A for ; Thu, 15 May 2008 01:19:38 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 13088 invoked from network); 15 May 2008 01:19:37 -0000 Received: from april.chuckr.org (HELO chuckr.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 May 2008 01:19:37 -0000 Message-ID: <482B8D96.2090409@telenix.org> Date: Wed, 14 May 2008 21:10:46 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Milan Obuch References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> In-Reply-To: <200805142321.08246.freebsd-usb@dino.sk> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB HID parser 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, 15 May 2008 01:19:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Milan Obuch wrote: > On Wednesday 14 May 2008, Chuck Robey wrote: >> I wrote a parser, and I don't know if anyone might be interested in it. I >> didn't write it as something to be used in a driver ... I wrote it as a >> learning aid, for someone who's trying to learn that horrible USB HID spec. >> It's quite verbose, most especially if you use it in GUI mode (I wrote it >> in Python, and it's got a integral Tkinter GUI. In Python mode, it's got >> help info available on every output it has, and displays the data it's >> parsing in a way taht makes it fairly easy to have the USB HID parser on >> your knee, while you slowly step the parser thru the input data. >> >> The input data, I originally wrote it to use the output of Kai Wang's USB >> HID parser/descriptor dumper, but it's more verbose, and (like I said) is >> perfectly set up to let you follow the parsing, item by item, from the >> orignal hex to the output. >> >> The Non-GUI is somewhat less verbose, but this is the first time I;ve let >> it be seen, and if you think you'd like to see it changed, I'm not against >> adding a special mode for a small group of users, even just one user if it >> seems like a likely-enough suggestion. >> >> I called it parsetool. I know that's a fairly dumb name )(there are one or >> two projects already oout with that name), come up with a better one, and >> I'll gladly use it (if it's not overly silly). >> >> Write me if you want it, I'll mail it to you, the tarball is fairly small >> (even with all those tables, it's only about 25K compressed) and >> installation couldn't really get any easier, just make sure you have a >> working python of 2.3 or later, with a working Tkinter. >> > > Could you eventually make a port from it and submit it this way? I think it > could be usefull for many... After getting no response to any requests for any feedback (like alpha test, but about either the protocol features, OR the accessibility of the UI) I begin to wonder if there is really any interest pool for this. Unless I get at least *some* feedback, I will make it available, but no port. Geeze, it doesn't need one! If you have Python + Tkinter, then copy it into come directory, then kick it off either with a < redirect or a -f filename flag (yes, there's a "usage()"), it can't get a whole lot easier, could it? Not even any compiling! I sat for what seemed like forever and pounded those endless tables into the source code, too. I'm beginning to wonder if I will have even one FreeBSDer who wants it, Might get rid of a couple of Linux versions. I hate to admit that it works just as well on Windows, darn it. Maybe I could figure out how to break it for Windows, what do you say? > Regards, > Milan > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIK42Wz62J6PPcoOkRAswzAJ9c57DlAOqmlUzS/GHPE2G876/w4wCgh03H ok2S1FTir/rMwfeXkkTjuBw= =NwGN -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Thu May 15 01:50:51 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 1E7981065671 for ; Thu, 15 May 2008 01:50:51 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3E6818FC14 for ; Thu, 15 May 2008 01:50:47 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (DSTO/DSTO) with ESMTP id m4F1P9DO008790 for ; Thu, 15 May 2008 10:55:09 +0930 (CST) Received: from fmbex510.dsto.defence.gov.au (fmbex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.9) with ESMTP id ; Thu, 15 May 2008 10:58:37 +0930 Received: from stlex510.dsto.defence.gov.au ([203.6.60.184]) by fmbex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 May 2008 11:28:37 +1000 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by stlex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 May 2008 09:28:34 +0800 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.14.2/8.14.2) with ESMTP id m4F1NgR0072191; Thu, 15 May 2008 09:23:42 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.14.2/8.14.2/Submit) id m4F1Ng0M072190; Thu, 15 May 2008 09:23:42 +0800 (WST) (envelope-from wilkinsa) Date: Thu, 15 May 2008 09:23:42 +0800 From: "Wilkinson, Alex" To: freebsd-usb@freebsd.org, Milan Obuch Message-ID: <20080515012341.GC71843@stlux503.dsto.defence.gov.au> Mail-Followup-To: freebsd-usb@freebsd.org, Milan Obuch References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> <482B8D96.2090409@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <482B8D96.2090409@telenix.org> Organisation: Defence Science Technology Organisation User-Agent: Mutt/1.5.17 (2007-11-01) X-OriginalArrivalTime: 15 May 2008 01:28:35.0090 (UTC) FILETIME=[FE455F20:01C8B62A] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-5.5.1026-15908.007 X-TM-AS-Result: No--0.923000-0.000000-31 Content-Transfer-Encoding: 7bit Cc: Subject: Re: USB HID parser 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, 15 May 2008 01:50:51 -0000 0n Wed, May 14, 2008 at 09:10:46PM -0400, Chuck Robey wrote: >I will make it available, but no port. Why? It would be very useful in ports. -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-usb@FreeBSD.ORG Thu May 15 04:48: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 2AA9A1065675 for ; Thu, 15 May 2008 04:48:36 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id CA37D8FC2F for ; Thu, 15 May 2008 04:48:35 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from fox.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 15 May 2008 06:43:48 +0200 id 0002E00F.482BBF84.0000B0A5 From: Milan Obuch To: Chuck Robey Date: Thu, 15 May 2008 06:48:22 +0200 User-Agent: KMail/1.9.7 References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> <482B8D96.2090409@telenix.org> In-Reply-To: <482B8D96.2090409@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805150648.22552.freebsd-usb@dino.sk> Cc: freebsd-usb@freebsd.org Subject: Re: USB HID parser 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, 15 May 2008 04:48:36 -0000 On Thursday 15 May 2008, Chuck Robey wrote: > Milan Obuch wrote: > > On Wednesday 14 May 2008, Chuck Robey wrote: > >> I wrote a parser, and I don't know if anyone might be interested in it. > >> I didn't write it as something to be used in a driver ... I wrote it as > >> a learning aid, for someone who's trying to learn that horrible USB HID > >> spec. It's quite verbose, most especially if you use it in GUI mode (I > >> wrote it in Python, and it's got a integral Tkinter GUI. In Python > >> mode, it's got help info available on every output it has, and displays > >> the data it's parsing in a way taht makes it fairly easy to have the USB > >> HID parser on your knee, while you slowly step the parser thru the input > >> data. > >> [ ... ] > >> > >> I called it parsetool. I know that's a fairly dumb name )(there are one > >> or two projects already oout with that name), come up with a better one, > >> and I'll gladly use it (if it's not overly silly). > >> May I suggest another name? We have udesc_dump in ports, I would like to offer uhid_parse(r) as a better alternative... > >> Write me if you want it, I'll mail it to you, the tarball is fairly > >> small (even with all those tables, it's only about 25K compressed) and > >> installation couldn't really get any easier, just make sure you have a > >> working python of 2.3 or later, with a working Tkinter. > > > > Could you eventually make a port from it and submit it this way? I think > > it could be usefull for many... > > After getting no response to any requests for any feedback (like alpha > test, but about either the protocol features, OR the accessibility of the > UI) I begin to wonder if there is really any interest pool for this. > Unless I get at least *some* feedback, I will make it available, but no > port. Geeze, it doesn't need one! If you have Python + Tkinter, then copy > it into come directory, then kick it off either with a < redirect or a -f > filename flag (yes, there's a "usage()"), it can't get a whole lot easier, > could it? Not even any compiling! I sat for what seemed like forever and > pounded those endless tables into the source code, too. > Well, putting a port into repository is not that hard. Actually, it makes a bit more exposure for your code. All you need is a small Makefile, distinfo and that's all. And put distfile somewhere on web to make it actually accessible. Choose license for your code (if I understand it right you wrote it all, so there is nobody else to do this) and here you are. Then you can expect some responses or maybe even patches... If you would like to help with porting, we could cooperate. I do not think I am the best person for this, just offering a help if you like. > I'm beginning to wonder if I will have even one FreeBSDer who wants it, > Might get rid of a couple of Linux versions. I hate to admit that it works > just as well on Windows, darn it. Maybe I could figure out how to break it > for Windows, what do you say? > Everyone working seriously with USB devices will try it when it will know about and it will be easily accessible, which is what ports are for. As for Windows, no idea. But if you could make some sort of how-to with simple guide hove to get all prerequisites fullfilled, expect some feedback. Or there will be none? If you won't try it, you won't know. Regards, Milan -- Address this mail is sent from is used only for this mailing list. Do not send any messages to it directly as a response, reply only to mailing list. For mail to me personally, use milan in address instead. From owner-freebsd-usb@FreeBSD.ORG Thu May 15 07:29: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 7B74C106564A for ; Thu, 15 May 2008 07:29:25 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 3522A8FC14 for ; Thu, 15 May 2008 07:29:25 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0K0W0050ZFGPXCC0@osl1smout1.broadpark.no> for freebsd-usb@freebsd.org; Thu, 15 May 2008 09:29:13 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.173.59]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0K0W00F46FGNNVH0@osl1sminn1.broadpark.no> for freebsd-usb@freebsd.org; Thu, 15 May 2008 09:29:13 +0200 (CEST) Date: Thu, 15 May 2008 09:29:11 +0200 From: Torfinn Ingolfsen To: freebsd-usb@freebsd.org Message-id: <20080515092911.a4ab2e5b.torfinn.ingolfsen@broadpark.no> In-reply-to: <482B8D96.2090409@telenix.org> References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> <482B8D96.2090409@telenix.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd6.3) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: USB HID parser 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, 15 May 2008 07:29:25 -0000 Hello, On Wed, 14 May 2008 21:10:46 -0400 Chuck Robey wrote: > After getting no response to any requests for any feedback (like > alpha test, but about either the protocol features, OR the > accessibility of the UI) I begin to wonder if there is really any > interest pool for this. Unless I get at least *some* feedback, I Migt I respectfully suggest that no response is because you did the "show and tell2 backwards? I think you would have gotten more responses if your mail had included a link to a place on the net where the tool could be downloaded. I'll use myself as an example: for my personal use, I use and test lots of usb devices on FreeBSD (what can I say - I am a gadget freak), so I am a bit interested. But asking for something in a mail is just so 90'es. I prefer to get my programs, source, and information off the net. Just my 20 eurocents (and written with a light twinkle of humor in my eye). > will make it available, but no port. Geeze, it doesn't need one! If Any tool worth anything _deserves_ a port. And it helps with exposure, as has been said elsewere in this thread. > I'm beginning to wonder if I will have even one FreeBSDer who wants > it, Might get rid of a couple of Linux versions. I hate to admit I want it - butt _not_ in my mail, please. Put it up somehwere on the net and tell us about it. > that it works just as well on Windows, darn it. Maybe I could figure > out how to break it for Windows, what do you say? I don't care about windows one way or the other (I use it for work because Ihave to, not because I like or prefer it). -- Regards, Torfinn Ingolfsen, Norway From owner-freebsd-usb@FreeBSD.ORG Thu May 15 18:47:24 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 A8D421065670; Thu, 15 May 2008 18:47:24 +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 7F14E8FC16; Thu, 15 May 2008 18:47:24 +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 m4FIlO04000938; Thu, 15 May 2008 18:47:24 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4FIlOOJ000934; Thu, 15 May 2008 18:47:24 GMT (envelope-from linimon) Date: Thu, 15 May 2008 18:47:24 GMT Message-Id: <200805151847.m4FIlOOJ000934@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/123691: usbd(8): usbd hangs 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, 15 May 2008 18:47:24 -0000 Old Synopsis: usbd hang New Synopsis: usbd(8): usbd hangs Responsible-Changed-From-To: freebsd-i386->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu May 15 18:46:56 UTC 2008 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=123691 From owner-freebsd-usb@FreeBSD.ORG Thu May 15 20:30:01 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 CA6221065673 for ; Thu, 15 May 2008 20:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A4B038FC2F for ; Thu, 15 May 2008 20:30:01 +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 m4FKU16d010359 for ; Thu, 15 May 2008 20:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4FKU1HU010358; Thu, 15 May 2008 20:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 15 May 2008 20:30:01 GMT Resent-Message-Id: <200805152030.m4FKU1HU010358@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, Aragon Gouveia Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BA611065729 for ; Thu, 15 May 2008 20:26:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 577528FC15 for ; Thu, 15 May 2008 20:26:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4FKPXfx099666 for ; Thu, 15 May 2008 20:25:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4FKPXwA099665; Thu, 15 May 2008 20:25:33 GMT (envelope-from nobody) Message-Id: <200805152025.m4FKPXwA099665@www.freebsd.org> Date: Thu, 15 May 2008 20:25:33 GMT From: Aragon Gouveia To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/123714: Panic when hald-storage-probe runs with umass device inserted 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, 15 May 2008 20:30:01 -0000 >Number: 123714 >Category: usb >Synopsis: Panic when hald-storage-probe runs with umass device inserted >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 15 20:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Aragon Gouveia >Release: 7.0-STABLE >Organization: >Environment: FreeBSD igor.geek.sh 7.0-STABLE FreeBSD 7.0-STABLE #5: Thu May 15 21:13:01 SAST 2008 root@igor.geek.sh:/usr/obj/usr/src/sys/IGOR amd64 >Description: To start off I'm not 100% sure if this is a USB problem. It requires USB to reproduce though and I've never experienced a consistent crash like this in another context. I'm filing this PR under usb, but please recategorise it if necessary. If I boot my system with a USB mass storage device plugged in before the kernel loads, at the end of bootup when hald is started by rc a panic consistently occurs. This ONLY happens if a umass device is inserted before the kernel loads and the kernel detects it at bootup. Debugging information: Unread portion of the kernel message buffer: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x30 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff8022e310 stack pointer = 0x10:0xffffffffb1abe930 frame pointer = 0x10:0xffffff0004fcb350 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IOPL = 0 current process = 801 (hald-probe-storage) trap number = 12 panic: page fault cpuid = 0 GEOM_MIRROR: Device gm0: rebuilding provider ad8s2 stopped. Uptime: 14s Physical memory: 8115 MB Dumping 363 MB: 348 332 316 300 284 268 252 236 220 204 188 172 156 140 124 108 92 76 60 44 28 12 #0 doadump () at pcpu.h:194 194 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) list *0xffffffff8022e310 0xffffffff8022e310 is in turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:835). 830 831 /* 832 * Transfer the blocked list to the pending list. 833 */ 834 mtx_lock_spin(&td_contested_lock); 835 TAILQ_CONCAT(&ts->ts_pending, &ts->ts_blocked[queue], td_lockq); 836 mtx_unlock_spin(&td_contested_lock); 837 838 /* 839 * Give a turnstile to each thread. The last thread gets (kgdb) backtrace #0 doadump () at pcpu.h:194 #1 0x0000000000000004 in ?? () #2 0xffffffff801fc471 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #3 0xffffffff801fc8a2 in panic (fmt=0x104
) at /usr/src/sys/kern/kern_shutdown.c:572 #4 0xffffffff8031e4ca in trap_fatal (frame=0xffffff0004fcb350, eva=18446742974281725032) at /usr/src/sys/amd64/amd64/trap.c:724 #5 0xffffffff8031efe8 in trap (frame=0xffffffffb1abe880) at /usr/src/sys/amd64/amd64/trap.c:251 #6 0xffffffff80305f5e in calltrap () at /usr/src/sys/amd64/amd64/exception.S:169 #7 0xffffffff8022e310 in turnstile_broadcast (ts=0x0, queue=0) at /usr/src/sys/kern/subr_turnstile.c:835 #8 0xffffffff801f1756 in _mtx_unlock_sleep (m=0xffffffff804d1540, opts=Variable "opts" is not available. ) at /usr/src/sys/kern/kern_mutex.c:611 #9 0xffffffff801f1a53 in unlock_mtx (lock=0x2) at /usr/src/sys/kern/kern_mutex.c:158 #10 0xffffffff80203c38 in _sleep (ident=0x0, lock=0xffffffff804d1540, priority=256, wmesg=0xffffffff8066d72b "sgread", timo=0) at /usr/src/sys/kern/kern_synch.c:187 #11 0xffffffff80666389 in sgread (dev=Variable "dev" is not available. ) at /usr/src/sys/modules/cam/../../cam/scsi/scsi_sg.c:798 #12 0xffffffff801ce572 in giant_read (dev=0xffffff00049f5800, uio=0xffffffffb1abeb00, ioflag=0) at /usr/src/sys/kern/kern_conf.c:421 #13 0xffffffff801b5fad in devfs_read_f (fp=0xffffff0004f844b0, uio=0xffffffffb1abeb00, cred=Variable "cred" is not available. ) at /usr/src/sys/fs/devfs/devfs_vnops.c:880 #14 0xffffffff8022fa81 in dofileread (td=0xffffff0004fcb350, fd=Variable "fd" is not available. ) at file.h:242 #15 0xffffffff80230602 in kern_readv (td=0xffffff0004fcb350, fd=4, auio=0xffffffffb1abeb00) at /usr/src/sys/kern/sys_generic.c:192 #16 0xffffffff802306c2 in read (td=Variable "td" is not available. ) at /usr/src/sys/kern/sys_generic.c:108 #17 0xffffffff8031ea4b in syscall (frame=0xffffffffb1abec70) at /usr/src/sys/amd64/amd64/trap.c:852 #18 0xffffffff8030616b in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:290 #19 0x0000000800ce6ebc in ?? () Previous frame inner to this frame (corrupt stack?) My kernel config: ident IGOR maxusers 256 makeoptions DEBUG=-g options SCHED_ULE #ULE scheduler options COMPAT_43TTY options COMPAT_IA32 options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options COMPAT_FREEBSD5 options COMPAT_FREEBSD6 options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores cpu HAMMER device acpi options SMP options PREEMPTION options ADAPTIVE_GIANT options STOP_NMI options INET #InterNETworking device loop # Network loopback device ether # Ethernet support device bpf # Berkeley packet filter options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options UFS_GJOURNAL device random # Entropy device device pty # Pseudo-ttys (telnet etc) device pci device atkbdc # AT keyboard controller device atkbd # AT keyboard options KBD_INSTALL_CDEV device kbdmux device psm device vga # VGA video card driver device sc options SC_HISTORY_SIZE=1000 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options CONSPEED=115200 device uhci device ehci device usb Full dmesg: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-STABLE #5: Thu May 15 21:13:01 SAST 2008 root@igor.geek.sh:/usr/obj/usr/src/sys/IGOR Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (3185.32-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 Features=0xbfebfbff Features2=0x8e3fd> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 8509808640 (8115 MB) avail memory = 8225095680 (7844 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 est0: on cpu0 est0: Setting 3163 MHz p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est1: Setting 3163 MHz p4tcc1: on cpu1 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x3000-0x30ff mem 0xd0000000-0xdfffffff,0xe4200000-0xe420ffff irq 16 at device 0.0 on pci1 pci1: at device 0.1 (no driver attached) pci0: at device 3.0 (no driver attached) em0: port 0x4400-0x441f mem 0xe4300000-0xe431ffff,0xe4324000-0xe4324fff irq 20 at device 25.0 on pci0 em0: Using MSI interrupt em0: Ethernet address: 00:1c:c0:30:9b:91 em0: [FILTER] uhci0: port 0x40e0-0x40ff irq 18 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x40c0-0x40df irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x40a0-0x40bf irq 17 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xe4325c00-0xe4325fff irq 17 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered umass0: on uhub3 pci0: at device 27.0 (no driver attached) pcib2: at device 28.0 on pci0 pci2: on pcib2 pcib3: at device 28.1 on pci0 pci3: on pcib3 atapci0: port 0x2018-0x201f,0x2024-0x2027,0x2010-0x2017,0x2020-0x2023,0x2000-0x200f mem 0xe4100000-0xe41001ff irq 17 at device 0.0 on pci3 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] pcib4: at device 28.2 on pci0 pci4: on pcib4 pcib5: at device 28.3 on pci0 pci5: on pcib5 pcib6: at device 28.4 on pci0 pci6: on pcib6 uhci3: port 0x4080-0x409f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0x4060-0x407f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0x4040-0x405f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xe4325800-0xe4325bff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered pcib7: at device 30.0 on pci0 pci7: on pcib7 pci7: at device 0.0 (no driver attached) pci7: at device 1.0 (no driver attached) pci7: at device 3.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x4428-0x442f,0x4434-0x4437,0x4420-0x4427,0x4430-0x4433,0x4020-0x403f mem 0xe4325000-0xe43257ff irq 21 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.20 controller with 6 ports detected ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: [ITHREAD] pci0: at device 31.3 (no driver attached) orm0: at iomem 0xd2800-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd0: on uhub0 kbd2 at ukbd0 ums0: on uhub2 ums0: 5 buttons and Z dir. ugen0: on uhub6 Timecounters tick every 1.000 msec acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR at ata2-master UDMA33 ad6: 715404MB at ata3-master SATA300 ad8: 715404MB at ata4-master SATA300 GEOM_MIRROR: Device mirror/gm0 launched (1/2). GEOM_MIRROR: Device gm0: rebuilding provider ad8s2. SMP: AP CPU #1 Launched! da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 15631MB (32014080 512 byte sectors: 255H 63S/T 1992C) Trying to mount root from ufs:/dev/mirror/gm0a >How-To-Repeat: Enable USB, install hald and its dependencies, boot up with a umass device inserted before kernel load and start hald. I have found this crash to be reproducible on my i386 machines too. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri May 16 02:10:56 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 38B7610656BA for ; Fri, 16 May 2008 02:10:56 +0000 (UTC) (envelope-from StevenFriedrich@InsightBB.com) Received: from mxsf03.insightbb.com (mxsf03.insightbb.com [74.128.0.64]) by mx1.freebsd.org (Postfix) with ESMTP id 05A4B8FC12 for ; Fri, 16 May 2008 02:10:55 +0000 (UTC) (envelope-from StevenFriedrich@InsightBB.com) X-IronPort-AV: E=Sophos;i="4.27,494,1204520400"; d="scan'208";a="352557692" Received: from unknown (HELO asav02.insightbb.com) ([172.31.249.124]) by mxsf03.insightbb.com with ESMTP; 15 May 2008 21:42:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8AAEaDLEhKjMu0/2dsb2JhbAAIrxQ X-IronPort-AV: E=Sophos;i="4.27,494,1204520400"; d="scan'208";a="243618003" Received: from 74-140-203-180.dhcp.insightbb.com (HELO [192.168.45.146]) ([74.140.203.180]) by asavout02.manage.insightbb.com with ESMTP; 15 May 2008 21:42:34 -0400 Message-ID: <482CE687.6010003@InsightBB.com> Date: Thu, 15 May 2008 21:42:31 -0400 From: Steven Friedrich User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <482CC777.8060309@InsightBB.com> <482cda0c.vqeNxjersEZzdru+%perryh@pluto.rain.com> In-Reply-To: <482cda0c.vqeNxjersEZzdru+%perryh@pluto.rain.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Belkin F5D9050 ver 4000 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, 16 May 2008 02:10:56 -0000 perryh@pluto.rain.com wrote: >> I checked the FreeBSD 7.0-RELEASE Hardware Notes before I bought >> this USB Ethernet device. >> It should be supported by the rum driver, but it gets picked up >> by ugen instead. >> The Hardware Notes mentions version 3 and the box says ver 4000, >> but I think it's probably actually ver 4. > ... >> What am I missing? > > It sure sounds as if you are missing a supported USB device :( > > Unfortunately, it is not at all uncommon for manufacturers to make > significant internal changes to a product, without changing the > name or the packaging. At least they changed the version label. > > Doing a descriptor dump, and posting the results to freebsd-usb@, > might find someone who knows how to get that particular device to > work. > usbdevs -v reveals: port 8 addr 2: high speed, power 300 mA, config 1, product 0x905c(0x905c), Belkin(0x050d), rev 0.01 -- Steven Friedrich Fairdale, KY 40118 From owner-freebsd-usb@FreeBSD.ORG Fri May 16 03:32:32 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 DC14E1065673; Fri, 16 May 2008 03:32:32 +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 B35AA8FC0C; Fri, 16 May 2008 03:32:32 +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 m4G3WWIp048347; Fri, 16 May 2008 03:32:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4G3WWVh048327; Fri, 16 May 2008 03:32:32 GMT (envelope-from linimon) Date: Fri, 16 May 2008 03:32:32 GMT Message-Id: <200805160332.m4G3WWVh048327@freefall.freebsd.org> To: st.witzel@web.de, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/123710: Re: usb/121275: [boot] FreeBSD fails to boot with usb legacy support enabled 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, 16 May 2008 03:32:33 -0000 Old Synopsis: =?iso-8859-15?Q?Re:_usb/121275:_[boot]_FreeBSD_fails_to_boot_with_usb_?= New Synopsis: Re: usb/121275: [boot] FreeBSD fails to boot with usb legacy support enabled State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri May 16 03:31:35 UTC 2008 State-Changed-Why: Misfiled followup to usb/121275; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri May 16 03:31:35 UTC 2008 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=123710 From owner-freebsd-usb@FreeBSD.ORG Fri May 16 19:47:24 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 895701065680; Fri, 16 May 2008 19:47:24 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 611688FC0C; Fri, 16 May 2008 19:47:24 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4GJlOkL059335; Fri, 16 May 2008 19:47:24 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4GJlOIn059331; Fri, 16 May 2008 19:47:24 GMT (envelope-from remko) Date: Fri, 16 May 2008 19:47:24 GMT Message-Id: <200805161947.m4GJlOIn059331@freefall.freebsd.org> To: remko@FreeBSD.org, freebsd-usb@FreeBSD.org, remko@FreeBSD.org From: remko@FreeBSD.org 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 19:47:24 -0000 Synopsis: [umass] [patch] Support for Nikon D300 digital camera (as USB mass storage device) Responsible-Changed-From-To: freebsd-usb->remko Responsible-Changed-By: remko Responsible-Changed-When: Fri May 16 19:47:24 UTC 2008 Responsible-Changed-Why: MFC reminder http://www.freebsd.org/cgi/query-pr.cgi?pr=118741 From owner-freebsd-usb@FreeBSD.ORG Sat May 17 14:20:03 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 979FE106566B for ; Sat, 17 May 2008 14:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 848158FC15 for ; Sat, 17 May 2008 14:20: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 m4HEK3v0014813 for ; Sat, 17 May 2008 14:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4HEK3DN014812; Sat, 17 May 2008 14:20:03 GMT (envelope-from gnats) Date: Sat, 17 May 2008 14:20:03 GMT Message-Id: <200805171420.m4HEK3DN014812@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Oleg Sidorkin Cc: Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oleg Sidorkin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 14:20:03 -0000 The following reply was made to PR kern/123510; it has been noted by GNATS. From: Oleg Sidorkin To: bug-followup@freebsd.org Cc: Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression] Date: Sat, 17 May 2008 17:45:51 +0400 Hello, This patch seems working for me (it's corrects a typo in ums.c) --- ums.c.orig 2008-04-15 11:09:02.000000000 +0400 +++ ums.c 2008-04-22 09:53:12.000000000 +0400 @@ -313,7 +313,7 @@ ums_attach(device_t self) } } } else if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, - HUG_Z), + HUG_TWHEEL), hid_input, &sc->sc_loc_z, &flags)) { if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { printf("\n%s: Z report 0x%04x not supported\n", From owner-freebsd-usb@FreeBSD.ORG Sat May 17 18:56: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 113A01065671 for ; Sat, 17 May 2008 18:56:00 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id E05DA8FC1A for ; Sat, 17 May 2008 18:55:59 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 170 invoked from network); 17 May 2008 18:55:59 -0000 Received: from april.chuckr.org (HELO chuckr.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 17 May 2008 18:55:59 -0000 Message-ID: <482F2839.2050008@telenix.org> Date: Sat, 17 May 2008 14:47:21 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Torfinn Ingolfsen References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> <482B8D96.2090409@telenix.org> <20080515092911.a4ab2e5b.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20080515092911.a4ab2e5b.torfinn.ingolfsen@broadpark.no> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB HID parser 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, 17 May 2008 18:56:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Torfinn Ingolfsen wrote: > Hello, > > On Wed, 14 May 2008 21:10:46 -0400 > Chuck Robey wrote: > >> After getting no response to any requests for any feedback (like >> alpha test, but about either the protocol features, OR the >> accessibility of the UI) I begin to wonder if there is really any >> interest pool for this. Unless I get at least *some* feedback, I > > Migt I respectfully suggest that no response is because you did the > "show and tell2 backwards? > I think you would have gotten more responses if your mail had included > a link to a place on the net where the tool could be downloaded. > > I'll use myself as an example: for my personal use, I use and test lots > of usb devices on FreeBSD (what can I say - I am a gadget freak), so I > am a bit interested. > But asking for something in a mail is just so 90'es. > I prefer to get my programs, source, and information off the net. > > Just my 20 eurocents (and written with a light twinkle of humor in my > eye). > > >> will make it available, but no port. Geeze, it doesn't need one! If > > Any tool worth anything _deserves_ a port. And it helps with exposure, > as has been said elsewere in this thread. > >> I'm beginning to wonder if I will have even one FreeBSDer who wants >> it, Might get rid of a couple of Linux versions. I hate to admit > > I want it - butt _not_ in my mail, please. Put it up somehwere on the > net and tell us about it. > >> that it works just as well on Windows, darn it. Maybe I could figure >> out how to break it for Windows, what do you say? > > I don't care about windows one way or the other (I use it for work > because Ihave to, not because I like or prefer it). OK, let me cover all the suggestions. First, the name, fine, I renamed it to uhidParser, and the current version is 0.2 (will hit 1.0 if I ever get any feedback, else it's stay where it is). You can pic up a copy at: http://people.freebsd.org/~chuckr/vofr/python/uhidParser-0.2.tbz Lastly, the port. I have, for a great long time, really felt very wrong, that items that needed no adaptation (or 'porting') received ports. Once, I even saw a one liner, truly simple C program get a port, merely to encourage a new programmer (if I remember right, it converted DOS carriage returns to Unix ones), and I just felt that such a truly simple thing was abuse of the port project. That's my own belief. I don't try to push my beliefs upon you, do I? So, please, don't try it push them on me. When I do a port of something, or when I write something that needs some help in compiling for non-techies, then I'll port it, but it's just too simple, it even includes it's own help info, it's just making no real use of the ports tools to make a port of it. I went ahead and gave you a URL, I agree there, but not on the port, not for a thing like this. I can't stop you from porting it, I know that, but I wish you wouldn't. It's just not port material. OK, if you want to continue the argument, do it privately, I won't respond publicly any more about it. No Flamefests, least not because of me. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFILyg5z62J6PPcoOkRAjbSAJ9UUfOXmIVlEbnj5+5mj3BZGzmOIACfQl7y LLOdbAZHi6SQGQLJdqCJdYU= =iIW+ -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Sat May 17 19:17:14 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 B58E21065670 for ; Sat, 17 May 2008 19:17:14 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA218FC13 for ; Sat, 17 May 2008 19:17:14 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 26914 invoked from network); 17 May 2008 19:17:13 -0000 Received: from april.chuckr.org (HELO chuckr.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 17 May 2008 19:17:13 -0000 Message-ID: <482F2D33.1020409@telenix.org> Date: Sat, 17 May 2008 15:08:35 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Torfinn Ingolfsen References: <482B4C79.3030100@telenix.org> <200805142321.08246.freebsd-usb@dino.sk> <482B8D96.2090409@telenix.org> <20080515092911.a4ab2e5b.torfinn.ingolfsen@broadpark.no> <482F2839.2050008@telenix.org> In-Reply-To: <482F2839.2050008@telenix.org> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB HID parser 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, 17 May 2008 19:17:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck Robey wrote: > Torfinn Ingolfsen wrote: >> Hello, > >> On Wed, 14 May 2008 21:10:46 -0400 >> Chuck Robey wrote: > >>> After getting no response to any requests for any feedback (like >>> alpha test, but about either the protocol features, OR the >>> accessibility of the UI) I begin to wonder if there is really any >>> interest pool for this. Unless I get at least *some* feedback, I >> Migt I respectfully suggest that no response is because you did the >> "show and tell2 backwards? >> I think you would have gotten more responses if your mail had included >> a link to a place on the net where the tool could be downloaded. > >> I'll use myself as an example: for my personal use, I use and test lots >> of usb devices on FreeBSD (what can I say - I am a gadget freak), so I >> am a bit interested. >> But asking for something in a mail is just so 90'es. >> I prefer to get my programs, source, and information off the net. > >> Just my 20 eurocents (and written with a light twinkle of humor in my >> eye). > > >>> will make it available, but no port. Geeze, it doesn't need one! If >> Any tool worth anything _deserves_ a port. And it helps with exposure, >> as has been said elsewere in this thread. > >>> I'm beginning to wonder if I will have even one FreeBSDer who wants >>> it, Might get rid of a couple of Linux versions. I hate to admit >> I want it - butt _not_ in my mail, please. Put it up somehwere on the >> net and tell us about it. > >>> that it works just as well on Windows, darn it. Maybe I could figure >>> out how to break it for Windows, what do you say? >> I don't care about windows one way or the other (I use it for work >> because Ihave to, not because I like or prefer it). > > OK, let me cover all the suggestions. First, the name, fine, I renamed it to > uhidParser, and the current version is 0.2 (will hit 1.0 if I ever get any > feedback, else it's stay where it is). You can pic up a copy at: > http://people.freebsd.org/~chuckr/vofr/python/uhidParser-0.2.tbz Crap. I typo'ed the url, hat vofr was meant to be "code, so here it is again: http://people.freebsd.org/~chuckr/code/python/uhidParser-0.2.tbz > > Lastly, the port. I have, for a great long time, really felt very wrong, that > items that needed no adaptation (or 'porting') received ports. Once, I even saw > a one liner, truly simple C program get a port, merely to encourage a new > programmer (if I remember right, it converted DOS carriage returns to Unix > ones), and I just felt that such a truly simple thing was abuse of the port > project. That's my own belief. I don't try to push my beliefs upon you, do I? > So, please, don't try it push them on me. When I do a port of something, or > when I write something that needs some help in compiling for non-techies, then > I'll port it, but it's just too simple, it even includes it's own help info, > it's just making no real use of the ports tools to make a port of it. I went > ahead and gave you a URL, I agree there, but not on the port, not for a thing > like this. > > I can't stop you from porting it, I know that, but I wish you wouldn't. It's > just not port material. OK, if you want to continue the argument, do it > privately, I won't respond publicly any more about it. No Flamefests, least not > because of me. _______________________________________________ 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" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFILy0zz62J6PPcoOkRAgmLAJ4pKPSBwr6RKDCKfSEEVTxiM8s8OQCghyCh LiCY09OLGXg4zTFmvzzegaU= =vtKK -----END PGP SIGNATURE-----