Openmoko phones and USB on FreeBSD

Hans Petter Selasky hselasky at c2i.net
Sun Sep 14 02:48:54 UTC 2008


On Saturday 13 September 2008, Torfinn Ingolfsen wrote:
> On Sat, 13 Sep 2008 14:22:20 +0200
>
> Matthias Apitz <guru at unixarea.de> wrote:
> > Concerning accessing the Openmoko through USB I thought that this is
> > possible, at least the Openmoko's Wiki says this:
> > http://wiki.openmoko.org/wiki/USB_Networking#FreeBSD
>
> Yes, this is possible. When I plug in my Neo FreeRunner into this
> FreeeBSD workstation, I get this in /var/log/messages:
> Sep 13 20:36:14 kg-work2 root: Unknown USB device: vendor 0x1457 product
> 0x5122 bus uhub1 Sep 13 20:36:15 kg-work2 kernel: cdce0: <Linux
> 2.6.24/s3c2410_udc RNDIS/Ethernet Gadget, class 2/0, rev 2.00/2.12, addr 2>
> on uhub1 Sep 13 20:36:15 kg-work2 kernel: cdce0: faking MAC address Sep 13
> 20:36:15 kg-work2 kernel: cdce0: Ethernet address: 2a:fd:05:61:9b:00
> Sep 13 20:36:15 kg-work2 kernel: cdce0: if_start running deferred for Giant
>

Hi,

I figured it it now:

My new USB stack selects configuration index 0 first, which is RNDIS. When I 
ran:

usbconfig -u 2 -a 2 set_config 1

I got:

cdce0: <CDC Communications Control> on usbus2
cdce0: Ethernet address: 5a:a0:96:da:00:00

--HPS


More information about the freebsd-arm mailing list