| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-07-2008, 04:38 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2008
Posts: 15
Rep:
|
Linux Recompile problem
I want to recompile my kernel and want to add ntfs partition (i know how to do it but having some problem)
when i run "make clean" command i get error
here is my total output
/*
[root@localhost 2.6.18-53.el5-xen-i686]# make clean
scripts/Makefile.clean:17: /usr/src/kernels/2.6.18-53.el5-xen-i686/drivers/infiniband/hw/amso1100/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/src/kernels/2.6.18-53.el5-xen-i686/drivers/infiniband/hw/amso1100/Makefile'. Stop.
make[2]: *** [drivers/infiniband/hw/amso1100] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2
[root@localhost 2.6.18-53.el5-xen-i686]# pwd
/usr/src/kernels/2.6.18-53.el5-xen-i686
*/
After that
then i run make menuconfig command and save .config file
then when i run make command
i get this error
[root@localhost 2.6.18-53.el5-xen-i686]# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
Please dont make wild guess and really help me .
Last edited by oppofwar; 12-07-2008 at 05:08 PM.
|
|
|
|
12-07-2008, 05:31 PM
|
#2
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,160
Rep: 
|
Quote:
Originally Posted by oppofwar
Please dont make wild guess and really help me .
|
This may not be the worst way to appeal for help, but I'm sure it's near the top.
We need more information. At this point, it's not even clear that you have a good copy of the kernel source. Where did you get it? What distro are you running? Have you ever compiled a kernel before? Are you using some kernel compile checklist tailored for your distro or are you just typing make and hoping for the best? At this point, all we can say is that make doesn't seem to like whatever makefile it finds.
|
|
|
|
12-07-2008, 05:39 PM
|
#3
|
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Just a wild guess - don't know if it'll really help you, but...
You don't have the kernel sources installed. Download the kernel src.rpm, install it and try again.
http://www.redhatmagazine.com/2008/0...prise-linux-4/
Dave
|
|
|
|
12-07-2008, 05:51 PM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
|
|
|
|
12-10-2008, 08:37 PM
|
#5
|
|
LQ Newbie
Registered: Sep 2008
Posts: 15
Original Poster
Rep:
|
already have the source
I am already in the source directory that means i have the source
/usr/src/kernel/kernelversion/src files
(We dont need src rpm always to build the kernel)
|
|
|
|
12-11-2008, 05:09 AM
|
#6
|
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
You don't have the sources. You have the kernel-devel package. This is enough to build out-of-tree modules (like the nVidia graphics module), but it's not enough to rebuild a kernel, which is what you're trying to do.
Dave
Last edited by ilikejam; 12-11-2008 at 05:19 AM.
|
|
|
|
12-12-2008, 08:28 PM
|
#7
|
|
LQ Newbie
Registered: Sep 2008
Posts: 15
Original Poster
Rep:
|
So how and from where to get the source . Are you talking about rpm.src ??? Please help
|
|
|
|
12-14-2008, 08:46 AM
|
#9
|
|
LQ Newbie
Registered: Sep 2008
Posts: 15
Original Poster
Rep:
|
Thanks
Thanks you are a genius
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:59 AM.
|
|
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
|
|