Openmoko phones and USB on FreeBSD

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sat Sep 13 19:46:55 UTC 2008


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

This machine is running:
tingo at kg-work2$ uname -a
FreeBSD kg-work2.kg4.no 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Jul 21
20:40:31 CEST 2008
root at kg-work2.kg4.no:/usr/obj/usr/src/sys/GENERIC  i386

Lets set up the interface:
root at kg-work2# ifconfig cdce0 inet 192.168.0.200 netmask 255.255.255.0
root at kg-work2# ifconfig cdce0
cdce0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NEEDSGIANT>
metric 0 mtu 1500 ether 2a:fd:05:61:9b:00
	inet 192.168.0.200 netmask 0xffffff00 broadcast 192.168.0.255
	media: Ethernet 10baseT/UTP
	status: active
root at kg-work2# ping 192.168.0.202
PING 192.168.0.202 (192.168.0.202): 56 data bytes
64 bytes from 192.168.0.202: icmp_seq=0 ttl=64 time=5.501 ms
64 bytes from 192.168.0.202: icmp_seq=1 ttl=64 time=0.856 ms
64 bytes from 192.168.0.202: icmp_seq=2 ttl=64 time=1.672 ms
^C
--- 192.168.0.202 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.856/2.676/5.501/2.025 ms

Ok, try ssh now:
root at kg-work2# ssh 192.168.0.202
root at 192.168.0.202's password: 
root at om-gta02:~# uptime
 20:43:48 up 7 days, 22:36,  2 users,  load average: 0.28, 0.37, 0.45
root at om-gta02:~# uname -a
Linux om-gta02 2.6.24 #1 PREEMPT Tue Aug 26 08:33:29 CST 2008 armv4tl unknown
root at om-gta02:~# cat /etc/angstrom-version
Angstrom P1-Snapshot-20080902

HTH
-- 
Regards,
Torfinn Ingolfsen



More information about the freebsd-arm mailing list