Editing the kernel

This is a discussion on Editing the kernel within the Linux Programming forums, part of the Platform Specific Boards category; I have only used linux for a while, but I am wondering how I would be able to edit or ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    241

    Editing the kernel

    I have only used linux for a while, but I am wondering how I would be able to edit or modify the kernel. I read in another post that it is in C, but I am wondering what tools I need, where the files are, and if there are any editors that are a little more graphical than the one that comes with linux.

  2. #2
    Unregistered
    Guest
    let me first say that i have never modified a kernel. i have compiled one though...

    you need:

    1) to read, read, read. There's a lot of info on compiling kernels on the internet.

    2) to know a lot about C and how linux works in general

    2) a C compiler

    3) the source code. this comes with every distrobution. make sure you have it installed. if you do, it's probably in the directory /src ...

    as for a more "graphical editor", look at KDevelop for an IDE for gcc. it's okay, and it probably came with your distro. if you're are looking for a way to easily manage several files within a project it's pretty decent. it's similar to the more popular IDE's. I haven't used it much though. if you ask me vim is the way to go...

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    in X (as root) what you're looking for is "make xconfig", but you can also run something similar in console, "make menuconfig." "make config" inquires about every kernel option one at a time.

    Of course this is presuming that you want to edit your kernel's configuration. You can, of course, edit the source code directly, but few are that brave/foolish.

    starX
    www.axisoftime.com

  4. #4
    phubuh
    Guest
    Download the source from kernel.org, and then modify it as you would modify any other code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Kernel bug? (attn matsp)
    By brewbuck in forum Linux Programming
    Replies: 7
    Last Post: 04-13-2009, 11:31 AM
  2. SOS - Can a monolithic kernel be used in a micro-kernel style OS?
    By sean in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 11-20-2008, 09:30 AM
  3. Programming RIP2 with kernel routes table
    By jpablo in forum Linux Programming
    Replies: 1
    Last Post: 04-22-2006, 12:26 PM
  4. Compiling Linux kernel on Windows
    By jmd15 in forum Linux Programming
    Replies: 9
    Last Post: 04-10-2006, 08:28 AM
  5. CreateThread ?!
    By Devil Panther in forum Windows Programming
    Replies: 13
    Last Post: 11-15-2005, 10:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21