<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Laursen J. Camilla </title>
    <description>The latest articles on DEV Community by Laursen J. Camilla  (@laursencamilla).</description>
    <link>https://dev.to/laursencamilla</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F20323%2F03628fb4-291c-4d3c-8cfc-1a4efa86ebc6.jpeg</url>
      <title>DEV Community: Laursen J. Camilla </title>
      <link>https://dev.to/laursencamilla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/laursencamilla"/>
    <language>en</language>
    <item>
      <title>How to compile and build Linux kernel 2.6.xx </title>
      <dc:creator>Laursen J. Camilla </dc:creator>
      <pubDate>Wed, 31 May 2017 05:53:18 +0000</pubDate>
      <link>https://dev.to/laursencamilla/hi-im-laursen-j-camilla</link>
      <guid>https://dev.to/laursencamilla/hi-im-laursen-j-camilla</guid>
      <description>&lt;p&gt;In this post I want to show you how to compile Linux kernel. I will compile the version 2.6.39.1 which is the latest stable version at the time of writing this post.&lt;/p&gt;

&lt;p&gt;I use Debian GNU/Linux, with Linux 2.6.32-5-amd64 with grub2 but generally you can use any distribution to compile it.&lt;br&gt;
Generally compiling and using your own Linux kernel is so easy but if you want to get involved more and want to manipulate some modules! It will be a little hard. But it is so exiting when you work with your own compiled Linux.&lt;br&gt;
Here is the instruction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Get the latest Linux kernel from Kernel.org I use the version 2.6.39.1 which is the latest stable version at the time of writing this post.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unzip the archive using the following command.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$ bzip2 -dc linux-2.6.XX.tar.bz2 | tar xvf&lt;br&gt;
Replace your own version with XX in the above command.&lt;br&gt;
There is README file in extracted directory that will help you to customize your compile.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Now call menuconfig function to config and customize kernel to compile. This command will show you a window to select and deselect different modules to compile.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$ make O=/home/name/build/kernel menuconfig&lt;br&gt;
The O= option determines the target directory to copy built files. If you use this option for this command you should use it for other commands too.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; After config, use following command to make kernel. all files will be copied into /home/name/build/kernel&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$ make O=/home/name/build/kernel&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Know use this command to install modules.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$ sudo make O=/home/name/build/kernel modules_install install&lt;br&gt;
This command will copy following files into /boot directory.&lt;/p&gt;

&lt;p&gt;Config-2.6.XX&lt;br&gt;
System.map-2.6.XX&lt;br&gt;
Vmlinuz-2.6.XX&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Know use following command to make a Ram Disk.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$ cd /boot&lt;br&gt;
$$ mkinitramfs -o initrd.img-2.6.XX   2.6.XX&lt;br&gt;
Note: some in distributions you should use mkinitrd -o initrd.img-2.6.XX 2.6.XX command to make a ram disk.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Finally if you are using grub2, use following command to update grub and introduce newly compiled kernel to grub. This command will automatically scan /boot directory and update the /boot/grub/grub.cfg. You should just execute the following command.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;$$ update-grub2&lt;/p&gt;

&lt;p&gt;Note: if you are using grub 1.x use menu.lst to introduce newly complied kernel.&lt;br&gt;
Now reboot your system. You will see a new item with the version of compiled kernel. In grub menu. Just select it and boot your system and enjoy using your own compiled Linux.I have worked for many &lt;a href="https://www.ingic.ae/software-development/"&gt;software developing companies&lt;/a&gt; and I was amazed to see that majority of coders and developers does not knew these strings of linux.&lt;/p&gt;

</description>
      <category>linux</category>
    </item>
  </channel>
</rss>
