Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2003
    Posts
    123

    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. #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.

  5. #5
    Linux Newbie
    Join Date
    May 2003
    Posts
    123
    So what I do....does that work, or am i just an idiot?

  6. #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.

  7. #7
    Linux Newbie
    Join Date
    May 2003
    Posts
    123
    That config file...it's in /boot right?

  8. #8
    Linux Newbie
    Join Date
    May 2003
    Posts
    123
    Oh, and I use LILO(I know, Grub is better, but im stubborn in my ways lol)

  9. #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.

  10. #10
    Linux Newbie
    Join Date
    May 2003
    Posts
    123
    Ok so this is what I do:
    Recompile the kernel.
    Reboot
    Edit LILO
    Reboot


    And then it'll be good to go?

Page 1 of 2 1 2 LastLast

Posting Permissions

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