In section 2 above I mentioned you can download a new kernel from ftp://ftp.kernel.org/ However, this site is often too busy to get through and the maintainers of this site encourage you to download the kernel from a location near you. You can access a mirror site by going to ftp://ftp.<country code>.kernel.org/ (like ftp.ca.kernel.org).
mv /usr/src/linux /usr/src/linux-old
rm -r /usr/include/linux
/usr/include/asm
/usr/src/
directory (this will create
a new /usr/src/linux directory) make dep
make bzImage
arch/<cpu>/boot/bzImage
file to the /boot
directory (or
some place else if your Linux system uses a different convention where kernel
images and the like are stored)/boot/bzImage
file to something like /boot/lfskernel
cp
-av /usr/src/linux $LFS/usr/src
cd $LFS/usr/include ln -s ../src/linux/include/linux linux ln -s ../src/linux/include/asm asm
cd /usr/include ln -s ../src/linux/include/linux linux ln -s ../src/linux/include/asm asm
/etc/lilo.conf
file and go to the LFS sectionlfskernel
(or whatever you've named the originally
called bzImage file)lilo
to update the boot loader.Reboot your system and start your LFS system. Verify that the newly installed kernel doesn't perform out-of-the-ordinary actions (such as crashing).