LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2005, 11:53 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
Compiling your Kernel


It's one small step for man but a giant leap for myself

I finally got into recompiling my kernel, and surprise surprise I ran into 2 questions.


Q1:
I was making a configuration with "make menuconfig" and I could save my configuration to disc. But when you start compiling your kernel how does

"make dep && make clean bzImage modules modules_install"

know what configuration to use? Suppose I have saved a few configurations in that directory ... what then.



Q2:
Can anybody explain the syntax of the command

"make dep && make clean bzImage modules modules_install"

a. before compiling there was some output "making dep not needed" or something like that
b. what's the &&
c. what is make clean?
d. I suppose bzImage is the image to write to
e. modules?
f. modules_install


Many thanks
Wannes Smet
 
Old 04-26-2005, 12:37 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Q1: The .config file in the base linux kernel source directory is the "active" configuration file and what it uses to define what to compile and how to compile it.

Q2: The && means AND. If you do any two commands in Linux with && in between them it will only do the 2nd one if the first one exits cleanly (much like most programming languages... if the first argument is false it knows not to bother doing the rest of the AND because it knows the answer is false). In reality, you don't need to do a make dep, make bzImage, or make modules anymore with 2.6.x kernels. The new way of doing it is simply "make && make modules_install". The first part builds everything (dependencies, modules, and images). The 2nd part installs the modules in /lib/modules/<kernel-version>. Again, because of the && the make modules_install part won't be run if the first make command exits with an error. make clean destroys all object files left over from the last compile.. sometimes it is necessary to do this if you change certain configuration options and recompile a kernel, otherwise it is just going to make it take longer to compile.
 
Old 04-26-2005, 12:51 PM   #3
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by jtshaw
Q1: The .config file in the base linux kernel source directory is the "active" configuration file and what it uses to define what to compile and how to compile it.
So when you finally say ok save my config, you should leave the name .config? or not?



The reason I was compiling myself a kernel is that I want to be able to use the cpufreq module, but is there a program that can make use of this module, like Klaptop.

wannes
 
Old 04-26-2005, 01:06 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Yes, save your config file as .config. If you have the "userspace" mode set on cpufreq then you can use any number of programs to control it. I used cpufreqd to automatically handle mine.
 
Old 04-27-2005, 04:14 PM   #5
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
damn celeron D

Well I just noticed that a Celeron D is not supported by cpufreq.

Is there any other way to control the speed of the cpu, I really don' t like the fan WHOOOOOOO-ing all the time...


Wannes
 
  


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Help! Everything seems to be compiling into kernel! KuRe Slackware 18 12-17-2003 08:04 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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