lmsensors and kernel 2.6.16.19
Hello all,
I'm trying to get lmsensors to work with my home-built (LinuxFromScratch) system. I'm using the latest lmsensors and sysfs utils, but "sensors" errors out saying it can't access procfs/sysfs. mount shows sysfs mounted on /sys.... I've compiled I2C and hardware monitoring into the kernel, the sensor on my mobo (MSI K8TNeo K8T800) is a winbond whose exact model number escapes me at the moment. I started out compiling everything into the kernel, but have just tried everything as modules with no success. sensors-detect shows up the sensor OK... but sensors still can't find sysfs. Is there a problem with running lmsensors on this fresh kernel? Or am I missing some other critical piece? Thanks Dale |
Command output...
root@gordon:~# sensors Can't access procfs/sysfs file Unable to find i2c bus information; For 2.6 kernels, make sure you have mounted sysfs and libsensors was compiled with sysfs support! For older kernels, make sure you have done 'modprobe i2c-proc'! root@gordon:~# sensors-detect ... I will now generate the commands needed to load the I2C modules. To make the sensors modules behave correctly, add these lines to /etc/modules.conf: #----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---- To load everything that is needed, add this to some /etc/rc* file: #----cut here---- # I2C adapter drivers # modprobe unknown adapter NVIDIA I2C Device # modprobe unknown adapter NVIDIA I2C Device # modprobe unknown adapter NVIDIA I2C Device modprobe i2c-viapro modprobe i2c-isa # I2C chip drivers # Warning: the required module eeprom is not currently installed on your system. # For status of 2.6 kernel ports see <snip> # If driver is built-in to the kernel, or unavailable, comment out the following line. modprobe eeprom # Warning: the required module w83627hf is not currently installed on your system. # For status of 2.6 kernel ports see <snip> # If driver is built-in to the kernel, or unavailable, comment out the following line. modprobe w83627hf # sleep 2 # optional /usr/local/bin/sensors -s # recommended root@gordon:~# grep I2C /home/dale/lfs-sources/linux-2.6.16.19/.config # I2C support CONFIG_I2C=y CONFIG_I2C_CHARDEV=m # I2C Algorithms CONFIG_I2C_ALGOBIT=m CONFIG_I2C_ALGOPCF=m CONFIG_I2C_ALGOPCA=m # I2C Hardware Bus support CONFIG_I2C_ALI1535=m CONFIG_I2C_ALI15X3=m CONFIG_I2C_AMD756=m CONFIG_I2C_AMD8111=m # CONFIG_I2C_ELEKTOR is not set CONFIG_I2C_I801=m CONFIG_I2C_I810=m CONFIG_I2C_PIIX4=m CONFIG_I2C_ISA=m CONFIG_I2C_NFORCE2=m CONFIG_I2C_PARPORT=m CONFIG_I2C_PARPORT_LIGHT=m CONFIG_I2C_PROSAVAGE=m CONFIG_I2C_SIS5595=m CONFIG_I2C_SIS630=m CONFIG_I2C_SIS96X=m CONFIG_I2C_VIAPRO=m CONFIG_I2C_VOODOO3=m CONFIG_I2C_PCA_ISA=m # Miscellaneous I2C Chip support # CONFIG_I2C_DEBUG_CORE is not set # CONFIG_I2C_DEBUG_ALGO is not set # CONFIG_I2C_DEBUG_BUS is not set # CONFIG_I2C_DEBUG_CHIP is not set root@gordon:~# grep SENSORS /home/dale/lfs-sources/linux-2.6.16.19/.config # # Hardware Monitoring support # CONFIG_HWMON=m CONFIG_HWMON_VID=m CONFIG_SENSORS_ADM1021=m CONFIG_SENSORS_GL518SM=m CONFIG_SENSORS_IT87=m CONFIG_SENSORS_LM75=m CONFIG_SENSORS_LM83=m CONFIG_SENSORS_LM90=m CONFIG_SENSORS_VIA686A=m CONFIG_SENSORS_W83781D=m CONFIG_SENSORS_HDAPS=m # CONFIG_HWMON_DEBUG_CHIP is not set |
Welcome to LQ!
Do you have lm_sensors started? In my Gentoo system: "/etc/init.d/lm_sensors start" |
No I don't have anything in init.d to do with lm_sensors. I had a look at the init script provided with the lm_sensors source and as far as I could see all it does is load up the lm_sensors modules. Initially I had everything (or some subset perhaps ;-) compiled into the kernel, and it didn't work. For my last try I tried to manually modprobe the modules listed by sensors detect with no joy. The module for my sensors looks like it is in "experimental" so it is not available in my kernel at the moment. I chose "No" to development and experimental code in my kernel compile. My next move is to go back and compile that in (although the sensor module I chose is supposed to work with my sensor).
Perhaps you could post your gentoo init script for me to peruse? Thanks Dale |
Never had a closer look at it, looks like it does load modules. :)
Code:
#!/sbin/runscript |
Hello,
I got it running. What I did was the following: Code:
CONFIG_I2C=m Code:
i2c-core Code:
w83697hf-isa-0290 Dale |
All times are GMT -5. The time now is 04:54 AM. |