Skip to contentSkip to conversation

sensors vs 2.6

DISCUSSION Gene Heskett 4 participants 8 messages Dec 9, 2003

lore
Share & tools
lore
#0 lore raw

It seems we are not going to have working hardware sesnors in time for 2.6. Its my understanding that the data locations for the i2c stuffs in the new kernel have been moved. I've got all that turned on in my kernel, 2.6.0-test11, and have dilligently searched the /proc and /sys directories, and seem to have come up blank.

Does it take an external program to trigger the storage of such data as the cpu temps etc in one of these pseudo dirs? If not, how would I go about decodeing whats there?

Signature · 7 lines
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
#1 lore raw

Hi Gene!

Quoted 2 lines · On Tue, 9 Dec 2003 02:58:01 -0500 you wrote:

kernel, 2.6.0-test11, and have dilligently searched the /proc and /sys directories, and seem to have come up blank.

I have configured "I2C support", "I2C device interface", "Intel PIIX4" and "Winbond ...". I get all sensor readings in /sys/bus/i2c/devices/*, e.g.:
,----
| # cat /sys/bus/i2c/devices/0-002d/fan_input1
| 5400
`----

Signature · 1 line
Ciao, Sebastian
#2 lore raw
Quoted 9 lines · Sebastian Kaps

Hi Gene!

Quoted 2 lines · On Tue, 9 Dec 2003 02:58:01 -0500 you wrote:

kernel, 2.6.0-test11, and have dilligently searched the /proc and /sys directories, and seem to have come up blank.

I have configured "I2C support", "I2C device interface", "Intel PIIX4" and "Winbond ...". I get all sensor readings in /sys/bus/i2c/devices/*, e.g.:

I have this:
-----------------------
[root@coyote linux-2.6]# grep I2C .config
# I2C support
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
# I2C Algorithms
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not set
# 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_I801 is not set
# CONFIG_I2C_I810 is not set
# 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_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set CONFIG_I2C_VIA=y
CONFIG_I2C_VIAPRO=y
# CONFIG_I2C_VOODOO3 is not set
# I2C Hardware Sensors Chip support CONFIG_I2C_SENSOR=y
----------------
and this:
-----------------
[root@coyote linux-2.6]# grep SENSORS .config # CONFIG_SENSORS_ADM1021 is not set CONFIG_SENSORS_EEPROM=y
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM85 is not set CONFIG_SENSORS_VIA686A=y CONFIG_SENSORS_W83781D=y
---------------------
set for a Biostar M7VIB mobo. It all works for 2.4.

No errors were noted during the build other than the advansys deprecated "check_region" calls that have been noted here previously.

But:
--------------------
[root@coyote linux-2.6]# tree /sys/bus/i2c/devices/ /sys/bus/i2c/devices/

|-- 0-0050 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0050
|-- 0-0051 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0051
|-- 0-0052 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0052
|-- 0-0053 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0053
|-- 0-0054 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0054
|-- 0-0055 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0055
|-- 0-0056 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0056
|-- 0-0057 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0057
|-- 0-0061 -> ../../../devices/pci0000:00/0000:00:09.0/i2c-0/0-0061
|-- 1-0050 -> ../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0050

`-- 1-0051 -> ../../../devices/pci0000:00/0000:00:11.0/i2c-1/1-0051

11 directories, 0 files
-----------------------
And ALL of that is related to the various eeproms in the system. Mostly on my bt979 card.

To back out and do a tree on /sys/devices gets me 171 directories and 583 files, none of which are named 'input_fan1'.

So obviously something didn't get built, and it looks like its the winbond stuff. The question is why? Is there some method that can be used to interrogate the kernel and determine if the stuff is actually in there?

Quoted 6 lines

,----

| # cat /sys/bus/i2c/devices/0-002d/fan_input1
| 5400

`----

No such subdir in the devices dir...

Signature · 7 lines
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
#3 lore raw
Quoted 4 lines · Gene Heskett

So obviously something didn't get built, and it looks like its the winbond stuff. The question is why? Is there some method that can be used to interrogate the kernel and determine if the stuff is actually in there?

Maybe related: via sensors stuff is very picky about order of module loading.
It does NOT work when i2c-dev, i2c-algo-bit and rest of sensors stuff (isa bus, via modules) are built INTO kernel.
When everything is in modules, iw works ONLY when via modules are modprobed _before_ anything using i2c.
Loading other i2c modules (bttv, lirc or sth else) before via modules makes sensors unusable - there is no /sys/[...]/via directory, or this directory is empty.

Signature · 3 lines
Tomasz Torcz                "Funeral in the morning, IDE hacking 
[email protected]    in the afternoon and evening." - Alan Cox 
|> Playing: stream1.jungletrain.net:8000 ...
#4 lore raw
Quoted 6 lines · Tomasz Torcz
Quoted 4 lines · Gene Heskett

So obviously something didn't get built, and it looks like its the winbond stuff. The question is why? Is there some method that can be used to interrogate the kernel and determine if the stuff is actually in there?

Quoted 9 lines

Maybe related: via sensors stuff is very picky about order of module loading.
It does NOT work when i2c-dev, i2c-algo-bit and rest of sensors stuff (isa bus, via modules) are built INTO kernel.
When everything is in modules, iw works ONLY when via modules are modprobed _before_ anything using i2c.
Loading other i2c modules (bttv, lirc or sth else) before via modules makes sensors unusable - there is no /sys/[...]/via directory, or this directory is empty.

Humm, I've got a bt878 tv card thats rather noisey when eeprom inits.

This sounds like a change in the order the kernel inits this stuff might be in order but I've NDI howto go about that... According to dmesg, all that bttv stuff is found about 1000 lines before the first mention of i2c... I assume that means I'd have to modularize the bttv stuffs too so the init order can be conmtrolled?

If I make all that into modules, do you have a working modules.conf I can obtain so that this stuff is brought in in the proper order?

I tried it without the VIA686, didn't see anything missing that wasn't before, then found I had both VIA and VIAPRO set=y. I don't have a VIA 586 chipset, so I turned that off and its remaking now for effects. Somehow I think its gonna be a wasted reboot from what you are telling me.

Thanks a bunch for any further assistance you can render.

Signature · 7 lines
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
#5 lore raw
In reply to Gene Heskett

tir, 09.12.2003 kl. 13.41 skrev Gene Heskett:

Quoted 21 lines

I have this:
-----------------------
[root@coyote linux-2.6]# grep I2C .config
# I2C support
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
# I2C Algorithms
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not set
# 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_I801 is not set
# CONFIG_I2C_I810 is not set
# 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

Quoted 8 lines

# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
CONFIG_I2C_VIA=y
CONFIG_I2C_VIAPRO=y
# CONFIG_I2C_VOODOO3 is not set
# I2C Hardware Sensors Chip support
CONFIG_I2C_SENSOR=y

You seem to be missing support for a sensor chip.

Best regards,
Stian

#6 lore raw
Quoted 31 lines · Stian Jordet

tir, 09.12.2003 kl. 13.41 skrev Gene Heskett:

Quoted 21 lines

I have this:
-----------------------
[root@coyote linux-2.6]# grep I2C .config
# I2C support
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
# I2C Algorithms
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_ALGOPCF is not set
# 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_I801 is not set
# CONFIG_I2C_I810 is not set
# 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

Quoted 8 lines

# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
CONFIG_I2C_VIA=y
CONFIG_I2C_VIAPRO=y
# CONFIG_I2C_VOODOO3 is not set
# I2C Hardware Sensors Chip support
CONFIG_I2C_SENSOR=y

Quoted 1 line

You seem to be missing support for a sensor chip.

That wasn't covered by this: ??

[root@coyote linux-2.6]# grep SENSORS .config
# CONFIG_SENSORS_ADM1021 is not set
CONFIG_SENSORS_EEPROM=y
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM85 is not set
CONFIG_SENSORS_VIA686A=y
CONFIG_SENSORS_W83781D=y

I just rebuilt, but haven't rebooted to test it yet, a kernel without the VIA686 stuff just in case that was getting in the way. I should reboot and see what I've got now.

Quoted 3 lines

Best regards,
Stian

Signature · 7 lines
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
#7 lore raw

tir, 09.12.2003 kl. 16.21 skrev Gene Heskett:

Quoted 9 lines

[root@coyote linux-2.6]# grep SENSORS .config
# CONFIG_SENSORS_ADM1021 is not set
CONFIG_SENSORS_EEPROM=y
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM85 is not set
CONFIG_SENSORS_VIA686A=y
CONFIG_SENSORS_W83781D=y

Sorry, I'm stupid. I didn't notice you just grepped after i2c, I just thought you had copied the entire i2c section from .config. Sorry. That should cover it.

Best regards,
Stian