ericpaulbishop / gargoyle

Gargoyle Router Management Utility
http://www.gargoyle-router.com
469 stars 221 forks source link

Add iPhone/iOS USB thethering support #945

Closed jan-kiszka closed 2 years ago

jan-kiszka commented 2 years ago

This allows to configure USB-attached iPhone as WAN interface. Currently only pre-integrated into the wrt32x, and the build also still complains about "your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!". Please review and give hints how to get this into shape!

jan-kiszka commented 2 years ago

Addresses #940.

lantis1008 commented 2 years ago

I probably won't be able to review this until after next weekend sorry. It is on my todo list though.

jan-kiszka commented 2 years ago

I've dropped unneeded usbutils and fixed the UI initialization when the "iph" mode is selected.

jan-kiszka commented 2 years ago

Yet another update, adding a kernel patch that apparently only OpenWRT carries to fix connection drops caused by URB overflows. Already poked on LKML why the integration is not making progress.

With this integrated, I've spent now the whole day without glitches on the 5G link my iPhone is proving (until the land-line it fixed...).

jan-kiszka commented 2 years ago

BTW, the last kernel patch is on its way to 4.19-stable now. So it will eventually (on some OpenWRT update) have to be dropped again.

lantis1008 commented 2 years ago

Hi @jan-kiszka , any thoughts on progressing this one? At your leisure, just checking in. :)

jan-kiszka commented 2 years ago

Had no time yet (and my cable link got fixed, "unfortunately"). Will try to schedule this for next weekend.

jan-kiszka commented 2 years ago

Currently finalizing the patches. However, I only measure about 600K additional packages on mvebu, not 2.5M.

lantis1008 commented 2 years ago

I'll aim to merge this on the weekend. For my own notes, in the mvebu case:

Package Size
kmod-usb-net-ipheth_4.14.267-1_arm_cortex-a9_vfpv3-d16.ipk 5.1 KB
libusbmuxd_2019-03-23-873252dc-2_arm_cortex-a9_vfpv3.ipk 14.2 KB
usbmuxd_2019-03-04-b1b0bf39-1_arm_cortex-a9_vfpv3.ipk 28.3 KB
libimobiledevice_2019-02-16-0584aa90-2_arm_cortex-a9_vfpv3.ipk 44.5 KB
libplist_2.0.0-4_arm_cortex-a9_vfpv3.ipk 21.7 KB
libxml2_2.9.9-2_arm_cortex-a9_vfpv3.ipk 459.7 KB
jan-kiszka commented 2 years ago

Here is the diff from my device after installing those packages:

Root Drive 90.828 MBytes Total, 85.840 MBytes Free

vs.

Root Drive 91.277 MBytes Total, 86.289 MBytes Free

Slightly less than the sum of the ipks.

lantis1008 commented 2 years ago

Thanks again for your efforts on this. I've merged it and enabled it on what i believe are the appropriate profiles. 0.5MB is still a bit steep, but we'll have to see what devices start to fail to build.