Компилирование ядра Linux
Оцените этот текст
Ядро расположено в каталоге /usr/src/linux cd /usr/src zcat /path/to/patch-2.31.gz | patch -s -p0 zcat /path/to/patch-2.32.gz | patch -s -p0 . . . cd /usr/src/linux make xconfig # в графическом режиме или make config # в текстовом режиме заполнить в графическом режиме параметры и выбрать нужные драверы make dep ; make clean ; make zlilo возможно придется сделать команду cp /vmlinux /boot/vmlinuz lilo # cd /usr/src/linux/ # make config или # make { menuconfig | xconfig } Смысл конфигурационных параметров ядра разъясняется здесь # make dep # make clean # make zlilo # make modules # rm -r /lib/modules/2.0.18 # make modules_install # reboot Это все. 0) cd /usr/src/linux 1) make menuconfig Where I enable the features I want as odules (for vfat support you should answer M for FAT and VFAT) Besides, the kernel must be compiled with modversion and kerneld support enabled.(This is the second submenu in the config - select all the 3 items). 2) make install At the end the old kernel (if it's /vmlinuz) will be renamed /vmlinuz.old and the new will be /vmlinuz. This option calls the script /usr/src/linux/arch/i386/boot/install.sh which does the above renaming and runs lilo.If you don't want lilo just comment out the last line in that script. 3) make modules 4) rm /lib/modules/2.0.0 (or move to another location) 5) make modules_install 6) VERY IMPORTANT to make linux boot the new kernel. If you use lilo do not edit /usr/src/linux/arch/i386/boot/install.sh, it will install it automaticly,if not then you are using either loadlin or bootdisk.Either way update your bootdisk or loadlin kernel (on your dos partition I guess). 7) Reboot linux.
Last-modified: Tue, 30-Jun-98 11:46:22 GMT
Оцените этот текст