Find the answer to your Linux question:
Results 1 to 10 of 10
Hi ! what is there to do to install a new kernel after unpacking the sources and making menuconfig? is there an easier way on gentoo-linux? (perhaps with "emerge" or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie robak's Avatar
    Join Date
    Jan 2004
    Posts
    136

    Installing kernel


    Hi !

    what is there to do to install a new kernel after unpacking the sources and making menuconfig?

    is there an easier way on gentoo-linux?
    (perhaps with "emerge" or something)

    thx in adavance
    make install not love

    Registered Linux user number 369245

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    There probably is an easier way that each distros can compile the kernel. I know Debian at least has one.

    Well, after running make menuconfig, you probably want to run either 'make install' or 'make bzImage'. The prior should take care of moving the compressed kernel to the /boot, edit boot configuration files to add the new kernel and etc. The latter will not.

    After you've done that, you want to compile and install modules. To do that, run 'make modules' and then 'make modules_install'.
    The best things in life are free.

  3. #3
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    After make menuconfig i always use
    Code:
    make bzImage
    and copy the compressed kernel image to boot like so
    Code:
    cp arch/i386/boot/bzImage /boot/bzImage
    And i normally call it bzImage-version where version is the kernels version. Then just edit you boot loader and reboot. Also keep your orignal kernel always then you know if something has gone wrong you have a stable kernel to boot with.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie robak's Avatar
    Join Date
    Jan 2004
    Posts
    136
    thanks guys for your posts
    make install not love

    Registered Linux user number 369245

  6. #5
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    gentoo has a utility called genkernel that will configure and compile a kernel for you.. if you run genkernel --config it will make menuconfig and then compile the kernel and modules. after it does that it makes an initrd for you, also. some people don't like genkernel, but i've not had any problems with it (yet).
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  7. #6
    Linux Newbie robak's Avatar
    Join Date
    Jan 2004
    Posts
    136
    cool

    how and where do i have to start genkernel?

    in the kernel home-dir?

    Code:
    cd /mnt/RAM/kernel-2.6.2
    genkernel --config
    right??
    make install not love

    Registered Linux user number 369245

  8. #7
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    you can run genkernel anywhere... you just have to run it with root privileges.. the only thing you have to be sure of is that the /usr/src/linux symlink points to the version of the kernel that you want to compile.
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  9. #8
    Linux Newbie robak's Avatar
    Join Date
    Jan 2004
    Posts
    136
    i found a good way to install a kernel under gentoo with genkernel.
    you can run it from anywhere and with any kernel without making a symlink

    Code:
    genkernel --kerneldir=kerneldirectory --install --all
    genkernel configures the kernel with all drivers you need automatically, but if you what your own config just add --menuconfig before --install

    make install not love

    Registered Linux user number 369245

  10. #9
    Just Joined!
    Join Date
    Mar 2004
    Posts
    6

    only make install worked

    I used make bzImage then I copy it to /boot as vmlinuz-verion.img and change path in Grup, but it does not boot untill I use make install (I noticed that the path in Grup is the same)
    Anybody know why it happend? [/i]

  11. #10
    Just Joined!
    Join Date
    May 2004
    Location
    Irapuato,Gto, Mexico
    Posts
    7

    Kernel Compile... D'huh

    Hi there is a precompiled kernel in gentoo linux so i don't have to compile it (or create its image), honestly i tried it about 6 moth ago and I give up, But I want to go out this FC1 box

Posting Permissions

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