How to compile the kernel

xiaoxiao2021-03-06  104

Untar unchorge new kernel source program in any subdirectory. TAR XVFZ Linux-x.x.xx RM / USR / SRC / Linux This is usually a symbolic connection. Create a symbol connection to your new kernel directory in / usr / src /. Ln -s xxx / yyy / xxx / linux.xxxx / usr / src / linux turns the current directory / usr / src / linuxcd / usr / src / linux to become a superuser SU configuration kernel If you are under x window and I hope there is a graphical interface, you said: make Xconfig If you are not in X WINDOW or don't want to use the graphical interface, you say: Make config After answering the question one after another, wait a moment, wait for the prompt or graphical interface disappear, the system is configured All right. Generate a new kernel, you said: make dep; make cleanmake zimage pay attention to casement! If you use the module, you also need to generate and install the module Make ModeSmake Modules-install to see your /etc/lilo.conf to see the file of that directory as Image. For example: image = / boot / vmlinuz copies /usr/src/linux/system.map to the / boot directory, copy the / usr / src / linux / arch / i386 / boot / zimage to the / boot directory and renamed Vmlinuz Install the new kernel and restarted. Liloshutdown -R Now

转载请注明原文地址:https://www.9cbs.com/read-100508.html

New Post(0)