atom feed7 messages in org.freebsd.freebsd-armRe: Openmoko phones and USB on FreeBSD
FromSent OnAttachments
Hans Petter SelaskySep 13, 2008 4:10 am 
Matthias ApitzSep 13, 2008 5:21 am 
Hans Petter SelaskySep 13, 2008 7:31 am 
Torfinn IngolfsenSep 13, 2008 11:46 am 
Hans Petter SelaskySep 13, 2008 7:48 pm 
Matthias ApitzSep 16, 2008 3:31 am 
M. Warner LoshSep 16, 2008 3:58 am 
Subject:Re: Openmoko phones and USB on FreeBSD
From:Torfinn Ingolfsen (torf@broadpark.no)
Date:Sep 13, 2008 11:46:23 am
List:org.freebsd.freebsd-arm

On Sat, 13 Sep 2008 14:22:20 +0200 Matthias Apitz <gu@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@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 ro@kg-work2.kg4.no:/usr/obj/usr/src/sys/GENERIC i386

Lets set up the interface: root@kg-work2# ifconfig cdce0 inet 192.168.0.200 netmask 255.255.255.0 root@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@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@kg-work2# ssh 192.168.0.202 root@192.168.0.202's password: root@om-gta02:~# uptime 20:43:48 up 7 days, 22:36, 2 users, load average: 0.28, 0.37, 0.45 root@om-gta02:~# uname -a Linux om-gta02 2.6.24 #1 PREEMPT Tue Aug 26 08:33:29 CST 2008 armv4tl unknown root@om-gta02:~# cat /etc/angstrom-version Angstrom P1-Snapshot-20080902

HTH