From owner-freebsd-current@FreeBSD.ORG Sat Oct 4 08:26:37 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1273B16A4B3 for ; Sat, 4 Oct 2003 08:26:37 -0700 (PDT) Received: from MAILSERVER.ofw.fi (ns.ofw.fi [194.111.144.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFCAF43FFD for ; Sat, 4 Oct 2003 08:26:35 -0700 (PDT) (envelope-from dan.naumov@ofw.fi) Received: from [172.16.161.81] by MAILSERVER.ofw.fi (NTMail 7.00.0022/NT1439.00.90501b21) with ESMTP id qhijmaaa for freebsd-current@freebsd.org; Sat, 4 Oct 2003 18:25:02 +0300 From: Dan Naumov To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Message-Id: <1065281296.966.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 04 Oct 2003 18:28:16 +0300 Content-Transfer-Encoding: 8bit Subject: SMBus / I2C h/w sensors and FreeBSD 5.1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 15:26:37 -0000 Hello (World). I am trying to get my h/w sensors working on my FreeBSD 5.1-RELEASE-p10 system and I am having some trouble. I recall being able to use them in FreeBSD 4.7 on the same box, but things seem to have changed quite a bit. I am using sysutils/consolehm in this case. The manpage for sysutils/consolehm says I need the following in my kernel config: controller smbus0 controller iicbus0 controller iicbb0 controller intpm0 device smb0 at smbus? With those options, a 5.1 kernel does not compile, so after looking through LINT I came up with these options (the kernel builds with them): device smbus device iicbus device iicbb device intpm device smb Unfortunately, running chm results in THIS: Motherboard Temperature: 255 ° C CPU_0 Temperature: 0 ° C CPU_1 Temperature: 0 ° C VCore: 3.98438 V Vit: 3.98438 V Vio: 3.98438 V +5V: 6.65391 V +12V: 15.9375 V -12V: -15.9375 V -5V: -6.65391 V Fan 1: Not Available Fan 2: Not Available Fan 3: Not Available So I figure I should try "chm -S" to force it to use SMBus (it uses a different method by default), but with -S I get the following error message: "Not compiled for use with SMBUS, reverting to ISA Method." Investingating further, I see that I have no "/dev/smb" on my system even though I have "device smb" in my kernel config. I've also noticed a line saying "pci0: at device 7.4 (no driver attached)" in my dmesg. So what's wrong ? Isn't devfs supposed to create /dev/smb by itself ? Does the error of "chm -S" mean that my kernel is not compiled with smbus support (would be weird) or that sysutils/consolehm is compiled with smbus support disabled (I don't see any appropriate make options in the port Makefile) ? Thank you for your time. Sincerely, Dan Naumov P.S: if the full dmesg output is needed, I can provide it as well.