How to fix make error “No rule to make target 'menuconfig'” when building a kernel for Beagleboard?












6














The aim is to build and install the USB Video Class (UVC) module, via make modules_install. I'm trying to configure the kernel via make menuconfig on Angstrom distribution, running on BeagleBoard-xM. Angstrom image (console only) was build on Narcissus online image builder. Angstrom kernel is 2.6.32.



I receive the following error: make: *** No rule to make target 'menuconfig'. Stop.



It seems that there are no kernel sources because usr/src contains nothing. Should I have to download Linux kernel 2.6.32 from kernel.org and what should be my next steps in order to configure the kernel?










share|improve this question





























    6














    The aim is to build and install the USB Video Class (UVC) module, via make modules_install. I'm trying to configure the kernel via make menuconfig on Angstrom distribution, running on BeagleBoard-xM. Angstrom image (console only) was build on Narcissus online image builder. Angstrom kernel is 2.6.32.



    I receive the following error: make: *** No rule to make target 'menuconfig'. Stop.



    It seems that there are no kernel sources because usr/src contains nothing. Should I have to download Linux kernel 2.6.32 from kernel.org and what should be my next steps in order to configure the kernel?










    share|improve this question



























      6












      6








      6







      The aim is to build and install the USB Video Class (UVC) module, via make modules_install. I'm trying to configure the kernel via make menuconfig on Angstrom distribution, running on BeagleBoard-xM. Angstrom image (console only) was build on Narcissus online image builder. Angstrom kernel is 2.6.32.



      I receive the following error: make: *** No rule to make target 'menuconfig'. Stop.



      It seems that there are no kernel sources because usr/src contains nothing. Should I have to download Linux kernel 2.6.32 from kernel.org and what should be my next steps in order to configure the kernel?










      share|improve this question















      The aim is to build and install the USB Video Class (UVC) module, via make modules_install. I'm trying to configure the kernel via make menuconfig on Angstrom distribution, running on BeagleBoard-xM. Angstrom image (console only) was build on Narcissus online image builder. Angstrom kernel is 2.6.32.



      I receive the following error: make: *** No rule to make target 'menuconfig'. Stop.



      It seems that there are no kernel sources because usr/src contains nothing. Should I have to download Linux kernel 2.6.32 from kernel.org and what should be my next steps in order to configure the kernel?







      linux-kernel configuration angstrom






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 16 '14 at 12:35









      Pro Backup

      1,97462957




      1,97462957










      asked Jan 19 '14 at 22:28









      dempap

      32521321




      32521321






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Normally the kernel and packages for embedded systems are built with a cross-compiler on desktop/server then they are packaged into one image and finally copied to the embedded system and flashed the SRAM or NAND/NOR Flash.



          I personally like the OpenEmbedded distro which is easy to build.



          Howto Beagleboard






          share|improve this answer























          • I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
            – dempap
            Jan 20 '14 at 18:03












          • In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
            – user55518
            Jan 20 '14 at 18:23










          • @dempap: added also a howto link.
            – user55518
            Jan 20 '14 at 19:20





















          0














          You can download it from kernel.org and extract it on /usr/src/ after that you should copy existing kernel config from /boot to /usr/src/linux-2.6.x/.config. You can run :



           make menuconfig





          share|improve this answer























          • Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
            – ivanivan
            Mar 23 '17 at 3:51










          • You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
            – supriady
            Mar 23 '17 at 5:36











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f110066%2fhow-to-fix-make-error-no-rule-to-make-target-menuconfig-when-building-a-kern%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Normally the kernel and packages for embedded systems are built with a cross-compiler on desktop/server then they are packaged into one image and finally copied to the embedded system and flashed the SRAM or NAND/NOR Flash.



          I personally like the OpenEmbedded distro which is easy to build.



          Howto Beagleboard






          share|improve this answer























          • I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
            – dempap
            Jan 20 '14 at 18:03












          • In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
            – user55518
            Jan 20 '14 at 18:23










          • @dempap: added also a howto link.
            – user55518
            Jan 20 '14 at 19:20


















          1














          Normally the kernel and packages for embedded systems are built with a cross-compiler on desktop/server then they are packaged into one image and finally copied to the embedded system and flashed the SRAM or NAND/NOR Flash.



          I personally like the OpenEmbedded distro which is easy to build.



          Howto Beagleboard






          share|improve this answer























          • I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
            – dempap
            Jan 20 '14 at 18:03












          • In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
            – user55518
            Jan 20 '14 at 18:23










          • @dempap: added also a howto link.
            – user55518
            Jan 20 '14 at 19:20
















          1












          1








          1






          Normally the kernel and packages for embedded systems are built with a cross-compiler on desktop/server then they are packaged into one image and finally copied to the embedded system and flashed the SRAM or NAND/NOR Flash.



          I personally like the OpenEmbedded distro which is easy to build.



          Howto Beagleboard






          share|improve this answer














          Normally the kernel and packages for embedded systems are built with a cross-compiler on desktop/server then they are packaged into one image and finally copied to the embedded system and flashed the SRAM or NAND/NOR Flash.



          I personally like the OpenEmbedded distro which is easy to build.



          Howto Beagleboard







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 20 '14 at 19:20

























          answered Jan 20 '14 at 0:25







          user55518



















          • I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
            – dempap
            Jan 20 '14 at 18:03












          • In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
            – user55518
            Jan 20 '14 at 18:23










          • @dempap: added also a howto link.
            – user55518
            Jan 20 '14 at 19:20




















          • I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
            – dempap
            Jan 20 '14 at 18:03












          • In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
            – user55518
            Jan 20 '14 at 18:23










          • @dempap: added also a howto link.
            – user55518
            Jan 20 '14 at 19:20


















          I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
          – dempap
          Jan 20 '14 at 18:03






          I 'll have OpenEmbedded in mind. Do you have any suggestion in this case? Thank's anyway.
          – dempap
          Jan 20 '14 at 18:03














          In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
          – user55518
          Jan 20 '14 at 18:23




          In your local config you should have the path to ~/oe/recipes/linux where you have the regular bitbake build file and configure patches as needed. It's been a while since I touched this. Perhaps it is more convenient to use the build from beaglebone ore some alternatives like emdebian or openwrt debian etc.
          – user55518
          Jan 20 '14 at 18:23












          @dempap: added also a howto link.
          – user55518
          Jan 20 '14 at 19:20






          @dempap: added also a howto link.
          – user55518
          Jan 20 '14 at 19:20















          0














          You can download it from kernel.org and extract it on /usr/src/ after that you should copy existing kernel config from /boot to /usr/src/linux-2.6.x/.config. You can run :



           make menuconfig





          share|improve this answer























          • Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
            – ivanivan
            Mar 23 '17 at 3:51










          • You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
            – supriady
            Mar 23 '17 at 5:36
















          0














          You can download it from kernel.org and extract it on /usr/src/ after that you should copy existing kernel config from /boot to /usr/src/linux-2.6.x/.config. You can run :



           make menuconfig





          share|improve this answer























          • Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
            – ivanivan
            Mar 23 '17 at 3:51










          • You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
            – supriady
            Mar 23 '17 at 5:36














          0












          0








          0






          You can download it from kernel.org and extract it on /usr/src/ after that you should copy existing kernel config from /boot to /usr/src/linux-2.6.x/.config. You can run :



           make menuconfig





          share|improve this answer














          You can download it from kernel.org and extract it on /usr/src/ after that you should copy existing kernel config from /boot to /usr/src/linux-2.6.x/.config. You can run :



           make menuconfig






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 13 at 7:26









          P_Yadav

          1,4113922




          1,4113922










          answered Dec 25 '16 at 9:14









          supriady

          146211




          146211












          • Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
            – ivanivan
            Mar 23 '17 at 3:51










          • You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
            – supriady
            Mar 23 '17 at 5:36


















          • Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
            – ivanivan
            Mar 23 '17 at 3:51










          • You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
            – supriady
            Mar 23 '17 at 5:36
















          Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
          – ivanivan
          Mar 23 '17 at 3:51




          Not sure about embedded systems, but menuconfig on x86/amd64 requires ncurses dev files and a few other packages. If you have a known good config at /usr/src/linux/.config it may be easiest to run "make oldconfig"
          – ivanivan
          Mar 23 '17 at 3:51












          You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
          – supriady
          Mar 23 '17 at 5:36




          You can use existing config from /boot/config-2.6.x and copied as .config.Sure, you should install all dependencies when you want to compile kernel from source code.
          – supriady
          Mar 23 '17 at 5:36


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f110066%2fhow-to-fix-make-error-no-rule-to-make-target-menuconfig-when-building-a-kern%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