Re: LM-Sensors on an ASUS P4B533
Interesting... I just battled lm-sensors last night. :)
On Fri, Apr 04, 2003 at 02:21:15PM -0500, Mike Dresser wrote:
> Two questions:
>
> One:
>
> How are you supposed to install the lm-sensors-source when you compile
> your own kernels. the resulting file from make-kpkg modules_install
> depends on kernel-image-2.4.20. I just --force-depends'd it in, I assume
> that's not the proper way.
I don't know about The Debian Way either. Since I'm still most
comfortable building my kernels from kernel.org bz2balls, I just grabbed
the i2c and lm-sensors source (from http://secure.netroedge.com/~lm78/)
and built that against my kernel.
> Two:
>
> Is this ASUS P4B533 supported by the i2c/lmsensors found in Sid?
As the README says, lm-sensors doesn't support /motherboards/, it supports
/chips/. To find out for sure you'd need to look in your motherboard
manual or google to find out what chips make up your motherboard. Then
check the supported chips page:
http://secure.netroedge.com/~lm78/supported.html
With your current setup, do any of the base modules successfully load
into your kernel?
One last thing:
This slight mod was needed to get lm-sensors to build with gcc-3.2:
$ diff -u Makefile.orig Makefile
--- Makefile.orig 2003-04-04 12:59:00.000000000 -0800
+++ Makefile 2003-04-04 13:09:59.000000000 -0800
@@ -178,7 +178,8 @@
# PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables).
# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
# LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
-ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
+#ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
+ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS)
ALL_CFLAGS := -O2
ifeq ($(DEBUG),1)
Works well now, and even pointed me to a failing videocard fan of which
I was unaware.
-troy
Reply to: