LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to compile kernel? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-kernel-313901/)

kyleca 04-16-2005 01:22 PM

how to compile kernel?
 
I just downloaded a new kernel but how do I compile it now??:confused:
Also, how do I make KDE to load up instead of GNOME on FC3? I already installed it.

david_ross 04-16-2005 01:24 PM

Take a look at this guide:
http://wiki.linuxquestions.org/wiki/Compiling_a_kernel

atom 04-16-2005 01:31 PM

Oh my god, haven't we heard this one before... RTFM :D

Just joking, the above is not my style.

You say you downloaded the kernel. Mind telling us which version it is? Did you download a source tarball, a rpm, an idon'tknowwhat?

If you have a kernel of 2.6.x series, the most obvious steps would be:
make oldconfig
make menuconfig
#select your hardware, support for features and stuff
make && make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.6.x-new
cp System.map /boot/System.map
then edit /boot/grub/grub.conf
add an entry as follows:
title=New, untested kernel
root(0, 0) #hda1, for hda2: root(0, 1), for hdb3: root(1,2)
kernel=/boot/kernel-2.6.x-new root=/dev/hda1

and that's it! reboot and enjoy.. you'll have to recompile nvidia drivers if you use them, and maybe some other stuff too.
If it works the 1st time you do it, it'll be a miracle so don't be angry if it doesn't. Even I hardly get it right the first time I get a new kernel version.

kyleca 04-16-2005 02:46 PM

A tarball, version 2.6.11.7

kyleca 04-16-2005 04:15 PM

when i typed make && make modules_install it said "*** make: No targets specified and no makefile mound. Stop."

Hosiah 04-16-2005 05:05 PM

re: KDE start instead of Gnome,
try to find a program somewhere in the "system settings" or perhaps "preferences" menu called "switchdesk". Failing that, type "switchdesk" from a terminal window. Your available desktop managers will pop up.

Of course, if you never get your kernel going, desktop managers will fade as a primary concern. (-:

atom 04-17-2005 11:57 AM

Um... you WERE in the directory where you unpacked the kernel when you typed "make" weren't you?

Because I can't think of any reason other than that :(
If make menuconfig worked (and it showed the configuration screen and everything) then this should work aswell. Otherwise, do the whole thing again (unpack the kernel and stuff) but be sure to backup the .config file because that's where the configuration is kept.

Cheers, hope you make it! (get the pun?)

kyleca 04-18-2005 04:09 PM

oops :D ok now i get a bunch of errors about gcc :confused:

jschiwal 04-18-2005 04:19 PM

Quote:

If you have a kernel of 2.6.x series, the most obvious steps would be:
make oldconfig
.
.
.
Shouldn't there be an initial
Code:

zcat /proc/config.gz > <kernel-source directory>
preceding the make oldconfig step, or does the make oldconfig perform this?

atom 04-18-2005 04:26 PM

Well, it could... But that only applies if you have /proc/config.gz support compiled into the kernel, which I have not had until I have included it 14 days ago. I have not compiled a new kernel since and so, logically, I have forgotten about the step. I have always copied my old config file backup into the install folder though, and did an "oldconfig".


Thanks for pointing it out!

kyleca 04-18-2005 04:36 PM

This is annoying... where can i find pre-compiled kernels?

ironwalker 04-18-2005 04:41 PM

http://www.brandonhutchinson.com/Rec...re_kernel.html


A precompiled kernel is the one your fedora core 3 is useing.
Why do you want a "new" kernel...just recompile your existing and add/remove what you want.You can even go back to the old one incase ya goofed the new one.

What is it your trying to do exactly....it will better help us to better help you.





kyleca 04-19-2005 04:08 PM

Quote:

What is it your trying to do exactly...
http://www.linuxquestions.org/questi...36#post1395336
My kernel doesnt have AHCI support so im switching to one that does.

ironwalker 04-19-2005 04:19 PM

You just need the source above 2.6.10 according to that thread.2.6.11-8 is current
recompile as above and add the support you need when in "make menuconfig"

kyleca 04-21-2005 06:56 PM

ok i downloaded gcc but now when i try to do make && make modules_install i get a bunch of errors what's going on? and with what i'm trying to do can i use precompiled kernels?


All times are GMT -5. The time now is 07:28 PM.