Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2011 15:17:17 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)
Message-ID:  <20110116131717.GC2518@deviant.kiev.zoral.com.ua>
In-Reply-To: <201101161358.26075.hselasky@c2i.net>
References:  <AANLkTinL%2BrVkn=F-Smdf0_PpP6E%2B0FCUmhDWG758%2B2eh@mail.gmail.com> <201101161327.29692.hselasky@c2i.net> <AANLkTikS24_1n7cJgU0LKBsvzCHTcbpcBabwv2E=YH1v@mail.gmail.com> <201101161358.26075.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--6IGTAXksYJqONypD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <hselasky@c2i.net>=
=20
> wrote:
> > > On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote:
> > >> On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky <hselasky@c2i.n=
et>
> > >=20
> > > wrote:
> > >> > On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote:
> > >> >> On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky
> > >> >> <hselasky@c2i.net>
> > >> >=20
> > >> > wrote:
> > >> >> > On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote:
> > >> >> >> if_cdce kernel,
> > >> >> >=20
> > >> >> > if_cdce kernel module
> > >> >> >=20
> > >> >> > --HPS
> > >> >>=20
> > >> >> flosoft-stable# kldload if_cdce
> > >> >> kldload: can't load if_cdce: File exists
> > >> >=20
> > >> > Any ueX network interfaces?
> > >>=20
> > >> None
> > >>=20
> > >> > Also:
> > > And what about:
> > >=20
> > > usbconfig -d X.Y dump_curr_config_desc
> >=20
> > flosoft-stable# usbconfig -d 5.2 dump_curr_config_desc
> > ugen5.2: <Android Phone HTC> at usbus5, cfg=3D0 md=3DHOST spd=3DHIGH (4=
80Mbps)
> > pwr=3DON
> >=20
> >=20
> >  Configuration index 0
> >=20
> >     bLength =3D 0x0009
> >     bDescriptorType =3D 0x0002
> >     wTotalLength =3D 0x0037
> >     bNumInterfaces =3D 0x0002
> >     bConfigurationValue =3D 0x0001
> >     iConfiguration =3D 0x0000  <no string>
> >     bmAttributes =3D 0x0080
> >     bMaxPower =3D 0x0080
> >=20
> >     Interface 0
> >       bLength =3D 0x0009
> >       bDescriptorType =3D 0x0004
> >       bInterfaceNumber =3D 0x0000
> >       bAlternateSetting =3D 0x0000
> >       bNumEndpoints =3D 0x0002
> >       bInterfaceClass =3D 0x0008
> >       bInterfaceSubClass =3D 0x0006
> >       bInterfaceProtocol =3D 0x0050
> >       iInterface =3D 0x0000  <no string>
> >=20
> >      Endpoint 0
> >         bLength =3D 0x0007
> >         bDescriptorType =3D 0x0005
> >         bEndpointAddress =3D 0x0001  <OUT>
> >         bmAttributes =3D 0x0002  <BULK>
> >         wMaxPacketSize =3D 0x0200
> >         bInterval =3D 0x0000
> >         bRefresh =3D 0x0000
> >         bSynchAddress =3D 0x0000
> >=20
> >      Endpoint 1
> >         bLength =3D 0x0007
> >         bDescriptorType =3D 0x0005
> >         bEndpointAddress =3D 0x0081  <IN>
> >         bmAttributes =3D 0x0002  <BULK>
> >         wMaxPacketSize =3D 0x0200
> >         bInterval =3D 0x0000
> >         bRefresh =3D 0x0000
> >         bSynchAddress =3D 0x0000
> >=20
> >=20
> >     Interface 1
> >       bLength =3D 0x0009
> >       bDescriptorType =3D 0x0004
> >       bInterfaceNumber =3D 0x0001
> >       bAlternateSetting =3D 0x0000
> >       bNumEndpoints =3D 0x0002
> >       bInterfaceClass =3D 0x00ff
> >       bInterfaceSubClass =3D 0x0042
> >       bInterfaceProtocol =3D 0x0001
> >       iInterface =3D 0x0000  <no string>
> >=20
> >      Endpoint 0
> >         bLength =3D 0x0007
> >         bDescriptorType =3D 0x0005
> >         bEndpointAddress =3D 0x0002  <OUT>
> >         bmAttributes =3D 0x0002  <BULK>
> >         wMaxPacketSize =3D 0x0200
> >         bInterval =3D 0x0000
> >         bRefresh =3D 0x0000
> >         bSynchAddress =3D 0x0000
> >=20
> >      Endpoint 1
> >         bLength =3D 0x0007
> >         bDescriptorType =3D 0x0005
> >         bEndpointAddress =3D 0x0082  <IN>
> >         bmAttributes =3D 0x0002  <BULK>
> >         wMaxPacketSize =3D 0x0200
> >         bInterval =3D 0x0000
> >         bRefresh =3D 0x0000
> >         bSynchAddress =3D 0x0000
>=20
> Looks like interface 1 is the ADB one (vendor specific). If the ADB clien=
t is=20
> not using LibUSB then you might get it working by adding the vendor ID an=
d=20
> product ID to sys/dev/usb/serial/u3g.c as listed by dump_device_desc . A=
=20
> /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.

--6IGTAXksYJqONypD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk0y790ACgkQC3+MBN1Mb4ixhwCeJfdJp9+CJ9xyVnMl6WNhDpSH
+LAAoINrD1EuuPyPIePPvEXCtghZTny4
=TbkD
-----END PGP SIGNATURE-----

--6IGTAXksYJqONypD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110116131717.GC2518>