9-STABLE and Iphone modem (tethering), anyone succeed ?

Arno J. Klaassen arno at heho.snv.jussieu.fr
Wed Mar 21 17:50:38 UTC 2012


Hello,


does anyone succeed in using an Iphone as modem on 9-STABLE (sources
as of March 16) ?

I follow the instructions from
 'http://forums.freebsd.org/showthread.php?t=19995' using 'usbmuxd' and
'libimobiledevice' from ports.

When I start 'usbmuxd' I indeed see in dmesg(1) :

  ipheth0: <Apple Inc. iPhone, class 0/0, rev 2.00/0.01, addr 3> on usbus1
  ue0: <USB Ethernet> on ipheth0
  ue0: bpf attached
  ue0: Ethernet address: XXX


I did not find 'ipheth-pair' (or something equiivalent) in ports, I build it from the sources as indicated in the forum-post, but it fails with :


  # ./ipheth-pair -v
  ./ipheth-pair: -14: cannot get lockdown

The corresponsing log from  'usbmuxd -v -v ' says (stripped) :


  [16:29:20.490][3] usbmuxd v1.0.7 starting up
  [16:29:20.491][4] Creating socket
  [16:29:20.491][5] client_init
  [16:29:20.491][5] device_init
  [16:29:20.491][4] Initializing USB
  [16:29:20.491][5] usb_init for linux / libusb 1.0
  [16:29:20.491][4] Found new device with v/p 05ac:1297 at 1-3
  [16:29:20.491][4] Found interface 1 with endpoints 04/85 for device 1-3
  [16:29:20.495][4] Using wMaxPacketSize=512 for device 1-3
  [16:29:20.495][3] Connecting to new device on location 0x10003 as ID 1
  [16:29:20.495][4] 1 device detected
  [16:29:20.495][3] Initialization complete
  [16:29:20.495][5] usb polling enable: 0
  [16:29:20.496][3] Connected to v1.0 device 1 on location 0x10003 with serial number XXX
  [16:29:20.496][5] client_device_add: id 1, location 0x10003, serial XXX
  [16:29:46.428][4] New client on fd 9
  [16:29:46.428][5] Client command in fd 9 len 16 ver 0 msg 3 tag 1
  [16:29:46.428][5] send_pkt fd 9 tag 1 msg 1 payload_length 4
  [16:29:46.428][5] Client 9 now LISTENING
  [16:29:46.428][5] Enlarging client 9 reply buffer 1024 -> 1308 to make space for device notifications
  [16:29:46.428][5] send_pkt fd 9 tag 0 msg 4 payload_length 268
  [16:29:47.437][4] Client 9 connection closed
  [16:29:47.437][4] Disconnecting client fd 9
  [16:29:47.437][4] New client on fd 9
  [16:29:47.437][5] Client command in fd 9 len 24 ver 0 msg 2 tag 2
  [16:29:47.437][5] Client 9 connection request to device 1 port 62078
  [16:29:47.437][5] [OUT] dev=1 sport=1 dport=62078 seq=0 ack=0 flags=0x2 window=131072[512] len=0
  [16:29:47.439][5] [IN] dev=1 sport=62078 dport=1 seq=0 ack=1 flags=0x12 window=131072[512] len=0
  [16:29:47.439][5] [OUT] dev=1 sport=1 dport=62078 seq=1 ack=1 flags=0x10 window=131072[512] len=0
  [16:29:47.440][5] send_pkt fd 9 tag 2 msg 1 payload_length 4
  [16:29:47.440][5] Client 9 switching to CONNECTED state
  [16:29:47.442][5] [OUT] dev=1 sport=1 dport=62078 seq=1 ack=1 flags=0x10 window=131072[512] len=4
  ... (all having 'flags=0x10')
  [16:29:47.499][5] [IN] dev=1 sport=62078 dport=1 seq=3502 ack=14410 flags=0x10 window=131072[512] len=279
  [16:29:47.501][5] [IN] dev=1 sport=62078 dport=1 seq=3781 ack=14410 flags=0x4 window=0[0] len=32
  [16:29:47.501][5] RST reason: 
  [16:29:47.501][4] Connection reset by device 1 (1->62078)
  [16:29:47.501][5] connection_teardown dev 1 sport 1 dport 62078
  [16:29:47.501][4] Disconnecting client fd 9
  [16:29:47.501][4] client_process: fd 9 not found in client list


I hope anyone reading this has had more succes ;-).

Thanx, Arno

NB 1, Iphone not 'jailbroken' 
NB 2, yes 'it works' under Windows 


More information about the freebsd-stable mailing list