PINE64
LD error building uboot - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=74)
+--- Thread: LD error building uboot (/showthread.php?tid=19269)



LD error building uboot - lash - 06-04-2024

Following the instructions here on an archlinux:

https://wiki.pine64.org/wiki/U-Boot

For arm-trusted-firmware v2.4 I am getting:


Code:
$ make PLAT=sun50i_a64 -j4 -k
Building sun50i_a64
  LD      /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf
aarch64-linux-gnu-ld.bfd: warning: /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf has a LOAD segment with RWX permissions
make: *** [Makefile:1105: /home/lash/src/build/arm-trusted-firmware/2.4/build/sun50i_a64/release/bl31/bl31.elf] Error 1
make: Target 'all' not remade because of errors.

Code:
$ ld --version

GNU ld (GNU Binutils) 2.42.0



RE: LD error building uboot - Kevin Kofler - 06-05-2024

Try removing -Wl,--fatal-warnings here:
https://github.com/crust-firmware/arm-trusted-firmware/blob/ee9232cfb345d0978f522ee492c0e25964b57107/Makefile#L421
and --fatal-warnings here:
https://github.com/crust-firmware/arm-trusted-firmware/blob/ee9232cfb345d0978f522ee492c0e25964b57107/Makefile#L438


RE: LD error building uboot - lash - 06-09-2024

great that worked.

building uboot also failed. the version string passed to the pylibftd module generation in scripts/dtc didnt get generated properly because the makefile vars were not passed down. In lieu of figuring out how to pass them on (and anyway the sublevel var was empry), I just added this to scripts/dtc/Makefile and it built:

VERSION = 2021
PATCHLEVEL = 07
SUBLEVEL = 00
EXTRAVERSION = -rc4
NAME