Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Ok now...when I'm recompiling the kernel, is this what I do?


    cd to /usr/src/linux
    Type
    Code:
    make menuconfig
    Go through with the modules and stuff it has and select the ones i like...
    Then type
    Code:
    make dep && make clean bzImage modules modules_install
    Then I type
    Code:
    cp /usr/src/linx/arch/i386/boot/bzImage /boot
    Is that right?[/code]

  2. #2
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    Hi,

    The following steps worked fine for me when I recompiled a kernel:

    make config
    make dep;make clean;make zImage ( or make bzImage);make modules;
    make modules_install

    take a backup of the current System.map file in the /boot partition.
    then copy the System.map file and the vmlinuz- file to /boot

  3. #3
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    I'd use 'make xconfig' instead of 'make menuconfig' but that's just me. Please note that TCL/TK needs to be installed on the machine if you are using 'make xconfig'
    The best things in life are free.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    make config is just to awkward to be practical. Also, don't use make dep; make clean; make..., but use make dep && make clean && make... That way, if one step fails, it won't continue on with the next steps, and thus you will actually see that there was an error.
    Also, remember to reconfigure you boot loader.

  6. #5
    So what I do....does that work, or am i just an idiot?

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    You were about right from the start, and it will work, but I'd do this instead:
    Code:
    make menuconfig
    make dep && make clean && make bzImage && make modules && make modules_install
    cp arch/i386/boot/bzImage /boot/vmlinuz-new
    And then upgrade your LILO/GRUB config.

  8. #7
    That config file...it's in /boot right?

  9. #8
    Oh, and I use LILO(I know, Grub is better, but im stubborn in my ways lol)

  10. #9
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    LILO's config file is /etc/lilo.conf. You must rerun lilo after you edit either it or any file it refers to, in order to rebuild the boot sector. If you use GRUB, you don't have to do that, since GRUB has built in file system support.

  11. #10
    Ok so this is what I do:
    Recompile the kernel.
    Reboot
    Edit LILO
    Reboot


    And then it'll be good to go?

Posting Permissions

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