如何编译内核
时间:2006-03-08 来源:pipehappy
以下的内容是根据
http://www.linuxquestions.org/questions/showthread.php?t=127095
和
http://www.linuxquestions.org/questions/showthread.php?s=&threadid=49035
所整理的。
仅限于slackware。
第一步,改lilo.conf,加入老的内核的相关内容,以防万一。
写入以下内容到lilo.conf中:
image = /boot/vmlinuz.old
#以下的地址改为机器的合适位置
root = /dev/hda1
label = slack.old
read-only 再运行lilo刷行一遍。 第二步,改makefile。 去掉/usr/src/linux/Makefile中 #export INSTALL_PATH=/boot 前的注释。 第三步,一路make。 make menuconfig (make your changes here...when done, save your new configuration)
make dep (sets all the kernel dependencies)
make clean (removes un-needed files)
make bzImage (builds the kernel)
make
make install (installs, moves and renames all the needed files and updates lilo)
make modules (builds all the kernel modules)
make modules_install (installs the modules)
到这里,就好了,重启,如果不行就用老的内核,如果可以就。。。
root = /dev/hda1
label = slack.old
read-only 再运行lilo刷行一遍。 第二步,改makefile。 去掉/usr/src/linux/Makefile中 #export INSTALL_PATH=/boot 前的注释。 第三步,一路make。 make menuconfig (make your changes here...when done, save your new configuration)
make dep (sets all the kernel dependencies)
make clean (removes un-needed files)
make bzImage (builds the kernel)
make
make install (installs, moves and renames all the needed files and updates lilo)
make modules (builds all the kernel modules)
make modules_install (installs the modules)
到这里,就好了,重启,如果不行就用老的内核,如果可以就。。。
相关阅读 更多 +
排行榜 更多 +