Find the answer to your Linux question:
Results 1 to 6 of 6
Why is it that under Windows or whatever I don't have to recompile the kernel just to add a new driver? Is it a protection thing? Or an optimization thing? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    oky
    oky is offline
    Just Joined!
    Join Date
    Nov 2004
    Location
    India
    Posts
    4

    why kernel recompilation?


    Why is it that under Windows or whatever I don't have to recompile the kernel just to add a new driver? Is it a protection thing? Or an optimization thing? Or something else?

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Windows is closed Software, you can't compile anything, you don't have the sources.. and you wouldn't be able to if you had them

    Recompiling the kernel is for optimization (remove stuff that may be loaded but you don't use it at all) and for upgrading (sometimes there are vulnerabilities in the kernel).
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Location
    floating in space
    Posts
    2
    Cant you just compile the module and then use the insmod command to install the driver into the running kernel?

  4. #4
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Quote Originally Posted by scoome
    Cant you just compile the module and then use the insmod command to install the driver into the running kernel?
    Yeah, I think you can do that..
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  5. #5
    Just Joined!
    Join Date
    Apr 2005
    Location
    Belarus
    Posts
    14
    as for me, the one who compiles kernel gains great experience in understanding principles of system. It took 9 attempts to succcesfully configure a working kernel first time i did it.

  6. #6
    Just Joined!
    Join Date
    Jun 2005
    Location
    Manchester...
    Posts
    1
    the main reason to compile the kernel is customisation... if done properly (ie you know all the hardware in your machine) start up would be significantly faster...

Posting Permissions

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