Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Thanks buddy !!! everything went right !! I changed following options from the steps of your post !
1) I did not change SPECS file(kernel-2.6.spec) as it was giving me errors, if I added those line no. 8, 49,50 and 51. I tried two combinations, but without much success....Although, it did install the source into the BUILD directory, but i guess, due to error, I might have missed some headers or files. So, I deleted files from /BUILD, /SOURCES, /SPECS and started again.
2) As I started again and and did not change the file in SPECS(kernel-2.6.spec). I used rpmbuild -bb kernel-2.6.spec instead of rpmbuild -ba --target=`uname -m` ./kernel-2.6.spec
3) Then I followed the same instructions as you gave !! And all set !
Thanks !!!!! It was really useful. Now, I know how to compile a kernel ....btw..to understand the commands and internal details, I referred README doc and LINUX Kernel in a Nutshell. Short and quite useful. It is for kernels 2.6.18 and above !!!!
The post does not contain this answer, rather it specifies the steps to avoid version mismatch warnings. Of all those steps given, I was missing only one step "make mproper". So, i thought....
make mrproper erases .config file !!!! hmmm...interesting !!! Why does it need to erase .config file ?
Seems still one more step to final success. Modules compiling is another topic, to be frank.
Could you pls let me know the step after compiling the kernel? Did you reboot your computer after "make install"? It would be helful to post the process if you want to post the compiling error here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.