LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-06-2007, 12:40 AM   #16
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
Thumbs up Thanks !! all set now !


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 !!!!
 
Old 08-06-2007, 03:02 AM   #17
cdcshu
Member
 
Registered: Jul 2006
Location: Shanghai
Distribution: Fedora, OpenSUSE
Posts: 31

Rep: Reputation: 16
Smile Congratulations

So nice. I also have a similar experience on EL5, so to speak.

You are welcome,

cdcshu
 
Old 08-06-2007, 01:00 PM   #18
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
Red face

But you know, if i rebuild the kernel, it makes the modules, but then gives a lot of WARNINGS:

They are basically vmlinux: Section Mismatch errors...tried to google...lot of ppl say that there are patches available for that...

Do you want me to copy paste those section mismatch WARNINGS ?

Thanks
 
Old 08-06-2007, 03:46 PM   #19
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
I saw in one of the post "section mismatch" appears, if I do not do make mproper....

here is the link of that post:

http://www.linuxquestions.org/questi...ction+mismatch

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 ?
 
Old 08-07-2007, 12:20 AM   #20
cdcshu
Member
 
Registered: Jul 2006
Location: Shanghai
Distribution: Fedora, OpenSUSE
Posts: 31

Rep: Reputation: 16
Smile It's another story

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.

cdcshu
 
  


Reply

Tags
build, kernel, module


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 panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 05:06 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
building a kernel mindcry Linux - Software 2 05-11-2004 12:06 PM
Building kernel mods for an existing kernel ugenn Linux - Software 2 10-06-2003 01:25 PM


All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration