LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2003, 12:49 AM   #1
CanadianPenguin
Member
 
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116

Rep: Reputation: 15
lm_sensors


So I tried to install lm_sensors last week. I patched the kernel, but when I went to compile it had massive errors. I'd really like to get it working, but I'm quite reluctant to play with kernel modification. I'm on kernel 2.4.20, so I can't do the modules method.

So, my question I guess is what are my options? Are there any alternatives to lm_sensors, or is there a way of doing lm_sensors without patching the kernel? I'm on SuSE 8.2.
 
Old 10-23-2003, 11:57 PM   #2
CanadianPenguin
Member
 
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116

Original Poster
Rep: Reputation: 15
Bump?
 
Old 10-24-2003, 05:37 AM   #3
euangray
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: LFS-CVS-20031113
Posts: 29

Rep: Reputation: 15
When you say you had massive errors, were these during the compilation of the kernel or when you tried to reboot after installing the new kernel?

Also, I'm not sure what you mean when you say you "can't do the modules method"?

After patching the kernel, you need to run the configure program (make xconfig or make menuconfig) and after you have configured properly then do:

make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/<new-kernel-name>

then edit your /etc/lilo.conf (if you use lilo) to update your bootloader.

You may need to make entries to /etc/modules.conf for the new lm_sensors modules - read the docs that come with lm_sensors.

Euan
 
Old 10-25-2003, 12:17 AM   #4
CanadianPenguin
Member
 
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116

Original Poster
Rep: Reputation: 15
I patched and configured the kernel properly, but when I tried to compile it exited with errors, and when I rebooted the kernel was completely screwed up (didn't rename the kernel, stupid, so it overwrote it with a non-working one).

What I mean by "can't do the modules method" is that lm_sensors can be compiled as modules for kernel 2.4.9 or later, and since mine is 2.4.20, I can't do that. I'm very reluctant to patch the kernel, since I don't have time to fix anything right now, so I'd like a modules-only or software-only method.
 
Old 10-26-2003, 08:38 AM   #5
euangray
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: LFS-CVS-20031113
Posts: 29

Rep: Reputation: 15
If you can compile lm_sensors as a module for 2.4.9 or greater and you have 2.4.20, then you can compile as modules since (last time I checked) 20 is greater than 9

If your kernel isn't compiling, make sure you have all the necessary tools - gcc-2.95.3, make>=3.79.1, etc - check the docs in the kernel source. This shouldn't be a problem on SuSE 8.2, but did you install the packages needed for software development?

If possible, can you post the last dozen or so lines of output just before the kernel compile failed?

Euan
 
Old 10-26-2003, 03:13 PM   #6
CanadianPenguin
Member
 
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116

Original Poster
Rep: Reputation: 15
Doh! I totally didn't think of that, I hate it when people number software like that, it's so ambiguous. I think of 2.4.9 as being the same as 2.4.90 and 2.4.20 as being the same as 2.4.2. I'll compile the modules today, assuming I get my kernel source working properly (see my other thread for more information).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lm_sensors Joey.Dale Linux - Software 14 01-24-2004 05:44 PM
I need help with lm_sensors Joey.Dale Linux - General 1 01-18-2004 12:24 PM
lm_sensors Joey.Dale Slackware 3 12-23-2003 04:04 PM
How do I use lm_sensors? Kramer Linux - Hardware 13 11-15-2003 09:05 PM
Trying to use lm_sensors... Kramer Linux - Hardware 5 10-10-2003 10:14 PM


All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration