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. |
Take a look at this guide:
http://wiki.linuxquestions.org/wiki/Compiling_a_kernel |
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. |
A tarball, version 2.6.11.7
|
when i typed make && make modules_install it said "*** make: No targets specified and no makefile mound. Stop."
|
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. (-: |
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?) |
oops :D ok now i get a bunch of errors about gcc :confused:
|
Quote:
Code:
zcat /proc/config.gz > <kernel-source directory> |
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! |
This is annoying... where can i find pre-compiled kernels?
|
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. |
Quote:
My kernel doesnt have AHCI support so im switching to one that does. |
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" |
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. |