SMBus / I2C h/w sensors and FreeBSD 5.1

From: Dan Naumov (dan.naumov_at_ofw.fi)
Date: 10/04/03

  • Next message: M. Warner Losh: "Re: Support for 3com 3CRWE154G72 wireless 11g card"
    To: freebsd-current@freebsd.org
    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.

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: M. Warner Losh: "Re: Support for 3com 3CRWE154G72 wireless 11g card"

    Relevant Pages

    • Re: Review of FreeBSD 5.4
      ... > kernel mailing list archives. ... > Theo Raadt's statements on Linux. ... Is it guarantied you can compile anything from FreeBSD-Current? ... FreeBSD 4.11 isn't at all compilable using GCC 4.0! ...
      (comp.unix.bsd.freebsd.misc)
    • Reply to Mike Hunter & James Pool
      ... I just want to know how to compile ... > kernel with specific hardware driver. ... > company and I installed freebsd. ...
      (comp.unix.bsd.freebsd.misc)
    • Compiling kernel?
      ... I am new to FreeBSD and UNIX. ... The kernel ... wireless NICs because I don't have any wireless. ... to get the kernel to compile? ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Compile Kernel with 2 CPUS
      ... > OK I have figured out hoe to compile the kernel to know there are 2 ... freebsd had problems with my RAID-Card so i just ... gave it another irq and voila.. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Distributions
      ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
      (Debian-User)