LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2005, 02:00 AM   #1
journaler
LQ Newbie
 
Registered: Jan 2005
Location: PRChina
Posts: 3

Rep: Reputation: 0
Angry how to cofig the kernel source just as the kernel running?


I am trying to compile a new kernel linux-2.4.22-1.5112.nptl for Redhat 8,
but when compling,there are some errors to tell me some undeclare symbols,and when I reconfig the kernel with make xconfig,there are still
errors to tell me other unclare ones.Can linux give me a default kernel config file which has the same configuration with the kernel running.
Thanks.
 
Old 01-02-2005, 02:06 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I think you are looking for make cloneconfig
 
Old 01-02-2005, 02:15 AM   #3
journaler
LQ Newbie
 
Registered: Jan 2005
Location: PRChina
Posts: 3

Original Poster
Rep: Reputation: 0
use make cloneconfig can lead to a config same as the kernel running?where linux put its clone config file ?
Thanks.
 
Old 01-02-2005, 02:24 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
"make cloneconfig" doesn't build a kernel, it creates the .config and the way I read your post, that is what you are looking for.
 
Old 01-02-2005, 02:28 AM   #5
journaler
LQ Newbie
 
Registered: Jan 2005
Location: PRChina
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks.I will try it.
make mrproper
make cloneconfig
make
make bzImage
make modules
make modules_install
make install
Is it right to build and install a new kernel?
 
Old 01-02-2005, 04:25 AM   #6
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Depending on how thorough you want to be, it would be

make clean
make mrproper
make cloneconfig
make bzImage
make modules
make modules_install
mkinitrd -k bzImage -i initrd
 
Old 01-02-2005, 09:11 AM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Moved: This thread is more suitable in Linux - Software and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy
 
  


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
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:24 PM.

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