Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Hello everyone, I downloaded the kernel source and such for a 2.6.8 kernel, but after I've uncompressed it and everything, this is what happens when I try configuring it: root@Rob:/usr/src/kernel-source-2.6.8# ...
  1. #1
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942

    Compiling a 2.6 kernel

    Hello everyone,

    I downloaded the kernel source and such for a 2.6.8 kernel, but after I've uncompressed it and everything, this is what happens when I try configuring it:

    root@Rob:/usr/src/kernel-source-2.6.8# make config
    HOSTCC scripts/kconfig/mconf.o
    scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
    scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
    make[1]: *** [scripts/kconfig/mconf.o] Error 1
    make: *** [config] Error 2

    Could anyone please tell me what else I need to do? Thanks a ton in advance!

  2. #2
    Linux User St. Joe's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    271
    You are probably trying to compile it using gcc-4.
    See this: Bug 319102
    It may be that your sole purpose in life is simply to serve as a warning to others.

  3. #3
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Is there any reason you are not getting one of the 2.6 series kernels through apt? It will make it much easier.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Posts
    27
    agree with Bryan

    Code:
    #aptitude search kernel
    
    #apt-get install kernel-2.6-XXX
    cheers

  5. #5
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    No reason in particular; I guess I just want the satisfaction of customizing my own kernel. Also, when I try the apt kernel, I get the message "Kernel panic: Tried to kill init!" on startup and I figured compiling my own might help that situation.

  6. #6
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    I know what you mean. I remember what it felt like after I booted up after compiling my first kernel. Anyway...back to the topic at hand. Try:
    Code:
    make menuconfig
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  7. #7
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    I've tried all three:

    make config
    make menuconfig
    make xconfig

    but to no avail. =(

    Once I get home, I'm going to try it with 2.6.12 kernel source instead; maybe that'll work?

  8. #8
    Just Joined!
    Join Date
    Apr 2005
    Posts
    17
    cant you compile kernels higher than 2.6.8 on debian? i would like to get 2.6.11

    you have to use:

    apt-get install kernel-source-2.6.8

  9. #9
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401

    UHmm

    Use kernel-package debian package...

    It can create debian packages....

    Code:
    cd /usr/src/kernel-source-*
    make-kpkg --revision=host.1.1 kernel_image
    make-kpkg --revision=host.1.1 kernel_headers
    make-kpkg --revision=host.1.1 kernel_doc
    make-kpkg --revision=host.1.1 buildpackage # Do everything
    make-kpkg --revision=host.1.1 kernel_modules
    cd ..
    dpkg -i *.deb # I prefer dpkg -i -R .
    Particoular is kernel_modules: it doesn't build kernel modules from kernel source (they are included in the debian package kernel-image-* built using kernel_image).... but for all subdirectory in /usr/src/modules (such as lm-sensors-module-source, sl-modem-source, qcam-modules-source...).
    And it can apply also pacthes using kernel-pacth-* packages...

    Hoever I suggest to use gcc-3.3 for compiling... 4.0 is... restrictive/buggy.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  10. #10
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    w00t. It's up and running! If I hadn't neglected my homework for the last 2 or 3 hours to get everything working, I'd be a lot happier. =D

    I'm sure it'll set in tomorrow.

    Thanks for all the help!

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
  •