LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   lm_sensors and the 2.6 kernel (https://www.linuxquestions.org/questions/linux-general-1/lm_sensors-and-the-2-6-kernel-125629/)

pilot1 12-13-2003 09:45 PM

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.

teval 12-14-2003 10:08 AM

Get 2.8.2
It has 2.6 support, everything before it crashes and burns on 2.6

http://secure.netroedge.com/~lm78/

pilot1 12-14-2003 01:00 PM

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?

starcrzr 12-14-2003 01:53 PM

make menuconfig ----> Device Drivers -----> Character Devices ----> I2C support

pilot1 12-14-2003 03:26 PM

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?

teval 12-14-2003 09:06 PM

Get the newest 2.6 kernel. That should fix it :)

pilot1 12-15-2003 11:01 AM

I tried it on both test9 and test11.. there is still nothing under "I2C Hardware Sensors Chip Support"
Any idea why?

starcrzr 12-15-2003 10:23 PM

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?

pilot1 12-16-2003 03:15 PM

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.


TheOneAndOnlySM 12-16-2003 04:57 PM

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

pilot1 12-16-2003 05:17 PM

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..

pilot1 12-16-2003 07:56 PM

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?

starcrzr 12-17-2003 07:00 PM

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

pilot1 12-17-2003 08:19 PM

That fixed it, thanks.
I never saw sysfs mentioned when I was migrating to 2.6, which is strange since it seems somewhat important.


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