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

No rule to make target 'arch/arm/dts/armada-8040-mcbin-singleshot.dtb'. #8

Open
czka opened this issue Feb 18, 2023 · 0 comments
Open

Comments

@czka
Copy link

czka commented Feb 18, 2023

Trying to build u-boot image for MACCHIATObin Single Shot, as per https://github.com/SolidRun/Documentation/blob/bsp/8040/u-boot.md#compile:

for the Singleshot, DEFAULT_DEVICE_TREE needs setting to "armada-8040-mcbin-singleshot"

On Arch Linux x86_64, aarch64-linux-gnu-gcc 12.2.0:

$ make -j4
scripts/kconfig/conf  --syncconfig Kconfig
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  GEN     include/autoconf.mk
  UPD     include/generated/timestamp_autogenerated.h
  ENVC    include/generated/env.txt
  ENVP    include/generated/env.in
  ENVT    include/generated/environment.h
  CC      cmd/version.o
  AR      cmd/built-in.o
  CC      env/common.o
  CC      lib/efi_loader/dtbdump.o
  CC      lib/efi_loader/initrddump.o
  AR      env/built-in.o
  LD      lib/efi_loader/dtbdump_efi.so
  LD      lib/efi_loader/initrddump_efi.so
  OBJCOPY lib/efi_loader/dtbdump.efi
  OBJCOPY lib/efi_loader/initrddump.efi
  LD      u-boot
aarch64-linux-gnu-ld.bfd: warning: u-boot has a LOAD segment with RWX permissions
  OBJCOPY u-boot.srec
  OBJCOPY u-boot-nodtb.bin
  SYM     u-boot.sym
  RELOC   u-boot-nodtb.bin
make[2]: *** No rule to make target 'arch/arm/dts/armada-8040-mcbin-singleshot.dtb', needed by 'dtbs'.  Stop.
make[1]: *** [dts/Makefile:44: arch-dtbs] Error 2
make: *** [Makefile:1159: dts/dt.dtb] Error 2

Using u-boot tag v2023.01 above, because v2019.04 fails even worse:

$ make -j4
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:106: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:432: scripts/dtc] Error 2
make: *** [Makefile:515: scripts] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant