LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


View Poll Results: How many times did you compile your kernel?
Never, I always use the distro's initial kernel 31 16.76%
1-20 65 35.14%
20-100 47 25.41%
I don't remember how many times! 42 22.70%
Voters: 185. You may not vote on this poll

Reply
  Search this Thread
Old 04-21-2006, 08:48 PM   #31
Agasfer
LQ Newbie
 
Registered: Apr 2006
Posts: 20

Rep: Reputation: 0

Guys, I did it many times, and now I have to work with MV embedded kernel distribution, trying to modify it slightly. The problem is that it takes ages (more than 30 minutes on a high end Solaris system) to complete make even if I just change one .c or .S file.

What's the deal - is this expected or am I missing something?
 
Old 04-22-2006, 04:19 PM   #32
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally Posted by Agasfer
Guys, I did it many times, and now I have to work with MV embedded kernel distribution, trying to modify it slightly. The problem is that it takes ages (more than 30 minutes on a high end Solaris system) to complete make even if I just change one .c or .S file.

What's the deal - is this expected or am I missing something?
LOL! I have the advantage of only doing it for fun! I have used several 'nix os's at work like aix, solaris and os2 (is os2 nix-like?) even older stuff like rmx and forth but luckily not intensely enough to bore me (yet!!).
 
Old 04-22-2006, 07:22 PM   #33
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
2damncommon: if you upgrade your kernel with a precompiled kernel with RPM or APT, it's still a distro kernel, although it takes "initial" out of "I always use the distro's initial kernel". The first option applies.

If you make your own home compiled kernel, the three other options apply.

*edit*:
Agasfer: if it's just a quick modification, a module or tiny feature for testing, consider not executing "make clean". That clears all the .o files when you do. If you skip "make clean" too often, however, you might end up with a broken kernel eventually. In that case, consider "make clean", or when you are releasing a final kernel for many box or devices.

Last edited by mimithebrain; 04-22-2006 at 07:26 PM.
 
Old 04-23-2006, 01:42 AM   #34
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
Back in the 50's and early 60's the kids would get an old car, strip it down and beef up the engine, and tinker with it to get every ounce of speed they could, build what they called a "hot-rod". Now maybe they get an old computer, strip it down (format HD - HOORAY! FREEDOM!), drop a new engine in there (Linux), tinker and get another hot-rod. :-D
 
Old 04-23-2006, 02:16 AM   #35
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
Whoops - "Hal requires a 2.6 kernel to work. Not started"

Looks like I'm "pregnant" again.
 
Old 04-23-2006, 01:21 PM   #36
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
I compile countless times a week just to watch the process take place over Lara Crofts boobs in my transparent aterm.

And when customers are in my shop working with me, I like to pipe the compile output to an external Digtal DEC Terminal. It is cause for conversation which in turn makes them stay longer which in turn racks up the hours I bill them for.

Just kidding around though...

Great poll and thread!

In all honestly, I re-compile weekly.

Have a good one,
Scott
 
Old 04-23-2006, 11:50 PM   #37
sonshineman
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
Compiling Kernels

Ok don't laugh at me here but as a new comer to Linux I have a question, and please don't tell me that I am in the wrong thread.
As you guys talk about compiling kernels and all that, Can some one explaine what are Kernels and how do you compile them?
 
Old 04-24-2006, 02:43 AM   #38
svennerstal
LQ Newbie
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware 'cuz I'm a slacker
Posts: 3

Rep: Reputation: 0
Being a new linux user, I installed my first kernel yesterday(2.6.16.8). It took about 10 compilations, but now it works. Except I can streamline some stuff still, so I think I'll hit 15 compilations before the day is over
 
Old 04-24-2006, 10:36 AM   #39
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
The kernel is the computer core. It has the drivers to make the computer function properly. The keyboard, the mouse, the screen, the buttons, ACPI, audio, wireless, CD/DVD, Harddrive, DMA... blablabla...

A module is a removable piece of kernel code that can be inserted and removed at will from the kernel. Compilling modules is better than compilling directly into the kernel sometimes, making a smaller kernel, and giving you the option to load the piece of code only when nessessary, making a faster boot time. (see initng for cool boot time speed up)

Now, to compile a kernel:
if it's a 2.4 to 2.6 kernel migration, online howtos a better suited to that.
if it's a 2.6 to 2.6 kernel upgrade, you can use the old config as a guideline or base config.

