#210 ✓resolved
mauretto

No tethering with iOS 4.3.1 and libimobiledevice 1.0.6

Reported by mauretto | April 20th, 2011 @ 08:49 AM

Hi,
I have "TIMEOUT" problem with tethering from my iPhone 4 (iOS 4.3.1) and libimobiledevice 1.0.6 (on Kubuntu 10.10).

Here is output of dmesg command:

[ 69.136057] usb 2-3: new high speed USB device using ehci_hcd and address 5 [ 69.509188] ipheth 2-3:4.2: Apple iPhone USB Ethernet device attached [ 69.509219] usbcore: registered new interface driver ipheth [ 70.643063] ADDRCONF(NETDEV_UP): eth1: link is not ready [ 91.640684] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 96.816069] ------------[ cut here ]------------ [ 96.816080] WARNING: at /build/buildd/linux-2.6.35/net/sched/sch_generic.c:258 dev_watchdog+0x1fd/0x210() [ 96.816083] Hardware name: Compaq 610 [ 96.816086] NETDEV WATCHDOG: eth1 (ipheth): transmit queue 0 timed out [ 96.816088] Modules linked in: ipheth parport_pc ppdev snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi arc4 snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd joydev iwlagn i915 soundcore iwlcore mac80211 uvcvideo cfg80211 snd_page_alloc hp_wmi videodev psmouse drm_kms_helper drm lp parport v4l1_compat serio_raw i2c_algo_bit video output intel_agp agpgart usbhid hid usb_storage ahci sky2 libahci [ 96.816133] Pid: 0, comm: swapper Not tainted 2.6.35-28-generic #50-Ubuntu [ 96.816136] Call Trace: [ 96.816143] [] warn_slowpath_common+0x72/0xa0 [ 96.816147] [] ? dev_watchdog+0x1fd/0x210 [ 96.816151] [] ? dev_watchdog+0x1fd/0x210 [ 96.816155] [] warn_slowpath_fmt+0x33/0x40 [ 96.816159] [] dev_watchdog+0x1fd/0x210 [ 96.816164] [] ? insert_work+0x66/0xb0 [ 96.816169] [] ? default_spin_lock_flags+0x8/0x10 [ 96.816172] [] ? queue_work+0x36/0x50 [ 96.816176] [] ? dev_watchdog+0x0/0x210 [ 96.816180] [] call_timer_fn+0x2f/0xf0 [ 96.816184] [] ? irq_exit+0x39/0x70 [ 96.816188] [] ? do_IRQ+0x55/0xc0 [ 96.816192] [] ? clockevents_program_event+0x8b/0x140 [ 96.816196] [] run_timer_softirq+0x104/0x210 [ 96.816200] [] ? common_interrupt+0x30/0x38 [ 96.816204] [] ? dev_watchdog+0x0/0x210 [ 96.816207] [] do_softirq+0x9c/0x1b0 [ 96.816211] [] ? sched_clock_tick+0x5e/0x90 [ 96.816215] [] do_softirq+0x45/0x50 [ 96.816224] [] irq_exit+0x65/0x70 [ 96.816227] [] smp_apic_timer_interrupt+0x5b/0x8a [ 96.816231] [] apic_timer_interrupt+0x31/0x38 [ 96.816234] [] ? sys_setregid+0x4b/0xf0 [ 96.816239] [] ? acpi_idle_enter_bm+0x259/0x295 [ 96.816244] [] cpuidle_idle_call+0x6a/0x100 [ 96.816247] [] cpu_idle+0x8c/0xd0 [ 96.816251] [] start_secondary+0x10c/0x112 [ 96.816254] ---[ end trace a517043b8cbda61a ]--- [ 96.816257] ipheth: ipheth_tx_timeout: TX timeout [ 102.433065] eth1: no IPv6 routers present [ 106.816053] ipheth: ipheth_tx_timeout: TX timeout [ 116.817045] ipheth: ipheth_tx_timeout: TX timeout [ 126.817089] ipheth: ipheth_tx_timeout: TX timeout [ 136.816056] ipheth: ipheth_tx_timeout: TX timeout [ 146.817048] ipheth: ipheth_tx_timeout: TX timeout [ 156.817068] ipheth: ipheth_tx_timeout: TX timeout [ 166.817016] ipheth: ipheth_tx_timeout: TX timeout [ 176.817050] ipheth: ipheth_tx_timeout: TX timeout [ 186.816048] ipheth: ipheth_tx_timeout: TX timeout [ 196.817028] ipheth: ipheth_tx_timeout: TX timeout

Here is output of lsusb command:

