Title: lm_sensors Subject: These steps will create a lm_sensors kenrel for # racksaver AMD ############################################### # Building from scratch ############################################### # Get on server ssh tester007 su - # remove old source stuff if present. # Copy over source cp /home/jstile/kernels/2.4.20-i2c_sensors.tar.gz . cp /home/jstile/kernels/linux-2.4.20.tar.gz /usr/src/ cp /home/jstile/kernels/.config-2.4.20-noinitrd.lm_sensors /usr/src/ cp /home/jstile/kernels/ilm_sensors.bash /usr/src/ # Get into directory with the source and unpack cd /usr/src/ tar -zxvpf linux-2.4.20.tar.gz # Apply the non cvs patches to kernel cd linux-2.4.20 tar -xzvpf ../2.4.20-i2c_sensors.tar.gz # patch patch -p1 < 2.4.20-i2c-1-patch patch -p1 < 2.4.20-i2c-2-patch patch -p1 < 2.4.20-i2c-3-patch patch -p1 < 2.4.20-i2c-4-patch patch -p1 < 2.4.20-i2c-5-patch patch -p1 < 2.4.20-sensors-1-patch patch -p1 < 2.4.20-sensors-2-patch patch -p1 < 2.4.20-sensors-3-patch patch -p1 < 2.4.20-sensors-4-patch patch -p1 < 2.4.20-sensors-5-patch # Configure and build kernel cp ../.config-2.4.20-noinitrd.lm_sensors .config make oldconfig set DISPLAY=smooth:0 make xconfig #turn on the i2c lm_sensor options --> character devices ----> I2C support ----->y for I2C support ----->y for i2c device interface ----->y for I2C /proc interface (required for hardware sensors) ----->Hardware sensors mainboard support ------->y for Hardware sensors mainboard ------->m for AMD 756/766 ----->Hardware sensors chip support ------->y for Hardware sensor chip support ------->m for Winbond W83781D, W83782D, W8383S, W83627HF, Asus AS99127F # we have the W83627HF make -j4 dep ; make -j4 bzImage # Success.... # Make modules and install them in to /lib/modules/2.4.20 cd /usr/src rm -rf /usr/src/linux ln -s linux-2.4.20 linux cd linux-2.4.20/ make modules make modules_install # Copy the kernel to systemimager tftp server cp /usr/src/linux-2.4.20/arch/i386/boot/bzImage /dept/sio/linux/ilm/systemimager/tftpboot/kernel_inits/vmlinuz-2.4.20-john-i2c-proc-core-kern-new # Setup this system to boot with the kernel pushd /dept/sio/linux/ilm/systemimager/tftpboot/pxelinux.cfg/ rm -rf 0A0A0872 ln -s 2.4.20-john.image 0A0A0872 # Adding line for the new kernel vi 2.4.20-john.image LABEL linux KERNEL kernel_inits/vmlinuz-2.4.20-john-i2c-proc-core-kern APPEND console=ttyS0,9600 LABEL linux-new KERNEL kernel_inits/vmlinuz-2.4.20-john-i2c-proc-core-kern-new APPEND console=ttyS0,9600 # Add this section to /etc/modules.conf #----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---- # Now I'm rebooting tester006 #on reboot of tester006, at boot: linux-new # Login # Run the command to load the modules /usr/src/ilm_sensors.bash ############################################### # Cloning scratch build ############################################### rsync -avzp -e ssh root@tester007:/lib/modules/2.4.20 root@tester003:/lib/modules/ rsync -avzp -e ssh root@tester007:/usr/src/lm_sensors.bash root@tester003:/lib/modules/ pushd /dept/sio/linux/ilm/systemimager/tftpboot/pxelinux.cfg ln -s 2.4.20-john.image 0A0A086F init 6