Thanks for Your Donations
Latest Releases

Resident Evil Revelations

Metro Last Light

Iron Sky Invasion

Deadly Premonition The Director's Cut

Dragons Dogma Dark Arisen

Star Trek

Dead Island Riptide

Injustice Gods Among Us
Results 1 to 3 of 3

Thread: How to Recompile Your Linux Kernel Easily

  1. #1
    ireggae's Avatar
    ireggae is offline Universal Moderator Hall of Famer
    Join Date
    Jan 2011
    Location
    Xbox Live
    Posts
    5,200
    Rep Power
    26

    Default How to Recompile Your Linux Kernel Easily

    How to Recompile Your Linux Kernel Easily

    If you are a native linux user, you have surely been in the case where you just did not need a system with just about every package there is out there. If you always wanted to know how to upgrade your kernel manually and configure what packets you need yourself, read on.

    Some of you may ask “Why would i need to upgrade my kernel and what exactly is that?”. The operating system’s kernel is the basic element of your operating system and is responsible for managing various tasks, like memory management, pagination and many many more. As you can understand, the kernel includes some modules that are essential for the identification of your hardware, such as your network card and more.

    The disadvantage is that the default installation of the kernel includes many more elements that what you really need. For instance, if your computer has an AMD processor, you really have no apparent reason to use the modules that the kernel includes for Intel processors.

    So, there comes up a need to create your own configuration for your kernel. One more reason to do that is that you may need to have the latest kernel version on your pc, specially important if some hardware does not work with your current kernel – you may know that debian fellows

    The process to upgrade your kernel is very simple. For starters head to kernel.org and download the latest stable kernel(click on F). The time that this tutorial was written, the latest one was linux-2.6.24.tar.bz2. From this point on, be a superuser(root) at your terminal.

    After you download the kernel, extract it at /usr/src. Become a root with “su -” (or sudo -s and such) and extract using:
    tar xfvj linux-2.6.xx.tar.bz2
    tar xfvz linux-2.6.xx.tar.gz (if it's gzipped)

    Create a symbolic link for the new folder:
    ln -s linux-2.6.xx/ linux

    And then run:
    cd /usr/src/linux
    make mrproper
    make clean
    make menuconfig

    * make mrproper erases whatever config file was existant (if there is a .config file it gets deleted).
    * make clean is not essential at that point, but if you have made any previous compilations, it erases whatever changes have been made since the previous make.
    * make menuconfig appears a configuration menu at the shell and from here you can add and remove any modules or built in features you need.

    When you see an M near a line, this means that this component is a module and is dynamically loaded only when the kernel asks for it. On the contrary, * means that it is a built in feature and is an option that is generally a bit more harsh on your system’s speed, but it’s essential for some things. After you have selected and deselected what is important for your system, select the option “save configuration file” and save it at .config. Now at /usr/src/linux you have your new configuration file with your own choices and you are now ready to compile.

    While inside /usr/src/linux type:
    make

    This will start the process of compiling your new kernel. Go grad some coffee and be back after about half an hour :p When the process ends, type :
    make modules_install

    This creates the modules for the kernel. At that point, we move the kernel and System.map at /boot with:
    cp /usr/src/linux-2.6.xx/arch/i386/boot/bzImage /boot/vmlinuz-2.6.xx
    cp /usr/src/linux-2.6.xx/System.map /boot/System.map-2.6.xx

    Finally, update your boot loader.

    For instance in grub:
    vim /etc/grub.conf

    and edit like :
    title Linux (2.6.24)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.24 ro root=/dev/hda2 hdd=ide-scsi

    (where root changed according to where your partition is mounted)
    Check Out the Pc Zone! From Movies, Apps, and Mobile to Music and Anime!
    http://www.ps3iso.com/pc-zone/

  2. #2
    MrJ
    MrJ is offline Junior Member Contemporary
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    3

    Default

    wow this is something i need to learn more about

  3. #3
    romaan's Avatar
    romaan is offline Universal Moderator Athanatos
    Join Date
    Jan 2011
    Location
    Sweet Home
    Posts
    4,188
    Blog Entries
    10
    Rep Power
    29

    Default

    Awesome btw
    "You must spread some Reputation around before giving it to ireggae again."
    Would You like to Say Thanks Or +Rep Please Click Icon at Bottom Left of My Post
    Safe Steps For Install Rogero CEX-4.21 CFW
    Run Backup 3.6+ Games on DEX, Noob Friendly With Pictures and Videos
    Get Your User ID For ReActPSN | Tutorial Multiman NTFS Support | Tutorial SlideShow Dynamic PS3 Theme | Tutorial PS3usercheat PKG Guide - For Non-Dongle Users
    Uploading Rules & Clarification
    Credits are not a requirement for posting content. None of the 99% of uploaders on this site post credits. It is not a requirement. Listing credits is by choice if you want to post them or not.

Similar Threads

  1. In search of Official Sony kernel for Yellow Dog Linux
    By Lightyear in forum PS3 General Chat
    Replies: 0
    Last Post: 27th August 2011, 10:32 AM
  2. PS3A Linux-box v1- Easily install Linux via script [video]
    By VenomusX in forum Playstation News
    Replies: 7
    Last Post: 20th August 2011, 06:00 PM
  3. Graf Chokolo’s PS3 Linux Kernel & PS3DM Update
    By ireggae in forum Playstation News
    Replies: 0
    Last Post: 7th March 2011, 03:03 PM
  4. How To Run/Install Graf_Chokolo PS3 Linux Kernel
    By noriya in forum Playstation News
    Replies: 0
    Last Post: 5th March 2011, 12:57 AM
  5. Graf_Chokolo Updates PS3 Linux Kernel to 2.6
    By sanjeevneo in forum Playstation News
    Replies: 0
    Last Post: 3rd March 2011, 03:49 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •