Linux Kernel

Discussion in 'Open Source' started by jigslinx, Sep 27, 2004.

Thread Status:
Not open for further replies.
  1. jigslinx

    jigslinx New Member

    Joined:
    May 22, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I am starting this thread for all new and guru of linux kernel.

    I have a problem.
    I have recompiled my kernel (Kernel 2.6.5-1.339) by using following commands

    #make mrproper
    #make xconfig

    #make dep
    make dep is no longer required
    #make clean
    #make bzImage

    #make modules
    #make modules_install

    Then i copied the file bzImage and System.map to /boot directory and made appropriate changes in grub.conf. Then i restarted the PC and
    booted the new kernel. But the booting procedure stops at
    Freeing unused kernel memory : 231K freed.

    When i created the initrd.img i get the following error
    /dev/mapper/control : No such file or directory
    Is device-mapper missing from the kernel?
    Command failed.

    But when i boot the new kernel i get the line
    device-mapper : 4.1.0-ioctl (2003-12-10) initialised : dm@uk.sistina.com

    During the kernel and modules build i got only some warnings. But the procedure went fine. What is wrong with my kernel? I have checked my software requirements(gcc version,make version etc). They are all satisfied.
     
  2. pradeep_chauhan

    pradeep_chauhan New Member

    Joined:
    Aug 16, 2004
    Messages:
    1,150
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi
    commands for kernel 2.6 are as follows

    make menuconfig
    make && make modules_install
    cp System.map /boot/System.map-2.4.26-gentoo-r6
    cp .config /boot/config-2.4.26-gentoo-r6 (for safe keeping)

    enjoy
     
  3. technomodel

    technomodel New Member

    Joined:
    Dec 23, 2003
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    kolkata
    recompile your kernel, this time spend a little bit of time in the kernel configuration, specially the device drivers.seems you skipped something there. if you dont understand an option, try help, or post here. theoretically you have followed the right steps, excepting that you dont need to create an initrd image unless you have a scsi disk.

    @pradeep chauhan-
    xconfig works fine. it uses the x-window for the configuration as opposed to the menu driven interface of menuconfig.
     
  4. OP
    OP
    jigslinx

    jigslinx New Member

    Joined:
    May 22, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    Thanks for advise. But even though i install the kernel from RPM package the same error occurs.
     
Thread Status:
Not open for further replies.

Share This Page