extract the kernel into /usr/src and symlink the directory to /usr/src/linux using the command "mc" (midnight commander) or ln (man ln)

(change directory) cd /usr/src/linux
(optional) cp /path/to/config .config
(for new config) make defconfig

(to edit config)
(console) make menuconfig
OR
(GUI) make xconfig

(makes bzImage and modules) make
(install modules) make modules_install

(installs kernel image) cp arch/i386/boot/bzImage /boot/kernel-2.6.[version]
(installs map) cp System.map /boot/System.map-2.6.[version]

edit lilo or just boot up if grub or done with lilo.

(to clean kernel) make clean
(to really clean kernel and remove configs) make mrproper
 
Old 04-24-2006, 05:03 PM   #40
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
Many many many devices drivers and support options not needed

The 2.6 menuconfig has a new look but I found out I left so many drivers and support modules in the old config (combination of thinking 'better to have and not need than need and not have' and 'enough already, I'm tired, let's see some action!') I spent about 3 hours total going through and stripping what I (think) I don't need. Lots of trust in my 'lshw' and 'lspci' listings.

Noticed that ALSA support was an option in the 2.6.8 config, not sure if it was there in 2.4.27. Anyway, it's compiling now <* fingers crossed *>.
 
Old 04-24-2006, 06:46 PM   #41
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by sixerjman
I spent about 3 hours total going through and stripping what I (think) I don't need. Lots of trust in my 'lshw' and 'lspci' listings.

Noticed that ALSA support was an option in the 2.6.8 config, not sure if it was there in 2.4.27. Anyway, it's compiling now <* fingers crossed *>.
I know how you feel. Everytime I compile I always get a nervous feeling like I hope I didn't forget something.
 
Old 04-24-2006, 06:59 PM   #42
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
When compilling a kernel in a tty or term, I switch to another tty/term, cat and grep the .config file to make sure I didn't forget anything

If I do, I make clean, make menuconfig, and start make again
 
Old 04-24-2006, 07:04 PM   #43
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by mimithebrain
When compilling a kernel in a tty or term, I switch to another tty/term
What is "tty"? I'm assumging term stands for terminal. I googled it, and this is what I found, but I don't really get what it means. Can anyone explain?

tty from O'Reilly
 
Old 04-24-2006, 07:12 PM   #44
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
151 "tty" foldoc "The Free On-line Dictionary of Computing (27 SEP 03)"
tty

<hardware> /tit'ee/ ({ITS} pronunciation, but some {Unix}
people say it this way as well; this pronunciation is not
considered to have sexual undertones), /T T Y/

1. {teletypewriter}.

2. (Especially {Unix}) Any terminal at all; sometimes used to
refer to the particular terminal controlling a given job (it
is also the name of a Unix command which outputs the name of
the current controlling terminal).

3. ({Unix}) Any {serial port}, whether or not the device
connected to it is a terminal; so called because under Unix
such devices have names of the form tty*. Ambiguity between
senses 2 and 3 is common but seldom bothersome.

4. A {TDD}.

[{Jargon File}]

(1995-11-23)

CTRL+ALT+Fn where n is 1 < n < 6 is a tty and 7 is usually your X/Xorg session.
 
Old 04-24-2006, 09:55 PM   #45
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
I will now betray my age by mentioning that the genesis of the term 'TTY' came from the
old Western Union TeleTYpe line printers, which were originally connected to mainframes via telecommunication lines at speeds from about 50-110bps and spit out hardcopy listings on green bar fanfold paper. *I'm getting choked up just thinking about it.*

"Any sufficiently complex technology is indistinguishable from magic."
 
  


Reply

Tags
build, compilation, kernel, poll, reference



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 trying to update Kernel to 2.6 several times LearningToLive Slackware 10 01-19-2006 08:57 AM
System hangs; Atheros Madwifi-ping times out every 15/16 times james 456 Linux - Networking 0 01-12-2006 06:55 PM
I've compiled my 2.6.12.3 kernel 3 times!!! CPUFreak91 Linux - General 11 08-04-2005 03:33 PM
New kernel = font problem at times! Slovak Slackware 2 12-20-2004 03:55 PM
kernel compile times danchan Linux - General 2 04-11-2004 06:33 PM

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

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