Difference between revisions of "Genkernel Quick Start Tutorial"

From Funtoo Linux
Jump to: navigation, search
(Second step)
(Genkernel applied to the Debian sources)
Line 9: Line 9:
 
# The configuration makes an intensive use of putting features in modules
 
# The configuration makes an intensive use of putting features in modules
  
== First step ==
+
== First step: emerging the rquired packages ==
  
 
The first step is to emerge:
 
The first step is to emerge:
Line 29: Line 29:
 
</pre>
 
</pre>
  
== Second step ==
+
== Second step: Grabbing a configuration file ==
  
 
If is now time to download the kernel configuration file. For this tutorial we will use a configuration file for AMD64 [http://merkel.debian.org/~jurij as published by the Debian project], if you plan to use the Debian kernel you are advised to review it adjust it to your needs although it is tailored for a vast range of machines.   
 
If is now time to download the kernel configuration file. For this tutorial we will use a configuration file for AMD64 [http://merkel.debian.org/~jurij as published by the Debian project], if you plan to use the Debian kernel you are advised to review it adjust it to your needs although it is tailored for a vast range of machines.   
Line 39: Line 39:
 
# cp config-2.6.32-5-amd64.gz .config
 
# cp config-2.6.32-5-amd64.gz .config
 
</pre>
 
</pre>
 +
 +
 +
== Third step: Building and installing the kernel ==
 +
 +
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 15:10, 6 March 2011

Genkernel is a tool which help you to build a Linux kernel and deploy it along with a ramdisk image which contains all of the necessary modules to make the kernel being able to mount the different partitions of your harddrives in the VFS at the system startup.

Contents

Concepts

Genkernel applied to the Debian sources

A good candidate to quickly start with Genkernel is the Debian kernel (sys-kernel/debian-sources) mainly because:

  1. Configuration files are available for the various platforms supported by the Derbian project
  2. The configuration makes an intensive use of putting features in modules

First step: emerging the rquired packages

The first step is to emerge:

  1. The Debian sources
  2. Genkernel itself

This is achieved with:

# emerge sys-kernel/debian-sources sys-kernel/genkernel

Once the Debian kernel sources are deployed, you should find a directory named linux-debian-version (e.g. linux-debian-2.6.32.30) under /usr/src. Update your the linux symlink to point on this directory:

# cd /usr/src
# rm linux
# ln -s linux-debian-2.6.32.30 linux

Second step: Grabbing a configuration file

If is now time to download the kernel configuration file. For this tutorial we will use a configuration file for AMD64 as published by the Debian project, if you plan to use the Debian kernel you are advised to review it adjust it to your needs although it is tailored for a vast range of machines.

# cd linux
# wget http://merkel.debian.org/~jurij/2.6.32-30/amd64/config-2.6.32-5-amd64.gz
# gunzip config-2.6.32-5-amd64.gz
# cp config-2.6.32-5-amd64.gz .config


Third step: Building and installing the kernel

Personal tools
Namespaces

Variants
Actions
Categories
Toolbox
Stuff