Skip to contentSkip to conversation

lm_sensors device request

DISCUSSION Jack Yindo 2 participants 6 messages May 19, 2005

lore
Share & tools
lore

Jack Yindo

author
#0 lore raw

I was wondering if you guys could add support for the Texas Instruments tmp100, since I have no progamming skills in c :)
The chip doesn't have an id, here's a dump SMBus Register :$48

Quoted 3 lines

$00: $12 $01: $80 $02: $4B $03: $50 $04:
$00 $05: $00 $06: $00
$07: $00

the temp is at the first value 12, in hex, so in dec 18 C. I looked at the code for the lm75 and really had no idea what I was looking at, it shouldn't be to hard to add though, I think.

__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

#1 lore raw
Quoted 5 lines

I have kernel 2.6.5 & lm_sensors 2.8.6, I compiled the kernel w/ modules for the i2c and did a make user & make user_install, I did have an old version of lm_sensors on but I removed it before I installed. How could I check the libraries?

ls -l /usr/lib/libsensor*
ls -l /usr/local/lib/libsensor*

Make sure that you have a single regular file (and some symbolic links pointing to it).

That said, I think I remember that there is a bug in sensors 2.8.6 (library) for a few chips, including lm75. This is probably what you are hitting now. I suggest that you give a try to lm_sensors CVS. Do not forget to run "ldconfig" after installing it, so that the new library is taken into account. Hopefully it'll solve you problem.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Jack Yindo
Quoted 5 lines

I was wondering if you guys could add support for the Texas Instruments tmp100, since I have no progamming skills in c :)
The chip doesn't have an id, here's a dump SMBus Register :$48

Quoted 7 lines
Quoted 3 lines

$00: $12 $01: $80 $02: $4B $03: $50 $04:
$00 $05: $00 $06: $00
$07: $00

the temp is at the first value 12, in hex, so in dec 18 C. I looked at the code for the lm75 and really had no idea what I was looking at, it shouldn't be to hard to add though, I think.

This chip is actually an enhanced LM75 chip, fully compatible, according to the datasheet. Just force the lm75 to load using the force parameter (modprobe lm75 force=X,0xYY where X is the bus number and 0xYY is the chip's address on that bus.

I'm not sure we'll bother implementing a separate driver. Which system have found that device in?

If you want us to add support to sensors-detect for this chip, please provide the full output of i2cdump for your chip.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
author
#3 lore raw
In reply to Jack Yindo

Hello, I tried what you suggested but sensors returns
error: can't get temperature data!
Below and attached is a full dump, here is what I did sensors-detect
modprobe lm75 force=0,0x48
I don't have any modules looked up at boot time, did I do anything wrong, btw I loaded the eeprom driver and it read my ram chips fine.

trainmaster:~# i2cdump 0 0x48 
No size specified (using byte-data access)
  WARNING! This program can confuse your I2C bus,
cause data loss and worse!
  I will probe file /dev/i2c-0, address 0x48, mode
byte
  You have five seconds to reconsider and press
CTRL-C!

0 1 2 3 4 5 6 7 8 9 a b c d e f
0123456789abcdef
00: 13 80 4b 50 XX XX XX XX XX XX XX XX XX XX XX XX ??KPXXXXXXXXXXXX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX

Quoted 27 lines · --- Jean Delvare
Quoted 1 line

I was wondering if you guys could add support for

the

Quoted 1 line

Texas Instruments tmp100, since I have no

progamming

Quoted 4 lines

skills in c :)
The chip doesn't have an id, here's a dump
SMBus Register :$48

Quoted 1 line

$00: $12 $01: $80 $02: $4B $03: $50

$04:

Quoted 3 lines
Quoted 2 lines

$00 $05: $00 $06: $00
$07: $00

the temp is at the first value 12, in hex, so in

dec

Quoted 1 line

18 C. I looked at the code for the lm75 and

really

Quoted 1 line

had no idea what I was looking at, it shouldn't be

to

Quoted 1 line

hard to add though, I think.

This chip is actually an enhanced LM75 chip, fully compatible, according
to the datasheet. Just force the lm75 to load using the force parameter
(modprobe lm75 force=X,0xYY where X is the bus number and 0xYY is the
chip's address on that bus.

Quoted 11 lines

I'm not sure we'll bother implementing a separate
driver. Which system
have found that device in?

If you want us to add support to sensors-detect for this chip, please
provide the full output of i2cdump for your chip.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/

__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
-------------- next part --------------

trainmaster:~# i2cdump 0 0x48
No size specified (using byte-data access)
  WARNING! This program can confuse your I2C bus, cause data loss and worse!
  I will probe file /dev/i2c-0, address 0x48, mode byte
  You have five seconds to reconsider and press CTRL-C!
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 13 80 4b 50 XX XX XX XX XX XX XX XX XX XX XX XX    ??KPXXXXXXXXXXXX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
author
#4 lore raw
In reply to Jack Yindo

I have kernel 2.6.5 & lm_sensors 2.8.6, I compiled the kernel w/ modules for the i2c and did a make user & make user_install, I did have an old version of lm_sensors on but I removed it before I installed. How could I check the libraries?

Quoted 13 lines · --- Jean Delvare
Quoted 1 line

Hello, I tried what you suggested but sensors

returns

Quoted 1 line

error: can't get temperature data!

This could be a different problem. Maybe you just have a libsensors
version mismatch or something similar. Which version of lm_sensors and
linux kernel are you using?

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/

__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

#5 lore raw
In reply to Jack Yindo
Quoted 2 lines

Hello, I tried what you suggested but sensors returns
error: can't get temperature data!

This could be a different problem. Maybe you just have a libsensors version mismatch or something similar. Which version of lm_sensors and linux kernel are you using?

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/