Laptops :: How to install CPU Freq Driver



1. You should use the kernel source in myDSL.
2. It sounds as if you'll have to replace the whole kernel too, not just load the module.

My apologies for pasting in long sections from dsl box, but I did use the kernel source from the repository (line 9 in previous post, [myDSL kernelsource.dsl]
).

After the cpufreq patch worked, I tried several means of carrying on from there (not really knowing what I was doing, I admit):

[load myDSL gcc-1.dsl]

dsl@box:/usr/src$ cd /usr/src/linux
dsl@box:/usr/src/linux$ sudo make mrproper

[blah, blah, blah - appears to work]

dsl@box:/usr/src/linux$ sudo make oldconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
/bin/sh scripts/Configure -d arch/i386/config.in
#
# Using defaults found in arch/i386/defconfig
#

[various questions relevent to the cpufreq patch, appears to work]

dsl@box:/usr/src/linux$ sudo make dep
gcc-2.95 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
make: gcc-2.95: Command not found
make: *** [scripts/mkdep] Error 127
dsl@box:/usr/src/linux$ sudo make modules
gcc-2.95 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
make: gcc-2.95: Command not found
make: *** [scripts/split-include] Error 127
dsl@box:/usr/src/linux$ gcc -v
Reading specs from /ramdisk/usr/bin/../lib/gcc-lib/i486-linux/3.3.4/specs
...gcc version 3.3.4 (Debian 1:3.3.4-7)
dsl@box:/usr/src/linux$

I agree it seems that I might have to recompile rather than just make the new modules, but if "make dep" and "make modules" don't work I'm kind of stuck.

Any idea why gcc doesn't want to "make dep"/"make modules"?

It's trying to use gcc v 2.95, the version used to compile DSL's kernel.  From experience, new kmodules to be loaded should use the same version of the compiler as the kernel.

`apt-get install gcc-2.95` should do the trick.

Note that you could always try and bypass this, though it isn't recommended.

You're right, doing an apt-get install gcc-2.95 solved the problem - though I still had to load gcc1.dsl afterwards to get the "make" command. Following this I did:

make mrproper
make oldconfig
make dep
make modules
make modules_install

All of which appeared to go OK - a couple of questions:

1. How do I incease the buffer size in an Xterm so that I can scroll back and see all of the screen output following a command?
2. Is it enough to backup/restore the modules/files created in "make module_install" to /lib/modules/2-4.26/.. to be able to "modprobe" the new module after boot, or is there more to it than this?
3. If the answer to 2. above is no, then what next - do I have to do a "make bzImage" equivalent for DSL?

Thanks for the help so far.

Any help would be gratefully received.

There must be more people out there who would like to get laptop power management working in this fashion with DSL. If (with help) I crack it, I will post the explanation here.

Next Page...
original here.