Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (15) </ [1] 2 3 4 5 6 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to install CPU Freq Driver, Use cpufreqd with acpid and ACPI< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 29 2006,19:25 QUOTE

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?
Back to top
Profile PM 
newby Offline





Group: Members
Posts: 171
Joined: June 2006
Posted: July 29 2006,21:27 QUOTE

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.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 30 2006,04:12 QUOTE

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...
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 30 2006,17:09 QUOTE

Many times the compiler specified in Makefile is cc.
Does establishing a link between gcc and cc help?
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 30 2006,18:14 QUOTE

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?
Back to top
Profile PM 
74 replies since July 29 2006,19:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (15) </ [1] 2 3 4 5 6 ... >/
reply to topic new topic new poll
Quick Reply: How to install CPU Freq Driver

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code