On Sunday 13 January 2008, Adam wrote:
<snip>
> Okay, that explains things. I actually managed to find the patch for
> coretemp.c for my kernel, which is:
>
> /* check if family 6, models e, f, 16 */
> if ((c->cpuid_level < 0) || (c->x86 != 0x6) ||
> !((c->x86_model == 0xe) || (c->x86_model == 0xf) ||
> (c->x86_model == 0x16))) {
>
> The check for 0x16 is the new part, and I changed coretemp.c. Is there
> a relatively simple way to compile just the coretemp module? I tried
> compiling it as if it were a standalone program, and of course that failed.
You can only compile coretemp.c by itself if the rest of the kernel has
already been built that that coretemp.c's code depends on. I.E. you
essentially need to compile the entire kernel first.
After you've compiled the kernel you would be able to compile coretemp.c
and other modules while in that directory with the command:
make -C <path_to_kernel> M=`pwd` modules
Ex:
make -C /usr/src/linux-2.6.23.14 M=`pwd` modules
The above command is what I'm using to experiment with making custom Linux
modules.
> >> I looked through all of /proc and /sys and didn't find anything that
> >> seemed relevant. OTOH the script I wrote to search recursively only
> >> looked at 'visible' directories and files. Is there any way to have
> >> something like "for FOO in *" in a bash script also return files and
> >> directories that start with a period?
> >
> > It may be that it's required to load an ACPI module to get the above
> > to show up; not sure.
>
> [EMAIL PROTECTED] ~]$ sudo modprobe acpi
> FATAL: Error inserting acpi_cpufreq
> (/lib/modules/2.6.22.15-desktop-1.uc1mdv/kernel/arch/i386/kernel/cpu/cpufre
>q/acpi-cpufreq.ko.gz): No such device
Hmm. Is there a file at the path above? I have a acpi-cpufreq.ko, but not
a acpi-cpufreq.ko.gz. Weird error; it would be unusual for any of the
modules to get installed as a .gz AFAIK. Or at least I haven't seen that
myself yet; none of the modules for the kernel I'm running are built into
a .gz.
I currently have ACPI, and the acpi "Processor" and "Thermal Zone" drivers
built into the kernel itself rather than as modules. The required module
for "Thermal Zone" [when the driver is built as a module] is:
/lib/modules/<kernel version>/kernel/drivers/acpi/thermal.ko
-- Chris
--
Chris Knadle
[EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Feb 6 - DBUS Mar 5 - Setting up a platform-independent home/small office network using Linux
