1832994 Members
2603 Online
110048 Solutions
New Discussion

Re: kernel location

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

kernel location

After I run make dep, bzimage, modules...
What file does it cerate?
And where do I move it in order for the lilo boot loader to execute it?
UNIX IS GOOD
4 REPLIES 4
Nobody's Hero
Valued Contributor

Re: kernel location

Running RH9.
UNIX IS GOOD
Stuart Browne
Honored Contributor
Solution

Re: kernel location

If you're making a custom kernel, the last few steps you need are:

make modules_install

to install the modules from their various homes. You also need to copy the 'arch/i386/bzImage' file to '/boot/vmlinuz' (or some variant) and make grub/lilo entries.

If you are using lilo, you should be able to 'make bzlilo'.
One long-haired git at your service...
Matti_Kurkela
Honored Contributor

Re: kernel location

*Never* overwrite your /boot/vmlinuz if that is your current, known-good kernel or a symlink to it!

Instead, copy your arch/i386/boot/bzImage to /boot/vmlinuz- and configure your boot loader to have a new option for your new kernel. That way, you won't be stuck with a non-bootable machine if something went wrong with the kernel settings.

(That problem is usually easy enough to fix with a "rescue" boot from RH9 CD-ROM, but it's easy to avoid the risk altogether.)

After you've successfully booted the new kernel and found out that all the necessary drivers are working, you can remove the old kernel.

If you're using LILO, the configuration file for it is /etc/lilo.conf. Remember that you must *always* run the "lilo" command after makin changes to the lilo.conf file or moved the kernel files, otherwise your changes won't take effect.

If you're using GRUB (as I recall RH9 did by default), the configuration file is /boot/grub/grub.conf (RedHat style) or /boot/grub/menu.lst (GRUB default style).
With GRUB, you don't need to do anything special after changing the configuration file.
MK
Gopi Sekar
Honored Contributor

Re: kernel location


as stuart pointed out you have to run make modules_install first. It will install the compiled modules to /lib/modules/ directory.

The compiled kernel would be located under /usr/src//arch/i386/boot

copy the vmlinuz file to /boot directory and make sure it is having unique name so that it does not overwrite any existing files there.

Then add grub or lilo entries to point to this new kernel and reboot the system and you should be able to see the new entry and boot with that.

Regards,
Gopi
Never Never Never Giveup