From owner-freebsd-stable@FreeBSD.ORG Fri Nov 16 16:44:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C7596A9 for ; Fri, 16 Nov 2012 16:44:51 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 0BC5A8FC0C for ; Fri, 16 Nov 2012 16:44:50 +0000 (UTC) Received: from Alfreds-MacBook-Pro-5.local (c-67-180-208-218.hsd1.ca.comcast.net [67.180.208.218]) by elvis.mu.org (Postfix) with ESMTPSA id 0E0091A3DDA for ; Fri, 16 Nov 2012 08:44:49 -0800 (PST) Message-ID: <50A66D82.9050401@mu.org> Date: Fri, 16 Nov 2012 08:44:50 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: bge on the new Mac Mini References: <50A65BFC.7030406@wintek.com> <50A65EB5.7040004@mu.org> <50A66198.6060108@wintek.com> <20121116162045.GC24320@in-addr.com> <50A66965.20109@wintek.com> In-Reply-To: <50A66965.20109@wintek.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 16:44:51 -0000 On 11/16/12 8:27 AM, Richard Kuhns wrote: > On 11/16/12 11:20, Gary Palmer wrote: >> On Fri, Nov 16, 2012 at 10:54:00AM -0500, Richard Kuhns wrote: >>> On 11/16/12 10:41, Alfred Perlstein wrote: >>>> Often that is all that is needed. It's worth a shot and reporting back. >>>> >>>> Do you know how to update the table in the driver, rebuild/install >>>> kernel and check? >>>> >>>> -Alfred >>>> >>> I'm afraid not. I grepped for the hex value reported on the one that works >>> (chip=0x16b414e4), but I couldn't find it in its entirety, 16b4, or 14e4. So I >>> don't know what to add :-( >>> >>> I don't have any problem with rebuilding and installing a new kernel, though. >> 14e4 is the ID for Broadcom >> 16b4 is the ID for BCM57765, a NetXtreme Desktop/Mobile chip >> >> http://www.broadcom.com/support/ethernet_nic/determine_driver.php has a list >> of the BCM PCI ID values >> >> There is a (frequently incomplete) database of user reported PCI values at >> http://www.pcidatabase.com. It has the BCM ID (14e4), but not your chip >> >> Linux uses the tg3 driver for that chipset apparently, but I think thats >> a general dumping ground for a lot of Broadcom products. Not sure what the >> appropriate FreeBSD driver to add the ID code to would be. >> >> Regards, >> >> Gary >> > Sorry, I should have been more clear. I grepped for those values in > /usr/src/sys/dev/bge/*, since that's the driver that's used on the older minis. > I assume that's where the table is that Alfred mentioned; I just don't know what > to add to it. > Here's a cool trick you can do. 1) make a backup of your /boot/kernel directory: mv /boot/kernel /boot/kernel.good (now you can boot to a known good kernel if you blow things up) 2) hack a few drivers to add the PCI id. 3) now build a kernel WITHOUT most of the nic drivers. 4) reboot with this kernel 5) try loading/unloading the various drivers you suspect will be compatible until it either works or you get tired. :) Eventually you'll find the change that works. Go look at commit logs to see how others have added PCI ids to the drivers. It's usually in a table or under a simple "if" statement. It honestly won't take you that long, probably a few hours of head scratching. -Alfred