i2c-proc and kernel 2.6.0-test11 HOWTO
Hello,
(my english is not excelent, but I hope, that's OK)
I am student from Slovakia. I will test lm_sensors with linux kernel 2.6.0-test11, but I have problem. My system is Debian. I have lm-sensors-source.deb (version 2.8.1) install.
In README writes:
<README>
!!! This package is ONLY for 2.6, 2.5, and 2.4 kernels (2.4.9 or later) !!!
!!! THIS PACKAGE REQUIRES i2c-2.8.1 or later!!!
FOR 2.6/2.5 KERNELS, Use only the userspace tools in this package! Build and install them with 'make user' and 'make user_install'. The kernel modules in this package will not compile for 2.6/2.5; use the drivers already in the 2.5 kernel development tree. </README>
So:
1. My kernel configuration (make menuconfig):
#
# I2C support
#CONFIG_I2C=yCONFIG_I2C_CHARDEV=m
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=y
#
# I2C Hardware Bus support
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_ELEKTOR is not set
# CONFIG_I2C_ELV is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_I810 is not setCONFIG_I2C_ISA=m
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_PHILIPSPAR is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_PROSAVAGE is not set
# CONFIG_I2C_SAVAGE4 is not set
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VELLEMAN is not set
# CONFIG_I2C_VIA is not setCONFIG_I2C_VIAPRO=y
# CONFIG_I2C_VOODOO3 is not set
#
# I2C Hardware Sensors Chip support
#CONFIG_I2C_SENSOR=y
# CONFIG_SENSORS_ADM1021 is not setCONFIG_SENSORS_EEPROM=m
# CONFIG_SENSORS_IT87 is not setCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM78=m
# CONFIG_SENSORS_LM85 is not setCONFIG_SENSORS_VIA686A=y
# CONFIG_SENSORS_W83781D is not set
2. make-kpkg kernel-image
.. OK
I have modules (via686a, i2c-isa, i2c-viapro, i2c-dev, i2c-sensors,..., but I have not i2c-proc!
3. when I run sensors:
ta3:~# sensors Can't access /proc file /proc/sys/dev/sensors/chips or /proc/bus/i2c unreadable; Make sure you have done 'modprobe i2c-proc'!
I have not i2c-proc :(.
################################################################
lm_sensors+i2c with my kernel 2.4.22.. I have no problems.
Where is problem? I do some bad?
Can you write me how I compile this modul - 'i2c-proc'.
Thanks!
Signature · 15 lines
\ /
/\ o -
/\/ \ \
+-[ horol ]----------------------------------------/ / \---+
| e-mail ........................... horol (at) developers.sk |
| ICQ number ....................................... 95090557 |
| IRC nick/channel ..................... horol/ #ta3, #kosice |
+-------------------------------------------------------------+
| Please do not send me any attachments in proprietary |
| formats (*.doc,*.xls, *.pps,...). Read more at |
| http://www.gnu.org/philosophy/no-word-attachments.html |
+-------------------------------------------------------------+
Message Of The Day:
Don't put too fine a point to your wit for fear it should get blunted.
-- Miguel de CervantesHello Jean!
Thank you for help. I have download lm-sensors 2.8.2; make user; make user_install, and sensors running!
But, I have little problem ;). (bottom, or mark <#####)
When I run sensors-detect, output is:
$ sensors-detect
<cut>
..
Probing for PCI bus adapters...
Use driver `i2c-viapro' for device 00:07.4: VIA Technologies VT82C686
Apollo ACPI
Use driver `rivatv' for device 01:00.0: GeForce2 MX
Probe succesfully concluded.
..
Next adapter: SMBus Via Pro adapter at 5000 (Algorithm unavailable)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x2d
Probing for `Myson MTP008'... Failed!
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `National Semiconductor LM80'... Success!
(confidence 3, driver `lm80') <#####
Probing for `National Semiconductor LM85'... Failed!
..
Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan the ISA bus? (YES/no):
Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Success!
(confidence 9, driver `via686a')
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
..---|summary|----------------------------------------------------
Now follows a summary of the probes I have just done. Just press ENTER to continue:
Driver `lm80' (should be inserted):
Detects correctly:
* Bus SMBus Via Pro adapter at 5000' (Algorithm unavailable) Busdriver i2c-viapro', I2C address 0x2d
Chip `National Semiconductor LM80' (confidence: 3)
Driver `via686a' (should be inserted):
Detects correctly:
* ISA bus, undetermined address (Busdriver `i2c-isa')
Chip `VIA Technologies VT82C686 Integrated Sensors' (confidence: 9)
---|end of summary|-------------------------------------------
..
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 i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe lm80 <#####
modprobe via686a
# sleep 2 # optional /usr/local/bin/sensors -s # recommended #----cut here---- </cut>
OK. I have all modules, but modul lm80 I have not :(.
In lm-sensors/README writes:
<cut>
FOR 2.6/2.5 KERNELS, Use only the userspace tools in this package! Build and install them with 'make user' and 'make user_install'. The kernel modules in this package will not compile for 2.6/2.5; use the drivers already in the 2.5 kernel development tree. </cut>
(I can't run 'make' and 'make install'.)
But, I have in my kernel-source-2.6.0-test11 only this:
$ ls /usr/src/linux/drivers/i2c/chips
/usr/src/linux/drivers/i2c/chips:Kconfig Makefile adm1021.c eeprom.c it87.c lm75.c lm78.c lm85.c via686a.c w83781d.c
I have not lm80.c!
???????
Is this problem?
How can I continues?
Is possible use sensors for my mainboard and chipset with linux 2.6.0-test11?
Any ideas?
thx
Signature · 16 lines
\ /
/\ o -
/\/ \ \
+-[ horol ]----------------------------------------/ / \---+
| e-mail ........................... horol (at) developers.sk |
| ICQ number ....................................... 95090557 |
| IRC nick/channel ..................... horol/ #ta3, #kosice |
+-------------------------------------------------------------+
| Please do not send me any attachments in proprietary |
| formats (*.doc,*.xls, *.pps,...). Read more at |
| http://www.gnu.org/philosophy/no-word-attachments.html |
+-------------------------------------------------------------+
Message Of The Day:
Early to bed and early to rise and you'll be groggy when everyone else
is
wide awake.Quoted 1 line
(my english is not excelent, but I hope, that's OK)
Yes it is :)
Quoted 2 lines
I am student from Slovakia. I will test
lm_sensorswith linux kernel 2.6.0-test11, but I have problem. My system is Debian. (...)
Is that a problem ? ;)
Just kidding...
Quoted 1 line
I have lm-sensors-source.deb (version 2.8.1) install.
Linux 2.6 kernels are not supported before release 2.8.2 of lm_sensors. No chance you'll get anything working without upgrading first.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 5 lines
I have not
lm80.c!
Is this problem?
How can I continues?
Is possible use sensors for my mainboard and chipset with linux 2.6.0-test11?
That driver (as well as a few others, most notably the lm87) have not been ported from our CVS (2.4-compatible) repository yet, partly because everybody lacks time, partly because code in 2.6.0-test11 is more or less frozen until 2.6.0 final is released.
Without this driver you won't be able to use sensors under 2.6.
If you want to help porting that driver, let us know and I'll tell you how to do so.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/