Difference between revisions of "Genkernel Quick Start Tutorial"

From Funtoo Linux
Jump to: navigation, search
Line 1: Line 1:
Genkernel Quick Start Tutorial
 
 
 
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.
 
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.
  
 
= Concepts =
 
= Concepts =
  
= Your first kernel compilation with Genkernel =
+
= Genkernel applied to the Debian sources =
 +
 
 +
A good candidate to quickly start with Genkernel is the Debian kernel (sys-kernel/debian-sources) mainly because:
 +
# Configuration files are available for the various platforms supported by the Derbian project
 +
# The configuration makes an intensive use of putting features in modules
 +
 
 +
== First step ==
 +
 
 +
The first step is to emerge:
 +
 
 +
# The Debian sources
 +
# Genkernel itself
 +
 
 +
This is achieved with:
 +
 
 +
<pre>
 +
# emerge sys-kernel/debian-sources sys-kernel/genkernel
 +
</pre>
 +
 
 +
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:
 +
<pre>
 +
# cd /usr/src
 +
# rm linux
 +
# ln -s linux-debian-2.6.32.30 linux
 +
</pre>
 +
 
 +
== Second step ==
 +
 
 +
If is now time to download the 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. 
 +
 
 +
<pre>
 +
# 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
 +
</pre>
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 15:09, 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

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

If is now time to download the 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
Personal tools
Namespaces

Variants
Actions
Categories
Toolbox
Stuff