SMBus / I2C h/w sensors and FreeBSD 5.1
Dan Naumov
dan.naumov at ofw.fi
Sat Oct 4 08:26:37 PDT 2003
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.
More information about the freebsd-current
mailing list