LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2005, 01:22 PM   #1
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
how to compile kernel?


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

Last edited by kyleca; 04-16-2005 at 01:25 PM.
 
Old 04-16-2005, 01:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at this guide:
http://wiki.linuxquestions.org/wiki/Compiling_a_kernel
 
Old 04-16-2005, 01:31 PM   #3
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
Oh my god, haven't we heard this one before... RTFM

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.
 
Old 04-16-2005, 02:46 PM   #4
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
A tarball, version 2.6.11.7
 
Old 04-16-2005, 04:15 PM   #5
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
when i typed make && make modules_install it said "*** make: No targets specified and no makefile mound. Stop."
 
Old 04-16-2005, 05:05 PM   #6
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 31
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. (-:
 
Old 04-17-2005, 11:57 AM   #7
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
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?)
 
Old 04-18-2005, 04:09 PM   #8
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
oops ok now i get a bunch of errors about gcc
 
Old 04-18-2005, 04:19 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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?

Last edited by jschiwal; 04-18-2005 at 04:20 PM.
 
Old 04-18-2005, 04:26 PM   #10
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
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!
 
Old 04-18-2005, 04:36 PM   #11
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
This is annoying... where can i find pre-compiled kernels?
 
Old 04-18-2005, 04:41 PM   #12
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
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.





Last edited by ironwalker; 04-18-2005 at 04:44 PM.
 
Old 04-19-2005, 04:08 PM   #13
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
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.

Last edited by kyleca; 04-19-2005 at 04:09 PM.
 
Old 04-19-2005, 04:19 PM   #14
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
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"
 
Old 04-21-2005, 06:56 PM   #15
kyleca
LQ Newbie
 
Registered: Apr 2005
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
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?

Last edited by kyleca; 04-21-2005 at 06:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration