For some unclear reason, the modified dkms from the pmcenery repository stopped working once I removed the old kernel modules (one of the anomalies being the interface shown as wwan0 instead of the usual eth1, even after removal and rebuild).
Executing the below commands *literally* across updates might be unsafe for the system, it worked fine for 2 of my - updated - BT5R2 systems as of today, though:
apt-get install ifuse gvfs libimobiledevice0 libimobiledevice-utils \
linux-source-3.2.6 linux-headers-3.2.6 build-essential cd /usr/src
(of course, only if not already done before ;-)
tar xfvj /usr/src/linux-source-3.2.6.tar.bz2
(same as above)
ln -s /usr/src/linux-source-3.2.6 /usr/src/linux ln -s /usr/src/linux-source-3.2.6/arch/x86/Makefile_32.cpu \ /usr/src/linux-headers-3.2.6/arch/x86/Makefile_32.cpu
a broken link to asm (repaired in the line that follows)
rm linux-headers-3.2.6/include/asm ln -s /usr/src/linux-source-3.2.6/arch/x86/include/asm \ /usr/src/linux-headers-3.2.6/include/asm
At this moment, the git archive offers a version released in late 2011 supporting the iPhone 4S as well.
git clone git://github.com/dgiagio/ipheth.git cd ipheth/ipheth-pair make make install cd ../../ipheth/ipheth-driver
a) write the following 1 line patch file (it's named ipheth.c.patch in the line that follows)
90a91,92 > #define HAVE_NET_DEVICE_OPS true >apply the patch
patch ipheth.c ipheth.c.patchor, more quickly ;-)
b) just add the #define line to ipheth.c, then
make make install insmod /usr/src/ipheth/ipheth-driver/ipheth.koif everything went fine, the above insmod command is all should be necessary from now on to load the driver. Given the occasional use, I am not going to make any permanent configuration for this, but probably just an alias. To verify the module is loaded
lsmod | grep iphethwhich should return something like
ipheth 13238 0plugging in the iPhone (with Internet Tethering enabled ;-) should immediately make up a new ethernet ethn interface;
ideviceinfomay be required to trigger pairing and
dhclient ethnto obtain the familiar 188.8.131.52/28 IPv4 address.
the iPhone USB Ethernet Driver
3.2.6 kernel src/modules symlinks