Changes between Initial Version and Version 1 of FreeBSD Apple Iphone Setup


Ignore:
Timestamp:
11/27/23 10:38:45 (17 months ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSD Apple Iphone Setup

    v1 v1  
     1= FreeBSD Apple Iphone Setup =
     2
     3
     4{{{
     5Example 1: Manual Configuration
     6
     7The  following  example shows how to manually configure network access
     8on a device that is not automatically recognized.
     9
     10First,  load the driver and find out the unit and the address  of  the
     11USB Apple device:
     12
     13# kldload ipheth
     14# usbconfig | grep Apple
     15ugen0.2: <Apple Inc.    iPhone> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
     16
     17In  this  example,  the  unit   and  the  address of the device is 0.2
     18("ugen0.2"), and its configuration index is 0 ("cfg=0").
     19
     20Secondly, check what other configurations are available for  the  de-
     21vice:
     22
     23# usbconfig -d 0.2 dump_all_config_desc | grep -E '(^ Conf|iConf)'
     24Configuration index     0
     25   iConfiguration =     0x0005  <PTP>
     26Configuration index     1
     27   iConfiguration =     0x0006  <iPod USB Interface>
     28Configuration index     2
     29   iConfiguration =     0x0007  <PTP + Apple Mobile Device>
     30Configuration index     3
     31   iConfiguration =     0x0008  <PTP + Apple Mobile Device + Apple USB Ethernet>
     32
     33In this example, there  are 4 different configurations available.  The
     34configuration   with  index  3 seems to be related to Ethernet.  It is
     35time to configure the device:
     36
     37# usbconfig -d 0.2 set_config 3
     38# usbconfig | grep 'Apple.*cfg=3'
     39ugen0.2: <Apple Inc.    iPhone> at usbus0, cfg=3 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
     40
     41At this point the Apple device  should ask whether the FreeBSD machine
     42can be  trusted ("Mobile Data" has to be on).
     43
     44A new ue USB Ethernet interface should  become available:
     45
     46# dmesg | grep 'ue[0-9]'
     47ue0:    <USB Ethernet> on ipheth0
     48ue0:    bpf attached
     49ue0:    Ethernet address: 4e:7c:5f:2c:5f:7a
     50
     51At this point it might  be necessary to run usbmuxd(1)  (available  in
     52ports(7) at comms/usbmuxd):
     53
     54# usbmuxd --enable-exit --foreground    --user root --verbose
     55
     56Now it  is time to configure the network interface:
     57
     58# sysrc ifconfig_ue0="SYNCDHCP"
     59ifconfig_ue0:  -> SYNCDHCP
     60# service netif restart ue0
     61
     62That  is  it.   The machine should now be connected to the network via
     63USB tethering.
     64}}}