Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 | ||
|
|
|
||||
|
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
__________________
Vivek Gite Linux Evangelist |
|
||||
|
To use make menuconfig you need curses lib aka libncurses. For remote server I always use make menuconfig X is not an option and other methods are just boring
__________________
|
|
||||
|
Quote:
Real man love to use Gentoo |
|
||||
|
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is Linux kernel is monolithic or modular kernel? | chiku | Linux software | 3 | 27-08-2009 02:56 AM |
| Mini How to :: How to configure ssh keys on Linux | Ashish Pathak | Getting started tutorials | 3 | 31-08-2008 02:18 PM |
| Linux kernel deleted from /boot - how do I resinstall the kernel | vaibhav.kanchan | Getting started tutorials | 2 | 25-03-2008 12:31 AM |
| Display Linux kernel information | sweta | Getting started tutorials | 0 | 27-07-2007 07:00 AM |
| Smart mini HowTo | B!n@ry | Getting started tutorials | 4 | 17-12-2006 03:23 AM |