LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-28-2007, 11:04 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
newbie compiling kernel


Hi
I never compiled a linux kernel to boot in , I recently downloaded a linux kernel
2.6.20.3 from some site and
issued the following commands
make mrproper
make dep ;make clean;
make menuconfig
make bzImage;
make ;
make install;
thinking that every thing is fine I
booted in to the new kernel and got kernel panic
trying to kill init
some googling showed that I might have choosen a wrong module to compile so this error came
I have these questions
1) How to take back up of old kernel
2) How to uninstall the older modules
3) How to compile during make menuconfig without choosing any option to add a new module I just want to be able to have a new kernel into the system adding modules I want to learn later
 
Old 03-28-2007, 05:19 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
You are using old 2.4 kernel compiling commands. Here is info on the commands.
make mrproper - ( Only used if you wish to reset the kernel tree back to default clean base)
make dep and make clean - ( not used anymore. Part of 2.4 kernel building but was in the wrong order if that is way the sequence you did use.)
make menuconfig - ( A text based menu editor )
make xconfig - ( A gui based menu editor )
make gconfig - ( Another gui based menu editor )
make bzimage - ( Used in 2.4 kernels to build the kernel image )
make - ( Used in 2.6 kernels to build kernel image and modules )
make install - ( To install new kernel to /boot, setup lilo or grub boot manager, create initrd file in /boot, and copy system.map which is a map for modules the kernel knows about.)
make modules - ( Used in 2.4 kernels to build modules )
make modules_install ( Used to install built modules to /lib/modules/`uname -r` )

So the steps for 2.6 kernel
make xconfig
make
make modules_install
make install

For old 2.4 kernel building steps.
make xconfig
make dep
make clean
make
make modules
make modules_install
make install

Note when you get done with editing the kernel config file make sure you save it before exiting.

I see Fedora mention in your sig. If in Fedora then you can get a fairly close version of the config file from /boot.

Brian
 
Old 03-28-2007, 06:01 PM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
There's a how-to for Fedora here.

On a side note, the current FC6 kernel is based on the 2.6.20.3 kernel, so I'm not sure what you are trying to get. In any case, you want the Fedora kernel source, not "a Linux kernel from some site", or you will be backing out many fixes added to the Fedora kernel.
 
Old 03-29-2007, 04:16 AM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by Brian1

make install - ( To install new kernel to /boot, setup lilo or grub boot manager, create initrd file in /boot, and copy system.map which is a map for modules the kernel knows about.)
make modules - ( Used in 2.4 kernels to build modules )
make modules_install ( Used to install built modules to /lib/modules/`uname -r` )
Brian
I was not able to understand regarding the Syste.map file that was given in some tutorials on net I did not touched the System.map file


Quote:
Originally Posted by Brian1
Note when you get done with editing the kernel config file make sure you save it before exiting.
Brian
how to save and make back up
 
  


Reply

Tags
compiling, guide, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Newbie Guide To Compiling A Kernel! DrOzz Linux - General 318 08-20-2008 06:21 AM
Newbie compiling a kernel doctorwebbox Linux - Newbie 3 12-10-2004 02:03 PM
need help compiling - newbie digitalgravy Linux - Newbie 2 12-08-2003 07:36 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM
Newbie kernel compiling toolkit Linux - General 1 11-19-2002 03:36 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration