Linux - SoftwareThis 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
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.
From the root of the directory where you opened the source do the following:
First configure the options with either:
make menuconfig (for text base)
or
make xconfig (for work with X)
Then run, make dep (as the system will prompt you to do). Make your kernel by running either "make install) (the default), or make bzImage (wich will most likely have to be done to make the kernel small enough to load on the drive.
Run "make modules" to compile the modules you might have configured, and make "modules_install" to install the modules in the right place.
I'm going a little further than your question by telling you that you have to run /sbin/lilo to install the new compiled kernel. Lilo will look for the position of your preferences and the location of your kernel in the /etc/lilo.conf file.
Be sure to keep a copy of your old kernel. There are often things that might have to be fine tuned to get the new kernel up to par. For convenience of knowing where things are, I'd put the package in /usr/src/[version number] (ie. 2.4.0.test11). Then do a symbolic link to that
for /usr/src/linux. This way it's easy to resort back to a former version just change the link back to the other version and my libraries and includes for the operating version will always be in the same place. Hope I gave you enough without bombarding you with things you didn't need.
Heres what I would do:
extract the kernel source into /usr/src/linux-2.4.0test10
to a make menuconfig in that directory, once you have configure it do a make dep, make bzImage, make modules, make modules_install. Copy bzImage from /usr/src/linux-2.4.-test10/arch/i386/boot/ to /boot/ and rename it vmlinuz-2.4.0test10
Open lilo.conf in /etc and add:
image=vmlinuz-2.4.0test10
append=what ever paramters are appended on other kernels
root=same as other kernel
label=linuxTest
read-only
save the file and run lilo. reboot, type linuxTest at the prompt and it will load the new kernel. Beware..the lilo stuff shouldn't be done if you aren't using lilo as a boot loader.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.