From owner-freebsd-acpi@FreeBSD.ORG Fri Nov 25 23:00:25 2005 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AE1C16A43A for ; Fri, 25 Nov 2005 23:00:25 +0000 (GMT) (envelope-from freebsd-stable@club-internet.fr) Received: from relay-bv.club-internet.fr (relay-bv.club-internet.fr [194.158.96.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2CF243D66 for ; Fri, 25 Nov 2005 23:00:22 +0000 (GMT) (envelope-from freebsd-stable@club-internet.fr) Received: from [192.168.0.5] (l01v-212-195-165-148.d4.club-internet.fr [212.195.165.148]) by relay-bv.club-internet.fr (Postfix) with ESMTP id AEE1325603; Sat, 26 Nov 2005 00:00:19 +0100 (CET) In-Reply-To: <43860AD3.7090608@root.org> References: <4383C083.6010300@root.org> <4383D58C.5040004@samsco.org> <20051123024911.GA99513@polands.org> <20051123144850.GA1613@polands.org> <74C4FED8-AFD1-4375-A875-438827BECC57@club-internet.fr> <43860AD3.7090608@root.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Mathieu Prevot Date: Sat, 26 Nov 2005 00:00:36 +0100 To: Nate Lawson X-Mailer: Apple Mail (2.746.2) Cc: acpi@freebsd.org Subject: Re: Build just one module (was Re: [Fwd: cvs commit: X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 23:00:25 -0000 Le 24 nov. 05 =E0 19:47, Nate Lawson a =E9crit : > Mathieu Prevot wrote: >> Le 23 nov. 05 =E0 15:48, Doug Poland a =E9crit : >>> On Wed, Nov 23, 2005 at 11:49:20AM +0100, Mathieu Prevot wrote: >>> >>>> >>>> Le 23 nov. 05 ? 03:49, Doug Poland a ?crit : >>>> >>>>>> Nate Lawson wrote: >>>>>> >>>>>>> Here is a patch that should fix the battery hangs on =20 >>>>>>> RELENG_6. It >>>>>>> was tested to work fine, although I need testing from an =20 >>>>>>> affected >>>>>>> user to verify it fixes the problem. It was committed to =20 >>>>>>> HEAD and >>>>>>> will be MFCed if it fixes the problem. >>>>>>> >>>>> My Dell C600 is affected by this problem. I'm running 6.0-=20 >>>>> STABLE and >>>>> would be glad to test the patch. Since I don't run patches =20 >>>>> often, if >>>>> someone could point me to a doc on how to apply the patch, I'd >>>>> appreciate it. >>>> >>>> You should think man 'subject', Unix for the impatient or google =20= >>>> and >>>> find things like: >>>> >>>> patch -i patchfile filetopatch >>>> patch>>> >>> Thank you, that part is fairly obvious. What I'm unsure of is =20 >>> where in >>> the source tree do I apply that patch from, and, must I to rebuild >>> world, or just the affected part of sys/dev. >> Try and see for the patch. 'patch -i patchfile filetopatch' works =20= >> from anywhere. >> I don't think you need to rebuild world. I think you can just =20 >> build acpi module but I don't know how. >> You may glance at /usr/src/Makefile* ... > > Look at the path in the patch start. If it's "sys/dev", then patch =20= > from your src dir. If it's "src/sys/dev", patch from above the src =20= > dir. If it's just "file.c", then you have to find file.c and patch =20= > from there (but few people generate diffs this way, it's bad form). > > For acpi, then just: > cd /sys/modules/acpi/acpi && make && cp acpi.ko / > > Then at the loader prompt: > load /acpi.ko > > You don't want to use "make install", otherwise you overwrite your =20 > known good acpi.ko Thanks Nate MP=