Find the answer to your Linux question:
Results 1 to 7 of 7
Hi All, I am using in my pc fedora core-5. I tried to compile kernel version 2.6.23 on my machine but its not compiled partially. i tried to boot with ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    20

    Kernelversion2.6.23 not compiling correctly


    Hi All,

    I am using in my pc fedora core-5.
    I tried to compile kernel version 2.6.23 on my machine but its not compiled partially.
    i tried to boot with that image its giving kernel panic.
    Is any body tried with this version.
    please help me.
    i downloaded source code from kernel.org site.

    Thanks
    -venkatesh

  2. #2
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    it's much helpfull if you can write down the steps taken during your kernel compilation..

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    20
    I took linux-2.6.23.tar.bz2 from kernel.org, then i etracted that in /usr/src directory. I got linux-2.6.23 directory.
    linux-2.6.23# make menuconfig
    I saved config file then i gave #make
    After that #make modules_install
    Last step is #make install
    and then i reboot system i logged in new kernel, its giving kernel panic.

  4. #4
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    When last time I faced the same prob, I'll always look into initrd.

    or

    You could try to compile your new kernel by using old /.config

  5. #5
    Just Joined!
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    20
    I tried by old config also, but again i faced same problem.
    could please help any body............

  6. #6
    Linux Newbie
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    109
    1 Did you copy kernel bzImage to boot dir?
    2 Made a softlink to System.map after copying System.map to boot dir?
    3. Did you make ram disk imange with mkinitrd?

  7. #7
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    First, initrd images are not necessary to boot, unless you need to load external modules before the kernel is up and running. Most times, you just need to include all the stuff statically, instead of using modules.

    That way you remove the need for an initrd, and there's one level less of complexity.

    Second, System.map is not necessary unless you plan to debug your kernel.

    Third, boot your old kernel, copy /proc/config.gz to a file called .config in the directory of the sources of your new kernel.

    Then use "make oldconfig". After that, use "make menuconfig", and make sure that at least:

    1.- the driver for your ide/sata controller
    2.- the drivers for the filesystems you are using

    Are both marked as static, and not as modules. This way, you don't need an initrd.

    Then compile with "make", and install with "make install". Make sure that everything is right on your grub.conf or whatever. Finally, boot it.

Posting Permissions

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