Results 1 to 6 of 6
i need a description of each step of compiling a linux kernel,for example what changes happen after issuing make modules_install, where can i find these details?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-03-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Kernel Compiling in Details
i need a description of each step of compiling a linux kernel,for example what changes happen after issuing make modules_install, where can i find these details?
- 10-03-2011 #2
Hello and Welcome!
A quick Google search yields these results: compiling Linux kernel
I'm assuming that this is not a homework question, correct? Those are expressly against Forum Rules.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 10-03-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
i know how to search in google jayd512,but the results are not in depth,they just say type make then make module blah blah.
i can compile the kernel with just typing a sequence of "make this make that make ****" but i want to know what happens behind the scenes,what new files are created and where,and it is not a homework.
- 10-03-2011 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,657
When you do a 'make', the kernel and modules are built in the source directory, unless you specified O=/some/other/dir, in which case they're built there.
When you do a 'make modules_install install', the modules get installed to /lib/modules/<KERNEL_VERSION> and the kernel gets copied to /boot/vmlinuz-<KERNEL_VERSION>. If you built an initrd it will get copied to /boot/initramfs-<KERNEL_VERSION>.img or /boot/initrd-<KERNEL_VERSION>.img, depending on your kernel version. The grub config file (/etc/grub.conf, /boot/grub/menu.lst, etc.) is also modified to include this new kernel entry. And 'depmod -a' is called, I think, to update the modules auto-loader config file in /lib/modules/<KERNEL_VERSION>/modules.dep file.
Is this what you mean?Last edited by atreyu; 10-03-2011 at 02:00 PM. Reason: typos!
- 10-05-2011 #5Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Yes, thanks alot atreyu,one more question,where did you find this information?!
- 10-05-2011 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,657
Some from the kernel source documentation...
some from the Makefile itself...Code:linux-<KERNEL_VERSION>/README
and some from other online searching for answers to the same question.Code:linux-<KERNEL_VERSION>/Makefile


Reply With Quote
