Find the answer to your Linux question:
Results 1 to 9 of 9
I will try with the ipw2200 driver to get my wlan going but first I have to be able to "make menuconfig", I am following a tutorial and from what ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53

    make menuconfig

    I will try with the ipw2200 driver to get my wlan going but first I have to be able to "make menuconfig", I am following a tutorial and from what I understand I have to download and install the source of my kernel

    Code:
    apt-get install linux-source-2.6.17
    The reason that I did that instead of downloading it the way it's described is because I can't find a source matching my kernel name exact, I have also installed the linux-headers for my kernel.

    But now, when I choose this way, I have no idea of how to get "make menuconfig" to work. Anyone who can help me? Am I even close?

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    What errors are you getting? Do you have libncurses5-dev installed? You have to type 'make menuconfig' in the source directory: /usr/src/linux-xxxxx).

    Bryan
    Last edited by bryansmith; 11-06-2006 at 08:20 PM.
    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.

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by bryansmith
    What errors are you getting? Do you have libncurses5-dev installed?

    Bryan
    Yes, in terminal
    Code:
    apt-get install libncurses5-dev make gcc bin86 libc6-dev kernel-package
    as I was told to do via the tutorial.

    What I have done is
    Code:
    apt-get install linux-headers-'uname -r'
    apt-get install linux-source-'uname -r'
    and
    apt-get install libncurses5-dev make gcc bin86 libc6-dev kernel-package
    this is what is neccesary for the make menuconfig to work, but is there anything else I have to do or from where can I go "make menuconfig"?

    "make menuconfig" in /usr/src/linux-headers-'uname -r' I get:
    Code:
    Hajo:/usr/src/linux-headers-2.6.17-2# make menuconfig
    Makefile:266: /usr/src/linux-headers-2.6.17-2/scripts/Kbuild.include: No such file or directory
    /bin/sh: line 0: [: -lt: unary operator expected
    make: *** No rule to make target `/usr/src/linux-headers-2.6.17-2/scripts/Kbuild.include'.  Stop.

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    You should be executing make menuconfig in the source directory, not the headers directory .

    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.

  5. #5
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by bryansmith
    You should be executing make menuconfig in the source directory, not the headers directory .
    Bryan
    Damn, I forgot to mention that I did try that.

    Ok, so here is the deal now

    "make menuconfig" in /usr/src/ gives me
    Code:
    Hajo:/usr/src/linux-headers-2.6.17-2# make menuconfig
    Makefile:266: /usr/src/linux-headers-2.6.17-2/scripts/Kbuild.include: No such file or directory
    /bin/sh: line 0: [: -lt: unary operator expected
    make: *** No rule to make target `/usr/src/linux-headers-2.6.17-2/scripts/Kbuild.include'.  Stop.
    Hajo:/usr/src/linux-headers-2.6.17-2# cd .. Hajo:/usr/src# make menuconfig
    make: *** No rule to make target `menuconfig'.  Stop.
    So something is still not correct but the linux-headers are installed so I don't get the error-message.

    I'm sorry that I didn't type this in earlier, any other ideas?

    If it helps :P
    Code:
    Hajo:/usr/src# uname -r
    2.6.17-2-686
    Thank you for answering!

  6. #6
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Okay, I'm confused now. In the code sample you just gave me, it shows you trying to execute make menuconfig in /usr/src/linux-headers-2.6.17-2 - this should be /usr/src/linux-source-2.6.17-2

    Now, you say that didn't work. Any ideas where /bin/sh points too? In Ubuntu, it points to /bin/dash which causes problems.

    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
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by bryansmith
    Okay, I'm confused now. In the code sample you just gave me, it shows you trying to execute make menuconfig in /usr/src/linux-headers-2.6.17-2 - this should be /usr/src/linux-source-2.6.17-2
    My bad

    Ok, here it goes
    Code:
    Hajo:/usr/src# make menuconfig
    make: *** No rule to make target `menuconfig'.  Stop.
    but from there I shouldn't be able to excecute so that should not be a problem I guess.

    Code:
    Hajo:/usr/src# ls
    linux-headers-2.6.17-2      linux-kbuild-2.6.17
    linux-headers-2.6.17-2-686  linux-source-2.6.17.tar.bz2
    I do not have a source map, and in the kbuild map I get
    Code:
    Hajo:/usr/src/linux-kbuild-2.6.17# make menuconfig
    make: *** No rule to make target `menuconfig'.  Stop.
    The fact that I don't have a source map might mean that the source isn't installed properly? However, that is weird since apt-get install should do it for me.

    Code:
    Hajo:/usr/src# tar -zxvf linux-source-2.6.17.tar.bz2
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors
    and this should be installed anyway. I am downloading the kernel the way the tutorial is telling me but it's 40 minutes left until it's done so if you have any other ideas you are welcome.

    Now, you say that didn't work. Any ideas where /bin/sh points too? In Ubuntu, it points to /bin/dash which causes problems.
    Bryan
    I'm affraid that I don't know how to get the information about what something points to.
    ln or ls -something I guess? Took a fast look through ln --help and ls --help but didn't find anything usefull (not saying that it isn't there, I didn't read every word carefully).

  8. #8
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Quote Originally Posted by bnei
    I'm affraid that I don't know how to get the information about what something points to.
    ln or ls -something I guess? Took a fast look through ln --help and ls --help but didn't find anything usefull (not saying that it isn't there, I didn't read every word carefully).
    Let's see if the source works fine with make menuconfig first. If it doesn't we'll come back to that.

    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.

  9. #9
    Just Joined!
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    53
    Quote Originally Posted by bryansmith
    Let's see if the source works fine with make menuconfig first. If it doesn't we'll come back to that.

    Bryan
    Thank you for your efforts, however, I got the file downloaded now and now I have got make menuconfig to work properly.

    I did apt-get remove on everything that I had and did it with the newly downloaded kernel file instead. Sorry for making you confusing aswell, It's almost midnight here in Sweden so I am tired

    Will see what kind of errors that will show next, I'll bet that something will go wrong

    Again, thank you!

Posting Permissions

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