View previous topic :: View next topic |
Author |
Message |
Yossarian Tux's lil' helper
Joined: 15 Jul 2003 Posts: 117 Location: Austin, Tx.
|
Posted: Thu Sep 11, 2003 10:49 pm Post subject: Re-compiling kernel. |
|
|
I'm sure this topic has been beaten to death but I just want to make sure I get it right. I feel like I've learned a lot about linux but need to become adept at compiling since I avoid it a lot.
I used genkernel to compile my kernel when I first installed and just went with most of the default options and selections. Now though that I've learned more about gentoo and linux in general I'd like to recompile the kernel with some extra options that I didn't know existed.
I don't plan on using genkernel to compile this time. What I'd like to do is also delete a lot of the options that were selected that I know I don't need to decrease the size of my kernel.
Should it be of any significance that I used genkernel the first time? I can just simply change the stuff I don't want and add the stuff I do in menuconfig and then recompile right?
Also is this generally considered the proper code for compiling the kernel with modules?
Code: |
make dep
make clean
make bzImage
make modules
make modules_install
|
Are all of these necessary?
My most important question is will this leave me with the same modules that I have now? As long as I don't deselect them in menuconfig? The reason I ask is that last time I tried to do something with the kernel I couldn't get networking up, because the modules didn't work. I don't want that to happen again.
Thanx
Peace
Brian |
|
Back to top |
|
|
norvillebarnes Tux's lil' helper
Joined: 28 Jun 2003 Posts: 116 Location: Sudbury, ON Canada
|
Posted: Thu Sep 11, 2003 11:27 pm Post subject: Re: Re-compiling kernel. |
|
|
Hi,
Kernel compilation is pretty easy, just make sure that you have a working one in your boot partition and the proper entries in lilo / grub so you have an option if you screw up. AFAIK you should be able to "make menuconfig" and pick and choose your options even though you originally used genkernel.
Yossarian wrote: |
Code: |
make dep
make clean
make bzImage
make modules
make modules_install
|
Are all of these necessary?
|
Yep. But may I suggest:
Code: | make dep && make clean bzImage modules modules_install |
Same exact thing, only on one line and in one step.
Also check out https://forums.gentoo.org/viewtopic.php?t=24626 for all your kernel compilation needs. |
|
Back to top |
|
|
MADcow l33t
Joined: 23 Jan 2003 Posts: 742 Location: RIT (Henrietta, New York, United States)
|
Posted: Fri Sep 12, 2003 2:53 am Post subject: |
|
|
they are not all necessary.
make dep, that is important.
make clean is a good idea.
make bzImage, does just that, and is not needed if you aren't looking for a bzImage
make modules and make modules install only need to be executed if you want any new modules you added since last time you ran them.
so... if you are just updating your bzImage, not modules, and not upgrading to a new kernel, just do make dep && clean bzImage
if you just want to add new modules do make dep&&make clean modules modules_install
that can save a lot of time, sometimes. |
|
Back to top |
|
|
TheWart Guru
Joined: 10 May 2002 Posts: 432 Location: Nashville,TN - USA
|
Posted: Fri Sep 12, 2003 3:23 am Post subject: |
|
|
Unless I am mistaken, 'make dep ' and 'make clean' are no longer reccomended with the new 2.6 kernels. _________________ Face it, we are all noobs.
On the box it said it was designed for Win XP or better, so why won't it work with Linux? |
|
Back to top |
|
|
MADcow l33t
Joined: 23 Jan 2003 Posts: 742 Location: RIT (Henrietta, New York, United States)
|
Posted: Fri Sep 12, 2003 8:21 pm Post subject: |
|
|
thanks for warning me, but i have not used the 2.6 series yet, as the DRM/GL is broken... |
|
Back to top |
|
|
Yossarian Tux's lil' helper
Joined: 15 Jul 2003 Posts: 117 Location: Austin, Tx.
|
Posted: Fri Sep 12, 2003 8:26 pm Post subject: |
|
|
Hmm...Okay. Cool. I was always under the impression though that you had to recompile the modules too, everytime you recompiled the kernel. That's cool though. So are the modules stored somewhere seperate of the kernel?
Peace
Brian |
|
Back to top |
|
|
Yossarian Tux's lil' helper
Joined: 15 Jul 2003 Posts: 117 Location: Austin, Tx.
|
Posted: Sat Sep 13, 2003 3:17 am Post subject: |
|
|
I went into /usr/src/linux-2.4.20-gentoo-r6 and did make menuconfig and added and changed what I wanted. Then I did Code: | make dep && make clean bzImage | and it compiled for a while, then it said: Code: | warning:kernel is too big for standalone boot from floppy
make[1]:leaving directory `/usr/src/linux-2.4.20-gentoo-r6/arch/i386/boot' |
and it took me back to the bash prompt. Did it finish or did something go wrong? It seems like it didn't finish. |
|
Back to top |
|
|
raDeon n00b
Joined: 13 Sep 2003 Posts: 58
|
Posted: Sun Sep 14, 2003 3:55 pm Post subject: |
|
|
yeah it finished |
|
Back to top |
|
|
|