On Saturday 17 June 2006 19:52, Troy Engel wrote: > WipeOut wrote: [snip] > Example: new kernel version 2.6.9-34ELsmp > > 1) backup RPM module: > cd /usr/src/ > mkdir 2.6.9-34ELsmp > cp -a /lib/modules/2.6.9-34ELsmp/kernel/drivers/scsi/3w-9xxx.ko > 2.6.9-34ELsmp/ > > 2) change dev link so new compile uses the new kernel, while still > running the old kernel (see 3ware Makefile): > cd /usr/src/ > rm -f linux > ln -s /lib/modules/2.6.9-34ELsmp/source linux Very nice writeup :-) This step, however, is not needed and can cause problems by pointing to the wrong version next time you upgrade. The "new" place to look (instead of /usr/src/linux) is /lib/modules/$(uname -r)/build. This works with most things I've tried lately (like 3ware, xfs, infiniband stacks, etc..) /Peter > 3) compile new module > cd /usr/src/3ware/<version> (i.e. /2.26.04.007/) > make clean > make > chmod 0755 3w-9xxx.ko > > 4) copy new module over stock RPM one and depmod > cp -a 3w-9xxx.ko > /lib/modules/2.6.9-34ELsmp/kernel/drivers/scsi/3w-9xxx.ko > depmod -a 2.6.9-34ELsmp > > 5) backup original initrd, make new one with new module > cd /boot/ > cp -a initrd-2.6.9-34ELsmp.img initrd-2.6.9-34ELsmp.img.orig > mkinitrd initrd-2.6.9-34ELsmp.img.new 2.6.9-34ELsmp > (ls -l to see that new initrd is slightly larger now, safety check) > mv initrd-2.6.9-34ELsmp.img.new initrd-2.6.9-34ELsmp.img > > 6) reboot -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20060619/887d1732/attachment-0005.sig>