make command error during U-boot creation












0















We bought new xilink zynq7Z020 (zedboard) for our new project and plan to use it with Linux kernel. As part of this we have installed Ubuntu in virtual box.



I have downloaded "Ubuntu_on_Zync_Tutorial_03.pdf" from Xlinx website and started creating U-boot as instructed in pdf document.



Here during compilation using "make" command I am facing an error says "cc1: error: bad value ('armv5') for '-march=' switch".



I have verified the same in your form and found some commands to install arm tool chain and did the same. But still I am facing the same issue.



Here are commands whatever I used and error log. Please verify the same and let me know if I miss something or if I need to do any other configurations.



praveen@praveen-VirtualBox:~$ sudo apt-get install arm-linux-gnueabi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package arm-linux-gnueabi




praveen@praveen-VirtualBox:~$ sudo apt-get install device-tree-overlay
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package device-tree-overlay




praveen@praveen-VirtualBox:~$ export CROSS_COMPILER=arm-linux-gnueabi-
praveen@praveen-VirtualBox:~$ export ARCH=arm
praveen@praveen-VirtualBox:~$ cd u-boot-xlnx/
praveen@praveen-VirtualBox:~/u-boot-xlnx$ make zynq_zed_config
#
# configuration written to .config
#

praveen@praveen-VirtualBox:~/u-boot-xlnx$ make
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
GEN spl/include/autoconf.mk
CHK include/config/uboot.release
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CC lib/asm-offsets.s
cc1: error: bad value ('armv5') for '-march=' switch
cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2
Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
make[1]: *** [lib/asm-offsets.s] Error 1
Makefile:1337: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2


Regards,



Praveen










