compiling same kernel with 2 different bootable images

Posted on 2004-11-19
Last Modified: 2013-12-15
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?

Question by:b123coder
    LVL 40

    Accepted Solution

    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.
    LVL 38

    Assisted Solution


       What jlevie mentioned is
    EXTRAVERSION = version1 (or version2)

       After compilation, you will see the following 2 directories:


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Extended attributes? 2 38
    Installing Gluster and/or CEPHS 3 39
    What is ISQL? 6 84
    IBM MQ moving messages from error queue 4 44
    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now