------------------------------------------------ Title: Debian with lm_sensors Subject: Compile kernel for debian with lm_sensors (without modules) Find lm_sensors that work on a module based system. For this I used Mandrake: Run sensors-detect alias char-major-89 i2c-dev options w83781d ignore=0,0x2d modprobe i2c-i801 modprobe i2c-isa # I2C chip drivers modprobe adm1021 modprobe w83781d modprobe lm85 modprobe smbus-arp modprobe w83627hf Next get the kernel and select the proper options. http://kernel.org cd /usr/src/linux-2.6.8.1 make xconfig NOTE: SOURCE http://secure.netroedge.com/~lm78/kernel26.html Recommended Kernel Configuration * Code maturity level options o [*] Prompt for development and/or incomplete code/drivers * Bus options (PCI, PCMCIA, EISA, MCA, ISA) o [*] PCI support o [*] ISA support (not needed anymore since 2.6.2-rc1) * Device Drivers o I2C Support + I2C Support + I2C device interface + I2C Algorithms # (configure all of them as modules) + I2C Hardware Bus support # (configure all of them as modules) + I2C Hardware Sensors Chip support # (configure all of them as modules) * Hardware Sensors Chip support ---> [*] Analog Devices ADM1021 and compatibles ? ? [*] National Semiconductor LM85 and compatibles ? ? [*] Winbond W83781D, W83782D, W83783S, W83627HF, Asus AS99127F ? ? [*] Winbond W83627HF, W83627THF, W83637HF, W83697HF Save Configuration to an Alternate File .config make bzImage -j3 # make moduels; # make moudles install make install mkdir /lib/modules/2.6.8.1/ mkinitrd -o /boot/initrd.img-2.6.8.1 ------------------------------------------------ j@postal:~$ sensors adm1027-i2c-0-2e Adapter: SMBus I801 adapter at 1100 ERROR: Can't get alarm mask data! V1.5: +0.000 V (min = +1.42 V, max = +1.58 V) ALARM VCore: +0.000 V (min = +1.76 V, max = +1.95 V) ALARM V3.3: +3.386 V (min = +3.13 V, max = +3.47 V) V5: +0.000 V (min = +4.74 V, max = +5.26 V) ALARM V12: +0.000 V (min = +11.38 V, max = +12.62 V) ALARM CPU_Fan: 3274 RPM (min = 4000 RPM) ALARM CPU: +28.00 C (low = +10 C, high = +50 C) Board: +26.00 C (low = +10 C, high = +35 C) Remote: -128.00 C (low = +10 C, high = +35 C) ALARM FAULT CPU_PWM: 255 Fan2_PWM: 255 Fan3_PWM: 255 vid: +1.850 V (VRM Version 9.1) max1617-i2c-0-1a Adapter: SMBus I801 adapter at 1100 Board: +26 C (low = -55 C, high = +127 C) CPU: +27 C (low = -55 C, high = +78 C) max1617-i2c-0-18 Adapter: SMBus I801 adapter at 1100 Board: +25 C (low = -55 C, high = +127 C) CPU: +27 C (low = -55 C, high = +78 C) w83627hf-i2c-0-2d Adapter: SMBus I801 adapter at 1100 VCore 1: +1.49 V (min = +1.28 V, max = +1.41 V) VCore 2: +3.39 V (min = +1.28 V, max = +1.41 V) +3.3V: +3.38 V (min = +3.14 V, max = +3.46 V) +5V: +5.08 V (min = +4.73 V, max = +5.24 V) +12V: +12.16 V (min = +10.82 V, max = +13.19 V) -12V: -11.70 V (min = -13.18 V, max = -10.88 V) -5V: -2.03 V (min = -5.25 V, max = -4.75 V) V5SB: +5.54 V (min = +4.73 V, max = +5.24 V) VBat: +0.00 V (min = +2.40 V, max = +3.60 V) fan1: 4856 RPM (min = 5720 RPM, div = 2) fan2: 4787 RPM (min = 5720 RPM, div = 2) fan3: 0 RPM (min = 1430 RPM, div = 8) temp1: +32 C (high = +65 C, hyst = +60 C) sensor = thermistor temp2: +27.0 C (high = +75 C, hyst = +70 C) sensor = thermistor temp3: +27.0 C (high = +75 C, hyst = +70 C) sensor = thermistor vid: +1.350 V alarms: Chassis intrusion detection ALARM beep_enable: Sound alarm disabled ----------------- HARD DRIVE TMP ----------------- /usr/sbin/hddtemp /dev/sda /dev/sda: IBM IC35L073UCDY10-0: 31 C =============================== building from kernel.org # Dwonload souce and unpack cd /usr/src/ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.1.tar.bz2 tar -jxf linux-2.6.19.1.tar.bz2 cp linux/.config linux-2.6.19.1/ -or- zcat /proc/config/gz > linux-2.6.19.1/.config unlink linux ln -s linux-2.6.19.1 linux cd linux make oldconfig make menuconfig # for any last minute changes/checs # Install make-kpkg for creating a debian kernel package aptitude install kernel-package # Create the package export CONCURRENCY_LEVEL=2 fakeroot make-kpkg \ --arch=amd64 \ --append_to_version "-3w9xx-tg3-sata-nv-reiserfs" \ -revision="01" \ --config menuconfig \ kernel-image \ modules-image # I read that SCSI support cannot be a module when booting from Sata # drives. Processor type and features ---> Processor family (Generic-x86-64) ---> [*] Symmetric multi-processing support Device Drivers -> SCSI device support -> <*> SCSI device support <*> SCSI disk support SCSI low-level drivers -> <*> 3ware 9xxx SATA-RAID support <*> Serial ATA (SATA) support <*> NVIDIA SATA supportort Network device support -> <*> Network device support Ethernet (1000 Mbit) ---> <*> Broadcom Tigon3 support File Systems -> <*> Ext3 journaling file system support <*> Reiserfs support # Install the package: dpkg -i ../kernel-image-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs_01_amd64.deb Selecting previously deselected package kernel-image-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs. (Reading database ... 46079 files and directories currently installed.) Unpacking kernel-image-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs (from .../kernel-image-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs_01_amd64.deb) ... Setting up kernel-image-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs (01) ... Searching for GRUB installation directory ... found: /boot/grub . Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst . Searching for splash image... none found, skipping... Found kernel: /vmlinuz Found kernel: /vmlinuz.old Found kernel: /vmlinuz-2.6.19.1-3w9xx-tg3-sata-nv-reiserfs Found kernel: /vmlinuz-2.6.15.6-3w9xx-tg3-sata-nv-reiserfs Found kernel: /vmlinuz-2.6.8-11-amd64-generic Updating /boot/grub/menu.lst ... done # Check that it is there vi /boot/grub/menu.lst title Debian GNU/Linux, kernel 2.6.19.1-3w9xx-tg3-sata-nv-reiserfs Default root (hd0,0) kernel /vmlinuz root=/dev/sda2 ro console=tty0 savedefault boot title Debian GNU/Linux, kernel 2.6.19.1-3w9xx-tg3-sata-nv-reiserfs Default (recovery mode) root (hd0,0) kernel /vmlinuz root=/dev/sda2 ro console=tty0 single savedefault boot