From owner-freebsd-usb@FreeBSD.ORG Sat Sep 29 22:30:02 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5EA2106566B for ; Sat, 29 Sep 2012 22:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 99C158FC12 for ; Sat, 29 Sep 2012 22:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8TMU2Sf083300 for ; Sat, 29 Sep 2012 22:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8TMU2sP083296; Sat, 29 Sep 2012 22:30:02 GMT (envelope-from gnats) Resent-Date: Sat, 29 Sep 2012 22:30:02 GMT Resent-Message-Id: <201209292230.q8TMU2sP083296@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ali Mashtizadeh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4AF8106564A for ; Sat, 29 Sep 2012 22:29:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B653F8FC0A for ; Sat, 29 Sep 2012 22:29:53 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8TMTrOi035556 for ; Sat, 29 Sep 2012 22:29:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8TMTrBx035555; Sat, 29 Sep 2012 22:29:53 GMT (envelope-from nobody) Message-Id: <201209292229.q8TMTrBx035555@red.freebsd.org> Date: Sat, 29 Sep 2012 22:29:53 GMT From: Ali Mashtizadeh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/172172: iPhone 5 Support for if_ipheth X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 22:30:03 -0000 >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@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: