Re: Openmoko phones and USB on FreeBSD
El día Saturday, September 13, 2008 a las 08:46:46PM +0200, Torfinn Ingolfsen escribió: On Sat, 13 Sep 2008 14:22:20 +0200 Matthias Apitz [EMAIL PROTECTED] 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 ... To prepare things a bit while still waiting for my Openmoko Gadget, I've pulled out 'dfu-util' from SVN as described in the Openmoko Wiki: http://wiki.openmoko.org/wiki/Dfu-util $ svn co http://svn.openmoko.org/trunk/src/host/dfu-util/ $ cd dfu-util $ ./autogen.sh $ ./configure $ make but it does not compile because of missing header files: main.c:29:22: error: byteswap.h: No such file or directory main.c:30:20: error: endian.h: No such file or directory before digging into the details, is there already a port of 'dfu-util' to FreeBSD? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Openmoko phones and USB on FreeBSD
Hi, There are some problems using the dfu-util to flash Openmoko phones from FreeBSD. The problem resides in the USB stack on the phone, which does not support the libusb-0.1 string requests. I'm planning to work around this in the kernel to avoid future problems. I have tested patches for this, but they have not committed yet. Secondly I plan to add support for RNDIS so that you can access the OpenMoko phone through USB ethernet. I'm currently awaiting approval from the Linux people to port their RNDIS driver to the new USB stack under a BSD license. Really they should have used CDC ethernet, but there are too many Windows users out there I guess :-) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Openmoko phones and USB on FreeBSD
On Sat, 13 Sep 2008 14:22:20 +0200 Matthias Apitz [EMAIL PROTECTED] 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: [EMAIL PROTECTED] uname -a FreeBSD kg-work2.kg4.no 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Jul 21 20:40:31 CEST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 Lets set up the interface: [EMAIL PROTECTED] ifconfig cdce0 inet 192.168.0.200 netmask 255.255.255.0 [EMAIL PROTECTED] ifconfig cdce0 cdce0: flags=108843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 1500 ether 2a:fd:05:61:9b:00 inet 192.168.0.200 netmask 0xff00 broadcast 192.168.0.255 media: Ethernet 10baseT/UTP status: active [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ssh 192.168.0.202 [EMAIL PROTECTED]'s password: [EMAIL PROTECTED]:~# uptime 20:43:48 up 7 days, 22:36, 2 users, load average: 0.28, 0.37, 0.45 [EMAIL PROTECTED]:~# uname -a Linux om-gta02 2.6.24 #1 PREEMPT Tue Aug 26 08:33:29 CST 2008 armv4tl unknown [EMAIL PROTECTED]:~# cat /etc/angstrom-version Angstrom P1-Snapshot-20080902 HTH -- Regards, Torfinn Ingolfsen ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Openmoko phones and USB on FreeBSD
On Saturday 13 September 2008, Torfinn Ingolfsen wrote: On Sat, 13 Sep 2008 14:22:20 +0200 Matthias Apitz [EMAIL PROTECTED] 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 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]