element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
WaRP7
  • Products
  • Dev Tools
  • Single-Board Computers
  • WaRP7
  • More
  • Cancel
WaRP7
Forum Warp7 Uboot make error
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WaRP7 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 5 subscribers
  • Views 556 views
  • Users 0 members are here
Related

Warp7 Uboot make error

yashchabria
yashchabria over 8 years ago

Hi!

I am getting :

 

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch

/*

^

Kbuild:43: recipe for target 'lib/asm-offsets.s' failed

make[1]: *** [lib/asm-offsets.s] Error 1

Makefile:1283: recipe for target 'prepare0' failed

 

 

When trying to compile the Warp7 Uboot

 

 

yash@ubuntu:~/Documents/nxp$ git clone https://github.com/Freescale/u-boot-fslc.git

Cloning into 'u-boot-fslc'...

remote: Counting objects: 433462, done.

remote: Compressing objects: 100% (4091/4091), done.

remote: Total 433462 (delta 2910), reused 2 (delta 2), pack-reused 429340

Receiving objects: 100% (433462/433462), 107.39 MiB | 1.32 MiB/s, done.

Resolving deltas: 100% (345453/345453), done.

Checking connectivity... done.

yash@ubuntu:~/Documents/nxp$ cd u-boot-fslc/

yash@ubuntu:~/Documents/nxp/u-boot-fslc$ git checkout -b  my_nxp_ub origin/2016.11+fslc

Branch my_nxp_ub set up to track remote branch 2016.11+fslc from origin.

Switched to a new branch 'my_nxp_ub'

yash@ubuntu:~/Documents/nxp/u-boot-fslc$ make mrproper

yash@ubuntu:~/Documents/nxp/u-boot-fslc$ make warp7_config

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/zconf.lex.c

  SHIPPED scripts/kconfig/zconf.hash.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

#

# configuration written to .config

#

yash@ubuntu:~/Documents/nxp/u-boot-fslc$ 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

  CHK     include/config/uboot.release

  UPD     include/config/uboot.release

  CHK     include/generated/version_autogenerated.h

  UPD     include/generated/version_autogenerated.h

  CHK     include/generated/timestamp_autogenerated.h

  UPD     include/generated/timestamp_autogenerated.h

  CC      lib/asm-offsets.s

lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch

/*

^

Kbuild:43: recipe for target 'lib/asm-offsets.s' failed

make[1]: *** [lib/asm-offsets.s] Error 1

Makefile:1283: recipe for target 'prepare0' failed

make: *** [prepare0] Error 2

 

 

 

I

  • Sign in to reply
  • Cancel
  • jjakubowski
    0 jjakubowski over 8 years ago

    I know it's been a long time since the question was posted, but still I think it would be useful to leave some answer to it (especially I encountered this post looking for the solution to the same problem).

     

    What you are missing is probably
    a) gcc-arm-linux-gnueabi (apt-get install gcc-arm-linux-gnueabi on ubuntu)
    b) export CROSS_COMPILE=arm-linux-gnueabi-

        export ARCH=arm  
        (these two needs to be retyped everytime you open new terminal and want to recompile u-boot)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube