Find the answer to your Linux question:
Results 1 to 4 of 4
I have build the linux kernel from the setup I have installed ( Ubuntu) , now I want to test I mean I want to install this new kernel , ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6

    installing a built Kernel


    I have build the linux kernel from the setup I have installed ( Ubuntu) ,

    now I want to test I mean I want to install this new kernel , the new kernel I have made , so how should I do that.

    thanks

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    You just give it a good distinctive name, move it to /boot and point grub towards it.

    Easiest way is to copy your default grub option (the one you normally boot) and change the entry for kernel to your new kernel. Change the title too. That way, you'll have an extra grub option during boot that loads your new kernel. And if it doesn't boot (that happens ) you still have your default.

    Something like this example
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6
    Thanks Freston

    I wanna to ask that after editing the Kernel by command:

    $ make menuconfig

    I make the kernel and than gave the following command:

    # make modules_install

    and than the command

    # make install

    after that it immediately gave the bzimage of kernel .

    So I wana to ask that was that command was executed successfully and was the imag of kernel was produced.

    If yes than how should I get that image and how can I find out that the built kernel image is actually that one which I have built.

  4. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Heh, you caught me with your question about `make install`

    I know it should install the kernel in it's rightful place (/boot). But, it should not finish immediately. That does not seem right.

    After configuring, I do
    Code:
    make modules bzImage
    make modules_install
    Then you have your new (compressed) kernel in arch/x86/boot/bzImage

    This one you rename to something descriptive and put it in /boot

    Code:
    cp arch/x86/boot/bzImage /boot/name_of_new_kernel
    Can't tell an OS by it's GUI

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •