usb/172172: iPhone 5 Support for if_ipheth
Ali Mashtizadeh
mashtizadeh at gmail.com
Sat Sep 29 22:30:03 UTC 2012
>Number: 172172
>Category: usb
>Synopsis: iPhone 5 Support for if_ipheth
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 29 22:30:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ali Mashtizadeh
>Release: 9-STABLE
>Organization:
>Environment:
FreeBSD starscream.mashtizadeh.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #3 r241057M: Sat Sep 29 15:04:40 PDT 2012 root at starscream.mashtizadeh.com:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Enable tethering with the iPhone 5 via if_ipheth driver. The USB device ID was missing. I have tested the patch included and was able to use tethering for a period of time without any issues.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: sys/amd64/conf/GENERIC
===================================================================
--- sys/amd64/conf/GENERIC (revision 241057)
+++ sys/amd64/conf/GENERIC (working copy)
@@ -22,6 +22,7 @@
ident GENERIC
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+makeoptions WITH_CTF=1
options SCHED_ULE # ULE scheduler
options PREEMPTION # Enable kernel thread preemption
@@ -62,8 +63,9 @@
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT # Security event auditing
options MAC # TrustedBSD MAC Framework
-#options KDTRACE_FRAME # Ensure frames are compiled in
-#options KDTRACE_HOOKS # Kernel DTrace hooks
+options KDTRACE_FRAME # Ensure frames are compiled in
+options KDTRACE_HOOKS # Kernel DTrace hooks
+options DDB_CTF
options INCLUDE_CONFIG_FILE # Include this file in kernel
options KDB # Kernel debugger related code
options KDB_TRACE # Print a stack trace for a panic
Index: sys/dev/usb/usbdevs
===================================================================
--- sys/dev/usb/usbdevs (revision 241057)
+++ sys/dev/usb/usbdevs (working copy)
@@ -1077,6 +1077,7 @@
product APPLE IPHONE_3G 0x1292 iPhone 3G
product APPLE IPHONE_3GS 0x1294 iPhone 3GS
product APPLE IPHONE_4 0x1297 iPhone 4
+product APPLE IPHONE_5 0x12a8 iPhone 5
product APPLE IPAD 0x129a iPad
product APPLE ETHERNET 0x1402 Ethernet A1277
Index: sys/dev/usb/net/if_ipheth.c
===================================================================
--- sys/dev/usb/net/if_ipheth.c (revision 241057)
+++ sys/dev/usb/net/if_ipheth.c (working copy)
@@ -161,6 +161,9 @@
{IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_4,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO)},
+ {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_5,
+ IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
+ IPHETH_USBINTF_PROTO)},
};
static int
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list