From owner-freebsd-stable@FreeBSD.ORG Thu Nov 22 01:49:31 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 040626CD for ; Thu, 22 Nov 2012 01:49:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C1E488FC13 for ; Thu, 22 Nov 2012 01:49:30 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id n2so1299631dad.13 for ; Wed, 21 Nov 2012 17:49:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=iX5MV1XiO9D5Nid/Kh+1lOH83+5Hf6QHGVSuL2v7WJU=; b=p+d5hE5KgXneQw2SsXHLFF8W8eBgW0r2wPCXLJWRV6nzFcyNqteaWMTRmDdMPHfL9v pi6kfrAXPGoMV5bT6+gNiFVHgWuUCfNblSCAY6JjPk1l5HjmrbNcRowS1SBwn09VmqG1 GdGa5rw0Bm3j0HNS2PFacM14wGILCAiw3AJjhtCyFkmZkyBvh2kj3gw9klDJj4sFm1Nq oqr427EjNQdbz8vErmpr31VdYmjCdME4z44BpzsNQs9LAgdaw/kJnV0oxm9iIHlClJRF Fe2AiqnSEZldkSV/0W6yQcotIfBj7XvXkydF13gn1aZ7lhzBuaOle8pl2B64ByXl+SBt GF4A== Received: by 10.66.87.202 with SMTP id ba10mr22521677pab.72.1353548970385; Wed, 21 Nov 2012 17:49:30 -0800 (PST) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id a10sm940979paz.35.2012.11.21.17.49.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 17:49:29 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 22 Nov 2012 10:49:21 +0900 From: YongHyeon PYUN Date: Thu, 22 Nov 2012 10:49:21 +0900 To: Richard Kuhns Subject: Re: bge on the new Mac Mini Message-ID: <20121122014921.GA3180@michelle.cdnetworks.com> References: <50A65BFC.7030406@wintek.com> <20121120085200.GB1778@michelle.cdnetworks.com> <50AD32A6.8080209@wintek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50AD32A6.8080209@wintek.com> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 01:49:31 -0000 On Wed, Nov 21, 2012 at 02:59:34PM -0500, Richard Kuhns wrote: > On 11/20/12 03:52, YongHyeon PYUN wrote: > > On Fri, Nov 16, 2012 at 10:30:04AM -0500, Richard Kuhns wrote: > >> Hi all, > >> > >> Over the last month or so I've installed FreeBSD 9 (-stable) on several Mac > >> Minis via the memstick image; they seem to be pretty good little boxes for > >> things like offsite secondary nameservers, for example, and they're easily > >> replaced in case of problems. > >> > >> However, the newest minis have slightly different hardware, and FreeBSD can't > >> find the built-in NIC. pciconf -lv on the new mini shows it as > >> > >> none3@pci0:1:0:0: class=0x020000 card=0x168614e4 chip=0x168614e4 rev=0x01 > > > > It seems this controller is BCM57766. > > > >> hdr=0x00 > >> vendor = 'Broadcom Corporation' > >> class = network > >> subclass = ethernet > >> > >> The previous edition mini (that works) reports > >> > >> bge0@pci0:2:0:0: class=0x020000 card=0x16b414e4 chip=0x16b414e4 rev=0x10 hdr=0x00 > >> vendor = 'Broadcom Corporation' > >> device = 'NetXtreme BCM57765 Gigabit Ethernet PCIe' > >> class = network > >> subclass = ethernet > >> > >> Is there a chance that adding the new card/chip info to the current driver would > >> allow it to work? I'll be happy to test and report back. I'm afraid I'm not > >> familiar enough with hardware at that level to figure out the patch myself. > >> > > > > Try attached patch and let me know whether the patch works or not. > > If the patch works please share dmesg output(bge(4) and brgphy(4) > > output only). > > Note, the patch was generated against CURRENT. > > > > I'm afraid it didn't help. I ended up grabbing if_bge.c and if_bgereg.h from I guess you also need to copy brgphy.c from HEAD to /usr/src/sys/dev/mii directory. > HEAD using svnweb.freebsd.org. The patch installed cleanly and there were no > errors during the build, but still no NIC. Does it mean you're not seeing bge0 interface? Or you can't pass any traffic via bge0? > > Just to make sure you know, I've made no local modifications at all. This was a > fresh install and I've touched nothing except for these 2 files. > > Thanks! > > -- > Richard Kuhns My Desk: 765-269-8541 > Wintek Corporation Internet Support: 765-269-8503 > 427 N 6th Street Consulting: 765-269-8504 > Lafayette, IN 47901-2211 Accounting: 765-269-8502