customizing the linux kernel
Results 1 to 5 of 5

Thread: customizing the linux kernel

  1. #1
    Registered User
    Join Date
    Dec 2002
    Location
    Knoxville Tn
    Posts
    152

    customizing the linux kernel

    I was just wondering where some good information on customizing a kernel in Linux. I have heard that you can streamline the kernel making it boot faster and run better.

    Also, is this something a person new to Linux can handle or should it be left to Linux experts.
    The only reason for time is so that everything doesn't happen at once............Buckaroo Banzai

  2. #2
    Registered User Titchski's Avatar
    Join Date
    Nov 2001
    Location
    FLA, Orig. Birmingham UK
    Posts
    911
    Quote Originally Posted by charlescpc
    I was just wondering where some good information on customizing a kernel in Linux. I have heard that you can streamline the kernel making it boot faster and run better.

    Also, is this something a person new to Linux can handle or should it be left to Linux experts.
    A lot depends on what "flavour" of linux you are running. I used Gentoo for a while, which forced you to build the kernel from scratch. After a while I went back to using Slackware and I'm debating whether to attempt to install a new kernel. I've no experience at all trying it on Mandrake/SuSE/RedHat (Fedora)

    There are some great sites out there that can walk you through kernel configuring, but you have to remember that the reason you customise the kernel is so that it is customised to work with your system Its vital that you know exactly what hardware you have and what modules the existing kernel uses. I'll see if I can dig up some sites and post back.
    Bollocks

  3. #3
    Registered User Titchski's Avatar
    Join Date
    Nov 2001
    Location
    FLA, Orig. Birmingham UK
    Posts
    911
    Bollocks

  4. #4
    Registered User +Daemon+'s Avatar
    Join Date
    Jan 2002
    Location
    RC, Ca
    Posts
    3,406
    I always recompile the kernel and make it small and fast, I take out allthe crap I dont need. I end up with a 1mb or less kernel so it fits on a floppy if I wanted to vs 25 mb

    its worth it in the log run

    fast run down

    in a command prompt (shell, teminal, console)

    cd /usr/src/linux
    make menuconfig (use this to configure the options in the kernel)
    (dependinf if its the 2.4 or 2.6 kernels this is diffrent)

    2.4 kernel
    ----------

    make menuconfig
    make bzImage
    make modules
    make modules_install
    cd arch/i386/boot
    cp bzImage /boot/kerncustom24
    (edit lilo.conf or grub what ever boot laoder u are using)

    2.6 kernel
    ----------
    make menuconfig
    make
    make modules_install
    cd arch/i386/boot
    cp bzImage /boot/kerncustom26
    (edit lilo.conf or grub what ever boot laoder u are using)



    note: you might have to mount your /boot partition if u made the /boot a seperate partition. do a "ls /boot" and see if there are files in there before you copy the kernel there. if no files are there then do a "mount /dev/hdxy /boot", were the x is in /dev/hdxy is the hard drive (a,b,c...), were y is in /dev/hdxy is the partition number were the boot partition is.
    Last edited by +Daemon+; December 2nd, 2004 at 09:43 AM.

  5. #5
    Registered User
    Join Date
    Dec 2002
    Location
    Knoxville Tn
    Posts
    152
    thanks for the replies.
    I use Mandrake 10.1 with a 2.6 Kernel.
    I don't really have anything I mind loosing if I totally screw up the install.
    I would like to see if I could get the kernel down a little.
    I have found several sites that show you how to patch the kernel and recompile a new one.

    The main thing I'm trying to figure out is how to get rid of all the "extras".

    Oh yea, setting up the wireless was a bitch. Might be good practice now that I know it can be done.

    I'm still waiting till I can do away with the dual boot and just run Linux.........
    Thanks
    The only reason for time is so that everything doesn't happen at once............Buckaroo Banzai

Similar Threads

  1. Linux Bookmarks
    By +Daemon+ in forum Linux
    Replies: 15
    Last Post: November 20th, 2007, 12:32 AM
  2. Just installed LOTR (ROTK)
    By robertjvan in forum Video Adapter/Monitor Drivers
    Replies: 16
    Last Post: November 2nd, 2004, 01:33 PM
  3. READ: Thanks, Linux
    By TechZ in forum Tech Lounge & Tales
    Replies: 4
    Last Post: September 2nd, 2004, 11:07 AM
  4. Linux Welcomed in Kindergartens
    By Stalemate in forum Tech Lounge & Tales
    Replies: 2
    Last Post: July 7th, 2003, 03:27 PM
  5. You're the new president of Apple computer
    By WebHead in forum Tech Lounge & Tales
    Replies: 21
    Last Post: June 12th, 2002, 01:28 PM

Bookmarks

Posting Permissions

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