SMBus / I2C h/w sensors and FreeBSD 5.1

From: Dan Naumov <dan.naumov_at_ofw.fi>
Date: Sat, 04 Oct 2003 18:28:16 +0300
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: <serial bus, SMBus> 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.
Received on Sat Oct 04 2003 - 06:26:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC