From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 16 12:58:26 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DAF7106564A for ; Sun, 16 Jan 2011 12:58:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id C6FD58FC15 for ; Sun, 16 Jan 2011 12:58:25 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=jVx+AExU5EFhK37+rVAQq6jxd4lXLYohjT2gqEoUpuc= c=1 sm=1 a=kf_XjstXatAA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=597gF8UQPBAQzWMf-nIA:9 a=Ktw01CP4EEy-oYwxXKOZU2aikecA:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 74267273; Sun, 16 Jan 2011 13:58:23 +0100 From: Hans Petter Selasky To: Aryeh Friedman Date: Sun, 16 Jan 2011 13:58:26 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201101161327.29692.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101161358.26075.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org, Mark Felder Subject: Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2011 12:58:26 -0000 On Sunday 16 January 2011 13:30:33 Aryeh Friedman wrote: > On Sun, Jan 16, 2011 at 7:27 AM, Hans Petter Selasky wrote: > > On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote: > >> On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky > > > > wrote: > >> > On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote: > >> >> On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky > >> >> > >> > > >> > wrote: > >> >> > On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote: > >> >> >> if_cdce kernel, > >> >> > > >> >> > if_cdce kernel module > >> >> > > >> >> > --HPS > >> >> > >> >> flosoft-stable# kldload if_cdce > >> >> kldload: can't load if_cdce: File exists > >> > > >> > Any ueX network interfaces? > >> > >> None > >> > >> > Also: > > And what about: > > > > usbconfig -d X.Y dump_curr_config_desc > > flosoft-stable# usbconfig -d 5.2 dump_curr_config_desc > ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0037 > bNumInterfaces = 0x0002 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x0080 > bMaxPower = 0x0080 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x0042 > bInterfaceProtocol = 0x0001 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 Looks like interface 1 is the ADB one (vendor specific). If the ADB client is not using LibUSB then you might get it working by adding the vendor ID and product ID to sys/dev/usb/serial/u3g.c as listed by dump_device_desc . A /dev/cuaU0 will then be created which you can use to transfer data. --HPS