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 reading about recompiling quite a lot. I'm running 2.4.22-1-386 on my old PI Sid box (which you all have seen me fighting with ) and I'm wondering what use it would have to recompile it (or on any system) This old box is mainly for learning and finding out solutions for problems where I will run in when migrating to my main box. I like to learn it, but learning something with no use is pointless I guess. Is it something you have to do?
And if so, does anyone have the link to the step-by-step recomiling thread I read a few days ago? I can't find it anymore using search (it wasn't debian specific I think, does that matter?)
recompiling the kernel has it's uses, like removing everything you don't need. (I don't use firewire -> no support for firewire in my kernel). It gets smaller that way and loads faster. Also, I don't use modules, so when I compile linux I can have it exactly the way I want it to be.
You generally only need to recompile the kernel for specific reasons. If you don't know if you need to do it, then you probably don't.
The kernel needs recompiling to enable extra features into it. As an example, the reasons I have recompiled mine are:
To add USB support
To use DRI, which is basically hardware support for 3D cards
To add support for a dial-up modem
To optimise it for my CPU (Athlon)
To get automounting on CDROM and floppy drives
To upgrade to a new kernel version
Having said that, you will probably run into some reason to recompile it sooner or later, but until then, there's no real point.
It doesn't matter which distro you are using, recompiling the kernel is pretty much the same wherever you are.
There should be a step by step guide to installing the kernel in the INSTALL, or README file in the kernel source directory.
It's fairly straightforward - the tricky bit is choosing which options you need to make it work. ALWAYS back up your original kernel, or even better, don't write over the old one.
Once you've compiled a kernel, there will be file named arch/i386/boot/bzImage, which you copy to /boot/vmlinuz (normally). I recommend that you copy it to a different name, such as /boot/vmlinuz.dri (for example if you were compiling a new kernel with dri support) and add a new entry to /etc/lilo.conf (you can copy the old entry, and change the label and the path to vmlinuz). Then run lilo and reboot. Then if it all goes wrong, you can simply pick the old kernel and start again.
Hope that helps
Guy
Thanx, the extra label is a very good pointer. I'm trying to get as much out as I can so having one that will work is probabl needed!
So will can it vmlinuz.lite and have an extra lilo option created.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.