[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: back compiling k8temp.



On March 4, 2007 01:49:15 am C Wakefield wrote:
> On Saturday 03 March 2007 16:20, Stephen Cormier wrote:
> > On March 3, 2007 06:41:15 pm C Wakefield wrote:
> > > hello all.
> > >
> > > I would like to compile lm-sensors / i2c ---> hwmon/k8temp against
> > > 2.6.18-3-amd64 headers (debian pkg).
> > >
> > > Since hwmon/k8temp support didn't appear until about 2.6.19-1 , and, I
> > > can't boot a kernel newer than 2.6.18, I would like to ask anyone who
> > > may know of a script to do this.  I did find the original code, but I'm
> > > not sure how to make it work:
> > >
> > > make -C /lib/modules/2.6.18-3-amd64/build SUBDIRS=$PWD  modules
>
> HI Stephen.
> I feel like a newbie here, but I don't have any docs on this little make
> command string, so I don't know why I'm getting this:
> ________________________________________________________
> crow@amd64:~/lm_sensors-2.10.2$ make -C /lib/modules/2.6.18-3-amd64/build
> SUBDIRS=$PWD  modules
> make: Entering directory `/usr/src/linux-headers-2.6.18-3-amd64'
> gcc: etc/config.c: No such file or directory
> gcc: no input files
> /home/crow/lm_sensors-2.10.2/Makefile:105: *** For 2.6 kernels and later,
> use "make user".  Stop.
> make: *** [_module_/home/crow/lm_sensors-2.10.2] Error 2
> make: Leaving directory `/usr/src/linux-headers-2.6.18-3-amd64'
> crow@amd64:~/lm_sensors-2.10.2$

Your in the wrong source directory you need to be in the k8temp directory when 
you run the make command as well if you updated the kernel to get its headers 
then you need to be using.

make -C /lib/modules/2.6.18-4-amd64/build  SUBDIRS=$PWD  modules

In the k8temp source directory to build the k8temp.ko module.

> As you can see I'm in the source directory.
> I ran m-a prepare and *make clean* as well.
> I sure this will compile with 2.6.18-3?
> The docs in lm_sensors say to run make user then make user_install.  But I
> don't want to mess things up by running make user_install as root.
> I'm sure I remember running  make as a user before and it compiled a
> k8temp.ko Can you Send me your deb of gkrellm, that would be great!
> Also, suggest reasons why this is not compiling?
> Thanks very much for any ideas....
> Chris w.

It will compile on a .18 kernel or .17 for that matter as I believe that is 
how long I have been using it. For the lm-sensors part if you have a 2.6.18 
kernel so you should be using the testing/etch branch if so then you do not 
need the 2.10.2 version of lm-sensors just take the 2.10.1 version available 
it will work fine for your needs. Also if you wanted to add a line for 
unstable just to get the the newest gkrellm 2.2.10 straight from Debian 
sources then you will not need my patched package.

Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc

Attachment: pgp3_hUnVGsHJ.pgp
Description: PGP signature


Reply to: