DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm gonna try my hand at building my first kernel. I'm running sarge with kernel ver.: 2.4.27-3-386
I'd like to build up to 2.6.19.1 (latest stable build on kernel.org)
I'm using the instructions in Carla Schroeder's Linux Cookbook from O'Reilly. I've downloaded from the kernel.org 2.6.19.1 link and get the following download:
patch-2.6.19.1.bz2
This is confusing me. Is this the kernel source or a set of patches? Forgive me if I'm not thinking about this correctly- I'm new.
Also, she advises me to use menuconfig but apt doesn't find it. Which repository can I find this in? My sources.list is appended to the end of this post.
Making your first kernel build is a big step. Changing from kernel 2.4.x to 2.6.x is a very big step. You would do well to practice by building a new copy of your current version. The steps here include making a backup of your current kernel image, initrd, system map, and other boot files. Then you put your new build into the boot directory. Then you edit your lilo.conf or your /boot/grub/menu.lst file to add a boot menu entry to boot your backup kernel or your newly built kernel. Since your new kernel is the same version as your old kernel then it will probably work as well as the original kernel image worked, unless you made a lot of changes to your kernel configuration using make menuconfig.
So, practice on a safe kernel build before you try to install the 2.6 kernel.
-----
Generic instructions from a book are not as accurate as using distro specific documentation. The Linux Cookbook may or may not have the correct instructions for your distro.
-----
If you want to upgrade the kernel you would be well advised to use the latest kernel from your distro specific repositories before you try to install a generic kernel from kernel.org.
-----
I just checked kenel.org. I can see what you mean about the patch file. If you just click on the link that says that it is the latest kernel source kit you will just get that patch file, as you noted. However, if you go to the top of the same page and click on the HTTP link it will take you to a kernel.org repository. There you will see the real kernel kits.
menuconfig is a parameter to pass to the make utility; it is not a utility in and of itself. You invoke menconfig as follows:
Code:
cd /usr/src/linux<kernel.version>
make menuconfig
You can also use xconfig or gconfig instead of menuconfig. I prefer menuconfig but other people are loyal to xconfig. Naturally you have to be running X to successfully use the xconfig parameter to the make utility.
-----
I hope that I've been helpful.
Last edited by stress_junkie; 12-28-2006 at 08:53 PM.
Create some directory for the file and move it there; perhaps into /usr/src which should already exist.
Go to that directory.
unzip it using: bunzip2 linux-2.6.19.1.tar.bz2
untar it using: tar xvf linux-2.6.19.1.tar
Excellent. I am very grateful to both of you for your time, thoughtfulness and good advice. I'll start slowly (baby steps) as you suggest and rebuild the same kernel version. Have a good evening.
One last thing... I'm going to work with the debian patched kernel instead of a vanilla kernel for now. How do I find the latest kernel in the debian repositories? Hmm... just looked at the apt-get man page for a way to list all available kernels but didn't find an option.
Careful quakeboy. You're beginning to sound like Emerson in the thread, "Getting kernel source" (12/25). I believe you were finger-wagging him a bit for his condescending tone.
-ab
ps- thanks stress junkie for the post and helpful tip. :-)
Are you always like this? Is there an ignore button in this forum? You asked for help. You got suggestions. You then went on to criticise the people trying to help you.
Your help is sincerely appreciated and I really don't mind the newbie nudge. I just couldn't resist pointing out the irony in the situation. Especially after your little flame war with Emerson. Remember?
You were quite adamant about drawing attention to what you considered to be his condescending tone?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.