Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u-boot build fail issue #10

Open
inhwa opened this issue Feb 8, 2024 · 0 comments
Open

u-boot build fail issue #10

inhwa opened this issue Feb 8, 2024 · 0 comments

Comments

@inhwa
Copy link

inhwa commented Feb 8, 2024

Please help me to solve this issue.
I am newbie of embedded linux and studying with MELP book.
I built crosstool-ng successfully. but with this compiler, the u-boot.v2017.01 won't.
what i used defconfig are am335x_boneblack_defconfig and am335x_boneblack_vboot_defconfig.
So I tried the latest u-boot (v2024.01), and the build is done successfully.
Unfortunately, in the v2024.01 code, there is only am335x_boneblack_vboot_defconfig. I can't make sure that using vboot_deconfig is good or not.
And I tried with other cross compiler, gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.
With linaro compiler, the build was done successfully.
I want to know what is problem.

  • error says missing argument to '-march='. So I added -march=armv7-a into make command (make CROSS_COMPILE=~~, -march=armv7-a), but it was not working... Invalid option.. Please let me know how to add '-march=' armument in order to solve this error
  • With the compiler built by me(arm-cortex_a8~~), the build is fail. But with the linaro compiler, the build is done successfully.
    I wonder if my build might have some problem. But I tried 3 times... Ubuntu 20.04 on my laptop, Ubuntu 18.04 on VirtualBox and Ubuntu 14.04 on HyberV. but all these work are fail.
    Please give me some clue to solve this error.

=======================================================
ihchoi@ihchoi-laptop:~/Xilinx/Project/BeagleBoneBlack/u-boot-2017.01$ 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
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
arm-cortex_a8-linux-gnueabihf-gcc: error: unrecognized -march target: armv5
arm-cortex_a8-linux-gnueabihf-gcc: note: valid arguments are: armv4 armv4t armv5t armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8-m.base armv8-m.main armv8-r armv8.1-m.main armv9-a iwmmxt iwmmxt2; did you mean 'armv4'?
arm-cortex_a8-linux-gnueabihf-gcc: error: missing argument to '-march='
make[1]: *** [Kbuild:44: lib/asm-offsets.s] Error 1
make: *** [Makefile:1270: prepare0] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant