Не работает lm_sensors на SLES 11

openSUSE, SUSE Linux Enterprise

Модератор: Модераторы разделов

FastCat
Сообщения: 49

Не работает lm_sensors на SLES 11

Сообщение FastCat »

Система SLES 11 (32bit.)
Ставлю с диска lm_sensors
Делаю:
1.

Код: Выделить всё

homeserver:~ # sensors-detect
# sensors-detect revision 5337 (2008-09-19 17:05:28 +0200)

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 supported PCI bus adapters found.

If you have undetectable or unsupported I2C/SMBus 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: intel drm CRTDDC_A (i2c-0)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x49
Probing for `National Semiconductor LM75'...                No
Probing for `Dallas Semiconductor DS75'...                  No
Probing for `National Semiconductor LM77'...                No
Probing for `Dallas Semiconductor DS1621/DS1631'...         No
Probing for `National Semiconductor LM92'...                No
Probing for `National Semiconductor LM76'...                No
Probing for `Maxim MAX6633/MAX6634/MAX6635'...              No
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)

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 `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 `National Semiconductor'...                   No
Trying family `SMSC'...                                     Yes
Found `SMSC LPC47B397-NC Super IO'                          Success!
    (address 0x480, driver `smsc47b397')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      No

Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no): y
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD K10 thermal sensors...                                  No
Intel Core family thermal sensor...                         No
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal and voltage sensors...                       No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `smsc47b397' (should be inserted):
  Detects correctly:
  * ISA bus, address 0x480
    Chip `SMSC LPC47B397-NC Super IO' (confidence: 9)

WARNING! The required module smsc47b397 is not currently installed
on your system. You may need to install package kernel-pae-extra
for lm-sensors to work properly.

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): y

2.

Код: Выделить всё

homeserver:~ # sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.

Что нужно сделать, что бы все заработало ? (где нужный модуль взять)

p.s.

Код: Выделить всё

homeserver:~ # cat /etc/sysconfig/lm_sensors
## Path: Hardware/Sensors
## Description:         Defines the modules to used
## Type:                string
## ServiceRestart:      lm_sensors
## Default:             ""
#
#    /etc/sysconfig/lm_sensors - Defines modules loaded by
#                                /etc/init.d/lm_sensors
#
# The format of this file is a shell script that simply defines the modules
# in order as normal variables with the special names:
#    MODULE_0, MODULE_1, MODULE_2, etc.
#
# List the modules that are to be loaded for your system
#
# Generated by sensors-detect on Mon Nov 21 23:58:50 2011
MODULE_0=smsc47b397

Код: Выделить всё

homeserver:~ # modprobe -r smsc47b397
FATAL: Module smsc47b397 not found.


По поводу надписи install package kernel-pae-extra
Данный файл я нашел _только_ в версии x64. А вот для 32 bit, файла с таким названием и версией ядра 2.6.32.12-0.7.1 нет нигде.
А в директории /lib/modules/2.6.32.12-0.7.1-default/kernel/drivers/hwmon файлов с модулями совсем мало.
Где взять недостающие и как их в систему загрузить ?
Спасибо сказали:
Аватара пользователя
k0da
Бывший модератор
Сообщения: 6043
Статус: SuSE QA Engineer
ОС: Factory

Re: Не работает lm_sensors на SLES 11

Сообщение k0da »

Какое железо?
Fury in my eyes, sword on my side
Afro on my head, I'm a black Samurai
Number One, I bring my whole nation alive
Escape death, to become immortalized
Спасибо сказали:
FastCat
Сообщения: 49

Re: Не работает lm_sensors на SLES 11

Сообщение FastCat »

HP COMPAQ DC7100 SFF

До этого стоял SLES 9 (up to SLES 10), проблем с lm_sensors не было. Все с первого раза определилось и заработало.
Хотя, тут определятся, но не работает.
Спасибо сказали:
FastCat
Сообщения: 49

Re: Не работает lm_sensors на SLES 11

Сообщение FastCat »

На данный момент имеем микросхему мониторинга `SMSC LPC47B397-NC Super IO' и ее драйвер `smsc47b397'

Тут файла драйвера нет...

Код: Выделить всё

linux:/lib/modules/2.6.32.12-0.7-pae/kernel/drivers/hwmon # ls
hp_accel.ko   hwmon.ko    ibmaem.ko  lis3lv02d.ko
hwmon-vid.ko  i5k_amb.ko  ibmpex.ko  pcf8591.ko
Но тут есть его исходник...

Код: Выделить всё

linux:/lib/modules/2.6.32.12-0.7-pae/source/drivers/hwmon # ls
Kconfig       ams             hwmon.c          lm87.c        smsc47m192.c
Makefile      applesmc.c      i5k_amb.c        lm90.c        thmc50.c
abituguru.c   asb100.c        ibmaem.c         lm92.c        tmp401.c
abituguru3.c  asus_atk0110.c  ibmpex.c         lm93.c        tmp421.c
ad7414.c      atxp1.c         it87.c           lm95241.c     ultra45_env.c
ad7418.c      coretemp.c      k8temp.c         ltc4215.c     via686a.c
adcxx.c       dme1737.c       lis3lv02d.c      ltc4245.c     vt1211.c
adm1021.c     ds1621.c        lis3lv02d.h      max1111.c     vt8231.c
adm1025.c     f71805f.c       lis3lv02d_spi.c  max1619.c     w83627ehf.c
adm1026.c     f71882fg.c      lm63.c           max6650.c     w83627hf.c
adm1029.c     f75375s.c       lm70.c           pc87360.c     w83781d.c
adm1031.c     fschmd.c        lm75.c           pc87427.c     w83791d.c
adm9240.c     g760a.c         lm75.h           pcf8591.c     w83792d.c
ads7828.c     gl518sm.c       lm77.c           s3c-hwmon.c   w83793.c
adt7462.c     gl520sm.c       lm78.c           sht15.c       w83l785ts.c
adt7470.c     hdaps.c         lm80.c           sis5595.c     w83l786ng.c
adt7473.c     hp_accel.c      lm83.c           smsc47b397.c  wm831x-hwmon.c
adt7475.c     hwmon-vid.c     lm85.c           smsc47m1.c    wm8350-hwmon.c


Как из файла *.c сделать файл *.ko ?
И сделать так, что бы новый файл *.ko видел kernel ?
Спасибо сказали:
Аватара пользователя
Stauffenberg
Сообщения: 2041
Статус: ☮ PEACE ☮
ОС: открытая и свободная

Re: Не работает lm_sensors на SLES 11

Сообщение Stauffenberg »

FastCat писал(а):
25.11.2011 00:14
Как из файла *.c сделать файл *.ko ?

$ cat Makefile

Код: Выделить всё

obj-m := smsc47b397.o
KDIR  := /lib/modules/$(shell uname -r)/build
PWD   := $(shell pwd)
default:
    $(MAKE) -C $(KDIR) M=$(PWD) modules


$ make

FastCat писал(а):
25.11.2011 00:14
И сделать так, что бы новый файл *.ko видел kernel ?

# insmod ./smsc47b397.ko
# dmesg | tail
Labor omnia vincit

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Спасибо сказали:
FastCat
Сообщения: 49

Re: Не работает lm_sensors на SLES 11

Сообщение FastCat »

Я сделал по другому. Просто поставил kernel 2.6.32.48-12-default. В котором есть все модули и драйверы (и ничего компилировать не нужно).
Спасибо сказали: