From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 03:03:22 2009 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 A09BD106566C for ; Sun, 7 Jun 2009 03:03:22 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id 878708FC16 for ; Sun, 7 Jun 2009 03:03:22 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from localhost (localhost [127.0.0.1]) by alpha.twilley.org (Postfix) with ESMTP id DE842233822 for ; Sat, 6 Jun 2009 19:45:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at twilley.org Received: from alpha.twilley.org ([127.0.0.1]) by localhost (alpha.twilley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qF5iAN9Viyxz for ; Sat, 6 Jun 2009 19:45:52 -0700 (PDT) Received: from [192.168.1.102] (c-24-6-104-13.hsd1.ca.comcast.net [24.6.104.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 1655C233819 for ; Sat, 6 Jun 2009 19:45:52 -0700 (PDT) Message-ID: <4A2B29C0.7020709@twilley.org> Date: Sat, 06 Jun 2009 19:45:20 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 03:03:22 -0000 I have been looking through the source to usbconfig and other tools trying to figure out how to retrieve the iManufacturer and iProduct strings. The libusb20 man page describes the libusb20_dev_get_device_desc() function but there's no useful information on the struct it returns. The include file looks as if the struct is automagically generated by macros within macros which is too complicated for me to figure out without help. Any ideas? There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... Jack. From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 14:16:44 2009 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 CA99A106566B for ; Sun, 7 Jun 2009 14:16:44 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8751B8FC1C for ; Sun, 7 Jun 2009 14:16:44 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1470412ywe.13 for ; Sun, 07 Jun 2009 07:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=EP1vu9KYYtYfsLQ7NWl8M6q/n589K2Jy1Wv2lMa+T+4=; b=rm154C3HNJSE6bRR53aTyhv1sfjRnNwJVJvYKPOF1YDVM1VzTNO48qa6CQcTN9I/nI K3GyXxr5O3PKYmKfwwGehuMhb6jG//DZYx5qQHWmkKlT+S011oxr1NwiSW0hPvbkW8CM AQdc/Pp2wii6psOldjO6srRFa4ZTWZDcy4d4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=QO0TFirrXilMqa/SwtZRrz9aiXgmySH0K54rLDbUKhu4k5TfGFtiB8CCnv8RJlXp3f bfGUH8yuxXwX/3mHocaicbfCIa5KoojhHyzgd68/tH9Z6v1G5nQ+9nquVLzKKJBQgGIt fES9Kt5dnu5Qrt+QBwXCtonF65YBcYfAQuyDk= MIME-Version: 1.0 Received: by 10.231.18.140 with SMTP id w12mr1467994iba.55.1244382538194; Sun, 07 Jun 2009 06:48:58 -0700 (PDT) In-Reply-To: <4A2B29C0.7020709@twilley.org> References: <4A2B29C0.7020709@twilley.org> From: Sylvestre Gallon Date: Sun, 7 Jun 2009 15:48:38 +0200 Message-ID: <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> To: Jack Twilley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 14:16:45 -0000 On Sun, Jun 7, 2009 at 4:45 AM, Jack Twilley wrote: > I have been looking through the source to usbconfig and other tools tryin= g > to figure out how to retrieve the iManufacturer and iProduct strings. =A0= The > libusb20 man page describes the libusb20_dev_get_device_desc() function b= ut > there's no useful information on the struct it returns. =A0The include fi= le > looks as if the struct is automagically generated by macros within macros > which is too complicated for me to figure out without help. =A0Any ideas? > =A0There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... > > Jack. You can use the function libusb20_dev_get_device_desc() that returns a struct LIBUSB20_DEVICE_DESC_DECODED *. The field idVendor and idProduct in the struct LIBUSB20_DEVICE_DESC_DECODED are what you are looking for :) Cheers, --=20 Sylvestre Gallon (http://devsyl.blogspot.com) Fifth Grade Student @ Epitech & Researcher @ LSE R&D @ Rathaxes (http://www.rathaxes.org) From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 22:52:45 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39DC4106564A for ; Sun, 7 Jun 2009 22:52:45 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id D9C828FC15 for ; Sun, 7 Jun 2009 22:52:44 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by qyk3 with SMTP id 3so3733374qyk.3 for ; Sun, 07 Jun 2009 15:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=164fbyc2Ur2Ue4hylX3TabgFhynRa+iMAGWO41XSTj8=; b=PRTzgOZ42fi/AScykDpe+vdrNfOug51s0cc5GTgyFudAywRJDXJhgGOEQqJvb3U9Ds HpKF6aPwu6TPAFAp66bbley2jldyVxJgnVYAeft+S/nB1EV/dhcLRVn+jW8t1tjp5AcQ /jY5l7ihB7SEqD9fC50091hPcWLx80YqV0c1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=h7c0koArkkaXKPcBtLe4MngBz/lEk1+MaKkcwe7d/eIRIaPTPkDswNc8vsKALedWg+ pdtRMYB6mmdNhtkvCg7XMSxdCOG14A8gB0zB0nPgHEx6BUoqRI2vjKgUUaRm/4lWExmG kLM9G3YZX1wBL8X4DUO+cQkxBPOqrU66GoOi8= Received: by 10.224.89.4 with SMTP id c4mr5959373qam.368.1244413268221; Sun, 07 Jun 2009 15:21:08 -0700 (PDT) Received: from ?192.168.1.3? (CPE0013100d8fd9-CM00195eca698c.cpe.net.cable.rogers.com [99.237.60.47]) by mx.google.com with ESMTPS id 2sm5184262qwi.3.2009.06.07.15.21.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Jun 2009 15:21:07 -0700 (PDT) Message-ID: <4A2C0510.9060701@gmail.com> Date: Sun, 07 Jun 2009 18:21:04 +0000 From: Jeremy Faulkner User-Agent: Thunderbird 2.0.0.21 (X11/20090518) MIME-Version: 1.0 To: usb@freebsd.org Content-Type: multipart/mixed; boundary="------------060407020903040000000103" Cc: Subject: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 22:52:45 -0000 This is a multi-part message in MIME format. --------------060407020903040000000103 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a uhid device on both 7 and 8. ugen5.5: at usbus5 uhid0: on usbus5 For those not familiar with a Yubikey it is a usb device that attaches as a keyboard and when the button is pressed it generates a 44 character One Time Password (OTP) and inputted into the computer as if it were typed. Unfortunately with FreeBSD 7 & 8 I'm not able to get that output. Under NetBSD the Yubikey does get attached as a keyboard and works perfectly. Any thoughts on how to get the Yubikey to attach as a keyboard under FreeBSD? I've attached the output of 'lsusb -d 1050:0010 -v > ~/yubikey-lsusb.txt' from the ports/sysutils/usbutils port -- Jeremy Faulkner --------------060407020903040000000103 Content-Type: text/plain; name="yubikey-lsusb.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="yubikey-lsusb.txt" CkJ1cyAvZGV2L3VzYiBEZXZpY2UgL2Rldi91Z2VuNS41OiBJRCAxMDUwOjAwMTAgIApEZXZp Y2UgRGVzY3JpcHRvcjoKICBiTGVuZ3RoICAgICAgICAgICAgICAgIDE4CiAgYkRlc2NyaXB0 b3JUeXBlICAgICAgICAgMQogIGJjZFVTQiAgICAgICAgICAgICAgIDIuMDAKICBiRGV2aWNl Q2xhc3MgICAgICAgICAgICAwIChEZWZpbmVkIGF0IEludGVyZmFjZSBsZXZlbCkKICBiRGV2 aWNlU3ViQ2xhc3MgICAgICAgICAwIAogIGJEZXZpY2VQcm90b2NvbCAgICAgICAgIDAgCiAg Yk1heFBhY2tldFNpemUwICAgICAgICAgOAogIGlkVmVuZG9yICAgICAgICAgICAweDEwNTAg CiAgaWRQcm9kdWN0ICAgICAgICAgIDB4MDAxMCAKICBiY2REZXZpY2UgICAgICAgICAgICAx LjMyCiAgaU1hbnVmYWN0dXJlciAgICAgICAgICAgMSBZdWJpY28KICBpUHJvZHVjdCAgICAg ICAgICAgICAgICAyIFl1YmljbyBZdWJpa2V5IFRvdWNoCiAgaVNlcmlhbCAgICAgICAgICAg ICAgICAgMCAKICBiTnVtQ29uZmlndXJhdGlvbnMgICAgICAxCiAgQ29uZmlndXJhdGlvbiBE ZXNjcmlwdG9yOgogICAgYkxlbmd0aCAgICAgICAgICAgICAgICAgOQogICAgYkRlc2NyaXB0 b3JUeXBlICAgICAgICAgMgogICAgd1RvdGFsTGVuZ3RoICAgICAgICAgICAzNAogICAgYk51 bUludGVyZmFjZXMgICAgICAgICAgMQogICAgYkNvbmZpZ3VyYXRpb25WYWx1ZSAgICAgMQog ICAgaUNvbmZpZ3VyYXRpb24gICAgICAgICAgMCAKICAgIGJtQXR0cmlidXRlcyAgICAgICAg IDB4YTAKICAgICAgKEJ1cyBQb3dlcmVkKQogICAgICBSZW1vdGUgV2FrZXVwCiAgICBNYXhQ b3dlciAgICAgICAgICAgICAgIDMwbUEKICAgIEludGVyZmFjZSBEZXNjcmlwdG9yOgogICAg ICBiTGVuZ3RoICAgICAgICAgICAgICAgICA5CiAgICAgIGJEZXNjcmlwdG9yVHlwZSAgICAg ICAgIDQKICAgICAgYkludGVyZmFjZU51bWJlciAgICAgICAgMAogICAgICBiQWx0ZXJuYXRl U2V0dGluZyAgICAgICAwCiAgICAgIGJOdW1FbmRwb2ludHMgICAgICAgICAgIDEKICAgICAg YkludGVyZmFjZUNsYXNzICAgICAgICAgMyBIdW1hbiBJbnRlcmZhY2UgRGV2aWNlCiAgICAg IGJJbnRlcmZhY2VTdWJDbGFzcyAgICAgIDAgTm8gU3ViY2xhc3MKICAgICAgYkludGVyZmFj ZVByb3RvY29sICAgICAgMCBOb25lCiAgICAgIGlJbnRlcmZhY2UgICAgICAgICAgICAgIDAg CiAgICAgICAgSElEIERldmljZSBEZXNjcmlwdG9yOgogICAgICAgICAgYkxlbmd0aCAgICAg ICAgICAgICAgICAgOQogICAgICAgICAgYkRlc2NyaXB0b3JUeXBlICAgICAgICAzMwogICAg ICAgICAgYmNkSElEICAgICAgICAgICAgICAgMS4xMQogICAgICAgICAgYkNvdW50cnlDb2Rl ICAgICAgICAgICAgMCBOb3Qgc3VwcG9ydGVkCiAgICAgICAgICBiTnVtRGVzY3JpcHRvcnMg ICAgICAgICAxCiAgICAgICAgICBiRGVzY3JpcHRvclR5cGUgICAgICAgIDM0IFJlcG9ydAog ICAgICAgICAgd0Rlc2NyaXB0b3JMZW5ndGggICAgICA3MQogICAgICAgICAgUmVwb3J0IERl c2NyaXB0b3I6IChsZW5ndGggaXMgNzEpCiAgICAgICAgICAgIEl0ZW0oR2xvYmFsKTogVXNh Z2UgUGFnZSwgZGF0YT0gWyAweDAxIF0gMQogICAgICAgICAgICAgICAgICAgICAgICAgICAg R2VuZXJpYyBEZXNrdG9wIENvbnRyb2xzCiAgICAgICAgICAgIEl0ZW0oTG9jYWwgKTogVXNh Z2UsIGRhdGE9IFsgMHgwNiBdIDYKICAgICAgICAgICAgICAgICAgICAgICAgICAgIEtleWJv YXJkCiAgICAgICAgICAgIEl0ZW0oTWFpbiAgKTogQ29sbGVjdGlvbiwgZGF0YT0gWyAweDAx IF0gMQogICAgICAgICAgICAgICAgICAgICAgICAgICAgQXBwbGljYXRpb24KICAgICAgICAg ICAgSXRlbShHbG9iYWwpOiBVc2FnZSBQYWdlLCBkYXRhPSBbIDB4MDcgXSA3CiAgICAgICAg ICAgICAgICAgICAgICAgICAgICBLZXlib2FyZAogICAgICAgICAgICBJdGVtKExvY2FsICk6 IFVzYWdlIE1pbmltdW0sIGRhdGE9IFsgMHhlMCBdIDIyNAogICAgICAgICAgICAgICAgICAg ICAgICAgICAgQ29udHJvbCBMZWZ0CiAgICAgICAgICAgIEl0ZW0oTG9jYWwgKTogVXNhZ2Ug TWF4aW11bSwgZGF0YT0gWyAweGU3IF0gMjMxCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICBHVUkgUmlnaHQKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBMb2dpY2FsIE1pbmltdW0s IGRhdGE9IFsgMHgwMCBdIDAKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBMb2dpY2FsIE1h eGltdW0sIGRhdGE9IFsgMHgwMSBdIDEKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBSZXBv cnQgU2l6ZSwgZGF0YT0gWyAweDAxIF0gMQogICAgICAgICAgICBJdGVtKEdsb2JhbCk6IFJl cG9ydCBDb3VudCwgZGF0YT0gWyAweDA4IF0gOAogICAgICAgICAgICBJdGVtKE1haW4gICk6 IElucHV0LCBkYXRhPSBbIDB4MDIgXSAyCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBE YXRhIFZhcmlhYmxlIEFic29sdXRlIE5vX1dyYXAgTGluZWFyCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICBQcmVmZXJyZWRfU3RhdGUgTm9fTnVsbF9Qb3NpdGlvbiBOb25fVm9sYXRp bGUgQml0ZmllbGQKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBSZXBvcnQgQ291bnQsIGRh dGE9IFsgMHgwMSBdIDEKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBSZXBvcnQgU2l6ZSwg ZGF0YT0gWyAweDA4IF0gOAogICAgICAgICAgICBJdGVtKE1haW4gICk6IElucHV0LCBkYXRh PSBbIDB4MDEgXSAxCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDb25zdGFudCBBcnJh eSBBYnNvbHV0ZSBOb19XcmFwIExpbmVhcgogICAgICAgICAgICAgICAgICAgICAgICAgICAg UHJlZmVycmVkX1N0YXRlIE5vX051bGxfUG9zaXRpb24gTm9uX1ZvbGF0aWxlIEJpdGZpZWxk CiAgICAgICAgICAgIEl0ZW0oR2xvYmFsKTogUmVwb3J0IENvdW50LCBkYXRhPSBbIDB4MDUg XSA1CiAgICAgICAgICAgIEl0ZW0oR2xvYmFsKTogUmVwb3J0IFNpemUsIGRhdGE9IFsgMHgw MSBdIDEKICAgICAgICAgICAgSXRlbShHbG9iYWwpOiBVc2FnZSBQYWdlLCBkYXRhPSBbIDB4 MDggXSA4CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBMRURzCiAgICAgICAgICAgIEl0 ZW0oTG9jYWwgKTogVXNhZ2UgTWluaW11bSwgZGF0YT0gWyAweDAxIF0gMQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgTnVtTG9jawogICAgICAgICAgICBJdGVtKExvY2FsICk6IFVz YWdlIE1heGltdW0sIGRhdGE9IFsgMHgwNSBdIDUKICAgICAgICAgICAgICAgICAgICAgICAg ICAgIEthbmEKICAgICAgICAgICAgSXRlbShNYWluICApOiBPdXRwdXQsIGRhdGE9IFsgMHgw MiBdIDIKICAgICAgICAgICAgICAgICAgICAgICAgICAgIERhdGEgVmFyaWFibGUgQWJzb2x1 dGUgTm9fV3JhcCBMaW5lYXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgIFByZWZlcnJl ZF9TdGF0ZSBOb19OdWxsX1Bvc2l0aW9uIE5vbl9Wb2xhdGlsZSBCaXRmaWVsZAogICAgICAg ICAgICBJdGVtKEdsb2JhbCk6IFJlcG9ydCBDb3VudCwgZGF0YT0gWyAweDAxIF0gMQogICAg ICAgICAgICBJdGVtKEdsb2JhbCk6IFJlcG9ydCBTaXplLCBkYXRhPSBbIDB4MDMgXSAzCiAg ICAgICAgICAgIEl0ZW0oTWFpbiAgKTogT3V0cHV0LCBkYXRhPSBbIDB4MDEgXSAxCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICBDb25zdGFudCBBcnJheSBBYnNvbHV0ZSBOb19XcmFw IExpbmVhcgogICAgICAgICAgICAgICAgICAgICAgICAgICAgUHJlZmVycmVkX1N0YXRlIE5v X051bGxfUG9zaXRpb24gTm9uX1ZvbGF0aWxlIEJpdGZpZWxkCiAgICAgICAgICAgIEl0ZW0o R2xvYmFsKTogUmVwb3J0IENvdW50LCBkYXRhPSBbIDB4MDYgXSA2CiAgICAgICAgICAgIEl0 ZW0oR2xvYmFsKTogUmVwb3J0IFNpemUsIGRhdGE9IFsgMHgwOCBdIDgKICAgICAgICAgICAg SXRlbShHbG9iYWwpOiBMb2dpY2FsIE1pbmltdW0sIGRhdGE9IFsgMHgwMCBdIDAKICAgICAg ICAgICAgSXRlbShHbG9iYWwpOiBMb2dpY2FsIE1heGltdW0sIGRhdGE9IFsgMHg2NSBdIDEw MQogICAgICAgICAgICBJdGVtKEdsb2JhbCk6IFVzYWdlIFBhZ2UsIGRhdGE9IFsgMHgwNyBd IDcKICAgICAgICAgICAgICAgICAgICAgICAgICAgIEtleWJvYXJkCiAgICAgICAgICAgIEl0 ZW0oTG9jYWwgKTogVXNhZ2UgTWluaW11bSwgZGF0YT0gWyAweDAwIF0gMAogICAgICAgICAg ICAgICAgICAgICAgICAgICAgTm8gRXZlbnQKICAgICAgICAgICAgSXRlbShMb2NhbCApOiBV c2FnZSBNYXhpbXVtLCBkYXRhPSBbIDB4NjUgXSAxMDEKICAgICAgICAgICAgICAgICAgICAg ICAgICAgIEtleWJvYXJkIEFwcGxpY2F0aW9uIChXaW5kb3dzIEtleSBmb3IgV2luOTUgb3Ig Q29tcG9zZSkKICAgICAgICAgICAgSXRlbShNYWluICApOiBJbnB1dCwgZGF0YT0gWyAweDAw IF0gMAogICAgICAgICAgICAgICAgICAgICAgICAgICAgRGF0YSBBcnJheSBBYnNvbHV0ZSBO b19XcmFwIExpbmVhcgogICAgICAgICAgICAgICAgICAgICAgICAgICAgUHJlZmVycmVkX1N0 YXRlIE5vX051bGxfUG9zaXRpb24gTm9uX1ZvbGF0aWxlIEJpdGZpZWxkCiAgICAgICAgICAg IEl0ZW0oTG9jYWwgKTogVXNhZ2UsIGRhdGE9IFsgMHgwMyBdIDMKICAgICAgICAgICAgICAg ICAgICAgICAgICAgIEtleWJvYXJkIEVycm9yIFVuZGVmaW5lZAogICAgICAgICAgICBJdGVt KEdsb2JhbCk6IFJlcG9ydCBTaXplLCBkYXRhPSBbIDB4MDggXSA4CiAgICAgICAgICAgIEl0 ZW0oR2xvYmFsKTogUmVwb3J0IENvdW50LCBkYXRhPSBbIDB4MDggXSA4CiAgICAgICAgICAg IEl0ZW0oTWFpbiAgKTogRmVhdHVyZSwgZGF0YT0gWyAweDAyIF0gMgogICAgICAgICAgICAg ICAgICAgICAgICAgICAgRGF0YSBWYXJpYWJsZSBBYnNvbHV0ZSBOb19XcmFwIExpbmVhcgog ICAgICAgICAgICAgICAgICAgICAgICAgICAgUHJlZmVycmVkX1N0YXRlIE5vX051bGxfUG9z aXRpb24gTm9uX1ZvbGF0aWxlIEJpdGZpZWxkCiAgICAgICAgICAgIEl0ZW0oTWFpbiAgKTog RW5kIENvbGxlY3Rpb24sIGRhdGE9bm9uZQogICAgICBFbmRwb2ludCBEZXNjcmlwdG9yOgog ICAgICAgIGJMZW5ndGggICAgICAgICAgICAgICAgIDcKICAgICAgICBiRGVzY3JpcHRvclR5 cGUgICAgICAgICA1CiAgICAgICAgYkVuZHBvaW50QWRkcmVzcyAgICAgMHg4MSAgRVAgMSBJ TgogICAgICAgIGJtQXR0cmlidXRlcyAgICAgICAgICAgIDMKICAgICAgICAgIFRyYW5zZmVy IFR5cGUgICAgICAgICAgICBJbnRlcnJ1cHQKICAgICAgICAgIFN5bmNoIFR5cGUgICAgICAg ICAgICAgICBOb25lCiAgICAgICAgICBVc2FnZSBUeXBlICAgICAgICAgICAgICAgRGF0YQog ICAgICAgIHdNYXhQYWNrZXRTaXplICAgICAweDAwMDggIDF4IDggYnl0ZXMKICAgICAgICBi SW50ZXJ2YWwgICAgICAgICAgICAgIDEwCkRldmljZSBTdGF0dXM6ICAgICAweDAwMDAKICAo QnVzIFBvd2VyZWQpCg== --------------060407020903040000000103-- From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 23:05:32 2009 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 3DBEA1065677 for ; Sun, 7 Jun 2009 23:05:32 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id C9CEB8FC23 for ; Sun, 7 Jun 2009 23:05:31 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=W-YcfUTv09kA:10 a=1qBssEImBScA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=SMv5QZfTtRfnK2bZIEAA:9 a=UYrs_QFNNwLR2AAdcLe4OwmropIA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1082693632; Mon, 08 Jun 2009 01:05:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 8 Jun 2009 00:30:50 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A2B29C0.7020709@twilley.org> In-Reply-To: <4A2B29C0.7020709@twilley.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906080030.53822.hselasky@c2i.net> Cc: Jack Twilley Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 23:05:32 -0000 On Sunday 07 June 2009 04:45:20 Jack Twilley wrote: > I have been looking through the source to usbconfig and other tools > trying to figure out how to retrieve the iManufacturer and iProduct > strings. The libusb20 man page describes the > libusb20_dev_get_device_desc() function but there's no useful > information on the struct it returns. The include file looks as if the > struct is automagically generated by macros within macros which is too > complicated for me to figure out without help. Any ideas? There's > gotta be a better way than using LIBUSB20_DEVICE_DESC()... After you find the string index, you can use the following function to get strings: int libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t index, void *ptr, uint16_t len); --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 23:05:33 2009 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 3013C106566C for ; Sun, 7 Jun 2009 23:05:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id BAEAA8FC25 for ; Sun, 7 Jun 2009 23:05:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=wkuEMt-b5_cA:10 a=xI_TxUDFK_MA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=LT_k42k9AAAA:8 a=W7ptdu6xAAAA:8 a=EepH-9axdhzf-gRWML8A:9 a=4exflmvXCKVp_6nBz2nWehoMoCMA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1082693463; Mon, 08 Jun 2009 01:05:30 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 8 Jun 2009 00:37:42 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090606.075537.116369290.sanpei@sanpei.org> In-Reply-To: <20090606.075537.116369290.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906080037.43588.hselasky@c2i.net> Cc: MIHIRA Sanpei Yoshiro Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 23:05:33 -0000 On Saturday 06 June 2009 00:55:37 MIHIRA Sanpei Yoshiro wrote: > Hi. > > I have USB Radio(*1). > > There is a application for channel selector, amfm.c which is > for linux and use libhid. > I compile it with ports/devel/libhid. But it was some errors > in 8-current and 7.2-RELEASE. > > How can I fix this problem? > > * amfm.c(amfm.c was based on shard USB Radio) > http://mixallow.blogdns.net/amfm/amfm.c > > *1 USB Radio (writtin in Japanese) > http://www.thanko.jp/usbamfmradio/ > > compile options for amfm.c > cc -o amfm -I/usr/local/include -L/usr/local/lib -lhid amfm.c > Hi, If your application and the HID library is linked with libusb, it will work. Can you check the source code for the HID library and find out what backend it is using? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 23:27:08 2009 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 53F13106564A for ; Sun, 7 Jun 2009 23:27:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id E19018FC14 for ; Sun, 7 Jun 2009 23:27:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=2xD_jNw4RclZuyZmYL8A:9 a=zhPFNBkCAEYKaN5ROR_JTpx2_64A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1258869468 for freebsd-usb@freebsd.org; Mon, 08 Jun 2009 01:27:06 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 8 Jun 2009 01:29:27 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A2C0510.9060701@gmail.com> In-Reply-To: <4A2C0510.9060701@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906080129.32610.hselasky@c2i.net> Subject: Re: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 23:27:08 -0000 On Sunday 07 June 2009 20:21:04 Jeremy Faulkner wrote: > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a > uhid device on both 7 and 8. > > ugen5.5: at usbus5 > uhid0: > on usbus5 If you "cat /dev/usb/5.5.1 | hexdump C" Do you get anything? 5.5 is the number after ugen. --HPS > > For those not familiar with a Yubikey it is a usb device that attaches > as a keyboard and when the button is pressed it generates a 44 > character One Time Password (OTP) and inputted into the computer as if > it were typed. Unfortunately with FreeBSD 7 & 8 I'm not able to get > that output. Under NetBSD the Yubikey does get attached as a keyboard > and works perfectly. Any thoughts on how to get the Yubikey to attach > as a keyboard under FreeBSD? > > I've attached the output of 'lsusb -d 1050:0010 -v > > ~/yubikey-lsusb.txt' from the ports/sysutils/usbutils port From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 00:07:33 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36FF7106566B for ; Mon, 8 Jun 2009 00:07:33 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id E6C6D8FC13 for ; Mon, 8 Jun 2009 00:07:32 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so1631545ana.13 for ; Sun, 07 Jun 2009 17:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=5E3ejJ1Zti32KXLmWjfWDEF/ilDGls6u0VYUZM5Uj8Y=; b=FQf+Ha6CWDIn/YUrkrtGoh/eyGHWfHYBq6mkYt/R1DkJ4ayS7AQeoiRXtdlqt3QnQT Zr0iWIiX5TYmqNEJFEe4X51/BAP4wiz45QKUjd66D2F5V4dlRZ2ucDQtqu1TLlJSc4Eb 4ali8ioK8Nrvcx9lljaM4MjLJF5lsKcmra8Sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bLcA9AIOGR2HE7B8mq9xuuecVgIL/8RiFlom/+2dqBvtciOOOt4bi1Z9+BuyTm0IrS x+FBU0opSnuaGoRuXz7+yV4ooa35NJr1gUkZ8cMLyiCtl9IRBcW8yoKhVgml23TCroK3 N+0zUMQ2lUfFYnirce7ZYBd4zDW90eS1EZ8gM= MIME-Version: 1.0 Received: by 10.100.248.16 with SMTP id v16mr5652837anh.60.1244419652117; Sun, 07 Jun 2009 17:07:32 -0700 (PDT) Date: Mon, 8 Jun 2009 00:07:32 +0000 Message-ID: From: Jeremy Faulkner To: usb@freebsd.org Content-Type: multipart/mixed; boundary=0016369201d050e700046bcb07f3 Cc: Subject: Yubikey - cont'd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 00:07:33 -0000 --0016369201d050e700046bcb07f3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks for the reply Hans. I can't reply to the original thread as I wasn't subscribed to usb@ and didn't mention that in my previous email. I'm subscribed now. I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' expects C to be a file. I've attached the output of hexdump when the Yubikey is triggered. -- Jeremy Faulkner --0016369201d050e700046bcb07f3 Content-Type: text/plain; charset=US-ASCII; name="yubikey-hexdump.txt" Content-Disposition: attachment; filename="yubikey-hexdump.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fvo6iuhe0 JWNhdCAvZGV2L3VzYi81LjUuMSB8IGhleGR1bXAgLUMKMDAwMDAwMDAgIDAwIDAwIDAwIDAwIDAw IDAwIDAwIDAwICAwMCAwMCAwOCAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAw MDAwMDEwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGIgMDAgMDAgMDAgMDAgMDAg IHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDAyMCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAw IDAwIDA1IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAwMzAgIDAwIDAw IDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwYiAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4u Li4uLi58CjAwMDAwMDQwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGEgMDAgMDAg MDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDA1MCAgMDAgMDAgMDAgMDAgMDAgMDAg MDAgMDAgIDAwIDAwIDE3IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAw NjAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwZCAwMCAwMCAwMCAwMCAwMCAgfC4u Li4uLi4uLi4uLi4uLi58CjAwMDAwMDcwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAg MTEgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDA4MCAgMDAgMDAgMDAg MDAgMDAgMDAgMDAgMDAgIDAwIDAwIDE3IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4u LnwKMDAwMDAwOTAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwZSAwMCAwMCAwMCAw MCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMGEwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAw MCAgMDAgMDAgMTcgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDBiMCAg MDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDBiIDAwIDAwIDAwIDAwIDAwICB8Li4uLi4u Li4uLi4uLi4uLnwKMDAwMDAwYzAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwYyAw MCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMGQwICAwMCAwMCAwMCAwMCAw MCAwMCAwMCAwMCAgMDAgMDAgMGYgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAow MDAwMDBlMCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDBjIDAwIDAwIDAwIDAwIDAw ICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAwZjAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAw MCAwMCAwNiAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMTAwICAwMCAw MCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMDkgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4u Li4uLi4ufAowMDAwMDExMCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDA3IDAwIDAw IDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAxMjAgIDAwIDAwIDAwIDAwIDAwIDAw IDAwIDAwICAwMCAwMCAxNSAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAw MTMwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGQgMDAgMDAgMDAgMDAgMDAgIHwu Li4uLi4uLi4uLi4uLi4ufAowMDAwMDE0MCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAw IDA2IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAxNTAgIDAwIDAwIDAw IDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwZCAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4u Li58CjAwMDAwMTYwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGEgMDAgMDAgMDAg MDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDE3MCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAg MDAgIDAwIDAwIDBmIDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAxODAg IDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAxOCAwMCAwMCAwMCAwMCAwMCAgfC4uLi4u Li4uLi4uLi4uLi58CjAwMDAwMTkwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGQg MDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDFhMCAgMDAgMDAgMDAgMDAg MDAgMDAgMDAgMDAgIDAwIDAwIDE3IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwK MDAwMDAxYjAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwNyAwMCAwMCAwMCAwMCAw MCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMWMwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAg MDAgMDAgMTggMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDFkMCAgMDAg MDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDA1IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4u Li4uLi4uLnwKMDAwMDAxZTAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAwZSAwMCAw MCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMWYwICAwMCAwMCAwMCAwMCAwMCAw MCAwMCAwMCAgMDAgMDAgMGIgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAw MDIwMCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDBkIDAwIDAwIDAwIDAwIDAwICB8 Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAyMTAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAw MCAxOSAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMjIwICAwMCAwMCAw MCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGMgMDAgMDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4u Li4ufAowMDAwMDIzMCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDE5IDAwIDAwIDAw IDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAyNDAgIDAwIDAwIDAwIDAwIDAwIDAwIDAw IDAwICAwMCAwMCAwNyAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58CjAwMDAwMjUw ICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMGUgMDAgMDAgMDAgMDAgMDAgIHwuLi4u Li4uLi4uLi4uLi4ufAowMDAwMDI2MCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDA3 IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAyNzAgIDAwIDAwIDAwIDAw IDAwIDAwIDAwIDAwICAwMCAwMCAwYyAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4uLi4uLi4uLi58 CjAwMDAwMjgwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMDUgMDAgMDAgMDAgMDAg MDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDI5MCAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAg IDAwIDAwIDBhIDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLi4uLi4uLnwKMDAwMDAyYTAgIDAw IDAwIDAwIDAwIDAwIDAwIDAwIDAwICAwMCAwMCAxMSAwMCAwMCAwMCAwMCAwMCAgfC4uLi4uLi4u Li4uLi4uLi58CjAwMDAwMmIwICAwMCAwMCAwMCAwMCAwMCAwMCAwMCAwMCAgMDAgMDAgMDYgMDAg MDAgMDAgMDAgMDAgIHwuLi4uLi4uLi4uLi4uLi4ufAowMDAwMDJjMCAgMDAgMDAgMDAgMDAgMDAg MDAgMDAgMDAgIDAwIDAwIDI4IDAwIDAwIDAwIDAwIDAwICB8Li4uLi4uLi4uLiguLi4uLnwK --0016369201d050e700046bcb07f3-- From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 06:58:44 2009 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 7448B106566C; Mon, 8 Jun 2009 06:58:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 6090D8FC08; Mon, 8 Jun 2009 06:58:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=hkXuOvdueeTi8q5JRoAA:9 a=H2OH1hjEtW89SgMMYSEGWWgDOJUA:4 a=6I5d2MoRAAAA:8 a=HeMcwBzoyQ0cjYn5-V0A:9 a=-chr25bUZnwl8BsOjpMA:7 a=d6jAjl7vY0ZEsLz9ji0zdCXRUDkA:4 a=nF_S5m_C9V8A:10 a=SV7veod9ZcQA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1258787690; Mon, 08 Jun 2009 08:58:32 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, freebsd-ports@freebsd.org, markus@brueffer.de, freebsd-current@freebsd.org Date: Mon, 8 Jun 2009 09:02:40 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_TeLLKg/mWYdeuZZ" Message-Id: <200906080902.43391.hselasky@c2i.net> Cc: Subject: Temporary patch to fix USB in kdebase4 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 06:58:44 -0000 --Boundary-00=_TeLLKg/mWYdeuZZ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline See attachment. --HPS --Boundary-00=_TeLLKg/mWYdeuZZ Content-Type: text/x-patch; charset="us-ascii"; name="kdebase4.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kdebase4.diff" diff -u -r work.old/kdebase-4.2.4/apps/kinfocenter/usbview/CMakeLists.txt work/kdebase-4.2.4/apps/kinfocenter/usbview/CMakeLists.txt --- work.old/kdebase-4.2.4/apps/kinfocenter/usbview/CMakeLists.txt 2009-06-07 10:54:55.000000000 +0200 +++ work/kdebase-4.2.4/apps/kinfocenter/usbview/CMakeLists.txt 2009-06-07 10:55:58.000000000 +0200 @@ -9,7 +9,7 @@ kde4_add_plugin(kcm_usb ${kcm_usb_PART_SRCS}) -target_link_libraries(kcm_usb ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY}) +target_link_libraries(kcm_usb ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} -lusb) install(TARGETS kcm_usb DESTINATION ${PLUGIN_INSTALL_DIR} ) diff -u -r work.old/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.cpp work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.cpp --- work.old/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.cpp 2009-06-07 10:54:55.000000000 +0200 +++ work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.cpp 2009-06-07 10:55:58.000000000 +0200 @@ -294,17 +294,25 @@ /* * FreeBSD support by Markus Brueffer + * libusb20 support by Hans Petter Selasky * * Basic idea and some code fragments were taken from FreeBSD's usbdevs(8), * originally developed for NetBSD, so this code should work with no or * only little modification on NetBSD. */ -void USBDevice::collectData( int fd, int level, usb_device_info &di, int parent) +void USBDevice::collectData(struct libusb20_backend *pbe, + struct libusb20_device *pdev) { + char tempbuf[32]; + struct usb_device_info di; + + if (libusb20_dev_get_info(pdev, &di)) + memset(&di, 0, sizeof(di)); + // determine data for this device - _level = level; - _parent = parent; + _level = 0; + _parent = 0; _bus = di.udi_bus; _device = di.udi_addr; @@ -320,88 +328,47 @@ _power = di.udi_power; _channels = di.udi_nports; - // determine the speed -#if defined(__DragonFly__) || (defined(Q_OS_FREEBSD) && __FreeBSD_version > 490102) || defined(Q_OS_NETBSD) switch (di.udi_speed) { case USB_SPEED_LOW: _speed = 1.5; break; case USB_SPEED_FULL: _speed = 12.0; break; case USB_SPEED_HIGH: _speed = 480.0; break; + case USB_SPEED_VARIABLE: _speed = 480.0; break; + case USB_SPEED_SUPER: _speed = 4800.0; break; + default: _speed = 480.0; break; } -#else - _speed = di.udi_lowspeed ? 1.5 : 12.0; -#endif // Get all attached devicenodes - for ( int i = 0; i < USB_MAX_DEVNAMES; ++i ) - if ( di.udi_devnames[i][0] ) - _devnodes << di.udi_devnames[i]; + for ( int i = 0; i < 32; ++i ) { + if (libusb20_dev_get_iface_desc( + pdev, i, tempbuf, sizeof(tempbuf)) == 0) { + _devnodes << tempbuf; + } else { + break; + } + } // For compatibility, split the revision number sscanf( di.udi_release, "%x.%x", &_revMajor, &_revMinor ); - - // Cycle through the attached devices if there are any - for ( int p = 0; p < di.udi_nports; ++p ) { - // Get data for device - struct usb_device_info di2; - - di2.udi_addr = di.udi_ports[p]; - - if ( di2.udi_addr >= USB_MAX_DEVICES ) - continue; - - if ( ioctl(fd, USB_DEVICEINFO, &di2) == -1 ) - continue; - - // Only add the device if we didn't detect it, yet - if (!find( di2.udi_bus, di2.udi_addr ) ) - { - USBDevice *device = new USBDevice(); - device->collectData( fd, level + 1, di2, di.udi_addr ); - } - } } bool USBDevice::parse(const QString &fname) { static bool showErrorMessage = true; - bool error = false; + struct libusb20_backend *pbe; + struct libusb20_device *pdev; _devices.clear(); - QFile controller("/dev/usb0"); - int i = 1; - while ( controller.exists() ) - { - // If the devicenode exists, continue with further inspection - if ( controller.open(QIODevice::ReadOnly) ) - { - for ( int addr = 1; addr < USB_MAX_DEVICES; ++addr ) - { - struct usb_device_info di; - - di.udi_addr = addr; - if ( ioctl(controller.handle(), USB_DEVICEINFO, &di) != -1 ) - { - if (!find( di.udi_bus, di.udi_addr ) ) - { - USBDevice *device = new USBDevice(); - device->collectData( controller.handle(), 0, di, 0); - } - } - } - controller.close(); -#ifndef Q_OS_NETBSD - } else { - error = true; -#endif - } - controller.setFileName( QString::fromLocal8Bit("/dev/usb%1").arg(i++) ); + pbe = libusb20_be_alloc_default(); + if (pbe == NULL) + return (false); + + pdev = NULL; + + while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { + USBDevice *device = new USBDevice(); + device->collectData(pbe, pdev); } - - if ( showErrorMessage && error ) { - showErrorMessage = false; - KMessageBox::error( 0, i18n("Could not open one or more USB controller. Make sure, you have read access to all USB controllers that should be listed here.")); - } - + libusb20_be_free(pbe); return true; } #endif diff -u -r work.old/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h --- work.old/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h 2009-06-07 10:54:55.000000000 +0200 +++ work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h 2009-06-07 10:59:11.000000000 +0200 @@ -14,18 +14,11 @@ #include #include -#if defined(__DragonFly__) -#include -#include -#elif defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) #include -#if __FreeBSD_version >= 800061 -#include -#else -#include -#endif +#include +#include +#include #include -#endif class USBDB; @@ -81,10 +74,8 @@ unsigned int _vendorID, _prodID, _revMajor, _revMinor; -#if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) - void collectData( int fd, int level, usb_device_info &di, int parent ); + void collectData(struct libusb20_backend *, struct libusb20_device *); QStringList _devnodes; -#endif }; #endif --Boundary-00=_TeLLKg/mWYdeuZZ-- From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 11:07:04 2009 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 054A21065675 for ; Mon, 8 Jun 2009 11:07:04 +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 E4CD08FC1B for ; Mon, 8 Jun 2009 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n58B73od020840 for ; Mon, 8 Jun 2009 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n58B73Xv020836 for freebsd-usb@FreeBSD.org; Mon, 8 Jun 2009 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Jun 2009 11:07:03 GMT Message-Id: <200906081107.n58B73Xv020836@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, 08 Jun 2009 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134633 usb Add support for WILLCOM03(SHARP smart phone) o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak o usb/134476 usb [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 317 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 14:20:05 2009 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 CD96F1065670 for ; Mon, 8 Jun 2009 14:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB9F8FC1C for ; Mon, 8 Jun 2009 14:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n58EK5gj070936 for ; Mon, 8 Jun 2009 14:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n58EK5Ei070935; Mon, 8 Jun 2009 14:20:05 GMT (envelope-from gnats) Resent-Date: Mon, 8 Jun 2009 14:20:05 GMT Resent-Message-Id: <200906081420.n58EK5Ei070935@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, Duncan Bertwistle Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBD47106566B for ; Mon, 8 Jun 2009 14:11:15 +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 C9EE78FC27 for ; Mon, 8 Jun 2009 14:11:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n58EBFpO006905 for ; Mon, 8 Jun 2009 14:11:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n58EBF9U006904; Mon, 8 Jun 2009 14:11:15 GMT (envelope-from nobody) Message-Id: <200906081411.n58EBF9U006904@www.freebsd.org> Date: Mon, 8 Jun 2009 14:11:15 GMT From: Duncan Bertwistle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/135372: Quirk report for Teclast TL-C300 usb media player X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 14:20:06 -0000 >Number: 135372 >Category: usb >Synopsis: Quirk report for Teclast TL-C300 usb media player >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 Jun 08 14:20:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Duncan Bertwistle >Release: 7.2 - stable >Organization: >Environment: FreeBSD devil.homenet 7.2-STABLE FreeBSD 7.2-STABLE #6: Sun Jun 7 10:14:46 BST 2009 root@devil.homenet:/usr/obj/usr/src/sys/DEVIL i386 >Description: Teclast TL-C300 usb media player not properly recognized. Failed to create /dev entry on plugin and froze startup if present during boot. Found to require 2 quirks:- NO_TEST_UNIT_READY | NO_SYNCHRONIZE_CACHE Also - no usbdevs entries for Emtec 2GB memory stick or Mustek DV5000 camera >How-To-Repeat: >Fix: Following mods for usbdevs & umass.c:- usbdevs:- /*### added for Teclast TL-C300 media player support */ vendor TECLAST 0x071b Teclast /* Teclast products */ product TECLAST TLC300 0x3203 USB Media Player /*### added for Emtec 2GB memory stick support */ vendor EMTEC 0x13fe Emtec 2GB memory stick /* EMTEC products */ product EMTEC MEMORYSTICK2GB 0x1e00 Emtec 2GB memory stick umass.c:- /*### added for Teclast TL-C300 media player support */ { USB_VENDOR_TECLAST, USB_PRODUCT_TECLAST_TLC300, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_TEST_UNIT_READY | NO_SYNCHRONIZE_CACHE }, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 17:17:16 2009 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 AC53F106564A for ; Mon, 8 Jun 2009 17:17:16 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id 919C18FC12 for ; Mon, 8 Jun 2009 17:17:16 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from localhost (localhost [127.0.0.1]) by alpha.twilley.org (Postfix) with ESMTP id 0E482233822; Mon, 8 Jun 2009 10:17:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at twilley.org Received: from alpha.twilley.org ([127.0.0.1]) by localhost (alpha.twilley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1er3-UppcXOd; Mon, 8 Jun 2009 10:17:14 -0700 (PDT) Received: from [10.202.10.160] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 19F6C233819; Mon, 8 Jun 2009 10:17:14 -0700 (PDT) Message-ID: <4A2D476B.20100@twilley.org> Date: Mon, 08 Jun 2009 10:16:27 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Sylvestre Gallon References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> In-Reply-To: <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 17:17:16 -0000 Sylvestre Gallon wrote: > On Sun, Jun 7, 2009 at 4:45 AM, Jack Twilley wrote: >> I have been looking through the source to usbconfig and other tools trying >> to figure out how to retrieve the iManufacturer and iProduct strings. The >> libusb20 man page describes the libusb20_dev_get_device_desc() function but >> there's no useful information on the struct it returns. The include file >> looks as if the struct is automagically generated by macros within macros >> which is too complicated for me to figure out without help. Any ideas? >> There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... >> >> Jack. > > > You can use the function libusb20_dev_get_device_desc() that > returns a struct LIBUSB20_DEVICE_DESC_DECODED *. The field > idVendor and idProduct in the struct LIBUSB20_DEVICE_DESC_DECODED > are what you are looking for :) idVendor and idProduct look good according to the output of usbconfig, but whenever I try to refer to ddesc->idVendor (or anything else in that structure) I get "error: dereferencing pointer to incomplete type". This is what sent me looking through the includes for the actual type definition. Other than the usbconfig code that uses the LIBUSB20_DEVICE_DESC() macro, is there any other example code out there that does what I'm trying to do? > > Cheers, > Thanks! Jack. From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 17:18:58 2009 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 C8273106564A for ; Mon, 8 Jun 2009 17:18:58 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id AE0BE8FC19 for ; Mon, 8 Jun 2009 17:18:58 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from localhost (localhost [127.0.0.1]) by alpha.twilley.org (Postfix) with ESMTP id 88432233822; Mon, 8 Jun 2009 10:18:58 -0700 (PDT) X-Virus-Scanned: amavisd-new at twilley.org Received: from alpha.twilley.org ([127.0.0.1]) by localhost (alpha.twilley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FZYYkU3pnWri; Mon, 8 Jun 2009 10:18:56 -0700 (PDT) Received: from [10.202.10.160] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id AB5B8233819; Mon, 8 Jun 2009 10:18:56 -0700 (PDT) Message-ID: <4A2D47FF.8040209@twilley.org> Date: Mon, 08 Jun 2009 10:18:55 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A2B29C0.7020709@twilley.org> <200906080030.53822.hselasky@c2i.net> In-Reply-To: <200906080030.53822.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 17:18:59 -0000 Hans Petter Selasky wrote: > On Sunday 07 June 2009 04:45:20 Jack Twilley > wrote: >> I have been looking through the source to > usbconfig and other tools >> trying to figure out how to retrieve the > iManufacturer and iProduct >> strings. The libusb20 man page describes the >> libusb20_dev_get_device_desc() function but > there's no useful >> information on the struct it returns. The > include file looks as if the >> struct is automagically generated by macros > within macros which is too >> complicated for me to figure out without > help. Any ideas? There's >> gotta be a better way than using > LIBUSB20_DEVICE_DESC()... > > After you find the string index, you can use the > following function to get strings: > > int > libusb20_dev_req_string_simple_sync(struct > libusb20_device *pdev, > uint8_t index, void *ptr, uint16_t len); Finding the string index was harder than I expected, since I can't get anything useful out of what libusb20_dev_get_device_desc() returns. Heck, I even tried a short for loop from 0 to 15 just to see if the values I saw in usbconfig were magic values pointing to the string. How do I find the string index? > > > --HPS Thanks! Jack. From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 17:38:18 2009 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 8DF59106566B for ; Mon, 8 Jun 2009 17:38:18 +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 21A918FC12 for ; Mon, 8 Jun 2009 17:38:17 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=W-YcfUTv09kA:10 a=1qBssEImBScA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6JYyhQExQF3KtNFEpkYA:9 a=uMqWIRWS66zg22fMVdjJp7ZUzy4A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1255552234; Mon, 08 Jun 2009 19:38:16 +0200 From: Hans Petter Selasky To: Jack Twilley Date: Mon, 8 Jun 2009 19:42:24 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A2B29C0.7020709@twilley.org> <200906080030.53822.hselasky@c2i.net> <4A2D47FF.8040209@twilley.org> In-Reply-To: <4A2D47FF.8040209@twilley.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906081942.26220.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 17:38:18 -0000 On Monday 08 June 2009 19:18:55 Jack Twilley wrote: > Hans Petter Selasky wrote: > > On Sunday 07 June 2009 04:45:20 Jack Twilley > > > > wrote: > >> I have been looking through the source to > > > > usbconfig and other tools > > > >> trying to figure out how to retrieve the > > > > iManufacturer and iProduct > > > >> strings. The libusb20 man page describes the > >> libusb20_dev_get_device_desc() function but > > > > there's no useful > > > >> information on the struct it returns. The > > > > include file looks as if the > > > >> struct is automagically generated by macros > > > > within macros which is too > > > >> complicated for me to figure out without > > > > help. Any ideas? There's > > > >> gotta be a better way than using > > > > LIBUSB20_DEVICE_DESC()... > > > > After you find the string index, you can use the > > following function to get strings: > > > > int > > libusb20_dev_req_string_simple_sync(struct > > libusb20_device *pdev, > > uint8_t index, void *ptr, uint16_t len); > > Finding the string index was harder than I expected, since I can't get > anything useful out of what libusb20_dev_get_device_desc() returns. > Heck, I even tried a short for loop from 0 to 15 just to see if the > values I saw in usbconfig were magic values pointing to the string. > > How do I find the string index? > struct LIBUSB20_DEVICE_DESC_DECODED *pdesc; pdesc = libusb20_dev_get_device_desc(pdev); printf("Vendor string is %u\n", pdesc->iVendor); if zero, the string is not present. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 17:40:04 2009 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 8B223106564A for ; Mon, 8 Jun 2009 17:40:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1BEA08FC18 for ; Mon, 8 Jun 2009 17:40:03 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=W-YcfUTv09kA:10 a=1qBssEImBScA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=aJc3YSS8vI7-el4LKuMA:9 a=UP6b0OACmlDkPsB7VRiidWnC6OsA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1083190426; Mon, 08 Jun 2009 19:40:02 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 8 Jun 2009 19:44:11 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> <4A2D476B.20100@twilley.org> In-Reply-To: <4A2D476B.20100@twilley.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906081944.12638.hselasky@c2i.net> Cc: Jack Twilley Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 17:40:04 -0000 On Monday 08 June 2009 19:16:27 Jack Twilley wrote: > "error: dereferencing pointer to incomplete type" Maybe not obvious: You need to include: #include --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 17:50:14 2009 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 E08A910656C6 for ; Mon, 8 Jun 2009 17:50:14 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id C4DC88FC1A for ; Mon, 8 Jun 2009 17:50:14 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from localhost (localhost [127.0.0.1]) by alpha.twilley.org (Postfix) with ESMTP id ACCF8233822; Mon, 8 Jun 2009 10:50:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at twilley.org Received: from alpha.twilley.org ([127.0.0.1]) by localhost (alpha.twilley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PMJ17gzg4bb9; Mon, 8 Jun 2009 10:50:12 -0700 (PDT) Received: from [10.202.10.160] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id B61CA233819; Mon, 8 Jun 2009 10:50:12 -0700 (PDT) Message-ID: <4A2D4F53.6070706@twilley.org> Date: Mon, 08 Jun 2009 10:50:11 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> <4A2D476B.20100@twilley.org> <200906081944.12638.hselasky@c2i.net> In-Reply-To: <200906081944.12638.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 17:50:15 -0000 Hans Petter Selasky wrote: > On Monday 08 June 2009 19:16:27 Jack Twilley wrote: >> "error: dereferencing pointer to incomplete type" > > Maybe not obvious: > > You need to include: > > #include This was the key. Everything's working now. Thank you both! > > --HPS Jack. From owner-freebsd-usb@FreeBSD.ORG Mon Jun 8 19:23:25 2009 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 749181065672 for ; Mon, 8 Jun 2009 19:23:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swip.net [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 09FA18FC13 for ; Mon, 8 Jun 2009 19:23:24 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=dT19lrtdAAAA:8 a=-sFKTNmngB0KHzNMXvgA:9 a=3PP3XBUOxW8iSlBQ5OgA:7 a=fCMjAaYYjiT8AcXNp_rm6TymXd4A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 511855403; Mon, 08 Jun 2009 21:23:23 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 8 Jun 2009 21:27:34 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906082127.35793.hselasky@c2i.net> Cc: Subject: Re: Yubikey - cont'd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 19:23:25 -0000 On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: > Thanks for the reply Hans. I can't reply to the original thread as I > wasn't subscribed to usb@ and didn't mention that in my previous > email. I'm subscribed now. > > I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' > expects C to be a file. I've attached the output of hexdump when the > Yubikey is triggered. Your Yubikey input looks like the input of a keyboard. I'm a little bit busy at the moment. What needs to be done is to search for Yubikey in the NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD ukbd.c driver (sys/dev/usb/input). Is that something you can do? You might find the following link useful: http://fxr.watson.org --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 02:21:14 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3C381065670 for ; Tue, 9 Jun 2009 02:21:14 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 58DE18FC14 for ; Tue, 9 Jun 2009 02:21:14 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by qyk3 with SMTP id 3so4863175qyk.3 for ; Mon, 08 Jun 2009 19:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eYVgKkI0YNdazoS0OmUuWkj5IllgC6zmh4PVrLTW4xg=; b=sVAF98tPJZxoVccgdnNx0An+HKSbRIz10dNsZGyDpLGitHHcgTNNwmYnMaSGWw1u9z LJbfTy0jSMVUnHwqnblP4UlZNGL6ZqEOB9IaHaOQB2VmRWuyvskqbpwbn/7dRA8KXy+f znlx5WZ8wrqBQHjA1VLP8gf2D3weNHa8j33+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OERTzE63B2P/Ti3D/WN6asNnkLbwjc8HDFdekSc2PF3CQxgVwbpUlRUPfUwsn+sq4/ vAxMfUjfRoP5LcBb8ZUzXlO65emq/AU3P7Dhz7aKg7WXTCDYJP6Z/vvJXeLi1HT23N7z G/u8KMg18va4Lmq6bV5/HxBOxXDxnEzhQaCgU= Received: by 10.224.74.6 with SMTP id s6mr7490390qaj.327.1244514073728; Mon, 08 Jun 2009 19:21:13 -0700 (PDT) Received: from ?192.168.1.3? (CPE0013100d8fd9-CM00195eca698c.cpe.net.cable.rogers.com [99.237.60.47]) by mx.google.com with ESMTPS id 6sm648578qwk.40.2009.06.08.19.21.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Jun 2009 19:21:13 -0700 (PDT) Message-ID: <4A2D8EB7.4050305@gmail.com> Date: Mon, 08 Jun 2009 22:20:39 +0000 From: Jeremy Faulkner User-Agent: Thunderbird 2.0.0.21 (X11/20090518) MIME-Version: 1.0 To: Hans Petter Selasky References: <200906082127.35793.hselasky@c2i.net> In-Reply-To: <200906082127.35793.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org Subject: Re: Yubikey - cont'd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 02:21:14 -0000 Hans Petter Selasky wrote: > On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: >> Thanks for the reply Hans. I can't reply to the original thread as I >> wasn't subscribed to usb@ and didn't mention that in my previous >> email. I'm subscribed now. >> >> I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' >> expects C to be a file. I've attached the output of hexdump when the >> Yubikey is triggered. > > Your Yubikey input looks like the input of a keyboard. I'm a little bit > busy at the moment. What needs to be done is to search for Yubikey in the > NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD > ukbd.c driver (sys/dev/usb/input). Is that something you can do? > > You might find the following link useful: > > http://fxr.watson.org > > --HPS There were no occurances of Yubikey in fxr.watson.org so I checked the FreeBSD ukbd.c to see if it was rejecting the Yubikey for some reason. I found in ukbd_probe() that it required that the keyboard have InterfaceSubClass == UISUBCLASS_BOOT and InterfaceProtocol == UPROTO_BOOT_KEYBOARD in order to attach. I don't know what they're for but the Yubikey has no subclass or interface protocol set. To test this I hacked it to return 0 if the idVendor is that of Yubico (0x1050) and it attached as ukbd0 (kbd2) and worked. Perhaps it would be better to create a USB Quirk for forced ukbd attach than to have the Yubico vendor id in ukbd_probe() Also, I don't know what the difference between UPROTO_BOOT_KEYBOARD (defined in ukbd.c) and UIPROTO_BOOT_KEYBOARD (defined in usb.h) -- Jeremy Faulkner From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 08:36:10 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4769106571A for ; Tue, 9 Jun 2009 08:36:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 222378FC1B for ; Tue, 9 Jun 2009 08:36:09 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=dT19lrtdAAAA:8 a=voVFGzz_05Kb500bRSMA:9 a=0J1PSuyi44W_F2Q4xZMA:7 a=nTK3FuduglPDIEsHWLPhI5QF8QoA:4 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1255755224; Tue, 09 Jun 2009 09:36:04 +0200 From: Hans Petter Selasky To: Jeremy Faulkner Date: Tue, 9 Jun 2009 09:40:14 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906082127.35793.hselasky@c2i.net> <4A2D8EB7.4050305@gmail.com> In-Reply-To: <4A2D8EB7.4050305@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906090940.15488.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: Yubikey - cont'd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 08:36:11 -0000 On Tuesday 09 June 2009 00:20:39 Jeremy Faulkner wrote: > Hans Petter Selasky wrote: > > On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: > >> Thanks for the reply Hans. I can't reply to the original thread as I > >> wasn't subscribed to usb@ and didn't mention that in my previous > >> email. I'm subscribed now. > >> > >> I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' > >> expects C to be a file. I've attached the output of hexdump when the > >> Yubikey is triggered. > > > > Your Yubikey input looks like the input of a keyboard. I'm a little bit > > busy at the moment. What needs to be done is to search for Yubikey in the > > NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD > > ukbd.c driver (sys/dev/usb/input). Is that something you can do? > > > > You might find the following link useful: > > > > http://fxr.watson.org > > > > --HPS > > There were no occurances of Yubikey in fxr.watson.org so I checked the > FreeBSD ukbd.c to see if it was rejecting the Yubikey for some reason. I > found in ukbd_probe() that it required that the keyboard have > InterfaceSubClass == UISUBCLASS_BOOT and InterfaceProtocol == > UPROTO_BOOT_KEYBOARD in order to attach. > > I don't know what they're for but the Yubikey has no subclass or > interface protocol set. To test this I hacked it to return 0 if the > idVendor is that of Yubico (0x1050) and it attached as ukbd0 (kbd2) and > worked. Perhaps it would be better to create a USB Quirk for forced ukbd > attach than to have the Yubico vendor id in ukbd_probe() > > Also, I don't know what the difference between UPROTO_BOOT_KEYBOARD > (defined in ukbd.c) and UIPROTO_BOOT_KEYBOARD (defined in usb.h) > Then you need to compare the ukbd.c in NetBSD anb the ukbd.c in FreeBSD. You can use usbconfig dump_device_desc to get the fields that are matched against. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 12:39:20 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 424AF1065670 for ; Tue, 9 Jun 2009 12:39:20 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id DC2248FC17 for ; Tue, 9 Jun 2009 12:39:19 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so2233860ana.13 for ; Tue, 09 Jun 2009 05:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=TVSWDpYh2OW0+CIu9NOYZpqN4ApxlHp3MOpj0ZEuf1A=; b=GRtz7MUnGcyS9vqN3tRa+SaEMPnehIo29PnUnVrP1cHeGn4RksscOtWqFzf1LxPank ExBsJNdhUPEd5w1y2Wk8Xy9BcT60vZITY3FQvzXC/6cslWXFHzdIjj+sesY5oha3NHUh fIMdyhFyyxs75r0KlMgukEm4QUX42jAlvbEBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=I6/73FPF37Lr/69OTJrlgIMLZm38cLpzDnzKvbnLat6mNCOspcYqcPzjbQPzKdbS0y FB6MvqXW7kRf+H6bLAlWNnC8wsVrsLWJG3wjJlmyAe0eS+3bOW+3P/+loe/VNP7bdKHH evCLKPcBrRe6QXB/eHzIeIcNmwO2ny2u+2O0s= MIME-Version: 1.0 Received: by 10.100.125.14 with SMTP id x14mr89049anc.136.1244551159251; Tue, 09 Jun 2009 05:39:19 -0700 (PDT) In-Reply-To: <200906091022.41813.hselasky@c2i.net> References: <200906081924.24901.mel.flynn+fbsd.current@mailing.thruhere.net> <200906091022.41813.hselasky@c2i.net> Date: Tue, 9 Jun 2009 08:39:19 -0400 Message-ID: From: Jeremy Faulkner To: Hans Petter Selasky , usb@freebsd.org, current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 12:39:20 -0000 On Tue, Jun 9, 2009 at 4:22 AM, Hans Petter Selasky wrote= : > On Tuesday 09 June 2009 05:24:24 Mel Flynn wrote: >> On Saturday 06 June 2009 10:02:05 Jeremy Faulkner wrote: >> > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a >> > uhid device on both 7 and 8. >> > >> > ugen5.5: at usbus5 >> > uhid0: = on >> > usbus5 >> > > > Hi, > >> >> Attachment copied. > > The subclass and protocol are not correct, so the device is not detected = like > a keyboard. Probably we could add an additional check there to verify tha= t the > HID descriptor contains Keyboard descriptions. > > =C2=A0 =C2=A0 =C2=A0bInterfaceClass =C2=A0 =C2=A0 =C2=A0 =C2=A0 3 Human I= nterface Device > =C2=A0 =C2=A0 =C2=A0bInterfaceSubClass =C2=A0 =C2=A0 =C2=A00 No Subclass > =C2=A0 =C2=A0 =C2=A0bInterfaceProtocol =C2=A0 =C2=A0 =C2=A00 None > =C2=A0 =C2=A0 =C2=A0iInterface =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A00 > > --HPS > The NetBSD kbd checks the Report Descriptors for Generic Desktop Controls (0x01) and Keyboard (0x06). It doesn't check for the sub class or interface protocol. --=20 Jeremy Faulkner From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 13:41:19 2009 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 309EA1065676 for ; Tue, 9 Jun 2009 13:41:19 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id F12748FC29 for ; Tue, 9 Jun 2009 13:41:18 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from cherry.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id D85FD7A029; Tue, 9 Jun 2009 22:41:17 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry.sanpei.org (8.14.3/8.13.8) with ESMTP id n59DfF9r087609; Tue, 9 Jun 2009 22:41:16 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Tue, 09 Jun 2009 22:41:15 +0900 (JST) Message-Id: <20090609.224115.35811802.sanpei@sanpei.org> To: hselasky@c2i.net From: MIHIRA Sanpei Yoshiro In-Reply-To: <200906080037.43588.hselasky@c2i.net> References: <20090606.075537.116369290.sanpei@sanpei.org> <200906080037.43588.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (cherry.sanpei.org [127.0.0.1]); Tue, 09 Jun 2009 22:41:17 +0900 (JST) Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 13:41:19 -0000 >If your application and the HID library is linked with libusb, it will work. >Can you check the source code for the HID library and find out what backend it >is using? I check latest 8-current enviroment. I think libhid uses /usr/lib/libusb. # ldd amfm amfm: libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) libc.so.7 => /lib/libc.so.7 (0x2809a000) libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 14:59:23 2009 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 44FFA1065676 for ; Tue, 9 Jun 2009 14:59:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id C9A968FC1A for ; Tue, 9 Jun 2009 14:59:22 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=wkuEMt-b5_cA:10 a=xI_TxUDFK_MA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=JD1Rz4xvyJgobjF897wA:9 a=C1ixh45TAIQ4PXzFZ1wA:7 a=aI4ohVOiy-1mHhWBsvtiHk3RR80A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1259815470; Tue, 09 Jun 2009 16:59:21 +0200 From: Hans Petter Selasky To: MIHIRA Sanpei Yoshiro Date: Tue, 9 Jun 2009 17:03:34 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090606.075537.116369290.sanpei@sanpei.org> <200906080037.43588.hselasky@c2i.net> <20090609.224115.35811802.sanpei@sanpei.org> In-Reply-To: <20090609.224115.35811802.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906091703.35094.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 14:59:23 -0000 On Tuesday 09 June 2009 15:41:15 MIHIRA Sanpei Yoshiro wrote: > >If your application and the HID library is linked with libusb, it will > > work. Can you check the source code for the HID library and find out what > > backend it is using? > > I check latest 8-current enviroment. > I think libhid uses /usr/lib/libusb. > > # ldd amfm > amfm: > libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) > libc.so.7 => /lib/libc.so.7 (0x2809a000) > libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) > Hi, Are you sure the USB device is accessible to the application. chown or chmod /dev/usb/X.Y.* according to output from usbconfig. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 15:48:34 2009 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 6FE95106567E for ; Tue, 9 Jun 2009 15:48:34 +0000 (UTC) (envelope-from v.velox@vvelox.net) Received: from vulpes.vvelox.net (vulpes.vvelox.NET [74.200.198.26]) by mx1.freebsd.org (Postfix) with ESMTP id 4CF118FC1C for ; Tue, 9 Jun 2009 15:48:33 +0000 (UTC) (envelope-from v.velox@vvelox.net) Received: from vixen42 (c-68-51-78-189.hsd1.il.comcast.net [68.51.78.189]) (Authenticated sender: v.velox) by vulpes.vvelox.net (Postfix) with ESMTP id 69CCFB8A8 for ; Tue, 9 Jun 2009 10:41:17 -0500 (CDT) Date: Tue, 9 Jun 2009 10:30:29 -0500 From: "Zane C.B." To: freebsd-usb@freebsd.org Message-ID: <20090609103029.70a488a9@vixen42> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd6.4) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/8B3a_+X5vTV=ZGcGr8HAlEX"; protocol="application/pgp-signature" Subject: media changes and umass flash card readers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 15:48:35 -0000 --Sig_/8B3a_+X5vTV=ZGcGr8HAlEX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable This machine here has a USB flash card reader integrated into it. It works with out issue, minus re-reading the partition and slice info upon disk change. Is there any way to actually force it to re-read that information? Currently the only thing I've come across that works is to either power cycle the machine or try mounting something on that device, which will fail even if the specified partition does actually exist. After it fails I will see the proper dev entries for it and will work the second time. --Sig_/8B3a_+X5vTV=ZGcGr8HAlEX Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkougB0ACgkQqrJJy0yxYQCmkQCZAbs+6kF22RdHCPpqb1O0oTMJ 5nsAniPIj+j3UMDjzTs4CSbV9wjbDC1U =LTjJ -----END PGP SIGNATURE----- --Sig_/8B3a_+X5vTV=ZGcGr8HAlEX-- From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 16:37:32 2009 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 4C97F106564A for ; Tue, 9 Jun 2009 16:37:32 +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 D7FF08FC19 for ; Tue, 9 Jun 2009 16:37:31 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=sWUr0f3V378A:10 a=XaVDx7nfaVgA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=rXTpsDoA6JR3bfv7YCwA:9 a=RVuade9JVup4MUF5SHce0ldDRo8A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1256174032; Tue, 09 Jun 2009 18:37:30 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 9 Jun 2009 18:41:44 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090609103029.70a488a9@vixen42> In-Reply-To: <20090609103029.70a488a9@vixen42> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906091841.45108.hselasky@c2i.net> Cc: Subject: Re: media changes and umass flash card readers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 16:37:32 -0000 On Tuesday 09 June 2009 17:30:29 Zane C.B. wrote: > This machine here has a USB flash card reader integrated into it. It > works with out issue, minus re-reading the partition and slice info > upon disk change. Is there any way to actually force it to re-read > that information? > > Currently the only thing I've come across that works is to either > power cycle the machine or try mounting something on that device, > which will fail even if the specified partition does actually exist. > After it fails I will see the proper dev entries for it and will work > the second time. In 8-current you can use the usbconfig utility to re-enumerate the device. Else "cat /dev/null > /dev/daX" usually does the trick. Note /dev/null is not /dev/zero ! --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jun 9 22:32:33 2009 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 C3D9C1065670 for ; Tue, 9 Jun 2009 22:32:33 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 9349C8FC08 for ; Tue, 9 Jun 2009 22:32:33 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from cherry.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id A21B679D8C; Wed, 10 Jun 2009 07:32:32 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry.sanpei.org (8.14.3/8.13.8) with ESMTP id n59MWUs8094115; Wed, 10 Jun 2009 07:32:31 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Wed, 10 Jun 2009 07:32:29 +0900 (JST) Message-Id: <20090610.073229.85408943.sanpei@sanpei.org> To: hselasky@c2i.net From: MIHIRA Sanpei Yoshiro In-Reply-To: <200906091703.35094.hselasky@c2i.net> References: <200906080037.43588.hselasky@c2i.net> <20090609.224115.35811802.sanpei@sanpei.org> <200906091703.35094.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (cherry.sanpei.org [127.0.0.1]); Wed, 10 Jun 2009 07:32:31 +0900 (JST) Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 22:32:34 -0000 >> amfm: >> libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) >> libc.so.7 => /lib/libc.so.7 (0x2809a000) >> libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) >> > >Hi, > >Are you sure the USB device is accessible to the application. > >chown or chmod /dev/usb/X.Y.* according to output from usbconfig. I run application(amfm) on root user. I think it is accesible, isn't it? ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON crw------- 1 root operator 0, 103 Jun 10 16:08 /dev/usb/0.2.0 crw------- 1 root operator 0, 105 Jun 10 16:08 /dev/usb/0.2.1 crw------- 1 root operator 0, 106 Jun 10 16:08 /dev/usb/0.2.2 --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From owner-freebsd-usb@FreeBSD.ORG Wed Jun 10 11:08:28 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A28F510656BE; Wed, 10 Jun 2009 11:08:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0EF2A8FC28; Wed, 10 Jun 2009 11:08:27 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=8kQB0OdkAAAA:8 a=7wQJdlSBS9dFlS6CQloA:9 a=H7cr222DlvTftaKguHroXQnYFMsA:4 a=9aOQ2cSd83gA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1254393130; Wed, 10 Jun 2009 13:08:26 +0200 From: Hans Petter Selasky To: Jeremy Faulkner Date: Wed, 10 Jun 2009 13:12:35 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906091022.41813.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906101312.38132.hselasky@c2i.net> Cc: usb@freebsd.org, current@freebsd.org Subject: Re: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 11:08:29 -0000 On Tuesday 09 June 2009 14:39:19 Jeremy Faulkner wrote: > On Tue, Jun 9, 2009 at 4:22 AM, Hans Petter Selasky wrote: > > On Tuesday 09 June 2009 05:24:24 Mel Flynn wrote: > >> On Saturday 06 June 2009 10:02:05 Jeremy Faulkner wrote: > >> > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a > >> > uhid device on both 7 and 8. > >> > > >> > ugen5.5: at usbus5 > >> > uhid0: > >> > on usbus5 > > > > Hi, > > > >> Attachment copied. > > > > The subclass and protocol are not correct, so the device is not detected > > like a keyboard. Probably we could add an additional check there to > > verify that the HID descriptor contains Keyboard descriptions. > > > > bInterfaceClass 3 Human Interface Device > > bInterfaceSubClass 0 No Subclass > > bInterfaceProtocol 0 None > > iInterface 0 > > > > --HPS > > The NetBSD kbd checks the Report Descriptors for Generic Desktop > Controls (0x01) and Keyboard (0x06). It doesn't check for the sub > class or interface protocol. I will make a patch for this. Stay tuned. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jun 10 18:41:28 2009 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 547C1106566C for ; Wed, 10 Jun 2009 18:41:28 +0000 (UTC) (envelope-from dlangille@myyearbook.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 05A2F8FC27 for ; Wed, 10 Jun 2009 18:41:27 +0000 (UTC) (envelope-from dlangille@myyearbook.com) Received: by yw-out-2324.google.com with SMTP id 9so522671ywe.13 for ; Wed, 10 Jun 2009 11:41:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.164.12 with SMTP id m12mr1654269ane.131.1244657914337; Wed, 10 Jun 2009 11:18:34 -0700 (PDT) Date: Wed, 10 Jun 2009 14:18:34 -0400 Message-ID: <6dd019370906101118k6c26ccat5596dbe1ba03ebe5@mail.gmail.com> From: Dan Langille To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: MS USB mouse does not work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 18:41:28 -0000 I'm running FreeBSD 7.2-STABLE from Tue May 26. I have an MS keyboard and mouse, both of which are wireless and operate through the same USB transceiver. The keyboard works. The mouse does not. >From /var/run/dmesg.boot: ukbd0: on uhub7 kbd2 at ukbd0 uhid0: on uhub7 I see nothing related to the mouse. Any ideas. It's a really nice mouse, otherwise. ;) Is there anything I can run to gather more information? Copyright (c) 1992-2009 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.2-STABLE #0: Tue May 26 14:09:07 EDT 2009 dan@my.example.com:/usr/obj/usr/src/sys/DTM Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2992.14-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd,XSAVE> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 2097774592 (2000 MB) avail memory = 2022559744 (1928 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 8 ioapic0 irqs 0-23 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 kqemu version 0x00010300 kqemu: KQEMU installed, max_locked_mem=1024304kB. 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 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xdc00-0xdcff mem 0xd0000000-0xdfffffff,0xfe9f0000-0xfe9fffff irq 16 at device 0.0 on pci1 pci0: at device 3.0 (no driver attached) atapci0: port 0xfe80-0xfe87,0xfe90-0xfe93,0xfea0-0xfea7,0xfeb0-0xfeb3,0xfef0-0xfeff irq 18 at device 3.2 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] pci0: at device 3.3 (no driver attached) em0: port 0xecc0-0xecdf mem 0xfebe0000-0xfebfffff,0xfebdb000-0xfebdbfff irq 21 at device 25.0 on pci0 em0: Using MSI interrupt em0: [FILTER] em0: Ethernet address: 00:23:ae:78:ae:a8 uhci0: port 0xff20-0xff3f irq 16 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 0xff00-0xff1f irq 17 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 ehci0: mem 0xfebd9c00-0xfebd9fff irq 22 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: wrong number of companions (3 != 2) usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 6 ports with 6 removable, self powered hdac0: mem 0xfebdc000-0xfebdffff irq 16 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20090329_0131 hdac0: [ITHREAD] pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 uhci2: port 0xff80-0xff9f irq 23 at device 29.0 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb3: on uhci2 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered uhci3: port 0xff60-0xff7f irq 17 at device 29.1 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 0xff40-0xff5f irq 18 at device 29.2 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 ehci1: mem 0xff980800-0xff980bff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb6: EHCI version 1.0 usb6: companion controllers, 2 ports each: usb3 usb4 usb5 usb6: on ehci1 usb6: USB revision 2.0 uhub6: on usb6 uhub6: 6 ports with 6 removable, self powered uhub7: on uhub6 uhub7: multiple transaction translators uhub7: 4 ports with 4 removable, self powered ukbd0: on uhub7 kbd2 at ukbd0 uhid0: on uhub7 pcib3: at device 30.0 on pci0 pci3: on pcib3 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf mem 0xff970000-0xff9707ff irq 18 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI called from vendor specific driver atapci1: AHCI Version 01.20 controller with 6 ports detected ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: port not implemented ata8: [ITHREAD] ata9: on atapci1 ata9: [ITHREAD] pci0: at device 31.3 (no driver attached) ppc0: port 0x378-0x37f,0x778-0x77f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xd0fff,0xd1000-0xd37ff,0xd3800-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> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd1: on uhub4 kbd3 at ukbd1 Timecounters tick every 1.000 msec ad8: 152587MB at ata4-master SATA300 acd0: DVDROM at ata5-master SATA150 ad14: 152587MB at ata7-master SATA300 ad18: 152587MB at ata9-master SATA300 hdac0: HDA Codec #0: Analog Devices AD1984 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 lapic1: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! GEOM_MIRROR: Device mirror/gm0 launched (2/2). GEOM_LABEL: Label for provider ad18s1 is msdosfs/DellUtility. GEOM_LABEL: Label for provider ad18s2 is ntfs/OS. GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. Trying to mount root from ufs:/dev/mirror/gm0s1a GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. GEOM_LABEL: Label ufsid/49db89049055faa1 removed. GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. GEOM_LABEL: Label ufsid/49db89049055faa1 removed. GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. -- Dan Langille myYearbook.com From owner-freebsd-usb@FreeBSD.ORG Thu Jun 11 20:48:53 2009 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 12A63106566B for ; Thu, 11 Jun 2009 20:48:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9CEFC8FC16 for ; Thu, 11 Jun 2009 20:48:52 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=wkuEMt-b5_cA:10 a=xI_TxUDFK_MA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6I5d2MoRAAAA:8 a=ZzhXsLmtS9tqEtKuCd8A:9 a=74uQHPbFc_Cxfn4HbG5Ts3iDSQ8A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1087633995; Thu, 11 Jun 2009 22:48:49 +0200 From: Hans Petter Selasky To: MIHIRA Sanpei Yoshiro Date: Thu, 11 Jun 2009 22:53:01 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906080037.43588.hselasky@c2i.net> <200906091703.35094.hselasky@c2i.net> <20090610.073229.85408943.sanpei@sanpei.org> In-Reply-To: <20090610.073229.85408943.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906112253.02670.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 20:48:53 -0000 Hi, Sorry for late reply. Can you try the following patch on 8-current, and report back? http://perforce.freebsd.org/chv.cgi?CH=164142 You have to download + replace the patched files. Then "make clean all install" in the libusb directory. There is no need to recompile your application. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jun 11 21:06:01 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 702A31065673 for ; Thu, 11 Jun 2009 21:06:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 02C638FC23 for ; Thu, 11 Jun 2009 21:06:00 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6I5d2MoRAAAA:8 a=kxZwZ-uwpn7TtvLCynQA:9 a=OpltaZ3StIivT1Y3eidyF5DSsCgA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1087618524; Thu, 11 Jun 2009 22:05:58 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Thu, 11 Jun 2009 22:10:11 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906091022.41813.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906112210.13313.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 21:06:01 -0000 Hi, Can you try the following patch and report back: http://perforce.freebsd.org/chv.cgi?CH=164141 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 05:45:08 2009 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 637DB1065670; Fri, 12 Jun 2009 05:45:08 +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 397288FC12; Fri, 12 Jun 2009 05:45:08 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5C5j8Qd059833; Fri, 12 Jun 2009 05:45:08 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5C5j8gG059829; Fri, 12 Jun 2009 05:45:08 GMT (envelope-from linimon) Date: Fri, 12 Jun 2009 05:45:08 GMT Message-Id: <200906120545.n5C5j8gG059829@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/135348: [usbdevs] USB Drive Hangs with ZFS (JMicron USB2/eSata) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 05:45:08 -0000 Old Synopsis: USB Drive Hangs with ZFS (JMicron USB2/eSata) New Synopsis: [usbdevs] USB Drive Hangs with ZFS (JMicron USB2/eSata) Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jun 12 05:44:31 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=135348 From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 05:45:20 2009 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 1BBB510656DE for ; Fri, 12 Jun 2009 05:45:20 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id CD6198FC12 for ; Fri, 12 Jun 2009 05:45:19 +0000 (UTC) (envelope-from admin@ivangelion.tw) Received: by qyk3 with SMTP id 3so2833144qyk.3 for ; Thu, 11 Jun 2009 22:45:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.85.195 with SMTP id p3mr706521qcl.79.1244783768699; Thu, 11 Jun 2009 22:16:08 -0700 (PDT) From: Chun-fan Ivan Liao Date: Fri, 12 Jun 2009 13:15:47 +0800 Message-ID: <173f52ec0906112215o4a17788fp9ebc121f39575ebe@mail.gmail.com> To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: itetcu@freebsd.org Subject: 2 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE 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: Fri, 12 Jun 2009 05:45:20 -0000 MB: GIGABYTE GA-MA78GM-US2H OS version: FreeBSD 7.2 RELEASE amd64 apcupsd version: 3.14.5 UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW) UPS cable type: usb 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf: --------- UPSCABLE usb UPSTYPE usb DEVICE ((using "DEVICE ugen0" yields the same problem)) --------- Other lines are default. Problem Description: 1. The APC box cannot be detected when connected to the FreeBSD system on system boot. (apcupsd_enable="YES" is set in /etc/rc.conf ) The associated messages in /var/log/messages: --------- May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see . May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown completed --------- But if APC UPS is connected to the system after the system has been started, it can be identified by the system, and running apcupsd start or apctest is just ok. Also, if I disable all USB-related configuraton in kernel and load usb.ko & ugen.ko manually after the sytem has been started, the APC UPS can be identified and running "apcupsd start" now will do just fine. (if using /boot/loader.conf to automatically load 2 modules, the problem still occurs) 2. Continuing 1, if I don't use those ad-hoc, and unplug the connecting USB then re-plug it to the same port, the USB cannot be identified. The associated message in /var/log/messages: --------- May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem (TIMEOUT), disabling port 3 --------- Here is my system information: # less /var/run/dmesg.boot: http://www.ivangelion.tw/~cfliao/dmesg.boot # pciconf -vl > pciconf http://www.ivangelion.tw/~cfliao/pciconf # acpidump -dt > aura-acpidump.asl http://www.ivangelion.tw/~cfliao/aura-acpidump.asl Any help will be greatly appreciated. Best Regards, Chun-fan Ivan Liao http://ivangelion.tw From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 12:11:03 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BB7D1065678 for ; Fri, 12 Jun 2009 12:11:03 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 061A48FC27 for ; Fri, 12 Jun 2009 12:11:02 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1180570ywe.13 for ; Fri, 12 Jun 2009 05:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7bCe7CcuvkKD+vCLTfurgIjR3QT6MeuXc7DHN569K5k=; b=f4FSfXzyPgEUw05AyiY8GNJkjuAVSqaHwKfSRD5jOfIh1bL6M673jZhZPsompvUHkn PMxGEe41EnrSWmBqrT0C1B7IgHg1bB3z7clec8mrd9vmnoqLnS9Io1viIn/DojbXIK9H YISk4ImZ63/NrCmdL3BDdJSZnXvhUk76YErQ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=wvMcp2WY+paMezAONNT7Fzyv8XDnD2sCxVsanPB5ZvYyrUW5edOHnnzkQHO+V9AGRp xdFWdGuy0G/QAQ4wMmqVz8Lq9U3f6BCPSCFrWnyP0Sqk0oqDbRcy4ZRRbdvAkL/s69HN JYbh8VL7enkvzg2X0u6o1P5otvDTx5c88m/FU= MIME-Version: 1.0 Received: by 10.100.10.15 with SMTP id 15mr4764965anj.8.1244808661718; Fri, 12 Jun 2009 05:11:01 -0700 (PDT) In-Reply-To: <200906112210.13313.hselasky@c2i.net> References: <200906091022.41813.hselasky@c2i.net> <200906112210.13313.hselasky@c2i.net> Date: Fri, 12 Jun 2009 12:11:01 +0000 Message-ID: From: Jeremy Faulkner To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, freebsd-current@freebsd.org Subject: Re: Yubikey X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 12:11:03 -0000 On Thu, Jun 11, 2009 at 8:10 PM, Hans Petter Selasky wrote: > Hi, > > Can you try the following patch and report back: > > http://perforce.freebsd.org/chv.cgi?CH=164141 > > --HPS > My Yubikey attaches to ukbd and works. Thanks. -- Jeremy Faulkner From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 13:02:21 2009 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 3965D1065675 for ; Fri, 12 Jun 2009 13:02:21 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id EF4B28FC1B for ; Fri, 12 Jun 2009 13:02:20 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from cherry.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 86DCE77A5E; Fri, 12 Jun 2009 22:02:19 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry.sanpei.org (8.14.3/8.13.8) with ESMTP id n5CD2I4Z015315; Fri, 12 Jun 2009 22:02:18 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Fri, 12 Jun 2009 22:02:17 +0900 (JST) Message-Id: <20090612.220217.257516061.sanpei@sanpei.org> To: hselasky@c2i.net From: MIHIRA Sanpei Yoshiro In-Reply-To: <200906112253.02670.hselasky@c2i.net> References: <200906091703.35094.hselasky@c2i.net> <20090610.073229.85408943.sanpei@sanpei.org> <200906112253.02670.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (cherry.sanpei.org [127.0.0.1]); Fri, 12 Jun 2009 22:02:19 +0900 (JST) Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 13:02:21 -0000 Hi. >Sorry for late reply. Can you try the following patch on 8-current, and report >back? > >http://perforce.freebsd.org/chv.cgi?CH=164142 > >You have to download + replace the patched files. Then "make clean all >install" in the libusb directory. > >There is no need to recompile your application. I apply the above patch to src/lib/libusb. I could control USB Radio!!. Thank you. I will add ports collection. But 7.2-RELEASE still has another problem with this application. Will you fix that problem?? Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 13:38:40 2009 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 0B490106564A; Fri, 12 Jun 2009 13:38:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 66CA38FC18; Fri, 12 Jun 2009 13:38:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=wkuEMt-b5_cA:10 a=xI_TxUDFK_MA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=sXqiulmA2aMAGT5knAQA:9 a=8TIy8-WAVmWez-1H_hAA:7 a=az3kdHb04QDBtED0ZMixTvEyV7kA:4 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 868250153; Fri, 12 Jun 2009 15:38:38 +0200 From: Hans Petter Selasky To: MIHIRA Sanpei Yoshiro , Andrew Thompson Date: Fri, 12 Jun 2009 15:42:52 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906091703.35094.hselasky@c2i.net> <200906112253.02670.hselasky@c2i.net> <20090612.220217.257516061.sanpei@sanpei.org> In-Reply-To: <20090612.220217.257516061.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906121542.53738.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libhid is not run on 8-current and 7.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 13:38:40 -0000 On Friday 12 June 2009 15:02:17 MIHIRA Sanpei Yoshiro wrote: > Hi. > > >Sorry for late reply. Can you try the following patch on 8-current, and > > report back? > > > >http://perforce.freebsd.org/chv.cgi?CH=164142 > > > >You have to download + replace the patched files. Then "make clean all > >install" in the libusb directory. > > > >There is no need to recompile your application. > > I apply the above patch to src/lib/libusb. > > I could control USB Radio!!. Thank you. > I will add ports collection. Hi, Andrew will get the patch in. The patch does not belong in the ports collection. 7.2-RELEASE uses a different USB library than 8.0-CURRENT. > > But 7.2-RELEASE still has another problem with this application. Will you > fix that problem?? No, I'm only fixing stuff in 8.0-current currently. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jun 12 20:43:12 2009 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 1EC601065673; Fri, 12 Jun 2009 20:43:12 +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 E7E388FC19; Fri, 12 Jun 2009 20:43:11 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5CKhBMm084610; Fri, 12 Jun 2009 20:43:11 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5CKhBWc084606; Fri, 12 Jun 2009 20:43:11 GMT (envelope-from linimon) Date: Fri, 12 Jun 2009 20:43:11 GMT Message-Id: <200906122043.n5CKhBWc084606@freefall.freebsd.org> To: rnejdl@ringofsaturn.com, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/135519: Re: usb/119633: [umass] umass0: BBB reset failed, IOERROR [regression] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 20:43:12 -0000 Old Synopsis: Re:%20usb/119633:%20%5Bumass%5D%20umass%30%3A%20BBB%20reset%20failed%2 New Synopsis: Re: usb/119633: [umass] umass0: BBB reset failed, IOERROR [regression] State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Jun 12 20:41:04 UTC 2009 State-Changed-Why: Misfiled followup to usb/119633; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jun 12 20:41:04 UTC 2009 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=135519 From owner-freebsd-usb@FreeBSD.ORG Sat Jun 13 09:30:02 2009 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 D616A106566C for ; Sat, 13 Jun 2009 09:30: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 977478FC21 for ; Sat, 13 Jun 2009 09:30: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.3/8.14.3) with ESMTP id n5D9U2hM019182 for ; Sat, 13 Jun 2009 09:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5D9U2ii019179; Sat, 13 Jun 2009 09:30:02 GMT (envelope-from gnats) Resent-Date: Sat, 13 Jun 2009 09:30:02 GMT Resent-Message-Id: <200906130930.n5D9U2ii019179@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, vehemens Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9610A106566C for ; Sat, 13 Jun 2009 09:20:37 +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 847B08FC14 for ; Sat, 13 Jun 2009 09:20:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5D9KbqY063251 for ; Sat, 13 Jun 2009 09:20:37 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n5D9KbMu063250; Sat, 13 Jun 2009 09:20:37 GMT (envelope-from nobody) Message-Id: <200906130920.n5D9KbMu063250@www.freebsd.org> Date: Sat, 13 Jun 2009 09:20:37 GMT From: vehemens To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/135542: boot loader does not work with a usb keyboard X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 09:30:03 -0000 >Number: 135542 >Category: usb >Synopsis: boot loader does not work with a usb keyboard >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 13 09:30:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: vehemens >Release: 7.2 stable >Organization: >Environment: FreeBSD fred.dsl-verizon.net 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Jun 13 00:49:51 PDT 2009 vehemens@fred.dsl-verizon.net:/usr/obj/usr/src/sys/FRED amd64 >Description: On two different machines (both ASUS M2A-VM), I'm unable to configure the system to use a USB keyboard and have the boot loader respond to keyboard input. If I enable USB legacy support, the kernel panics with a ohci_add_done. If I disable USB legacy support, the boot loader will not respond to keyboard input. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jun 13 17:40:03 2009 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 7C7CB106564A for ; Sat, 13 Jun 2009 17:40: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 502A98FC14 for ; Sat, 13 Jun 2009 17:40: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.3/8.14.3) with ESMTP id n5DHe3lC060776 for ; Sat, 13 Jun 2009 17:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5DHe3kW060775; Sat, 13 Jun 2009 17:40:03 GMT (envelope-from gnats) Date: Sat, 13 Jun 2009 17:40:03 GMT Message-Id: <200906131740.n5DHe3kW060775@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Best Cc: Subject: Re: usb/127549: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 17:40:03 -0000 The following reply was made to PR usb/127549; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/127549: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks Date: Sat, 13 Jun 2009 19:32:00 +0200 (CEST) the patch is in -CURRENT and probably -STABLE. the PR can be closed.