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

[ 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: Sep. 01 2006,15:34 QUOTE

After following the steps above, I end up with a directory usr/src/linux-2.4.26/drivers/cpufreq/ that contains the files:

.depend
kconfig
makefile
cpufreq.d
description-pak
freq_table.c
procintf.c
userspace.c

What I don't see anywhere is a file cpufreq.o and so I cannot "modprobe" anything and I cannot install the cpufreqd daemon with loading a cpufreq driver.

The problem is that the cpufreq patch for 2.4.26 does not contain any instructions  :D
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Sep. 01 2006,19:42 QUOTE

Check the  .config file in your kernel sources.  Did by any chance the module get compiled *into* the kernel?
If so that means it's already in there - you don't have to load it.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 02 2006,05:19 QUOTE

There are some cpufreq entries in the .config file in /usr/src/linux-2.4.26:

# CPU Frequency scaling
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_PROC_INTF=y
# CPUFreq governors
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_24_API=y
# CPUFreq processor drivers
CONFIG_X86_SPEEDSTEP_CENTRINO=y

I guess this means that the modules/drivers have been compiled into the kernel? The cpufreqd daemon won't run at the moment (no cpufreq driver), so I guess this means the next steps are:

1. I have to do something with the recompiled kernel
2. Remaster DSL (I use DSL from USB)
3. Boot the remastered DSL

Can anybody help me with the next step from this point - i.e. step 1 above?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 06 2006,21:19 QUOTE

After make modules...modules install, the correct files should be copied be copied into your system.

Modprobe can't find it yet because you need to update the system/lists (see depmod), or find the file(s) manually and use insmod.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 08 2006,11:07 QUOTE

Thanks for the hint - after checking what I'd done previously, I discovered I had missed out "make bzImage"

After applying the patch, I did:

root@box:/usr/src/linux# make mrproper
root@box:/usr/src/linux# make oldconfig
root@box:/usr/src/linux# make dep
root@box:/usr/src/linux# make bzImage

which created built-in.o, cpufreq.o, userspace.o, freq_table.o & proc_intf.o in /usr/src/cpufreq/linux/drivers/cpufreq

root@box:/usr/src/linux# make modules

which reported "Nothing to be done for `modules'" in /usr/src/cpufreq/linux/drivers/cpufreq

root@box:/usr/src/linux# make modules_install

which reported "Nothing to be done for `modules_install'" in /usr/src/cpufreq/linux/drivers/cpufreq and "depmod: Can't open /lib/modules/2.4.26/modules.dep for writing"

Then I did:

root@box:~# insmod --force /usr/src/cpufreq/linux/drivers/cpufreq/cpufreq.o

which gave the error "/usr/src/cpufreq/linux/drivers/cpufreq/cpufreq.o: couldn't find the kernel version the module was compiled for"

Does anybody have any idea what the problem is?

If I can somehow enable modules.dep for writing prior to "make modules_install" this might solve the problem but what file permissions would be required?

I could also perhaps edit modules.dep manually but no doubt built-in.o, cpufreq.o, userspace.o, freq_table.o & proc_intf.o are inter-dependent on each other...
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 8 9 ... >/
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