This is a discussion on mini HOWTO - Linux Kernel Compilation within the Getting started tutorials forums, part of the Linux Getting Started category; Hello All , I told you I shall be back with a new idea Today this article came to my ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hello All,
I told you I shall be back with a new idea Really this questions is asked by lots of people not just newbie's but even intermediate users. So I decided to write this short article to help out. Important Note: Do not run a command as root until I say so. 1st: you download the latest Kernel version from here: http://www.kernel.org/ 2nd: Move the file you downloaded into a directory change to it and if the kernel is downloaded in a gz file type ? you extract it like this: Code:
tar xvfz kernel-package.gz Code:
tar xvfj kernel-package.bz2 1. make config 2. make oldconfig 3. make menuconfig 4. make gconfig 5. make xconfig Note:- Not all of them exist by default on a Linux System, you need to install them. the "make config" is a Q&A configurator. "make oldconfig" is used when you have a pre-config file and want to reuse it in compiling the new Kernel. "make menuconfig" is just like the netconfig that runs under CLI and you choose the needed options by marking them with a correct sign. "make gconfig" is a configurator running under GTK+. "make xconfig" is also a configurator run under QT. 4th: Now run Code:
make Important Note: Now continue to run the commands as root. 5th: Install the needed modules for the kernel. Run this: Code:
make modules_install Code:
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.0 Code:
cp System.map /boot/System.map-2.6.0 Code:
title SUSE Linux 10.1 using Kernel vmlinuz-2.6.0
root (hd0,0)
kernel /vmlinuz root=/dev/hda3 vga=0x317 splash=silent showopts
initrd /initrd
I hope you like this mini HOWTO - Linux Kernel Compilation Regards 2 all, B!n@ry
__________________
LivE Free 0r DiE L!nux rul3z aLL |
| Sponsored Links | ||
|
|
|
||||
|
Good work.
LOL first i could not recognize you B!n@ry; did you changed your name or what? ALso don't forget to include your drivers. If you are using RHEL and if u r lazy use up2date command to upgrade binary kernel: Code:
up2date -uf
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
Quote:
What do you mean about the drivers ? if you mean modules I have added them or do you mean somthing else ? Also for FC# users using yum do the following: Code:
yum -y install kernel Code:
smart install kernel waiting for more useful addons :P
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
||||
|
I am not at all a fan of an RPM based Linux distro but my work alway force me to use RHEL
Debain Linux Code:
apt-get install kernel-image-version Code:
sudo apt-get install kernel-image-version Code:
apt-cache search kernel-image Quote:
Modules is UNIX/Linux term form H/w driver so both of you are right. Rocky use modules word If you are using RAID card make sure you download driver from card manufacturer ftp/www server. Otherwise you will see famous kernel panic message. Also don't forget Exploring Linux kernel => http://blogs.cyberciti.biz/hm/index....-linux-kernel/ Howto: build Linux kernel module against installed kernel w/o full kernel source tree => http://www.cyberciti.biz/tips/build-...urce-tree.html |
|
|||
|
thanx nixcraft for the addon, u made me remember to put this command:
Code:
uname -r By the way nixcraft I really think Debian is hard to run and operate
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
||||
|
Quote:
Quote:
|
|
|||
|
Quote:
well I only do this to insure that nothing goes wrong, speacilly when some cannot read from where to load the modules needed at boot time. All the rest you are precisly write about it or I am wrong and unable to explain for you.
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
||||
|
grub-install - use to install GRUB boot loader on your hard disk. There is no relationship exists between GRUB and kernel upgrade. If you run grub-install it will just reinstall GRUB.
In olden days you need to run lilo command after kernel upgrade. First you will edit /etc/lilo.conf with something as follows: Code:
image=/boot/vmlinuz label=linux initrd=/boot/initrd-version.img read-only root=/dev/hda2 Code:
lilo -v -v This is one big difference between GRUB and LILO: With LILO, every time you rebuild your kernel, you will need to reinstall the boot loader (run sbin/lilo). So, there can be less of a maintenance issue with GRUB. Also you'll need to execute lilo again after any changes are made in /etc/lilo.conf. Rests of your commands are correct |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mini How to :: How to configure ssh keys on Linux | Ashish Pathak | Getting started tutorials | 3 | 08-31-2008 03:18 PM |
| Linux kernel deleted from /boot - how do I resinstall the kernel | vaibhav.kanchan | Getting started tutorials | 2 | 03-25-2008 01:31 AM |
| Display Linux kernel information | sweta | Getting started tutorials | 0 | 07-27-2007 08:00 AM |
| Smart mini HowTo | B!n@ry | Getting started tutorials | 4 | 12-17-2006 04:23 AM |
| Is Linux kernel is monolithic or modular kernel? | chiku | Linux software | 2 | 06-02-2005 04:40 PM |