share|improve this question





























    0















    We bought new xilink zynq7Z020 (zedboard) for our new project and plan to use it with Linux kernel. As part of this we have installed Ubuntu in virtual box.



    I have downloaded "Ubuntu_on_Zync_Tutorial_03.pdf" from Xlinx website and started creating U-boot as instructed in pdf document.



    Here during compilation using "make" command I am facing an error says "cc1: error: bad value ('armv5') for '-march=' switch".



    I have verified the same in your form and found some commands to install arm tool chain and did the same. But still I am facing the same issue.



    Here are commands whatever I used and error log. Please verify the same and let me know if I miss something or if I need to do any other configurations.



    praveen@praveen-VirtualBox:~$ sudo apt-get install arm-linux-gnueabi
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package arm-linux-gnueabi




    praveen@praveen-VirtualBox:~$ sudo apt-get install device-tree-overlay
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package device-tree-overlay




    praveen@praveen-VirtualBox:~$ export CROSS_COMPILER=arm-linux-gnueabi-
    praveen@praveen-VirtualBox:~$ export ARCH=arm
    praveen@praveen-VirtualBox:~$ cd u-boot-xlnx/
    praveen@praveen-VirtualBox:~/u-boot-xlnx$ make zynq_zed_config
    #
    # configuration written to .config
    #

    praveen@praveen-VirtualBox:~/u-boot-xlnx$ make
    scripts/kconfig/conf --silentoldconfig Kconfig
    CHK include/config.h
    UPD include/config.h
    CFG u-boot.cfg
    GEN include/autoconf.mk
    GEN include/autoconf.mk.dep
    CFG spl/u-boot.cfg
    GEN spl/include/autoconf.mk
    CHK include/config/uboot.release
    CHK include/generated/version_autogenerated.h
    CHK include/generated/timestamp_autogenerated.h
    UPD include/generated/timestamp_autogenerated.h
    CC lib/asm-offsets.s
    cc1: error: bad value ('armv5') for '-march=' switch
    cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2
    Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
    make[1]: *** [lib/asm-offsets.s] Error 1
    Makefile:1337: recipe for target 'prepare0' failed
    make: *** [prepare0] Error 2


    Regards,



    Praveen










    share|improve this question



























      0












      0








      0








      We bought new xilink zynq7Z020 (zedboard) for our new project and plan to use it with Linux kernel. As part of this we have installed Ubuntu in virtual box.



      I have downloaded "Ubuntu_on_Zync_Tutorial_03.pdf" from Xlinx website and started creating U-boot as instructed in pdf document.



      Here during compilation using "make" command I am facing an error says "cc1: error: bad value ('armv5') for '-march=' switch".



      I have verified the same in your form and found some commands to install arm tool chain and did the same. But still I am facing the same issue.



      Here are commands whatever I used and error log. Please verify the same and let me know if I miss something or if I need to do any other configurations.



      praveen@praveen-VirtualBox:~$ sudo apt-get install arm-linux-gnueabi
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package arm-linux-gnueabi




      praveen@praveen-VirtualBox:~$ sudo apt-get install device-tree-overlay
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package device-tree-overlay




      praveen@praveen-VirtualBox:~$ export CROSS_COMPILER=arm-linux-gnueabi-
      praveen@praveen-VirtualBox:~$ export ARCH=arm
      praveen@praveen-VirtualBox:~$ cd u-boot-xlnx/
      praveen@praveen-VirtualBox:~/u-boot-xlnx$ make zynq_zed_config
      #
      # configuration written to .config
      #

      praveen@praveen-VirtualBox:~/u-boot-xlnx$ make
      scripts/kconfig/conf --silentoldconfig Kconfig
      CHK include/config.h
      UPD include/config.h
      CFG u-boot.cfg
      GEN include/autoconf.mk
      GEN include/autoconf.mk.dep
      CFG spl/u-boot.cfg
      GEN spl/include/autoconf.mk
      CHK include/config/uboot.release
      CHK include/generated/version_autogenerated.h
      CHK include/generated/timestamp_autogenerated.h
      UPD include/generated/timestamp_autogenerated.h
      CC lib/asm-offsets.s
      cc1: error: bad value ('armv5') for '-march=' switch
      cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2
      Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
      make[1]: *** [lib/asm-offsets.s] Error 1
      Makefile:1337: recipe for target 'prepare0' failed
      make: *** [prepare0] Error 2


      Regards,



      Praveen










      share|improve this question
















      We bought new xilink zynq7Z020 (zedboard) for our new project and plan to use it with Linux kernel. As part of this we have installed Ubuntu in virtual box.



      I have downloaded "Ubuntu_on_Zync_Tutorial_03.pdf" from Xlinx website and started creating U-boot as instructed in pdf document.



      Here during compilation using "make" command I am facing an error says "cc1: error: bad value ('armv5') for '-march=' switch".



      I have verified the same in your form and found some commands to install arm tool chain and did the same. But still I am facing the same issue.



      Here are commands whatever I used and error log. Please verify the same and let me know if I miss something or if I need to do any other configurations.



      praveen@praveen-VirtualBox:~$ sudo apt-get install arm-linux-gnueabi
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package arm-linux-gnueabi




      praveen@praveen-VirtualBox:~$ sudo apt-get install device-tree-overlay
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package device-tree-overlay




      praveen@praveen-VirtualBox:~$ export CROSS_COMPILER=arm-linux-gnueabi-
      praveen@praveen-VirtualBox:~$ export ARCH=arm
      praveen@praveen-VirtualBox:~$ cd u-boot-xlnx/
      praveen@praveen-VirtualBox:~/u-boot-xlnx$ make zynq_zed_config
      #
      # configuration written to .config
      #

      praveen@praveen-VirtualBox:~/u-boot-xlnx$ make
      scripts/kconfig/conf --silentoldconfig Kconfig
      CHK include/config.h
      UPD include/config.h
      CFG u-boot.cfg
      GEN include/autoconf.mk
      GEN include/autoconf.mk.dep
      CFG spl/u-boot.cfg
      GEN spl/include/autoconf.mk
      CHK include/config/uboot.release
      CHK include/generated/version_autogenerated.h
      CHK include/generated/timestamp_autogenerated.h
      UPD include/generated/timestamp_autogenerated.h
      CC lib/asm-offsets.s
      cc1: error: bad value ('armv5') for '-march=' switch
      cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2
      Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
      make[1]: *** [lib/asm-offsets.s] Error 1
      Makefile:1337: recipe for target 'prepare0' failed
      make: *** [prepare0] Error 2


      Regards,



      Praveen







      package-management compiling arm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 31 '18 at 13:55









      Thomas

      3,77181527




      3,77181527










      asked Dec 31 '18 at 13:38









      PraveenKumarPraveenKumar

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1105833%2fmake-command-error-during-u-boot-creation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1105833%2fmake-command-error-during-u-boot-creation%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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?