From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 00:40:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 316CB106566C for ; Thu, 17 Dec 2009 00:40:00 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DC4BE8FC0A for ; Thu, 17 Dec 2009 00:39:59 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id nBH0dwgg098147; Wed, 16 Dec 2009 17:39:58 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id nBH0dw0k098144; Wed, 16 Dec 2009 17:39:58 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 16 Dec 2009 17:39:58 -0700 (MST) From: Warren Block To: Joe S In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Wed, 16 Dec 2009 17:39:59 -0700 (MST) Cc: freebsd-questions Subject: Re: How to apply a patch for Broadcom 5715S X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 00:40:00 -0000 On Wed, 16 Dec 2009, Joe S wrote: > I have the same problem as reported in this bug: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=122551 > > Someone attached a patch to the bug that resolves the problem. > > I don't know how to apply the patch. > > Can someone please show me how? Okay, but realize this is a potentially dangerous operation. Read the man page for patch(1) and the Handbook section on kernel configuration. Also, that patch is from a user and may not be of the same quality as if it were officially part of the FreeBSD source tree. That said, download the patch. It's called patch1.diff. The first three lines show which file will be patched: sys/dev/bge/if_bgereg.h On a normal FreeBSD system, system source file paths are relative to /usr/src. So, as root: cd /usr/src patch < patch1.diff You should see messages about patch hunks succeeding. If there were no errors, you can build from the now-patched source. This patch is to an Ethernet driver, so you probably only need to rebuild the kernel. See the Handbook for custom kernel building and installing: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html If you don't have a custom kernel, you don't need the KERNCONF= entries, or can use KERNCONF=GENERIC. Finally, reboot and hope it works. -Warren Block * Rapid City, South Dakota USA