All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] lm87 on kernel 2.6.9: kinda-sorta working. What else
@ 2006-03-21 17:49 Steve Snyder
  2006-03-21 17:58 ` [lm-sensors] lm87 on kernel 2.6.9: kinda-sorta working. What Steve Snyder
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steve Snyder @ 2006-03-21 17:49 UTC (permalink / raw)
  To: lm-sensors

I am attempting to get LM87 support on a RHEL4 kernel.  This kernel, 
2.6.9-34.EL, does not include the lm87 driver, so I'm trying to add it 
myself.

My desire is to get health information from my Supermicro P3TDLE 
M/B (http://www.supermicro.com/products/motherboard/P3/LE/P3TDLE.cfm).

I got the lm87.c from the standard 2.6.10 kernel and simply dropped it 
into Red Hat's source tree.  After adding the required normal_i2c_range[] 
and normal_isa_range{} references (see below) it built without complaint.  
No errors or warnings are seen in the system log at load time, either.  

At runtime, though, I get this:

# sensors
lm87-i2c-0-2e
Adapter: SMBus PIIX4 adapter at 0580
ERROR: Can't get IN1 data!
ERROR: Can't get IN3 data!
ERROR: Can't get IN4 data!
fan1:     5153 RPM  (min = 2848 RPM, div = 2)
fan2:     5153 RPM  (min = 2848 RPM, div = 2)
temp1:       +33?C  (low  =    +0?C, high =   +50?C)
ERROR: Can't get TEMP2 data!

Yes, this is a dual-CPU board, and the single temperature shown is 
reasonably close to the values reported by the BIOS in the BIOS 
setup menu.

This are the 2 lines I added to the 2.6.10 version of lm87.c to pacify 
the build complaints:

  static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
  static unsigned int normal_isa_range[] = { I2C_CLIENT_ISA_END };

So now the full set of address declarations look like this:

  static unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; 
  static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
  static unsigned int normal_isa[] = { I2C_CLIENT_ISA_END };
  static unsigned int normal_isa_range[] = { I2C_CLIENT_ISA_END };

Any advice out there on what else is needed to get LM87 support with this
2.6.9 (+ backported tweaks and fixes) kernel?

Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-21 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 17:49 [lm-sensors] lm87 on kernel 2.6.9: kinda-sorta working. What else Steve Snyder
2006-03-21 17:58 ` [lm-sensors] lm87 on kernel 2.6.9: kinda-sorta working. What Steve Snyder
2006-03-21 19:10 ` Jean Delvare
2006-03-21 21:25 ` Steve Snyder
2006-03-21 21:46 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.