LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Kernel (https://www.linuxquestions.org/questions/linux-software-2/installing-kernel-306/)

tony 11-25-2000 06:47 PM

How do I install the latest test10 kernel, I don't mind if it's the source code or the binary. I just want to update it. Any info will help.

Larry James 11-26-2000 11:06 AM

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.

-- L. James

jtshaw 12-13-2000 01:08 PM

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.


All times are GMT -5. The time now is 12:56 AM.