From owner-freebsd-usb@FreeBSD.ORG Tue Nov 25 17:51:12 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F378FBE6 for ; Tue, 25 Nov 2014 17:51:11 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBC14D3D for ; Tue, 25 Nov 2014 17:51:11 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAPHpBer019026 for ; Tue, 25 Nov 2014 17:51:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] New: [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Tue, 25 Nov 2014 17:51:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2014 17:51:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 Bug ID: 195372 Summary: [PATCH] USB quirk for 64GB Lexar Jumpdrive Product: Base System Version: 10.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: freebsd-bugzilla@fasterix.frmug.org Created attachment 149834 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149834&action=edit patch for 10-STABLE kernel The Lexar Jumpdrive key is unusable out of the box, can't disk size, wrongly assumes 0 block. The attached patch allows the USB drive to be correctly recognized and used. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Nov 25 23:47:38 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 537467C1 for ; Tue, 25 Nov 2014 23:47:38 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B3A0AFE for ; Tue, 25 Nov 2014 23:47:38 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAPNlc8f086352 for ; Tue, 25 Nov 2014 23:47:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Tue, 25 Nov 2014 23:47:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 000.fbsd@quip.cz X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2014 23:47:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 Miroslav Lachman <000.fbsd@quip.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |000.fbsd@quip.cz --- Comment #1 from Miroslav Lachman <000.fbsd@quip.cz> --- I have the same problem with Lexar Jump Drive 32GB, so it should be made more generic fix: kernel: ugen1.6: at usbus1 kernel: umass0: on usbus1 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0100 kernel: umass0:2:0:-1: Attached to scbus2 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 kernel: da0: Removable Direct Access SCSI-6 device kernel: da0: Serial Number AA33JJ7ZJFJG8N3C9RM7 kernel: da0: 40.000MB/s transfers kernel: da0: 0MB (1 512 byte sectors: 64H 32S/T 0C) kernel: da0: quirks=0x2 kernel: GEOM_PART: integrity check failed (da0, MBR) kernel: GEOM_PART: integrity check failed (diskid/DISK-AA33JJ7ZJFJG8N3C9RM7, MBR) volmand: CREATE da0 What more should I provide for this flashdisk? -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 00:14:43 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D50A2DF3 for ; Wed, 26 Nov 2014 00:14:43 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD32FDA7 for ; Wed, 26 Nov 2014 00:14:43 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQ0EhLP026442 for ; Wed, 26 Nov 2014 00:14:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 00:14:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 00:14:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #2 from Pierre Beyssac --- (In reply to Miroslav Lachman from comment #1) > kernel: GEOM_PART: integrity check failed (da0, MBR) > kernel: GEOM_PART: integrity check failed (diskid/DISK-AA33JJ7ZJFJG8N3C9RM7, > MBR) > volmand: CREATE da0 > > > What more should I provide for this flashdisk? Use: usbconfig -d 1.6 dump_device_desc Then give idProduct, idVendor so the device can be added to usbdevs. Note that you can add a dynamic quirk to check if the same quirk works with your key: usbconfig -d 1.6 add_quirk UQ_MSC_NO_INQUIRY -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 01:23:58 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E660CD55 for ; Wed, 26 Nov 2014 01:23:58 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5CCB687 for ; Wed, 26 Nov 2014 01:23:58 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQ1NwC9027776 for ; Wed, 26 Nov 2014 01:23:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 01:23:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 000.fbsd@quip.cz X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 01:23:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #3 from Miroslav Lachman <000.fbsd@quip.cz> --- ~/> usbconfig -d 1.5 dump_device_desc ugen1.5: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0210 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x05dc idProduct = 0xa833 bcdDevice = 0x1100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 ~/> sudo usbconfig -d 1.5 add_quirk UQ_MSC_NO_INQUIRY And now it is correctly identified as 30GB kernel: ugen1.5: at usbus1 kernel: umass0: on usbus1 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0500 kernel: umass0:2:0:-1: Attached to scbus2 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 kernel: da0: < > Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 30560MB (62586880 512 byte sectors: 255H 63S/T 3895C) kernel: da0: quirks=0x2 volmand: CREATE da0 volmand: CREATE da0s1 volmand: CREATE msdosfs/Lexar It works in USB 3.0 port too: kernel: ugen0.2: at usbus0 kernel: umass0: on usbus0 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0500 kernel: umass0:2:0:-1: Attached to scbus2 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 kernel: da0: < > Removable Direct Access SCSI-2 device kernel: da0: 400.000MB/s transfers kernel: da0: 30560MB (62586880 512 byte sectors: 255H 63S/T 3895C) kernel: da0: quirks=0x2 Thank you very much! -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 08:06:57 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A895AC0A for ; Wed, 26 Nov 2014 08:06:57 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 903CFB0 for ; Wed, 26 Nov 2014 08:06:57 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQ86vAM048734 for ; Wed, 26 Nov 2014 08:06:57 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 08:06:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 08:06:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #4 from Hans Petter Selasky --- Do you think this quirk applies to all Lexar products? It is possible to mask away the idProduct match and only match the idVendor. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 08:59:31 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1380E936 for ; Wed, 26 Nov 2014 08:59:31 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EF28080A for ; Wed, 26 Nov 2014 08:59:30 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQ8xUUf091540 for ; Wed, 26 Nov 2014 08:59:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 08:59:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 08:59:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #5 from Pierre Beyssac --- (In reply to Hans Petter Selasky from comment #4) > Do you think this quirk applies to all Lexar products? It is possible to > mask away the idProduct match and only match the idVendor. > > --HPS I'm not sure, but I don't fully understand how the quirks templates match works. Note that the idProduct for Miroslav's 32 GB key is the same as for my 64 GB key (0xa833), so we can assume it's the same for all their Jumpstart flash keys. Apparently Lexar has other umass products which work with different quirks already in usb_quirk.c (see CF_READER). -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:02:45 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4BF57A8 for ; Wed, 26 Nov 2014 10:02:45 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8EBDEB1 for ; Wed, 26 Nov 2014 10:02:45 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQA2jNc042807 for ; Wed, 26 Nov 2014 10:02:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:02:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:02:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #6 from Hans Petter Selasky --- Hi, Can you make a complete patch adding the quirks you need to: sys/dev/usb/usb_quirk.c and sys/dev/usb/usbdevs ? Use the ones already there as example! --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:07:18 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DE7A844 for ; Wed, 26 Nov 2014 10:07:18 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8617FEE3 for ; Wed, 26 Nov 2014 10:07:18 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQA7IjK046188 for ; Wed, 26 Nov 2014 10:07:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:07:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:07:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #7 from Hans Petter Selasky --- Should be: sys/dev/usb/quirk/usb_quirk.c -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:25:32 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 21578A76 for ; Wed, 26 Nov 2014 10:25:32 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 089E2117 for ; Wed, 26 Nov 2014 10:25:32 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQAPV3t098498 for ; Wed, 26 Nov 2014 10:25:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:25:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:25:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 Pierre Beyssac changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149834|0 |1 is obsolete| | --- Comment #8 from Pierre Beyssac --- Created attachment 149877 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149877&action=edit patch for 10-STABLE or 11-current kernel -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:26:37 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE0B1B8F for ; Wed, 26 Nov 2014 10:26:37 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5DC012B for ; Wed, 26 Nov 2014 10:26:37 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQAQbQc099310 for ; Wed, 26 Nov 2014 10:26:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:26:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:26:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #9 from Pierre Beyssac --- (In reply to Hans Petter Selasky from comment #6) > Hi, > > Can you make a complete patch adding the quirks you need to: > > sys/dev/usb/usb_quirk.c and sys/dev/usb/usbdevs > > ? > > Use the ones already there as example! > > --HPS I already had attached a patch for 10-STABLE in my initial report but I have adapted it for 32 GB key (removed the "64" suffix in the label) and it applies cleanly on -current. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:58:22 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D53C395 for ; Wed, 26 Nov 2014 10:58:22 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 358246A1 for ; Wed, 26 Nov 2014 10:58:22 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQAwMY8086079 for ; Wed, 26 Nov 2014 10:58:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:58:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:58:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #10 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Wed Nov 26 10:58:09 UTC 2014 New revision: 275110 URL: https://svnweb.freebsd.org/changeset/base/275110 Log: Add new USB quirk. MFC after: 1 week PR: 195372 Changes: head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/usbdevs -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 10:59:16 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6DA13D6 for ; Wed, 26 Nov 2014 10:59:16 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8EEB16AD for ; Wed, 26 Nov 2014 10:59:16 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQAxGAk086386 for ; Wed, 26 Nov 2014 10:59:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 10:59:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:59:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #11 from Hans Petter Selasky --- Can you verify the patch above? -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 14:37:34 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 86F39836 for ; Wed, 26 Nov 2014 14:37:34 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F4F9BC for ; Wed, 26 Nov 2014 14:37:34 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQEbYNV032824 for ; Wed, 26 Nov 2014 14:37:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Wed, 26 Nov 2014 14:37:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 14:37:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #12 from Pierre Beyssac --- (In reply to Hans Petter Selasky from comment #11) > Can you verify the patch above? Seems ok. Note, I don't have a -current system at the moment. Working on that. The patch was tested successfully on FreeBSD 10.1-STABLE with a 64 GB key. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Thu Nov 27 14:48:06 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0510DBA for ; Thu, 27 Nov 2014 14:48:06 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D83EDD41 for ; Thu, 27 Nov 2014 14:48:06 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAREm62s095594 for ; Thu, 27 Nov 2014 14:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 195372] [PATCH] USB quirk for 64GB Lexar Jumpdrive Date: Thu, 27 Nov 2014 14:48:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugzilla@fasterix.frmug.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 14:48:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195372 --- Comment #13 from Pierre Beyssac --- (In reply to Hans Petter Selasky from comment #11) > Can you verify the patch above? Works (tested on 10.1-STABLE/amd64 and 11-CURRENT/i386) -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 00:38:00 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 732FD8FA; Sat, 29 Nov 2014 00:38:00 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 346E1A17; Sat, 29 Nov 2014 00:37:57 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id E9C00341F850; Fri, 28 Nov 2014 16:37:56 -0800 (PST) Message-ID: <54791561.8080200@freebsd.org> Date: Fri, 28 Nov 2014 16:37:53 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: usb@freebsd.org Subject: Question on ue devices autoconfigure versus Linux. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Hans Petter Selasky X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 00:38:00 -0000 Hello, We have a widget here, basically a "beagleclone" that runs Linux. When I plug it into an ubuntu host it shows up as: usb0 Link encap:Ethernet HWaddr 8a:18:9f:c4:a9:02 inet addr:169.254.99.129 Bcast:169.254.99.131 Mask:255.255.255.252 inet6 addr: fe80::8818:9fff:fec4:a902/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:626 (626.0 B) TX bytes:10727 (10.7 KB) Requires no special setup. However on a FreeBSD machine I need to do this: USBDEV=$(shell dmesg | grep '^ugen.*LCD' | sed -E 's/^ugen([0-9]+\.[0-9]+).*/\1/') # target to make the device show up on freebsd. config-freebsd: usbconfig -d $(USBDEV) set_config 1 sleep 5 ifconfig ue0 inet 169.254.99.129/24 up Basically I need to grep dmesg for "ugen" and the string "LCD", then I need to run: usbconfig -d 3.3 set_config 1 # (3.3 comes from dmesg) then.. ifconfig ue0 inet 169.254.99.129/24 up Any idea why Linux can do this all automagically but FreeBSD needs manual help? I even tried putting some stuff into devd.conf, however devd doesn't seem to the right thing if the device is plugged in at boot time. This is because devd only seems to know when a device is plugged in, however it doesn't trigger events when the device has been present since boot. Any tips on this? We can get around this with some custom rc scripts, but I was just wondering if FreeBSD could make it more plug and play. thanks, -Alfred From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 01:05:33 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53C21E93 for ; Sat, 29 Nov 2014 01:05:33 +0000 (UTC) Received: from nm39-vm1.bullet.mail.bf1.yahoo.com (nm39-vm1.bullet.mail.bf1.yahoo.com [72.30.239.145]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A8A4C77 for ; Sat, 29 Nov 2014 01:05:32 +0000 (UTC) Received: from [98.139.212.150] by nm39.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 01:05:31 -0000 Received: from [98.139.212.201] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 01:05:31 -0000 Received: from [127.0.0.1] by omp1010.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 01:05:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 608807.10588.bm@omp1010.mail.bf1.yahoo.com Received: (qmail 84319 invoked by uid 60001); 29 Nov 2014 01:05:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1417223131; bh=1J8OFvFPD9rmaPVbiK5VKT6fp8BzcVS8rDRrqFHORMQ=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ewaWemwxEpFOGgjsURifZ42sMXQK1jxSP0zjrK06s3DqPnDhtqj2eJAP5KdXALP3l7yJ3AVMS4/pmQsKPzUm6gsARKJUQMI5JxST69LnpQhVNu7J6yY4hXR8/b2iqixwHA+dk9hukVanSt6hufukJatn22pn8Js+ccKC0uIiits= X-YMail-OSG: vTzeA_0VM1nUcMaaiC5otcOvaeu5fIwzPDzMEfY5VEovfoo E.ZXzoITgewS_EcX9NcDZvqP_RAunm6pqnJ.QGlmsn_Pu5xZ9.D5l7.P3VCg OXdpv5VnCOJUfN1uPoYyEDINCJZ8oR06C0h7cJZVbZuJv10k_wxWNOa5EBdF 2yep9KguR8beIiNfetvQUWV.A.yRJxhHEu9x.Cv2ZwhI3Uphkw1qhsR4Fv4. IIc3tuty1VxTqbk9Yp_vfKqvjXpek4UOuzzDAnhQxSBmXUgKc4rJwik1X.dX k3KwtaAahmMHMTF6VpLq7wzNozY6vBOOBKtBv3Lfw86IbTM.RxzjYf1SX3Dw AxJtS_ak9Ybj9BNFznQuhtPpJGF.V_SlLzPSlMMNFN_1oVmVVozULz0ik13U eNbAHyR8uSvL75amczGvLhTZHYXrEok0RlACxEWEa7LdUcjwto7OVCeRHvzw 42PfxqxrQINDtyDfflHVW18tcyj6jrIL6xpn4P1SlMZy0icE3QWHZEOE34wN GZyzFrEV_32yxRvs2drgSiNohywAycwuQ64AuFxErcW8ex1AaKTsgAjeAen8 zNRqVOAgqRqGpdniaYtkKSYFB_0HpwEUUx3MLoshtRZqNBgDYDhBINmKUS3W HewwZqA-- Received: from [64.134.30.226] by web140503.mail.bf1.yahoo.com via HTTP; Fri, 28 Nov 2014 17:05:31 PST X-Rocket-MIMEInfo: 002.001, QWxmcmVkLA0KSSB1c3VhbGx5IGRvbid0IGdldCB0aGUgVVNCIG1haWxpbmcgbGlzdCBpbiBteSBpbmJveC4gSG93ZXZlciwNCmZvciBzb21lIHJlYXNvbiBJIGZpc2hlZCB0aGlzIG91dCBvZiBzcGFtLiBJbmRpY2F0aW5nIHRvIG1lDQpJIHNob3VsZCBhbnN3ZXIgdGhpcy4NCg0KVEhFIEFOU1dFUjoNCg0KSG90IHN3YXBwaW5nIGhhcyBuZXZlciBiZWVuIGEgc3Ryb25nIHBvaW50IGZvciBCU0QuDQpCYXNpY2FsbHkgdGhleSB0aGluaywgImhvdCBzd2FwcGluZyIgbWVhbnMsIGZsaXAgYQ0KbWVjaGFuaWNhbCABMAEBAQE- X-Mailer: YahooMailClassic/858 YahooMailWebService/0.8.203.740 Message-ID: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> Date: Fri, 28 Nov 2014 17:05:31 -0800 From: Jesus Monroy Subject: Re: Question on ue devices autoconfigure versus Linux. To: usb@freebsd.org, Alfred Perlstein In-Reply-To: <54791561.8080200@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Hans Petter Selasky X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 01:05:33 -0000 Alfred, I usually don't get the USB mailing list in my inbox. However, for some reason I fished this out of spam. Indicating to me I should answer this. THE ANSWER: Hot swapping has never been a strong point for BSD. Basically they think, "hot swapping" means, flip a mechanical switch, remove the device. They DON'T think like a USB device; which is "plug in and pull" - at will.=20 In the Linux world, there is an army of people that attack problems like this 'ad hoc'. The BSD community is far too formal to get it done in any reasonable time frame. In the Linux world, there are a host of "post-boot" solutions, such as systemd, busd, etc. They all generally trap an event, be it real (such as an IRQ), network, program, or user. This is usually leverage by /proc, dmesg or similar.=20 Hope this helps. FWIW: I'm living in El Paso Texas for the next 6 months. Best of Luck, Jesse -------------------------------------------- On Fri, 11/28/14, Alfred Perlstein wrote: Subject: Question on ue devices autoconfigure versus Linux. To: usb@freebsd.org Cc: "Hans Petter Selasky" Date: Friday, November 28, 2014, 5:37 PM =20 Hello, =20 We have a widget here, basically a "beagleclone" that runs Linux. =20 When I plug it into an ubuntu host it shows up as: =20 usb0=A0 =A0 =A0 Link encap:Ethernet=A0 HWaddr 8a:18:9f:c4:a9:02 =A0 =A0 =A0 =A0 =A0=A0=A0inet addr:169.254.99.129=A0 Bcast:169.254.99.131=20 Mask:255.255.255.252 =A0 =A0 =A0 =A0 =A0=A0=A0inet6 addr: fe80::8818:9fff:fec4:a902/64 Scope:Link =A0 =A0 =A0 =A0 =A0=A0=A0UP BROADCAST RUNNING MULTICAST=A0 MTU:1500=A0 Metric:1 =A0 =A0 =A0 =A0 =A0=A0=A0RX packets:3 errors:0 dropped:0 overruns:0 frame:0 =A0 =A0 =A0 =A0 =A0=A0=A0TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 =A0 =A0 =A0 =A0 =A0=A0=A0collisions:0 txqueuelen:1000 =A0 =A0 =A0 =A0 =A0=A0=A0RX bytes:626 (626.0 B)=A0 TX bytes:10727 (10.7 KB) =20 Requires no special setup. =20 However on a FreeBSD machine I need to do this: =20 USBDEV=3D$(shell dmesg | grep '^ugen.*LCD' | sed -E=20 's/^ugen([0-9]+\.[0-9]+).*/\1/') # target to make the device show up on freebsd. config-freebsd: =A0 =A0 =A0 =A0=A0=A0usbconfig -d $(USBDEV) set_config 1 =A0 =A0 =A0 =A0=A0=A0sleep 5 =A0 =A0 =A0 =A0=A0=A0ifconfig ue0 inet 169.254.99.129/24=A0 up =20 Basically I need to grep dmesg for "ugen" and the string "LCD", then I=20 need to run: =A0 usbconfig -d 3.3 set_config 1=A0 # (3.3 comes from dmesg) =A0 then.. =A0 ifconfig ue0 inet 169.254.99.129/24=A0 up =20 Any idea why Linux can do this all automagically but FreeBSD needs=20 manual help? =20 =20 I even tried putting some stuff into devd.conf, however devd doesn't=20 seem to the right thing if the device is plugged in at boot time. This=20 is because devd only seems to know when a device is plugged in, however=20 it doesn't trigger events when the device has been present since boot. =20 Any tips on this?=A0 We can get around this with some custom rc scripts,=20 but I was just wondering if FreeBSD could make it more plug and play. =20 thanks, -Alfred _______________________________________________ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 01:16:21 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F5081B9; Sat, 29 Nov 2014 01:16:21 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0B0D55; Sat, 29 Nov 2014 01:16:21 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id ADD60341F850; Fri, 28 Nov 2014 17:16:20 -0800 (PST) Message-ID: <54791E62.5000406@freebsd.org> Date: Fri, 28 Nov 2014 17:16:18 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Jesus Monroy , usb@freebsd.org Subject: Re: Question on ue devices autoconfigure versus Linux. References: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> In-Reply-To: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Hans Petter Selasky X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 01:16:21 -0000 Well sure, but we have devd in FreeBSD for some time. It actually does handle the hot plug (sort-of...) I made a custom devd hook for it. The actual problem is that if I boot FreeBSD with the device plugged in then devd never runs my hooks. That and I'm not sure if devd is even the right place... to put my hooks, but it sure seems like it... except for the "doesn't show up at boot". Also really interested in knowing how the heck Linux figures out the IP address? Is there some usb ethernet spec for autoconfiguring??? -Alfred On 11/28/14, 5:05 PM, Jesus Monroy wrote: > Alfred, > I usually don't get the USB mailing list in my inbox. However, > for some reason I fished this out of spam. Indicating to me > I should answer this. > > THE ANSWER: > > Hot swapping has never been a strong point for BSD. > Basically they think, "hot swapping" means, flip a > mechanical switch, remove the device. They DON'T > think like a USB device; which is "plug in and pull" > - at will. > > In the Linux world, there is an army of people that > attack problems like this 'ad hoc'. The BSD > community is far too formal to get it done in > any reasonable time frame. > > In the Linux world, there are a host of "post-boot" > solutions, such as systemd, busd, etc. They all > generally trap an event, be it real (such as an IRQ), > network, program, or user. This is usually > leverage by /proc, dmesg or similar. > > Hope this helps. > FWIW: I'm living in El Paso Texas for the next 6 months. > > Best of Luck, > Jesse > > > -------------------------------------------- > On Fri, 11/28/14, Alfred Perlstein wrote: > > Subject: Question on ue devices autoconfigure versus Linux. > To: usb@freebsd.org > Cc: "Hans Petter Selasky" > Date: Friday, November 28, 2014, 5:37 PM > > Hello, > > We have a widget here, basically a "beagleclone" that runs > Linux. > > When I plug it into an ubuntu host it shows up as: > > usb0 Link encap:Ethernet HWaddr > 8a:18:9f:c4:a9:02 > inet > addr:169.254.99.129 Bcast:169.254.99.131 > Mask:255.255.255.252 > inet6 addr: > fe80::8818:9fff:fec4:a902/64 Scope:Link > UP BROADCAST > RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:3 > errors:0 dropped:0 overruns:0 frame:0 > TX packets:56 > errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 > txqueuelen:1000 > RX bytes:626 > (626.0 B) TX bytes:10727 (10.7 KB) > > Requires no special setup. > > However on a FreeBSD machine I need to do this: > > USBDEV=$(shell dmesg | grep '^ugen.*LCD' | sed -E > 's/^ugen([0-9]+\.[0-9]+).*/\1/') > # target to make the device show up on freebsd. > config-freebsd: > usbconfig -d > $(USBDEV) set_config 1 > sleep 5 > ifconfig ue0 inet > 169.254.99.129/24 up > > Basically I need to grep dmesg for "ugen" and the string > "LCD", then I > need to run: > usbconfig -d 3.3 set_config 1 # (3.3 comes from > dmesg) > then.. > ifconfig ue0 inet 169.254.99.129/24 up > > Any idea why Linux can do this all automagically but FreeBSD > needs > manual help? > > > I even tried putting some stuff into devd.conf, however devd > doesn't > seem to the right thing if the device is plugged in at boot > time. This > is because devd only seems to know when a device is plugged > in, however > it doesn't trigger events when the device has been present > since boot. > > Any tips on this? We can get around this with some > custom rc scripts, > but I was just wondering if FreeBSD could make it more plug > and play. > > thanks, > -Alfred > _______________________________________________ > freebsd-usb@freebsd.org > mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 01:36:46 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6D78516; Sat, 29 Nov 2014 01:36:46 +0000 (UTC) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FE5EEF7; Sat, 29 Nov 2014 01:36:46 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id tr6so6847424ieb.3 for ; Fri, 28 Nov 2014 17:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=nzXrfykUwEqsbrop6F+yWMuhHy+PBh6EZPP6g6AzjIM=; b=QgVmllJlOBw5TyvRTHARTEqihv6uAghJgUD0Qd+nh5z1xhxqw3JhsLF0HRyDmvF0VS MUOef9OmUEYzJ5+Hjc7sH/EOE/4WGR7CZXfbN2gKv4er7yFxOYG1l2q9YGIg8PRo9ZPz A/ZwTR76P8YcTe37BcvaCubct3VtbZ1YHkKDuiywHO+6yMJ774cU5HdIKRkpvGy6fBI9 OlmFvDieV7y/U0WymiyPtpHInL6QPt2fvEvkV42IZx9JfCVvbjlFTZNo0i0yeymw8g4I taqytS1OrgfKSX6TpvBLpWJPZztgUWz4bE0f0GPhEQ4mYXs1JtuIdhtRmzlDBu7trEGX mSSQ== X-Received: by 10.50.88.69 with SMTP id be5mr35811046igb.21.1417225005850; Fri, 28 Nov 2014 17:36:45 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.29.141 with HTTP; Fri, 28 Nov 2014 17:36:25 -0800 (PST) In-Reply-To: <54791E62.5000406@freebsd.org> References: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> <54791E62.5000406@freebsd.org> From: Ed Maste Date: Fri, 28 Nov 2014 20:36:25 -0500 X-Google-Sender-Auth: cldvCr69RJ1UWFCbgx8tV8H5Uag Message-ID: Subject: Re: Question on ue devices autoconfigure versus Linux. To: Alfred Perlstein Content-Type: text/plain; charset=UTF-8 Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 01:36:46 -0000 On 28 November 2014 at 20:16, Alfred Perlstein wrote: > > Also really interested in knowing how the heck Linux figures out the IP > address? The 169.254.x.x is a link-local IPv4 address - see RFC 3927. I haven't used it, but the avahi-autoipd pkg might take care of it for you. From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 02:51:44 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B23572F3; Sat, 29 Nov 2014 02:51:44 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA9E819; Sat, 29 Nov 2014 02:51:44 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 71EE2341F84F; Fri, 28 Nov 2014 18:51:38 -0800 (PST) Message-ID: <547934B8.60906@freebsd.org> Date: Fri, 28 Nov 2014 18:51:36 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Ed Maste Subject: Re: Question on ue devices autoconfigure versus Linux. References: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> <54791E62.5000406@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 02:51:44 -0000 On 11/28/14, 5:36 PM, Ed Maste wrote: > On 28 November 2014 at 20:16, Alfred Perlstein wrote: >> Also really interested in knowing how the heck Linux figures out the IP >> address? > The 169.254.x.x is a link-local IPv4 address - see RFC 3927. > > I haven't used it, but the avahi-autoipd pkg might take care of it for you. > Well remote side (the beagleclone running linux) is hardwired to 169.254.99.130 and somehow the Ubuntu box I plug it into sorts that out. On MAC same thing happens: en5: flags=8863 mtu 1500 ether 5e:7e:b7:b1:2b:ba inet6 fe80::5c7e:b7ff:feb1:2bba%en5 prefixlen 64 scopeid 0xe inet 169.254.99.129 netmask 0xfffffffc broadcast 169.254.99.131 nd6 options=1 media: autoselect (10baseT/UTP ) status: active I can look at avahi-autoipd though. See what comes from it. Thank you Ed. -Alfred From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 04:42:30 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D0162B9; Sat, 29 Nov 2014 04:42:30 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9EFE9355; Sat, 29 Nov 2014 04:42:29 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 6279C1FE022; Sat, 29 Nov 2014 05:42:27 +0100 (CET) Message-ID: <54794ECB.2080401@selasky.org> Date: Sat, 29 Nov 2014 05:42:51 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Jesus Monroy , "freebsd-usb@FreeBSD.org" , Alfred Perlstein Subject: Re: Question on ue devices autoconfigure versus Linux. References: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> In-Reply-To: <1417223131.59789.YahooMailBasic@web140503.mail.bf1.yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 04:42:30 -0000 On 11/29/14 02:05, Jesus Monroy via freebsd-usb wrote: > Alfred, > I usually don't get the USB mailing list in my inbox. However, > for some reason I fished this out of spam. Indicating to me > I should answer this. > > THE ANSWER: > > Hot swapping has never been a strong point for BSD. > Basically they think, "hot swapping" means, flip a > mechanical switch, remove the device. They DON'T > think like a USB device; which is "plug in and pull" > - at will. > > In the Linux world, there is an army of people that > attack problems like this 'ad hoc'. The BSD > community is far too formal to get it done in > any reasonable time frame. > > In the Linux world, there are a host of "post-boot" > solutions, such as systemd, busd, etc. They all > generally trap an event, be it real (such as an IRQ), > network, program, or user. This is usually > leverage by /proc, dmesg or similar. > > Hope this helps. > FWIW: I'm living in El Paso Texas for the next 6 months. > > Best of Luck, > Jesse Hello! The FreeBSD USB kernel side stack does not know during boot if a driver will be loaded by devd for the given configuration or not. So it doesn't switch it to see if a driver attaches! There are already a couple of checks to switch to non-default configurations, and possibly these can be extended. What you want to do is to add a quirk for your device to sys/dev/usb/quirk/usb_quirk.c named "UQ_CFG_INDEX_1". Maybe Linux has this quirk already, I don't know. There exist a couple of USB protocols defined by USB.org, which everyone can use free of royalty, like CDC-ethernet and NCM. Because some big IT vendors out there don't support these protocols out of the box, they are sometimes considered as secondary USB protocols, and left in the non-default configuration. Instead the device manufacturers implement MS's RNDIS as the first choice typically. Can you send a complete dump of your device's configuration descriptors: usbconfig -d X.Y dump_device_desc dump_all_config_desc And also check that your "/etc/devd/usb.conf" is up to date! --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Nov 29 20:41:05 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 86096802 for ; Sat, 29 Nov 2014 20:41:05 +0000 (UTC) Received: from nm12-vm0.bullet.mail.bf1.yahoo.com (nm12-vm0.bullet.mail.bf1.yahoo.com [98.139.213.140]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BF56300 for ; Sat, 29 Nov 2014 20:41:04 +0000 (UTC) Received: from [66.196.81.171] by nm12.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 20:40:58 -0000 Received: from [98.139.212.234] by tm17.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 20:40:58 -0000 Received: from [127.0.0.1] by omp1043.mail.bf1.yahoo.com with NNFMP; 29 Nov 2014 20:40:58 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 279867.32973.bm@omp1043.mail.bf1.yahoo.com Received: (qmail 76147 invoked by uid 60001); 29 Nov 2014 20:40:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1417293658; bh=GxJWoFPlMTyb+wglNPR0LxhNpScOhl9StCBvq489CKw=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2vqPzSvmCgoLTKvw+aKS1kcggKzz6sDlPl8eXsxbNIZKFbzOmWdEoJBjWyeK1l1ksUKWr98eYuLxrA3R5OhSgmm1xfKFt4GH1c0Qx7q2Vn5pqD3akee8YPou/n/qUlCW4wLAPfIlf01zS4DLwC4suZC84Y6Pp57LRuUuY7dGEqw= X-YMail-OSG: 82QVHD0VM1mxo_4ZzHK324wNNpH6gifovi2WLvcY7bpsiGH lfBg9isCmW0epbQBMDh7UUWv7Ru.xDyC.Bf3XToO9vSKS_Lqqlb2B3wGEqza NG_VbzsxIVjyG7mQLH7oMvYHQFRUX4dFwxhCvqkKYoZXAvEdV0kUgyttYU_Y m5UUfuB5aDpC26oO7pH.wHSDPIlCISbzk19SgqGd6ShvvULoY.PmaRFwZtid IAFRj6LBtlQY.FVWpLaBE8tGkffsi13WqVR74o01SOLsR5Fzj.ZDRj5gwP04 .niy.YgLsLVUas7x5MX6FBsFH2vdxyJcTyuyoy9uCCKjGMWUv3z59I.sE2wn IXfla0ONCSbYuZAnfH5wgo4hWyEMXKtirS0YVCO2Ez.nEg1rFTKCkIECDDJy QNWdYrLGI0DeUYMuYjURzybcWL_u4EvqVp57pTtLDEFaDVuj0B6DJ_okzns. TI7zrKM0l5YeVjEJCdNRV5z0Zln4ESfb4Zv5FjqX9Qe4ZRjudkarxw7tG.NA nzJ0flGLQNkvfFaJgkPeT2wmWpRgZSwu7iDOUAcRcqKhezXySl7.dk82Q2pu Dgb1uD65BVODU7faYuPAoWTLyAOzkanNdzmlOqYiR4YCl1NsZeEH6HLufMw- - Received: from [99.96.149.241] by web140502.mail.bf1.yahoo.com via HTTP; Sat, 29 Nov 2014 12:40:57 PST X-Rocket-MIMEInfo: 002.001, QWxmcmVkLA0KQXMgeW91IG1heSByZWNhbGwsIGF0IEFueWJvdHMgVVNCIHdhcyB0aGUgYmFja2JvbmUgb2Ygb3VyIGJvdC4NCkFuZCBhcyBubyBvbmUgd2FudGVkIHRvIHRhY2tsZSB0aGUgVVNCLCBiZXNpZGVzIEpvaG4gYW5kIEksDQppdCBmZWxsIHRvIG1lIHRvIHJlYWQgdGhlIFNwZWMuIEpvaG4gY2FuIHRlbGwgeW91IGFzIG11Y2ggYXMgSQ0KY2FuIFVTQiBpcyBhIGJhc2tldCBjYXNlIGFuZCBhIGJhc3RhcmQgY2hpbGQuDQoNClRvIGFjY29tcGxpc2ggeW91ciB0YXNrIEkgd291bGQgc3VnZ2VzdCBydW4BMAEBAQE- X-Mailer: YahooMailClassic/858 YahooMailWebService/0.8.203.740 Message-ID: <1417293657.7061.YahooMailBasic@web140502.mail.bf1.yahoo.com> Date: Sat, 29 Nov 2014 12:40:57 -0800 From: Jesus Monroy Subject: Re: Question on ue devices autoconfigure versus Linux. To: usb@freebsd.org, Alfred Perlstein In-Reply-To: <54791E62.5000406@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Hans Petter Selasky X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 20:41:05 -0000 Alfred, As you may recall, at Anybots USB was the backbone of our bot. And as no one wanted to tackle the USB, besides John and I, it fell to me to read the Spec. John can tell you as much as I can USB is a basket case and a bastard child. To accomplish your task I would suggest running your task in user space (with privileges of course).=20 USB requires timing, negative-timing, fallbacks and timeouts. It is not pretty. Perhaps in 5-10 years we can kill the negative-timing and fallbacks, with some confidence that USB 1.0 are no longer available and cannot be plugged in to new devices. timing, fallbacks and timeouts are straightforward. negative-timing requires that you guess if a 1.0 device might have been attached to bus. Most MFGs ignore this, and either fuck the device or fuck the bus. Recovery requires that your USB bus (or hub) allows you to reset it. Which if you've fucked the bus, means you have to guess when the device was removed and recover in a normal method. Hope this helps. Jesse -------------------------------------------- On Fri, 11/28/14, Alfred Perlstein wrote: Subject: Re: Question on ue devices autoconfigure versus Linux. To: "Jesus Monroy" , usb@freebsd.org Cc: "Hans Petter Selasky" Date: Friday, November 28, 2014, 6:16 PM =20 Well sure, but we have devd in FreeBSD for some time.=A0 It actually does=20 handle the hot plug (sort-of...) I made a custom devd hook for it. =20 The actual problem is that if I boot FreeBSD with the device plugged in=20 then devd never runs my hooks. =20 That and I'm not sure if devd is even the right place... to put my=20 hooks, but it sure seems like it... except for the "doesn't show up at=20 boot". =20 Also really interested in knowing how the heck Linux figures out the IP=20 address? =20 Is there some usb ethernet spec for autoconfiguring??? =20 -Alfred =20 =20 On 11/28/14, 5:05 PM, Jesus Monroy wrote: > Alfred, > I usually don't get the USB mailing list in my inbox. However, > for some reason I fished this out of spam. Indicating to me > I should answer this. > > THE ANSWER: > > Hot swapping has never been a strong point for BSD. > Basically they think, "hot swapping" means, flip a > mechanical switch, remove the device. They DON'T > think like a USB device; which is "plug in and pull" > - at will. > > In the Linux world, there is an army of people that > attack problems like this 'ad hoc'. The BSD > community is far too formal to get it done in > any reasonable time frame. > > In the Linux world, there are a host of "post-boot" > solutions, such as systemd, busd, etc. They all > generally trap an event, be it real (such as an IRQ), > network, program, or user.=A0 This is usually > leverage by /proc, dmesg or similar. > > Hope this helps. > FWIW: I'm living in El Paso Texas for the next 6 months. > > Best of Luck, > Jesse > > > -------------------------------------------- > On Fri, 11/28/14, Alfred Perlstein wrote: > >=A0=A0=A0Subject: Question on ue devices autoconfigure versus Linux. >=A0=A0=A0To: usb@freebsd.org >=A0=A0=A0Cc: "Hans Petter Selasky" >=A0=A0=A0Date: Friday, November 28, 2014, 5:37 PM >=A0=A0=A0 >=A0=A0=A0Hello, >=A0=A0=A0 >=A0=A0=A0We have a widget here, basically a "beagleclone" that runs >=A0=A0=A0Linux. >=A0=A0=A0 >=A0=A0=A0When I plug it into an ubuntu host it shows up as: >=A0=A0=A0 >=A0=A0=A0usb0=A0 =A0 =A0 Link encap:Ethernet=A0 HWaddr >=A0=A0=A08a:18:9f:c4:a9:02 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 inet >=A0=A0=A0addr:169.254.99.129=A0 Bcast:169.254.99.131 >=A0=A0=A0Mask:255.255.255.252 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 inet6 addr: >=A0=A0=A0fe80::8818:9fff:fec4:a902/64 Scope:Link >=A0 =A0 =A0 =A0 =A0 =A0 =A0 UP BROADCAST >=A0=A0=A0RUNNING MULTICAST=A0 MTU:1500=A0 Metric:1 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 RX packets:3 >=A0=A0=A0errors:0 dropped:0 overruns:0 frame:0 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 TX packets:56 >=A0=A0=A0errors:0 dropped:0 overruns:0 carrier:0 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 collisions:0 >=A0=A0=A0txqueuelen:1000 >=A0 =A0 =A0 =A0 =A0 =A0 =A0 RX bytes:626 >=A0=A0=A0(626.0 B)=A0 TX bytes:10727 (10.7 KB) >=A0=A0=A0 >=A0=A0=A0Requires no special setup. >=A0=A0=A0 >=A0=A0=A0However on a FreeBSD machine I need to do this: >=A0=A0=A0 >=A0=A0=A0USBDEV=3D$(shell dmesg | grep '^ugen.*LCD' | sed -E >=A0=A0=A0's/^ugen([0-9]+\.[0-9]+).*/\1/') >=A0=A0=A0# target to make the device show up on freebsd. >=A0=A0=A0config-freebsd: >=A0 =A0 =A0 =A0 =A0 =A0 usbconfig -d >=A0=A0=A0$(USBDEV) set_config 1 >=A0 =A0 =A0 =A0 =A0 =A0 sleep 5 >=A0 =A0 =A0 =A0 =A0 =A0 ifconfig ue0 inet >=A0=A0=A0169.254.99.129/24=A0 up >=A0=A0=A0 >=A0=A0=A0Basically I need to grep dmesg for "ugen" and the string >=A0=A0=A0"LCD", then I >=A0=A0=A0need to run: >=A0 =A0=A0=A0usbconfig -d 3.3 set_config 1=A0 # (3.3 comes from >=A0=A0=A0dmesg) >=A0 =A0=A0=A0then.. >=A0 =A0=A0=A0ifconfig ue0 inet 169.254.99.129/24=A0 up >=A0=A0=A0 >=A0=A0=A0Any idea why Linux can do this all automagically but FreeBSD >=A0=A0=A0needs >=A0=A0=A0manual help? >=A0=A0=A0 >=A0=A0=A0 >=A0=A0=A0I even tried putting some stuff into devd.conf, however devd >=A0=A0=A0doesn't >=A0=A0=A0seem to the right thing if the device is plugged in at boot >=A0=A0=A0time. This >=A0=A0=A0is because devd only seems to know when a device is plugged >=A0=A0=A0in, however >=A0=A0=A0it doesn't trigger events when the device has been present >=A0=A0=A0since boot. >=A0=A0=A0 >=A0=A0=A0Any tips on this?=A0 We can get around this with some >=A0=A0=A0custom rc scripts, >=A0=A0=A0but I was just wondering if FreeBSD could make it more plug >=A0=A0=A0and play. >=A0=A0=A0 >=A0=A0=A0thanks, >=A0=A0=A0-Alfred >=A0=A0=A0_______________________________________________ >=A0=A0=A0freebsd-usb@freebsd.org >=A0=A0=A0mailing list >=A0=A0=A0http://lists.freebsd.org/mailman/listinfo/freebsd-usb >=A0=A0=A0To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebs= d.org" >=A0=A0=A0 > =20