From owner-freebsd-usb@FreeBSD.ORG Sat Aug 23 13:59:17 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C9535F7 for ; Sat, 23 Aug 2014 13:59:17 +0000 (UTC) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6897369F for ; Sat, 23 Aug 2014 13:59:16 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id x48so11589928wes.5 for ; Sat, 23 Aug 2014 06:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vqEf7Q56KQPdep7DPt5hQeOaEQHefqW3pD709SNdHk8=; b=hB5VtbuC5WM9MGziIYBeyZUq9BYKTwtQDJAa47JwXV02cenVBtEszPa7Z+yF6iG0sd x2WMwXjr0K7ssIRSJ4538wrdbkzg+wwXsIdHXKCrd5bhQxz42fO6UMYgKY+tIA1iVa4b MikvzQJCaQm188SSDWw5F6E7gW7GowrWIafGEmBP4ewgfWtmBg0XE4GSjtuMMDrQuFOe o2SoZ6afp1nz4lYDjWZmuS0MYUS57htrITzrnHmiOjevqdZVDYWLwIEgBRHarS6QpyJc A+UzwbqqBQnQhAytu52x1feT5PmVwblEgUZm3AUTtOnIBENfagtUusdNI+Gx6RvXVKZw gf6Q== X-Received: by 10.180.38.2 with SMTP id c2mr3278055wik.24.1408802354839; Sat, 23 Aug 2014 06:59:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.121.37 with HTTP; Sat, 23 Aug 2014 06:58:53 -0700 (PDT) In-Reply-To: <53F86BF4.3060506@b1t.name> References: <53F86BF4.3060506@b1t.name> From: Miguel Clara Date: Sat, 23 Aug 2014 14:58:53 +0100 Message-ID: Subject: Re: "usbnet" support in FreeBSD? To: Volodymyr Kostyrko Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2014 13:59:17 -0000 I have the module loaded yes, but it seems the key was changing to "Mac compatibility" in usb duh.. can't believe I didn't try that :) Thanks As for dhcp I don't mind using dhclient manually or if a static IP Also if it is of any interest I was able to compile Sachesi on FreeBSD 10 (amd64) see: https://github.com/xsacha/Sachesi there's a issue about FreeBSD I've posted. For now the bootloader code still doesn't work but xsacha is working on it! Melhores Cumprimentos // Best Regards ----------------------------------------------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail: *miguelmclara@gmail.com www.linkedin.com/in/miguelmclara/ On Sat, Aug 23, 2014 at 11:24 AM, Volodymyr Kostyrko wrote: > On 23.08.2014 01:17, Miguel Clara wrote: > >> I know FreeBSD suppots (at least according to the guide) usb tether, but >> some devices when connected via USB are visible as a network interface and >> this allows file sharing among other things! >> >> I have a Blackberry 10 device and I'm wondering if this is somehow >> possible >> or if not how hard would it be? >> >> On linux the device is recognize by usbnet driver ( >> http://www.linux-usb.org/usbnet/) is there anything like this in freebsd? >> >> >> More info about the device detection: >> >> dmesg: >> ugen0.4: at usbus0 >> umodem0: > 2.00/2.40, addr 11> on usbus0 >> umodem0: data interface 0, has no CM over data, has no break >> device_attach: umodem0 attach returned 6 >> > > Try setting device to 'Mac compatibility' mode: Settings -> Storage and > access -> USB connections : connect to Mac. > > Also check thath USB tethering is enabled in your phone: Settings -> > Network Connections -> Internet tethering, select "Connect using" "USB" and > turn it on. > > kernel: ugen6.2: at usbus6 > devd: Executing 'kldload -n if_cdce' > kernel: cdce0: 2.00/2.40, addr 1> on usbus6 > devd: Executing 'logger Unknown USB device: vendor 0x0fca product 0x8013 > bus uhub6' > root: Unknown USB device: vendor 0x0fca product 0x8013 bus uhub6 > kernel: ue0: on cdce0 > kernel: ue0: Ethernet address: 96:eb:cd:2d:05:5d > devd: Executing 'logger Unknown USB device: vendor 0x0fca product 0x8013 > bus uhub6' > limbo root: Unknown USB device: vendor 0x0fca product 0x8013 bus uhub6 > devd: Executing '/etc/pccard_ether ue0 start' > devd: Executing 'logger Unknown USB device: vendor 0x0fca product 0x8013 > bus uhub6' > root: Unknown USB device: vendor 0x0fca product 0x8013 bus uhub6 > > # dhclient ue0 > DHCPREQUEST on ue0 to 255.255.255.255 port 67 > DHCPNAK from 192.168.0.1 > DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 4 > DHCPOFFER from 192.168.0.1 > DHCPREQUEST on ue0 to 255.255.255.255 port 67 > DHCPACK from 192.168.0.1 > bound to 192.168.0.2 -- renewal in 3600 seconds. > > I don't know why but setting ifconfig_ue0=DHCP at /etc/rc.conf doesn't > works. > > # route add default 192.168.0.1 > > # ping 8.8.8.8 > PING 8.8.8.8 (8.8.8.8): 56 data bytes > 64 bytes from 8.8.8.8: icmp_seq=0 ttl=46 time=588.697 ms > 64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=284.988 ms > 64 bytes from 8.8.8.8: icmp_seq=2 ttl=46 time=277.634 ms > 64 bytes from 8.8.8.8: icmp_seq=3 ttl=46 time=275.505 ms > 64 bytes from 8.8.8.8: icmp_seq=4 ttl=46 time=252.686 ms > ^C > --- 8.8.8.8 ping statistics --- > 5 packets transmitted, 5 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 252.686/335.902/588.697/126.859 ms > > # tcpdump -pni ue0 > 13:23:09.393751 IP 192.168.0.2 > 8.8.8.8: ICMP echo request, id 18451, > seq 0, length 64 > 13:23:09.982413 IP 8.8.8.8 > 192.168.0.2: ICMP echo reply, id 18451, seq > 0, length 64 > 13:23:10.398790 IP 192.168.0.2 > 8.8.8.8: ICMP echo request, id 18451, > seq 1, length 64 > 13:23:10.683738 IP 8.8.8.8 > 192.168.0.2: ICMP echo reply, id 18451, seq > 1, length 64 > 13:23:11.402911 IP 192.168.0.2 > 8.8.8.8: ICMP echo request, id 18451, > seq 2, length 64 > 13:23:11.680505 IP 8.8.8.8 > 192.168.0.2: ICMP echo reply, id 18451, seq > 2, length 64 > 13:23:12.406746 IP 192.168.0.2 > 8.8.8.8: ICMP echo request, id 18451, > seq 3, length 64 > 13:23:12.682195 IP 8.8.8.8 > 192.168.0.2: ICMP echo reply, id 18451, seq > 3, length 64 > 13:23:13.408292 IP 192.168.0.2 > 8.8.8.8: ICMP echo request, id 18451, > seq 4, length 64 > 13:23:13.660936 IP 8.8.8.8 > 192.168.0.2: ICMP echo reply, id 18451, seq > 4, length 64 > > -- > Sphinx of black quartz judge my vow. >