Skip to contentSkip to conversation

i2c for 2.6.0-test11

DISCUSSION Anton A. Korzh 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

? ???, 29.11.2003, ? 20:38, Jean Delvare ?????:

Quoted 4 lines
Quoted 1 line

sensors gives me segfault:

Should be fixed in current CVS, if you want to give it a try. Thanks for reporting.

Yes, it gives no more a segfault but i still have no sensors readings.

sensors-detect gives following positive results:

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)

sensors gives:
[root@pueblo lm_sensors2]# sensors eeprom-i2c-1-52
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs Memory type: Unavailable

eeprom-i2c-1-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs Memory type: Unavailable

What can you recommend me to do?
I have compiled i2c-dev,i2c-isa,i2c-viapro, all i2c chips(But there are no lm80). Sysfs is mounted to /sys

Thank You for any advance,

Anton

#1 lore raw

? ???, 01.12.2003, ? 09:20, Jean Delvare ?????:

Quoted 31 lines
Quoted 27 lines

sensors-detect gives following positive results:

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)

sensors gives:
[root@pueblo lm_sensors2]# sensors
eeprom-i2c-1-52
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable

eeprom-i2c-1-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable

Quoted 3 lines

What can you recommend me to do?
I have compiled i2c-dev,i2c-isa,i2c-viapro, all i2c chips(But there are no lm80). Sysfs is mounted to /sys

Quoted 5 lines

Well, the lm80 driver hasn't been ported to Linux 2.6 yet, so you'll have to wait. If you are brave, you can port it yourself. I wrote a guide on how to do this, which should be part of Linux 2.6 Documentation/i2c directory someday (but isn't yet either). I can send it to you if you want.

thanks i ll consider about doing it

Quoted 6 lines

As for the via686a, it has been reported that it has to be loaded before other i2c drivers, or it fails detecting devices. I've experienced this myself. I've not yet investigated why it behaves that way (mainly because the via686a chipset I have isn't wired for proper input measurements). Again, feel free to help if you can, or you'll have to wait until we find a solution.

Do i understand correctly that i need to compile all that i2c stuff in modules and load via686a module first - that will help?

And is that true that i need either lm80 working either via686a? I need either ISA either SMbus sensors, or there will be some difference.

Merci de votre assistance,

Anton.

#2 lore raw
In reply to Anton A. Korzh
Quoted 27 lines

sensors-detect gives following positive results:

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)

sensors gives:
[root@pueblo lm_sensors2]# sensors
eeprom-i2c-1-52
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable

eeprom-i2c-1-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable

Quoted 3 lines

What can you recommend me to do?
I have compiled i2c-dev,i2c-isa,i2c-viapro, all i2c chips(But there are no lm80). Sysfs is mounted to /sys

Well, the lm80 driver hasn't been ported to Linux 2.6 yet, so you'll have to wait. If you are brave, you can port it yourself. I wrote a guide on how to do this, which should be part of Linux 2.6 Documentation/i2c directory someday (but isn't yet either). I can send it to you if you want.

As for the via686a, it has been reported that it has to be loaded before other i2c drivers, or it fails detecting devices. I've experienced this myself. I've not yet investigated why it behaves that way (mainly because the via686a chipset I have isn't wired for proper input measurements). Again, feel free to help if you can, or you'll have to wait until we find a solution.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Anton A. Korzh
Quoted 7 lines
Quoted 5 lines

Well, the lm80 driver hasn't been ported to Linux 2.6 yet, so you'll have to wait. If you are brave, you can port it yourself. I wrote a guide on how to do this, which should be part of Linux 2.6 Documentation/i2c directory someday (but isn't yet either). I can send it to you if you want.

thanks i ll consider about doing it

You can get the documentation there:
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/linux-2.6/linux-2.6.0-test9-i2c-doc-porting-clients.diff
Additionally, you should get these two patches:
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/linux-2.6/linux-2.6.0-test9-i2c-doc-sysfs-interface.diff
http://www.ensicaen.ismra.fr/~delvare/devel/i2c/linux-2.6/linux-2.6.0-test9-i2c-doc-writing-clients.diff

These are patches for the latest 2.6.0-test kernels. Apply them and you'll have up-to-date docs to work with.

Porting drivers isn't really hard, although it helps a lot if you have already written such a driver. Feel free to ask questions here.

Quoted 9 lines
Quoted 6 lines

As for the via686a, it has been reported that it has to be loaded before other i2c drivers, or it fails detecting devices. I've experienced this myself. I've not yet investigated why it behaves that way (mainly because the via686a chipset I have isn't wired for proper input measurements). Again, feel free to help if you can, or you'll have to wait until we find a solution.

Do i understand correctly that i need to compile all that i2c stuff in modules and load via686a module first - that will help?

Yes, this is what I suggested.

Quoted 3 lines

And is that true that i need either lm80 working either via686a? I need either ISA either SMbus sensors, or there will be some difference.

You probably need only one of them, but having both drivers installed at the same time won't hurt at all. If I were you, I'd first try to have the via686a driver to work. If it doesn't provide useful values, this means that it isn't used, and you'll need the lm80 driver.

Final note, the LM80 chipset is rather hard to detect, so it is possible that your second chipset isn't a LM80 after all. If you can try Linux 2.4 + i2c patch 2.8.1 + lm_sensors CVS on the same machine, you'd at least know which driver you really need.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/