Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2011 17:06:17 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)
Message-ID:  <20110116150617.GD2518@deviant.kiev.zoral.com.ua>
In-Reply-To: <AANLkTikBnpx7d0E8ae_pgVFYqbS87tbjdhFXaL9WCW9A@mail.gmail.com>
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> <20110116131717.GC2518@deviant.kiev.zoral.com.ua> <AANLkTikBnpx7d0E8ae_pgVFYqbS87tbjdhFXaL9WCW9A@mail.gmail.com>

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

[-- Attachment #1 --]
On Sun, Jan 16, 2011 at 09:19:22AM -0500, Aryeh Friedman wrote:
> Are you talking about BSDoid or FreeDroid?
I got SDK from http://bsdroid.org. No idea what FreeDroid is.

> 
> On Sun, Jan 16, 2011 at 8:17 AM, Kostik Belousov <kostikbel@gmail.com> wrote:
> > 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>
> >> 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.net>
> >> > >
> >> > > 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>
> >> > >> >
> >> > >> > 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: <Android Phone HTC> 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 š<no string>
> >> > š š bmAttributes = 0x0080
> >> > š š bMaxPower = 0x0080
> >> >
> >> > š š Interface 0
> >> > š š š bLength = 0x0009
> >> > š š š bDescriptorType = 0x0004
> >> > š š š bInterfaceNumber = 0x0000
> >> > š š š bAlternateSetting = 0x0000
> >> > š š š bNumEndpoints = 0x0002
> >> > š š š bInterfaceClass = 0x0008
> >> > š š š bInterfaceSubClass = 0x0006
> >> > š š š bInterfaceProtocol = 0x0050
> >> > š š š iInterface = 0x0000 š<no string>
> >> >
> >> > š š šEndpoint 0
> >> > š š š š bLength = 0x0007
> >> > š š š š bDescriptorType = 0x0005
> >> > š š š š bEndpointAddress = 0x0001 š<OUT>
> >> > š š š š bmAttributes = 0x0002 š<BULK>
> >> > š š š š wMaxPacketSize = 0x0200
> >> > š š š š bInterval = 0x0000
> >> > š š š š bRefresh = 0x0000
> >> > š š š š bSynchAddress = 0x0000
> >> >
> >> > š š šEndpoint 1
> >> > š š š š bLength = 0x0007
> >> > š š š š bDescriptorType = 0x0005
> >> > š š š š bEndpointAddress = 0x0081 š<IN>
> >> > š š š š bmAttributes = 0x0002 š<BULK>
> >> > š š š š 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 š<no string>
> >> >
> >> > š š šEndpoint 0
> >> > š š š š bLength = 0x0007
> >> > š š š š bDescriptorType = 0x0005
> >> > š š š š bEndpointAddress = 0x0002 š<OUT>
> >> > š š š š bmAttributes = 0x0002 š<BULK>
> >> > š š š š wMaxPacketSize = 0x0200
> >> > š š š š bInterval = 0x0000
> >> > š š š š bRefresh = 0x0000
> >> > š š š š bSynchAddress = 0x0000
> >> >
> >> > š š šEndpoint 1
> >> > š š š š bLength = 0x0007
> >> > š š š š bDescriptorType = 0x0005
> >> > š š š š bEndpointAddress = 0x0082 š<IN>
> >> > š š š š bmAttributes = 0x0002 š<BULK>
> >> > š š š š 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.
> >
> > 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.
> >

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk0zCWkACgkQC3+MBN1Mb4iKwgCgoO9z1pXuiZ2bHPEjWwg5BuXa
izQAn27ht1xBCedKBoEbxolC8Pd+2/iZ
=lvcN
-----END PGP SIGNATURE-----

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