LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2003, 09:45 PM   #1
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
Question lm_sensors and the 2.6 kernel


I have an ECS K75SA Pro mainboard, and I'm running kernel 2.6.0-test9.
I just found out about lm_sensors, but unfortunately I can't find information anywhere on how to use it with a 2.6 kernel. I looked through menuconfig, and I couldn't find anything about sensors or i2c anywhere.
I'm running lm_sensors 2.6.5-5, and RedHat 9.

Here's the output of sensors-detect
Code:
Probing for PCI bus adapters...
Use driver `i2c-sis5595' for device 00:02.0: Silicon Integrated Systems SIS5595
Probe succesfully concluded.

 We will now try to load each adapter module in turn.
Load `i2c-sis5595' (say NO if built into your kernel)? (YES/no): yes
FATAL: Module i2c_sis5595 not found.
Loading failed ()... skipping.
 Do you now want to be prompted for non-detectable adapters? (yes/NO): no
 To continue, we need module `i2c-dev' to be loaded.
 If it is built-in into your kernel, you can safely skip this.
 i2c-dev is not loaded. Do you want to load it now? (YES/no): yes
FATAL: Module i2c_dev already in kernel.
 Loading failed (), expect problems later on.

 We are now going to do the adapter probings. Some adapters may hang halfway
 through; we can't really help that. Also, some chips will be double detected;
 we choose the one with the highest confidence value in that case.
 If you found that the adapter hung after probing a certain address, you can
 specify that address to remain unprobed. That often
 includes address 0x69 (clock chip).
Couldn't open /proc/bus/i2c?!? at /usr/sbin/sensors-detect line 2970, <STDIN> line 4.
Could someone please tell me how to set up lm_sensors with my 2.6 kernel?
Thanks!

Edit: I just noticed that I told it to load i2c-dev when it was already built into the kernel, but it still doesn't work if I tell it not to load it. I'm pretty sure that it's built into the kernel, because there are a few files beginning with i2c in dev.

Last edited by pilot1; 12-13-2003 at 09:47 PM.
 
Old 12-14-2003, 10:08 AM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Get 2.8.2
It has 2.6 support, everything before it crashes and burns on 2.6

http://secure.netroedge.com/~lm78/
 
Old 12-14-2003, 01:00 PM   #3
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I did "make user" and "make user_install" for 2.8.2, which is all it said to do for a 2.5/2.6 kernel.
It still doesn't work though, I think the problem is the fact that the module for my motherboard (sis5595 chipset, the module was something like i2c_sis5595) wasn't built with the kernel, but I looked through the kernel config and couldn't find where you enable it.
Where in 'make menuconfig' are the options pertainting to i2c and lm_sensors?
 
Old 12-14-2003, 01:53 PM   #4
starcrzr
Member
 
Registered: Dec 2002
Posts: 35

Rep: Reputation: 15
make menuconfig ----> Device Drivers -----> Character Devices ----> I2C support
 
Old 12-14-2003, 03:26 PM   #5
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I found that, but it won't let me open "I2C Hardware Sensors Chip Support", whenever I choose select, it doesn't open it - it just reloads the I2C support screen.
Any idea why?
 
Old 12-14-2003, 09:06 PM   #6
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Get the newest 2.6 kernel. That should fix it
 
Old 12-15-2003, 11:01 AM   #7
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I tried it on both test9 and test11.. there is still nothing under "I2C Hardware Sensors Chip Support"
Any idea why?
 
Old 12-15-2003, 10:23 PM   #8
starcrzr
Member
 
Registered: Dec 2002
Posts: 35

Rep: Reputation: 15
Post the I2C part of your kernel .config file. You dont have something enabled that should be. You do have I2C support set as a module or built into the kernel?
 
Old 12-16-2003, 03:15 PM   #9
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Built as a module, the I2C part is below (at least I think that's all of it)

Code:
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_CHARDEV=m

#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_ALGOPCF=m

#
# I2C Hardware Bus support
#
CONFIG_I2C_ELEKTOR=m
CONFIG_I2C_ELV=m
CONFIG_I2C_PHILIPSPAR=m
# CONFIG_SCx200_ACB is not set
CONFIG_I2C_VELLEMAN=m

#
# I2C Hardware Sensors Chip support
#
CONFIG_I2C_SENSOR=m
###I also tried changing the above to 'y', still didn't work.
 
Old 12-16-2003, 04:57 PM   #10
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
at the top of menuconfig, make sure you select all those options for "prompt for incomplete drivers" and a bunch of other good stuff up there until you can see all the hidden things in the kernel config
 
Old 12-16-2003, 05:17 PM   #11
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
That made them show up, thanks.
I actually thought of that earlier when I was in school, but I had completely forgotten about it once I got home. I still can't believe that I missed something so obvious..
 
Old 12-16-2003, 07:56 PM   #12
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Hmm, I've compiled the modules, but I get the following error when trying to run 'sensors'.
Code:
# sensors
Can't access /proc file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs!
For older kernels, make sure you have done 'modprobe i2c-proc'!
Any ideas?
 
Old 12-17-2003, 07:00 PM   #13
starcrzr
Member
 
Registered: Dec 2002
Posts: 35

Rep: Reputation: 15
You need to mount sysfs here is a link.

Look at the part Sysfs file system

http://thomer.com/linux/migrate-to-2.6.html
 
Old 12-17-2003, 08:19 PM   #14
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
That fixed it, thanks.
I never saw sysfs mentioned when I was migrating to 2.6, which is strange since it seems somewhat important.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lm_sensors it87 doesnt work not isa support was removed from kernel 2.6.10 qwijibow Linux - General 4 05-15-2005 04:11 PM
lm_sensors cvs 2.6 kernel puremourning Linux - Software 0 03-11-2005 01:06 AM
2.6.5 kernel breaks lm_sensors netcrawl Slackware 2 04-16-2004 07:39 PM
Mandrake 10 Kernel 2.6 - lm_sensors? martinreichl Mandriva 4 04-16-2004 07:30 PM
lm_sensors vexer Linux - Software 1 06-07-2003 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:50 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
Open Source Consulting | Domain Registration