Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

compiling same kernel with 2 different bootable images

I am doing kernel programming by making changes to kernel. what my problem is that how can i keep same linux kernel 2.4.24 with 2 copies. one is working on Fedora core 1 and another  is modified version. what problem i face is that if i compile either one its /lib/modules/2.4.24 will get overwritten and each time i have to compile the kernel which i want to work on? is there any way to solve this issue?

2 Solutions
That's actually not too difficult. You need to adjust the kernel Makefile to append something unique to the kernel ID for one of your builds. That will result in the kernel image having a name like vmlinuz-2.4.24-something and the corresponding /lib/modules dir. You'll also need to create an initrd image for that kernel and add a stanza to the boot loader config so you can boot either.

   What jlevie mentioned is
EXTRAVERSION = version1 (or version2)

   After compilation, you will see the following 2 directories:


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now