Skip to contentSkip to conversation

2.6.0 kernel compile overview

DISCUSSION James Miller 4 participants 5 messages Jan 5, 2004

lore
Share & tools
lore
#0 lore raw

A precocious 16 year old "Linux guru" friend (I taught him the basics about a year ago, now he knows about 3x more than I do) recently set up a new laptop for me with Gentoo and the 2.6.x kernel. Despite the obvious genius displayed in this endeavor, he forgot (as adolescents are prone to do) to implement some fairly basic features in the kernel: namely the system speaker and wireless networking. This leaves me the task of getting those things operational myself, which means recompiling the kernel. I've not done much kernel compiling - once or twice, if memory serves - and all documentation I have refers to 2.4.x kernels and earlier. I just did a quick 'net search and couldn't find anything specific on 2.6.x kernel compiling. At the same time, I have understood from the friend that 2.6.x kernel compiling differs somewhat. So, can anyone direct me to any sources on 2.6.x kernel compiling? I have an overall grasp of the earlier kernel compiling process, so I'm mainly interested in how compiling the newer kernel differs. I generated a .config file for the current kernel using instructions provided by the friend in question, and of course have the kernel source on the system. So, pointers to any overviewish documentation specific to 2.6.x kernel compiling would be appreciated, as would general remarks on how compiling differs with the 2.6.x kernel from compiling earlier kernels.

Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw

In case anyone should get any ideas about going to the "source" for the sort of information I hope to find: I've just been to www.kernel.org/pub/linux/kernel/v2.6 and there is, indeed, a README-2.6 file there. If one would expect to find the sort of information I need, one would think that, of all places, it should be here. Unfortunately, it is a zero byte file. It doesn't contain any text. All focus on development here, it seems clear, with explication only following as an afterthought.

James

PS Nothing on the system under /usr/src/linux or /usr/src/linux/Documentation seems very relevant, either.

Quoted 21 lines · James Miller

A precocious 16 year old "Linux guru" friend (I taught him the basics about a year ago, now he knows about 3x more than I do) recently set up a new laptop for me with Gentoo and the 2.6.x kernel. Despite the obvious genius displayed in this endeavor, he forgot (as adolescents are prone to do) to implement some fairly basic features in the kernel: namely the system speaker and wireless networking. This leaves me the task of getting those things operational myself, which means recompiling the kernel. I've not done much kernel compiling - once or twice, if memory serves - and all documentation I have refers to 2.4.x kernels and earlier. I just did a quick 'net search and couldn't find anything specific on 2.6.x kernel compiling. At the same time, I have understood from the friend that 2.6.x kernel compiling differs somewhat. So, can anyone direct me to any sources on 2.6.x kernel compiling? I have an overall grasp of the earlier kernel compiling process, so I'm mainly interested in how compiling the newer kernel differs. I generated a .config file for the current kernel using instructions provided by the friend in question, and of course have the kernel source on the system. So, pointers to any overviewish documentation specific to 2.6.x kernel compiling would be appreciated, as would general remarks on how compiling differs with the 2.6.x kernel from compiling earlier kernels.

Quoted 6 lines

Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to James Miller
Quoted 20 lines · James Miller

A precocious 16 year old "Linux guru" friend (I taught him the basics
about a year ago, now he knows about 3x more than I do) recently set up a
new laptop for me with Gentoo and the 2.6.x kernel. Despite the obvious
genius displayed in this endeavor, he forgot (as adolescents are prone to
do) to implement some fairly basic features in the kernel: namely the
system speaker and wireless networking. This leaves me the task of
getting those things operational myself, which means recompiling the
kernel. I've not done much kernel compiling - once or twice, if memory
serves - and all documentation I have refers to 2.4.x kernels and earlier. I just did a quick 'net search and couldn't find anything specific on 2.6.x kernel compiling. At the same time, I have understood from the
friend that 2.6.x kernel compiling differs somewhat. So, can anyone
direct me to any sources on 2.6.x kernel compiling? I have an overall
grasp of the earlier kernel compiling process, so I'm mainly interested in
how compiling the newer kernel differs. I generated a .config file for
the current kernel using instructions provided by the friend in question,
and of course have the kernel source on the system. So, pointers to any
overviewish documentation specific to 2.6.x kernel compiling would be
appreciated, as would general remarks on how compiling differs with the
2.6.x kernel from compiling earlier kernels.

Quoted 9 lines

Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

There isn't much of a difference actually, the only major difference (to us end users ;)
is that the compilation looks cleaner.
also, now there are fewer steps to follow (thank god)
1. make mrproper
2. make menuconfig
here you can load the config file created and add the rest of the
necessary options.
3. make
this takes care of even generating the bzImage (hooray!)
4. make modules
5. make modules_install (which I had forgotten and asked on this list today)
so all you have to do is copy the image to your /boot, run lilo (after editing lilo.conf, obviously) and you are done!

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

On Mon, Jan 05, 2004 at 10:51:23PM +0530, joy hunted and pecked out:

Quoted 2 lines

James Miller wrote:

[James Miller's request for info on compiling a 2.6.x kernel snipped.]

Quoted 17 lines
Quoted 2 lines

There isn't much of a difference actually, the only major difference (to us end users ;)
is that the compilation looks cleaner.
also, now there are fewer steps to follow (thank god)
1. make mrproper
2. make menuconfig
here you can load the config file created and add the rest of the
necessary options.
3. make
this takes care of even generating the bzImage (hooray!)
4. make modules
5. make modules_install (which I had forgotten and asked on this list today) so all you have to do is copy the image to your /boot, run lilo (after editing lilo.conf, obviously) and you are done!

I can't find the reference right now, but I think step 3 should actually be 'make install' if you want to get a compressed kernel image and System.map file moved to either / or /boot (if you have edited the Makefile to install to /boot). If I am wrong, someone please correct me.

Cheers,
Sean

Quoted 6 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Signature · 7 lines
Theo. Sean Schulze
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#4 lore raw
In reply to James Miller
Quoted 5 lines · James Miller

to 2.4.x kernels and earlier. I just did a quick 'net search and couldn't find anything specific on
2.6.x kernel compiling. At the same time, I have understood from the friend that 2.6.x kernel compiling differs somewhat. So, can anyone direct me to any sources on 2.6.x kernel compiling? I have an overall

This is a good site for this info:

http://www.digitalhermit.com/~kwan/kernel.html

HTH

Regards

James Turnbull
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs