LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   First steps with kernel builds (https://www.linuxquestions.org/questions/linux-kernel-70/first-steps-with-kernel-builds-751976/)

chipotphe 09-02-2009 12:42 AM

First steps with kernel builds
 
Hello,



I want to start to play with "homemade" kernels. (To get some experiences in this subject).

I want to do this step-by-step.

I have already read a lot about this.

I have a Fedora 10 running. So I want to start with this.
I have read that there is a "special" way to create a kernel for Fedora.
(http://fedoraproject.org/wiki/Docs/CustomKernel)

OK. I understand this +/-.
When you build a new kernel with an other version number, you have to rebuild all the modules with this new kernelversion, and you have to install these also.

But : I want to start with modify only some parameters in my kernel config.

Do I need to rebuild and re-install the modules also?
Will it not be enough to rebuild only the kernel? (vmlinuz)


Where can I find some information about the options I can disable in my kernel to speedup my system? (boot process ed). I want to suppress the loading of unneeded modules.
I want to understand the options in menuconfig (and there are a lot of options ! ! )

Thanks in advance !
__________________

kbp 09-02-2009 02:44 AM

Hi,

To start off, you will need to document all the hardware in your computer and any hardware you may want to attach to it. If you miss anything you'll just have to build the custom kernel again. As far as modules go, did you read this ref from the site you mentioned ?

Quote:

The kernel-doc package contains official Kbuild documentation - see files under Documentation/kbuild, in particular the modules.txt file.
This should provide enough info to get started,

cheers

kbp

chipotphe 09-02-2009 03:46 AM

Quote:

Originally Posted by kbp (Post 3666457)
Hi,

To start off, you will need to document all the hardware in your computer and any hardware you may want to attach to it. If you miss anything you'll just have to build the custom kernel again. As far as modules go, did you read this ref from the site you mentioned ?

I know.

I would start from a running and working kernel for that reason.
I would first modify some simple options (that are safe to disable).
Do you know some of such options ?

And I would go further step by step.

Is it possible to get a kind of a listing of the hardware present in my machine ?

regards,

kbp 09-02-2009 10:31 PM

From a running system you should be able to use 'lshal' to display all detected hardware, as far as modules you can disable you'll just have to use some common-sense

eg. do I need packet radio support ? - probably not

cheers


All times are GMT -5. The time now is 01:13 PM.