Terastation Sensors

Aus MvOWiki
Wechseln zu: Navigation, Suche

Installing lm-sensors on Terastation[Bearbeiten]

 ts1:~# invoke-rc.d avr_evtd stop
 Stop services: avr_evtd
 ts1:~# apt-get install lm-sensors

lm-sensors on Debian Etch and Kernel 2.6.22+[Bearbeiten]

The Version 2.10.1 delivered together with Debian Etch does not run properly under Kernel 2.6.22 due to changes in the /sys file system.

Here are backports of the needed Debian packages of lm-sensors 2.10.4 for Debian Etch. I simply compiled the source package from the Debian testing distribution without modifications under Etch.

You could download these packages and install them using dpkg -i

Configure lm-sensors on TeraStation[Bearbeiten]

It is important to tell sensors-detect not to probe 0x32. Otherwise the program will fail. On adddress 0x32 is the RTC located which will not respond properly... All other questions could simply answered usings defaults.

 ts1:~# sensors-detect
 # sensors-detect revision 4171 (2006-09-24 03:37:01 -0700)
 This program will help you determine which kernel modules you need
 to load to use lm_sensors most effectively. It is generally safe
 and recommended to accept the default answers to all questions,
 unless you know what you're doing.
 We can start with probing for (PCI) I2C or SMBus adapters.
 Do you want to probe now? (YES/no): y
 Probing for PCI bus adapters...
 Sorry, no known PCI bus adapters found.
 We will now try to load each adapter module in turn.
 If you have undetectable or unsupported adapters, you can have them
 scanned by manually loading the modules before running this script.
 We are now going to do the I2C/SMBus adapter probings. Some chips may
 be double detected; we choose the one with the highest confidence
 value in that case.
 If you found that the adapter hung after probing a certain address,
 you can specify that address to remain unprobed.
 Next adapter: MPC adapter
 Do you want to scan it? (YES/no/selectively): s
 Please enter one or more addresses not to scan. Separate them with comma's.
 You can specify a range by using dashes. Addresses may be decimal (like 54)
 or hexadecimal (like 0x33).
 Addresses: 0x32
 Client found at address 0x2c
 Handled by driver `lm85' (already loaded), chip type `emc6d102'
 Some chips are also accessible through the ISA I/O ports. We have to
 write to arbitrary I/O ports to probe them. This is usually safe though.
 Yes, you do have ISA I/O ports even if you do not have any ISA slots!
 Do you want to scan the ISA I/O ports? (YES/no): y
 Probing for `National Semiconductor LM78' at 0x290...       No
 Probing for `National Semiconductor LM78-J' at 0x290...     No
 Probing for `National Semiconductor LM79' at 0x290...       No
 Probing for `Winbond W83781D' at 0x290...                   No
 Probing for `Winbond W83782D' at 0x290...                   No
 Probing for `Winbond W83627HF' at 0x290...                  No
 Probing for `Silicon Integrated Systems SIS5595'...         No
 Probing for `VIA VT82C686 Integrated Sensors'...            No
 Probing for `VIA VT8231 Integrated Sensors'...              No
 Probing for `AMD K8 thermal sensors'...                     No
 Probing for `IPMI BMC KCS' at 0xca0...                      No
 Probing for `IPMI BMC SMIC' at 0xca8...                     No
 Some Super I/O chips may also contain sensors. We have to write to
 standard I/O ports to probe them. This is usually safe.
 Do you want to scan for Super I/O sensors? (YES/no): y
 Probing for Super-I/O at 0x2e/0x2f
 Trying family `ITE'...                                      No
 Trying family `National Semiconductor'...                   No
 Trying family `SMSC'...                                     No
 Trying family `VIA/Winbond/Fintek'...                       No
 Probing for Super-I/O at 0x4e/0x4f
 Trying family `ITE'...                                      No
 Trying family `National Semiconductor'...                   No
 Trying family `SMSC'...                                     No
 Trying family `VIA/Winbond/Fintek'...                       No
 Now follows a summary of the probes I have just done.
 Just press ENTER to continue:
 Driver `lm85' (should be inserted):
   Detects correctly:
   * Bus `MPC adapter'
     Busdriver `UNKNOWN', I2C address 0x2c
     Chip `emc6d102' (confidence: 6)
 I will now generate the commands needed to load the required modules.
 Just press ENTER to continue:
 To make the sensors modules behave correctly, add these lines to
 #----cut here----
 # I2C adapter drivers
 # modprobe unknown adapter MPC adapter
 # Chip drivers
 # Warning: the required module lm85 is not currently installed
 # on your system. For status of 2.6 kernel ports check
 # http://www.lm-sensors.org/wiki/Devices. If driver is built
 # into the kernel, or unavailable, comment out the following line.
 #----cut here----
 Do you want to add these lines to /etc/modules automatically? (yes/NO) n

