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 7 ... >/

[ 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 >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 02 2006,03:37 QUOTE

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





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 02 2006,04:57 QUOTE

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"?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 02 2006,19:06 QUOTE

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





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 03 2006,05:44 QUOTE

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





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Aug. 29 2006,12:21 QUOTE

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.
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 7 ... >/
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