LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-07-2005, 03:37 AM   #1
rbh123
LQ Newbie
 
Registered: May 2005
Distribution: Redhat
Posts: 25

Rep: Reputation: 15
Kernel Compilation clarification


I have the following questions wrt kernel compilation.

1. How to know whether a particular /usr/src/linux/*.c is built into the kernel or is compiled as a module?

2. If a code is built into the kernel then after I make changes to the .c file what are the compilation steps to be followed ?

3.If a code is built as module then after I make changes to the .c file what are the compilation steps to be followed ?

4.How do debug a kernel-code ie how to trace a .c file present in /usr/src/linux/ or to be more clear how to which function calls which function,what are the values of the variabels,what is the value returned ?
 
Old 10-07-2005, 04:23 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Re: Kernel Compilation clarification

Quote:
Originally posted by rbh123
I have the following questions wrt kernel compilation.

1. How to know whether a particular /usr/src/linux/*.c is built into the kernel or is compiled as a module?

2. If a code is built into the kernel then after I make changes to the .c file what are the compilation steps to be followed ?

3.If a code is built as module then after I make changes to the .c file what are the compilation steps to be followed ?

4.How do debug a kernel-code ie how to trace a .c file present in /usr/src/linux/ or to be more clear how to which function calls which function,what are the values of the variabels,what is the value returned ?
Hello,

1> i've experience with "make xconfig". When u run this a graphical screen/picture appears. By loading the ".config" file you can check what were built-in's and what were modules only.

2> if something was built-in or you are making some thing to be built in, you will have to compile the whole kernel.

3> if making something as modules only, then only compilation and installation of modules is required.
#make modules
#make modules_install
read this

4> i don't know.

Step by Step procedure of compiling whole kernel.

Newbie guide to compiling kernel--by DrOzz

regards
 
  


Reply



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 compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM
Kernel 2.6 for Woody? clarification rqrd Swampy Debian 2 12-02-2004 01:27 AM
kernel clarification props666999 Slackware 2 07-31-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 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
Open Source Consulting | Domain Registration