Friday, 10 July 2009

How to compile kernel script

Download here


cd
/usr/src/linux &&

echo "Running kernel configuration..." &&
make menuconfig &&

echo "Compiling kernel..." &&
make &&

echo "Installing kernel modules..." &&
make modules_install &&

echo "Making backup of old kernel..." &&
mv /boot/config /boot/config-old &&
mv /boot/System.map /boot/System.map-old &&
mv /boot/kernel /boot/kernel-old &&

echo "Installing new kernel..." &&
cp /usr/src/linux/System.map /boot &&
cp /usr/src/linux/.config /boot/config &&
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel &&

echo done

No comments:

Post a Comment