mauro@mauro-Compaq-610:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 04b3:3107 IBM Corp. ThinkPad 800dpi Optical Travel Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 05ac:1297 Apple, Inc.
Bus 002 Device 004: ID 5986:03b0 Acer, Inc
Bus 002 Device 003: ID 059f:1019 LaCie, Ltd Desktop Hard Drive
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Comments and changes to this ticket

  • Martin S.

    Martin S. April 21st, 2011 @ 02:31 PM

    • Tag set to ios 4.3.1, ipheth, kubuntu
    • State changed from “new” to “open”

    Since ipheth is now "bundled" in the kernel, the correct place to discuss issues with the module would be the Kernel Mailing List.

    However, please try to run this:

    $ idevicepair unpair
    $ idevicepair pair
    

    Then verify again if you still receive the timeouts. I assume you also have enabled tethering in the iPhone settings.

  • mauretto

    mauretto April 28th, 2011 @ 08:03 AM

    I'm sorry for mistake...
    So, I tried "unpair" and "pair" ("validate" also), but nothing change...

    Where I can ask help?

    Thank you!

  • Martin S.

    Martin S. April 28th, 2011 @ 01:23 PM

    Please run "ideviceinfo" and verify it works.

  • mauretto

    mauretto April 29th, 2011 @ 08:02 AM

    Thank you Martin!
    "ideviceinfo" command makes tethering work!!!

    Great!

    Thank you very much

  • Martin S.

    Martin S. April 30th, 2011 @ 06:38 PM

    Interesting... Is this permanently working now or do you have run ideviceinfo again?

  • mauretto

    mauretto May 2nd, 2011 @ 06:46 AM

    Hi,
    very interesting, isn'it?
    Well, I need to run ideviceinfo every time I connect iPhone with Linux.
    So, during a tethering session, when I disconnect iPhone, to re-establish a session I need to reconnect iPhone (of course...) and click on Network manager and eth1 (my port) to "surfing" again.

    PS: Unfortunately today I update Kubuntu from 10.10 to 11.04 and libimobiledevice from 1.0.6 to 1.1.0 and now tethering not working yet...
    Asap I downgrade libimobiledevice to 1.0.6...

  • Martin S.

    Martin S. May 2nd, 2011 @ 10:16 AM

    Running "ideviceinfo" will set the trusted host status on the device to "true". This is what actually makes the device allow tethering. Judging from your versions now, you are hitting the typical iOS 4.3 bug.

    You need to have either libimobiledevice 1.0.6 or 1.1.1 and run "idevicepair pair" in order to be able to use tethering with iOS 4.3+.
    I think the problem is in the ipheth-pair package which is run by an udev rule automatically on hotplug of your device.

    What might be your issue are mixed leftovers of the old library which fail.

    Could you verify please:
    - That you don't have any leftovers in /usr/local/lib/libimobiledevice and what you have in /usr/lib/libimobiledevice - You have either 1.0.6 or 1.1.1 installed (for iOS 4.3+ compat) - You are able to run "idevicepair pair && idevicepair validate" to achive the same effect like running ideviceinfo now

  • mauretto

    mauretto May 9th, 2011 @ 09:53 PM

    Hi Martyn.
    Well, I had unistalled Ubuntu 11.04 and then reinstalled Ubuntu 10.10.
    This because with 11.04 "Natty" the version of libimobiledevice is 1.1.0, and it doesn't work with tethring and I don't know how to downgrade to version 1.0.6...
    So, reinstalling 10.10 "Maverick" it work fine, without any idevicepair and ideviceinfo. Now I only start linux, plug my iPhone and surf on internet with tethering.
    The next problem will be how upgrade to "Natty" and downgrade (or upgrade) to libimobiledevice 1.0.6 (or 1.1.1)..

    Thank you very much.

  • Andrew Schott

    Andrew Schott May 26th, 2011 @ 10:08 AM

    Same issue here. Fedora 15, libimobiledevice 1.1, iOS 4.3.3

    Can use Bluetooth to tether, but not via the USB cable.

    Any tips?

    [code] [andrew@eeepc ~]$ rpm -qa | grep libimobiledevice libimobiledevice-1.1.1-1.fc15.i686
    libimobiledevice-devel-1.1.1-1.fc15.i686
    [andrew@eeepc ~]$ [/code]

  • Olivier LAHAYE

    Olivier LAHAYE February 27th, 2012 @ 02:12 PM

    If it can help closing the bug or at least trigger new tests with latest git version:

    I've successfully tested ipheth driver with iOS 5.0.1 (iPhone 3GS)

    I've tested with:
    - standard Mandriva Cooker kernel: 3.2.7-1.1-desktop - used above default kernel ipheth driver: ipheth 2-4:4.2 - usbmuxd-1.0.8-0.1-mdv2012.0.x86_64 - libplist-1.8-1-mdv2012.0.x86_64 - libimobiledevice-1.2.0-0.20120224git-mdv2012.0.x86_64 (custom rpm with Feb 24 2012 git version)

    • Installed the packages and dependancies
    • Plugged the phone
    • Enabled internet sharing
    • paired the phone (idevicepair pair)
    • configured the connection using drakconnect (as ethernet adapter)

    And it worked like a charm, I was able to surf the web flawlessly and discovered the nice blue internet sharing header on my iPhone

  • Martin S.

    Martin S. February 27th, 2012 @ 09:06 PM

    • State changed from “open” to “resolved”

    Thanks, yes it appears this bug is fixed in git master and thus in the next upcoming release.

    We also noticed that if you should have issues, you should try to enable the "Personal Hotspot" feature which kind of "wakes up" the tethering.

    At least we also could verify success now with latest distros and releases.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org

People watching this ticket

Pages