<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tutoriales Linux &#187; kernel</title>
	<atom:link href="http://tutorialeslinux.com/categoria/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialeslinux.com</link>
	<description>Tu sitio de COMOs de Linux</description>
	<lastBuildDate>Wed, 12 Aug 2009 23:51:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Compilar kernel en Debian</title>
		<link>http://tutorialeslinux.com/compilar-kernel-en-debian/</link>
		<comments>http://tutorialeslinux.com/compilar-kernel-en-debian/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 11:00:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://tutorialeslinux.com/?p=77</guid>
		<description><![CDATA[
Para optimizar el funcionamiento de nuestro ordenador es fundamental compilar el kernel de nuestro linux, para poder hacerlo bien, es necesario saber todos los detalles de nuestro hardware (placa base, dispositivos de red, de almacenamiento, monitores, periféricos&#8230;..Cuanto más detalles tengamos sobre ellos más podremos optimizar el rendimiento de nuestro núcleo (kernel)
En primer lugar tenemos que [...]


No hay post relacionados.]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-80 alignleft" title="debian" src="http://tutorialeslinux.com/wp-content/uploads/2009/01/debian.gif" alt="debian" width="175" height="186" /><br />
Para optimizar el funcionamiento de nuestro ordenador es fundamental compilar el kernel de nuestro linux, para poder hacerlo bien, es necesario saber todos los detalles de nuestro hardware (placa base, dispositivos de red, de almacenamiento, monitores, periféricos&#8230;..Cuanto más detalles tengamos sobre ellos más podremos optimizar el rendimiento de nuestro núcleo (kernel)</p>
<p>En primer lugar tenemos que descargar la versión del núcleo que deseamos compilar (la última versión actual es la 2.6.28) desde <a href="http://kernel.org">kernel.org </a>,e instalar los siguientes paquetes:<span id="more-77"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-initramfs-tool kernel-package devhelp modutils libncurses5-dev</pre></div></div>

<p>Una vez hecho movemos el archivo descargado a la carpeta /usr/src y lo <a title="Comprimir y descomprimir archivos en linux" href="http://tutorialeslinux.com/como-comprimir-y-descomprimir-archivos-en-linux/" target="_self">descomprimimos</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> linux-2.6.28.tar.bz2 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-jxvf</span> linux-2.6.28.tar.bz2</pre></div></div>

<p>Tras esto creamos un enlace simbólico al directorio /usr/src/linux y después ingresamos en él. Cuando estamos dentro es el momento de añadir los parches que queramos incorporar, uno por uno.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux-2.6.28 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-p1</span> <span style="color: #000000; font-weight: bold;">/</span>directorio<span style="color: #000000; font-weight: bold;">/</span>del<span style="color: #000000; font-weight: bold;">/</span>parche</pre></div></div>

<p>Para configurar el núcleo antes de la compilación tenemos distintas maneras, desde la consola hasta un modo gráfico.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">make</span> menuconfig</pre></div></div>

<p>(para configurar el kernel mediante un menu en la consola)</p>
<p>Para realizar una configuración completamente nueva debemos ejecutar el siguiente comando antes de empezar a configurar el núcleo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">make</span> mrproper</pre></div></div>

<p>Esto elimina toda configuración antigua, así como todo los archivos creados en una compilación anterior. Después de esto empieza la compilación:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">make</span> dep clean</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">make</span> bzImage</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">make</span> modules modules_install</pre></div></div>

<p>Una vez acabada la compilación copiamos la imagen al directorio /boot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>arch<span style="color: #000000; font-weight: bold;">/</span>arquitectura<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>bzImage <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>vmlinuz-versiondelkernel</pre></div></div>

<p>Donde pone arquitectura sera la arquitectura de la máquina (i386, 486, 686, x86…) y donde apareze versiondelkernel pondremos la versión del núcleo que hemos compilado (ej: 2.6.28). Para cualquier otra distribución prácticamente hemos acabado, pero para Debian todavía queda algo más.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> mkinitramfs <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-versiondelkernel <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>versiondelkernel<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Finalmente tenemos que modificar el menú del GRUB introduciendo unas lineas como el ejemplo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>menu.lst
&nbsp;
title Mi Nuevo kernel
&nbsp;
root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
kernel <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>kernel-2.6.28 <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda2 ro
&nbsp;
initrd <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.28
&nbsp;
savedefault
&nbsp;
boot</pre></div></div>

<p>Donde dice Mi Nuevo kernel le colocas el titulo que quieras, este aparecerá en el menú del GRUB al iniciar la máquina.</p>


<p>No hay post relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://tutorialeslinux.com/compilar-kernel-en-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
