Set up a new kernel: few hints

Set up a new kernel: few hints

December 20, 2009 11:57 0 comments
 
1 Kudos
Don't
move!

There are few things that join various distros. One of such things is the kernel.
At first, configuring it, could be a very stressful task so here are a couple of suggestions:

  • There’s a website that can help you so damn much to find which modules are needed by your kernel in order to work. This website refers to Debian but you can completely ignore that. Just put into it an lspci -n and go check your kernel configuration.
  • You can often use an already working kernel in order to understand what’s important and what is not. Distros prepare kernels in order to have almost everything compiled as module. These modules are going to be automagically loaded by the kernel when the relative device is found, but most of those kernel modules are useless for your system.
    In order to see which modules are currently loaded on your system, you can issue lsmod but this command doesn’t provide very much per-device informations. lspci provides a nice switch (-v) that shows what’s the module that manages that device.
  • In the newest kernel (>=2.6.32), developers have add a new make build target called localmodconfig that performs the task mentioned above, and adds automatically the needed parameters to the kernel configuration. In you want more information about this, I suggest you to take a look to the kernelnewbies site where you can find very cool information around kernel world.