Linux - KernelThis 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.
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.
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
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.