EXTRAVERSION = -20010518-1630smpIf I were building the same kernel as non-smp, I would create the extraversion line in the Makefile as follows:
EXTRAVERSION = -20010518-1630
cp arch/i386/bzImage /boot/vmlinuz-2.4.2-20010518-1630smp |
ln -s /boot/vmlinuz-2.4.2-20010518-1630smp /boot/vmlinuz |
cp System.map /boot/System.map-2.4.2-20010518-1630smp |
ln -s /boot/System.map-2.4.2-20010518-1630smp /boot/System.map |
alias scsi_hostadapter cpqarray alias scsi_hostadapter1 ncr53c8xx alias scsi_hostadapter2 ncr53c8xxNote: If you have multiple controllers, then the boot one should be assigned to "scsi_hostadapter" and the other controllers should each increment the count "scsi_hostadapter1" "scsi_hostadapter2" "...".
mkinitrd -v /boot/initrd-2.4.2-20010518-1630smp.img 2.4.2-20010518-1630smp |
ln -s /boot/initrd-2.4.2-20010518-1630smp.img /boot/initrd.img |
boot=/dev/sda1 map=/boot/map install=/boot/boot.b prompt timeout=50 linear default=linux message=/boot/message image=/boot/vmlinuz-2.2.18-1.3smp label=linux-221813smp initrd=/boot/initrd-2.2.14-5.0smp.img read-only root=/dev/sda6 append="hda=ide-scsi" image=/boot/vmlinuz-2.2.19-200104091621 label=linux-2219 read-only root=/dev/sda6 append="hda=ide-scsi" other=/dev/sda3 label=cpqconfig image=/boot/vmlinuz-2.4.2-2smp label=linux initrd=/boot/initrd-2.4.2-2smp.img read-only root=/dev/sda6 append="hda=ide-scsi" image=/boot/vmlinuz-2.4.2-2 label=linux-up initrd=/boot/initrd-2.4.2-2.img read-only root=/dev/sda6 append="hda=ide-scsi"For the above, I would rename the section with label=linux to label=linux-old. Then I would more than likely add a new section as follows:
image=/boot/vmlinuz label=linux initrd=/boot/initrd.img read-only root=/dev/sda6 append="hda=ide-scsi"And we could also add a section like this:
image=/boot/vmlinuz-2.4.2-20010518-1630smp label=linux-2.4.2-20010518-1630smp initrd=/boot/initrd-2.4.2-20010518-1630smp.img read-only root=/dev/sda6 append="hda=ide-scsi"Verify that you have an old section pointing to your old kernel - in case your new one doesn't boot.
your_command 2>>kernel_err.log 1>>kernel_out.log
cd /usr/src/linux; vi Makefile; for X in mrproper xconfig clean dep bzImage modules modules_install; do make $X 2>/tmp/kernel-${X}-error.log 1>/tmp/kernel-${X}-output.log; if [ $? -ne 0 ]; then echo Error, check error logs in /tmp break; fi done |
cd /usr/src/linux; vi Makefile; for X in mrproper xconfig clean dep bzImage modules modules_install; do echo "---------------------- starting make $X --------------" echo "---------------------- starting make $X --------------" >2 make $X; echo "---------------------- ending make $X --------------" echo "---------------------- ending make $X --------------" >2 if [ $? -ne 0 ]; then echo Error, check error logs in /tmp break; fi done 2>/tmp/kernel-error.log 1>/tmp/kernel-output.log |