Re: best acpi solution

Ducrot Bruno
2003-05-21T15:44:28Z

On Wed, May 21, 2003 at 04:21:11PM +0000, sjb wrote:
> Ducrot Bruno wrote:
>
> >I meant the latest 2.4 ac tree (not 2.5) because tt has
> >recent acpi and cpufreq (for longrun) and therefore no need
> >to apply 2 patches.
>
> Another dumb question .. where would I find that?
>
> Is it a question of running these patahces
>
> http://www.kernel.org/pub/linux/kernel/people/alan/linux-2.4/2.4.21/patch-2.4.21-rc2-ac2.gz
>
> against the corresponding 2.4.21 kernel?

yes and no. 2.4.21 is not out AFAIK.

Grab (well, I prefer ftp):

ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.21-rc2.bz2
ftp://ftp.kernel.org/pub/linux/kernel/people/alan/linux-2.4/2.4.21/patch-2.4.21-rc2-ac2.bz2

Then, for example in your home directory:

tar xjvfp linux-2.4.20.tar.bz2
or tar xIvfp linux-2.4.20.tar.bz2 since the j vs I option is alas dependant of
the distribution. You may want if that do not work to
bzip2 linux-2.4.20.tar.bz2 | tar xvfp -
instead.

Then you will have a newly linux-2.4.20 directory.
First, move it so that it correspond to the wanted version:
cp linux-2.4.20 linux-2.4.21-rc2-ac2

then go to this directory, then do something like that (in order):
bzip2 /path/to/patch-2.4.21-rc2.bz2 | patch -p1
bzip2 /patth/to/patch-2.4.21-rc2-ac2.bz2 | patch -p1

(you may also want to
bzip2 /path/to/thispatch.diff.bz2 | patch -p1 2>&1 | tee ../patch.log
if you want to check in the file ../patch.log if all is OK (but
the patch-2.4.21-rc2.bz2 and the ac2 corresponding are always
clean anyway).

--
Ducrot Bruno

-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.