Laptops :: How to install CPU Freq Driver



In the continuing quest for better laptop power management with DSL I've been trying to get cpufreqd working. After apt-get install (using stable debs) I found that, in order to work, cpufreqd requires a CPU Freq driver which does not come with the 2.4 kernel.

A patch exists at ftp://ftp.linux.org.uk/pub/linux/cpufreq/ (eg cpufreq-LINUX_2_4-20040813.tar.gz) but there are no instructions as to how to compile/install it on the site or in the .tar file

I found Clacker's very useful instructions for compiling drivers and modules for DSL but, apart from unpacking the .tar file, none of his suggested commands (./ compile, make, sudo make install) had any effect.

Does anyone know if this patch can be applied to DSL?

Quote (Juanito @ July 29 2006,15:25)
... cpufreqd requires a CPU Freq driver which does not come with the 2.4 kernel.
...
Does anyone know if this patch can be applied to DSL?

Possibly, but my understanding is that a patch is source code to be compiled along with the kernel source code to produce a new kernel.  You can't compile a patch separately.

As I understand it, at least.

Well it could be that compiling a patch (or a module) won't work, but I understand that if you load gcc1.dsl, kernelsource.dsl and (possibly) gnu-utils.dsl then you should be in good shape.

The issue is that the standard "make" commands don't work (and don't produce any useful error messages) and the .tar file does not have any compile or patch instruction files packed inside.

Maybe since the .tar file is on ftp.linux.org.uk, it is assumed you should use some kind of standard instructions...

Many times the compiler specified in Makefile is cc.
Does establishing a link between gcc and cc help?

In fact most of the problem was me not knowing what I'm doing. After some research, here's what I did:

dsl@box:~$ sudo mkdir /usr/src
dsl@box:~$ sudo chown dsl /usr/src
dsl@box:~$ chgrp /staff /usr/src
chgrp: unknown group name: /staff
dsl@box:~$ cd /usr/src
[download linux kernel source from www.kernel.org]
dsl@box:/usr/src$ sudo gunzip linux-2.4.26.tar.gz
dsl@box:/usr/src$ sudo tar -xf linux-2.4.26.tar
[myDSL kernelsource.dsl]
[myDSL gcc1.dsl]
dsl@box:/usr/src$ sudo patch -p1 -d linux-2.4.26 < knoppix-kernel.patch
patching file arch/i386/kernel/setup.c
Hunk #1 succeeded at 216 with fuzz 2 (offset 21 lines).
patching file drivers/ide/ide.c
Hunk #1 succeeded at 2466 (offset 234 lines).
patching file arch/i386/kernel/smpboot.c
Hunk #1 succeeded at 1147 (offset -17 lines).
patching file Makefile
patching file init/main.
[download cpufreq patch from www.linux.org.uk]
dsl@box:/usr/src$ sudo gunzip cpufreq-LINUX_2_4-20040813.tar.gz
dsl@box:/usr/src$ sudo tar -xf cpufreq-LINUX_2_4-20040813.tar
dsl@box:/usr/src/cpufreq$ sudo ./patchin.sh /usr/src/linux-2.4.26
patching file Documentation/00-INDEX
patching file Documentation/Configure.help
patching file Makefile
patching file arch/i386/boot/setup.S
patching file arch/i386/config.in
patching file arch/i386/kernel/Makefile
patching file arch/i386/kernel/i386_ksyms.c
patching file arch/i386/kernel/setup.c
patching file arch/i386/kernel/time.c
patching file drivers/Makefile
patching file include/asm-i386/ist.h
patching file include/asm-i386/msr.h
patching file include/asm-i386/smp.h
patching file include/linux/smp.h
dsl@box:/usr/src/cpufreq$

The issue is, what to do next in the DSL environment for a USB installation?

Basically all I want to do is add the appropriate cpufreq driver (speedstep-centrino.c in my case, I believe) so I can "modprobe" it without having to go through the whole "make mrproper" and "make config" gazillion questions (some of which are relevent to cpufreq) scenario.

I sense the answer is related to "make oldconfig" but any suggestions welcome.

Also "make dep" didn't want to work with gcc-1.dsl installed - is there a way to update this?

Next Page...
original here.