From owner-freebsd-usb@FreeBSD.ORG Sat Aug 23 10:24:58 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53795341 for ; Sat, 23 Aug 2014 10:24:58 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (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 CB7A535DE for ; Sat, 23 Aug 2014 10:24:57 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id ty20so11005591lab.18 for ; Sat, 23 Aug 2014 03:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=pGV3lAFEn8epoQD0LQdI2AN/Sui7UdEYYmh25NOgFr0=; b=pXmgo3jCWXmmZ1S/DBzXyoYBfUL3yBDPhVT/a7cdwyjytBvUxRkvlJzQFLKWF0Pf7y fgWpjffyZW//L2tQCFibzWZdmKxUkttVfWi1zEL5DkqEvKMKQiMdRbawYWYh2aaA9+Iy y2zTbERwpify85RgJykaRCcdRKuvc+RBQxoVR1BnLMUULSZ2ANgem4LTxlKPBFU3GwmO trHQdCUA00KUWkI01MBSS1ZbFP1zfJDKYX5PedTMBjZSGrW4l4CnZAfwc/fcS7AYK/Ll S8iWpN6MVbr1haqVdUHwbpSoJInXAU0ADh8ys6v2nos4v7DAhosZ1v3DAq5PS+HzvJp1 xW0w== X-Received: by 10.152.6.100 with SMTP id z4mr1596900laz.71.1408789494707; Sat, 23 Aug 2014 03:24:54 -0700 (PDT) Received: from limbo.b1t.lan (167.203-pool.nikopol.net. [213.111.203.167]) by mx.google.com with ESMTPSA id si1sm51543489lbb.43.2014.08.23.03.24.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Aug 2014 03:24:54 -0700 (PDT) From: Volodymyr Kostyrko X-Google-Original-From: Volodymyr Kostyrko Message-ID: <53F86BF4.3060506@b1t.name> Date: Sat, 23 Aug 2014 13:24:52 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Miguel Clara , freebsd-usb@freebsd.org Subject: Re: "usbnet" support in FreeBSD? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 10:24:58 -0000 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: 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.