LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-07-2008, 04:38 PM   #1
oppofwar
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Rep: Reputation: 0
Exclamation 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.
 
Old 12-07-2008, 05:31 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Quote:
Originally Posted by oppofwar View Post
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.
 
Old 12-07-2008, 05:39 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
Old 12-07-2008, 05:51 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
But then, you knew this already:
http://www.linuxquestions.org/questi...-issue-679337/
 
Old 12-10-2008, 08:37 PM   #5
oppofwar
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Original Poster
Rep: Reputation: 0
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)
 
Old 12-11-2008, 05:09 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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.
 
Old 12-12-2008, 08:28 PM   #7
oppofwar
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Original Poster
Rep: Reputation: 0
So how and from where to get the source . Are you talking about rpm.src ??? Please help
 
Old 12-13-2008, 06:44 AM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
The RedHat source RPMs are here:
ftp://ftp.redhat.com/pub/redhat/linu...r/en/os/SRPMS/

As far as I'm aware, these instructions should still work:
http://www.redhatmagazine.com/2008/0...prise-linux-4/

Never tried it myself - I generally used the latest vanilla kernel if I'm going to bother building from source.

Dave
 
Old 12-14-2008, 08:46 AM   #9
oppofwar
LQ Newbie
 
Registered: Sep 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

Thanks you are a genius
 
  


Reply

Tags
kernel, recompile


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
Kernel 2.4.31 recompile problem teufelhund Linux - Newbie 6 01-12-2006 08:39 AM
Slackware 10.0 Recompile problem? nemhsIT Slackware 20 12-04-2004 01:59 PM
Recompile Kernel problem CryptDragoon Linux - Newbie 3 10-09-2003 04:13 PM
Kernal Recompile Problem lparag Red Hat 2 09-29-2003 06:30 PM
kernel recompile problem gwroy20 Linux - Software 3 09-05-2003 11:56 PM


All times are GMT -5. The time now is 02:49 PM.

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