Slackware Kernel Compile

  • Uploaded by: Esbjörn Andersson
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Slackware Kernel Compile as PDF for free.

More details

  • Words: 371
  • Pages: 2
Compile kernel - Slackware Log in as su. You will probably want to be ’su’ all the way through. #su --> root@host#: ....

First of all we want to make sure it’s possible to boot the current kernel if anything would go wrong. Do that by doing following steps. /boot/vmlinux --> /boot/vmlinux-2.6.29 (or whatever your kernel’s name is) also... /boot/vmlinux/System.map --> /boot/System.map-2.6.29 (or whatever your kernel’s name is)

Let’s say that the kernel is the default one in Slackware 13.0 (2.6.29)... #mv /boot/vmlinux /boot/vmlinux-2.6.29 #mv /boot/System.map /boot/System.map-2.6.29

Now we need to apply the changes in LILO. We will add this to the config... image = /boot/vmlinux-2.6.29 root = /dev/sda1 (or the partition you’re using, check further up) label = Linux-2.6.29 read-only

When you have added those line remember to save and exit the editor. Nano/VIM/kwrite, they all will work. After that we need to run LILO to apply changes #/sbin/lilo

When that is done we are ready to install the new kernel. ’cd’ to /usr/src (or wherever you want the sourcecode, I usually prefer /usr/src so that’s what Im going to use here) #cd /usr/src

©linXea

Download the kernelsource from www.kernel.org or use the one from the Slackware CD/DVD. Unpack the compressed source-file. (eg. #gunzip linux-2.6.29.tar.bz2). #rm -f linux #ln -s linux-2.6.29 linux #cd linux

Now we have created a link to linux 2.6.29 Now it’s time to configure the kernel and you can use menuconfig/xconfig/gconfig to do that. Use the one that you feel most comfortable with. The commands to use them are: #make menuconfig (universal) #make xconfig (kde) #make gconfig (gnome)

When you have saved the .config file it’s time to open the ’makefile’. You can use any editor you like. I will use nano. #nano makefile

At line 551 we want to uncomment the #export INSTALL_PATH=/boot --> Just remove the ’#’ in front of the line and remember to save and quit.

Now it’s time to compile the kernel #make #make modules_install #make install

When it’s done there will be added a new /boot/vmlinux, System.map etc. and LILO will be set. Unless you get any ’error messages’ you should be okay and now just hope you did everything correct. Reboot and use your new kernel.

Good luck!

©linXea

Related Documents


More Documents from ""

April 2020 13
J96
June 2020 2
Historia Ii.docx
June 2020 5
Ensayo.docx
November 2019 6