From: swsnyder@insightbb.com (Steve Snyder)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] lm87 on kernel 2.6.9: kinda-sorta working. What else
Date: Tue, 21 Mar 2006 17:49:42 +0000 [thread overview]
Message-ID: <200603211249.43224.swsnyder@insightbb.com> (raw)
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.
next reply other threads:[~2006-03-21 17:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-21 17:49 Steve Snyder [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603211249.43224.swsnyder@insightbb.com \
--to=swsnyder@insightbb.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.