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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-02-2005, 02:00 AM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: PRChina
Posts: 3
Rep:
|
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.
|
|
|
01-02-2005, 02:06 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
I think you are looking for make cloneconfig
|
|
|
01-02-2005, 02:15 AM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: PRChina
Posts: 3
Original Poster
Rep:
|
use make cloneconfig can lead to a config same as the kernel running?where linux put its clone config file ?
Thanks.
|
|
|
01-02-2005, 02:24 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
"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.
|
|
|
01-02-2005, 02:28 AM
|
#5
|
LQ Newbie
Registered: Jan 2005
Location: PRChina
Posts: 3
Original Poster
Rep:
|
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?
|
|
|
01-02-2005, 04:25 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
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
|
|
|
01-02-2005, 09:11 AM
|
#7
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,618
|
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
|
|
|
All times are GMT -5. The time now is 03:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|