Configure /etc/sensors.conf[Bearbeiten]

The following section could be appended to /etc/sensors.conf. Or you could replace the content of this file with the following lines. It is adapted from the original lem85 section of that file.

 chip "emc6d102-*"
 # Voltage inputs
 # Depending on the hardware setup, the ADT7463 may not have in4.
    label in0   "V2.5"
    label in1   "VCore"
    label in2   "V3.3"
    label in3   "V5"
    label in4   "V12"
 # Temperature inputs
    ignore temp1
    label temp2  "Board Temp"
    ignore temp3
 # Fan inputs
    label fan1   "Chassis_Fan"
 # PWM Outputs
    label pwm1   "CPU_PWM"
    ignore pwm2
    ignore pwm3
 # Adjust fans speeds for actual pulses per rev
 #  compute fan1  @ * 2,  @ / 2    # 1 pulse per rev
 # Ignore fans you (or your motherboard) don't have
    ignore fan2
    ignore fan3
    ignore fan4
 # Set VRM version
 # adjust this if your vid is wrong; see doc/vid
 #   set vrm  9.1   # Pentium 4
 # Set voltage limits
    set in0_min  2.5 * 0.95
    set in0_max  2.5 * 1.05
    set in1_min  1.8 * 0.95
    set in1_max  1.8 * 1.05
    set in2_min  3.3 * 0.95
    set in2_max  3.3 * 1.05
    set in3_min  5.0 * 0.95
    set in3_max  5.0 * 1.05
    set in4_min   12 * 0.95
    set in4_max   12 * 1.05
 # Set Fan limits
    set fan1_min 200
 # Set Temp Limits
    set temp2_min 30
    set temp2_max 33
 # Those /sys files have been added in 2.6.19+ kernels and are
 # disabled by default. Comment those lines if you have such a kernel.
    ignore in5
    ignore in6
    ignore in7
    ignore fan1_tach_mode
    ignore zone1_limit
    ignore zone1_hyst
    ignore zone1_range
    ignore zone1_critical
    ignore zone1_smooth
    ignore zone2_limit
    ignore zone2_hyst
    ignore zone2_range
    ignore zone2_critical
    ignore zone2_smooth
    ignore zone3_limit
    ignore zone3_hyst
    ignore zone3_range
    ignore zone3_critical
    ignore zone3_smooth
    ignore pwm1_spinup
    ignore pwm1_min
    ignore pwm1_freq
    ignore pwm1_min_ctl
    ignore pwm1_invert
    ignore pwm1_zone
    ignore pwm1_spinup_ctl
    ignore pwm2_spinup
    ignore pwm2_min
    ignore pwm2_freq
    ignore pwm2_min_ctl
    ignore pwm2_invert
    ignore pwm2_zone
    ignore pwm2_spinup_ctl
    ignore pwm3_spinup
    ignore pwm3_min
    ignore pwm3_freq
    ignore pwm3_min_ctl
    ignore pwm3_invert
    ignore pwm3_zone
    ignore pwm3_spinup_ctl


The result should look as following:

 ts1:~# sensors -s
 ts1:~# sensors
 Adapter: MPC adapter
 V2.5:      +2.483 V  (min =  +2.37 V, max =  +2.63 V)
 VCore:     +1.791 V  (min =  +1.71 V, max =  +1.89 V)
 V3.3:      +3.300 V  (min =  +3.13 V, max =  +3.47 V)
 V5:        +5.078 V  (min =  +4.74 V, max =  +5.26 V)
 V12:      +12.027 V  (min = +11.38 V, max = +12.62 V)
             537 RPM  (min =  200 RPM)
 Board Temp:
           +34.88 C  (low  =   +30 C, high =   +33 C)
 CPU_PWM:    39
 vid:      +0.000 V  (VRM Version 0.0)

These commands are normally run from the Debian init.d script for the lm-sensors package.