From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 16 14:19:24 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 416CC1065674 for ; Sun, 16 Jan 2011 14:19:24 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C5F638FC27 for ; Sun, 16 Jan 2011 14:19:23 +0000 (UTC) Received: by wyf19 with SMTP id 19so4427550wyf.13 for ; Sun, 16 Jan 2011 06:19:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yopAKKTl/HwPq30/xUGgsQRN9MwlzeIl71xuzZ4xIlE=; b=MXRQKRx/J/Xztn4guIK25qGdfSRSE86mzKAxptLDl64S7HGO/R3Bm70WzfXslyEfS7 EFqjKr9v7eFRxtr0tafEB1NYrnXfMaiqFnq6NS8eGSjG5yMV09MFduzzbAFCsMdiF0zv 0z+vnwNRnWt8U8W1VH7OxeNKfIDtEIuvoe2M0= 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=uZJgBqNMibcV3DlFZqwjtDGjF4FaFFcM14QDkV7dFKnBFz/0Ai4nq7iU9vyBSSRJwQ lcCnUuI2cbrrCArqlBeV9m3703gaGA773i1Oimbt8IbuVSiYwpg0mqomDOfWYbZb0rRv Qk9QKGzyDZJUMJyCxDkHI9u/25e/hBaRZoHrI= MIME-Version: 1.0 Received: by 10.216.154.136 with SMTP id h8mr2323107wek.84.1295187562605; Sun, 16 Jan 2011 06:19:22 -0800 (PST) Received: by 10.216.52.66 with HTTP; Sun, 16 Jan 2011 06:19:22 -0800 (PST) In-Reply-To: <20110116131717.GC2518@deviant.kiev.zoral.com.ua> References: <201101161327.29692.hselasky@c2i.net> <201101161358.26075.hselasky@c2i.net> <20110116131717.GC2518@deviant.kiev.zoral.com.ua> Date: Sun, 16 Jan 2011 09:19:22 -0500 Message-ID: From: Aryeh Friedman To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Hans Petter Selasky 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 14:19:24 -0000 Are you talking about BSDoid or FreeDroid? On Sun, Jan 16, 2011 at 8:17 AM, Kostik Belousov wrot= e: > On Sun, Jan 16, 2011 at 01:58:26PM +0100, Hans Petter Selasky wrote: >> 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=3D0 md=3DHOST spd=3DHIGH (= 480Mbps) >> > pwr=3DON >> > >> > >> > =A0Configuration index 0 >> > >> > =A0 =A0 bLength =3D 0x0009 >> > =A0 =A0 bDescriptorType =3D 0x0002 >> > =A0 =A0 wTotalLength =3D 0x0037 >> > =A0 =A0 bNumInterfaces =3D 0x0002 >> > =A0 =A0 bConfigurationValue =3D 0x0001 >> > =A0 =A0 iConfiguration =3D 0x0000 =A0 >> > =A0 =A0 bmAttributes =3D 0x0080 >> > =A0 =A0 bMaxPower =3D 0x0080 >> > >> > =A0 =A0 Interface 0 >> > =A0 =A0 =A0 bLength =3D 0x0009 >> > =A0 =A0 =A0 bDescriptorType =3D 0x0004 >> > =A0 =A0 =A0 bInterfaceNumber =3D 0x0000 >> > =A0 =A0 =A0 bAlternateSetting =3D 0x0000 >> > =A0 =A0 =A0 bNumEndpoints =3D 0x0002 >> > =A0 =A0 =A0 bInterfaceClass =3D 0x0008 >> > =A0 =A0 =A0 bInterfaceSubClass =3D 0x0006 >> > =A0 =A0 =A0 bInterfaceProtocol =3D 0x0050 >> > =A0 =A0 =A0 iInterface =3D 0x0000 =A0 >> > >> > =A0 =A0 =A0Endpoint 0 >> > =A0 =A0 =A0 =A0 bLength =3D 0x0007 >> > =A0 =A0 =A0 =A0 bDescriptorType =3D 0x0005 >> > =A0 =A0 =A0 =A0 bEndpointAddress =3D 0x0001 =A0 >> > =A0 =A0 =A0 =A0 bmAttributes =3D 0x0002 =A0 >> > =A0 =A0 =A0 =A0 wMaxPacketSize =3D 0x0200 >> > =A0 =A0 =A0 =A0 bInterval =3D 0x0000 >> > =A0 =A0 =A0 =A0 bRefresh =3D 0x0000 >> > =A0 =A0 =A0 =A0 bSynchAddress =3D 0x0000 >> > >> > =A0 =A0 =A0Endpoint 1 >> > =A0 =A0 =A0 =A0 bLength =3D 0x0007 >> > =A0 =A0 =A0 =A0 bDescriptorType =3D 0x0005 >> > =A0 =A0 =A0 =A0 bEndpointAddress =3D 0x0081 =A0 >> > =A0 =A0 =A0 =A0 bmAttributes =3D 0x0002 =A0 >> > =A0 =A0 =A0 =A0 wMaxPacketSize =3D 0x0200 >> > =A0 =A0 =A0 =A0 bInterval =3D 0x0000 >> > =A0 =A0 =A0 =A0 bRefresh =3D 0x0000 >> > =A0 =A0 =A0 =A0 bSynchAddress =3D 0x0000 >> > >> > >> > =A0 =A0 Interface 1 >> > =A0 =A0 =A0 bLength =3D 0x0009 >> > =A0 =A0 =A0 bDescriptorType =3D 0x0004 >> > =A0 =A0 =A0 bInterfaceNumber =3D 0x0001 >> > =A0 =A0 =A0 bAlternateSetting =3D 0x0000 >> > =A0 =A0 =A0 bNumEndpoints =3D 0x0002 >> > =A0 =A0 =A0 bInterfaceClass =3D 0x00ff >> > =A0 =A0 =A0 bInterfaceSubClass =3D 0x0042 >> > =A0 =A0 =A0 bInterfaceProtocol =3D 0x0001 >> > =A0 =A0 =A0 iInterface =3D 0x0000 =A0 >> > >> > =A0 =A0 =A0Endpoint 0 >> > =A0 =A0 =A0 =A0 bLength =3D 0x0007 >> > =A0 =A0 =A0 =A0 bDescriptorType =3D 0x0005 >> > =A0 =A0 =A0 =A0 bEndpointAddress =3D 0x0002 =A0 >> > =A0 =A0 =A0 =A0 bmAttributes =3D 0x0002 =A0 >> > =A0 =A0 =A0 =A0 wMaxPacketSize =3D 0x0200 >> > =A0 =A0 =A0 =A0 bInterval =3D 0x0000 >> > =A0 =A0 =A0 =A0 bRefresh =3D 0x0000 >> > =A0 =A0 =A0 =A0 bSynchAddress =3D 0x0000 >> > >> > =A0 =A0 =A0Endpoint 1 >> > =A0 =A0 =A0 =A0 bLength =3D 0x0007 >> > =A0 =A0 =A0 =A0 bDescriptorType =3D 0x0005 >> > =A0 =A0 =A0 =A0 bEndpointAddress =3D 0x0082 =A0 >> > =A0 =A0 =A0 =A0 bmAttributes =3D 0x0002 =A0 >> > =A0 =A0 =A0 =A0 wMaxPacketSize =3D 0x0200 >> > =A0 =A0 =A0 =A0 bInterval =3D 0x0000 >> > =A0 =A0 =A0 =A0 bRefresh =3D 0x0000 >> > =A0 =A0 =A0 =A0 bSynchAddress =3D 0x0000 >> >> Looks like interface 1 is the ADB one (vendor specific). If the ADB clie= nt is >> not using LibUSB then you might get it working by adding the vendor ID a= nd >> 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. > > FWIW, I successfully used adb from freebsd port of android SDK to > connect to Samsung Galaxy S. For sure, it only worked on i386, but > this is a known issue with libusb. >