Jump to content

Recommended Posts

Posted (edited)

Hi folks, 
I've been trying to compile an image for the EspressoBin since yesterday. 
Unfortunately I get the following error every time I run it.
Other boards work fine.

Armbian-unofficial_25.05.0-trunk_Khadas-vim2_bookworm_edge_6.13.7.img Armbian-unofficial_25.05.0-trunk_Rockpro64_bookworm_edge_6.14.0-rc4.img

Why is this only with the EspressoBin can someone help me ?

Kind regards
StarSurfer

 

Spoiler

[💲|🔨]         trusted-secure-firmware.bin trusted-secure-firmware-uart.bin trusted-secure-firmware-emmc.bin \
[💲|🔨]         untrusted-secure-firmware.bin untrusted-secure-firmware-emmc.bin
[💲|🔨]   make -C wtmi CROSS_CM3=/usr/bin/arm-linux-gnueabi- LTO=1 wtmi_app.bin
[💲|🔨]   make[1]: Entering directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi'
[💲|🔨]     CC       avs.c
[💲|🔨]     CC       board.c
[💲|🔨]     CC       clock.c
[💲|🔨]     CC       crc32.c
[💲|🔨]     CC       crypto.c
[💲|🔨]     CC       crypto_hash.c
[💲|🔨]     CC       ddr.c
[💲|🔨]     CC       ebg.c
[💲|🔨]     CC       efuse.c
[💲|🔨]     CC       gpio.c
[💲|🔨]     CC       irq.c
[💲|🔨]     CC       mbox.c
[💲|🔨]     CC       mdio.c
[💲|🔨]     HOSTCC   bin2c.c
[💲|🔨]   make[2]: Entering directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi/reload_helper'
[💲|🔨]     CC       reload.c
[💲|🔨]     LD       reload_helper.elf
[💲|🔨]     OBJCOPY  reload_helper.bin
[💲|🔨]     BIN2C    reload_helper.c
[💲|🔨]   make[2]: Leaving directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi/reload_helper'
[💲|🔨]     CC       reload.c
[💲|🔨]   make[2]: Entering directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi/a53_helper'
[💲|🔨]     CC       main.c
[💲|🔨]   make[2]: aarch64-unknown-linux-gnu-gcc: No such file or directory
[💲|🔨]   make[2]: *** [Makefile:48: main.o] Error 127

[💲|🔨]   make[2]: Leaving directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi/a53_helper'
[💲|🔨]   make[1]: *** [Makefile:152: a53_helper/a53_helper.c] Error 2
[💲|🔨]   make[1]: Leaving directory '/home/starsurfer/build/cache/sources/mox-boot/wtmi'
[💲|🔨]   make: *** [Makefile:52: wtmi/wtmi_app.bin] Error 2
[💲|💥] Cleaning up [ please wait for cleanups to finish ]
[💲|🌿] ANSI log file built; inspect it by running: [ less -RS output/logs/log-build-ccd84804-e65c-4906-8c70-09db07187085.log.ans ]
[💲|🌱] Share log manually: [ use one of the commands below (or add SHARE_LOG=yes next time!) ]
[💲|🌿] Share log manually: [ curl --data-binary @output/logs/log-build-ccd84804-e65c-4906-8c70-09db07187085.log.ans https://paste.armbian.com/log ]
[💲|🌿] Share log manually: [ curl --data-binary @output/logs/log-build-ccd84804-e65c-4906-8c70-09db07187085.log.ans https://paste.armbian.de/log ]
[💲|🌿] Share log manually: [ curl --data-binary @output/logs/log-build-ccd84804-e65c-4906-8c70-09db07187085.log.ans https://paste.next.armbian.com/log ]
[💲|🌿] Share log manually: [ curl --data-binary @output/logs/log-build-ccd84804-e65c-4906-8c70-09db07187085.log.ans https://paste.armbian.eu/log ]

 

Edited by StarSurfer
  • StarSurfer changed the title to Can't compile Image for espressoBin
Posted
Quote

aarch64-unknown-linux-gnu-gcc: No such file or directory

 

Suggests you don't have the 64-bit ARM cross compiler installed or the location of its executable is not on PATH.

Posted
On 3/17/2025 at 9:31 AM, StarSurfer said:

I've been trying to compile an image for the EspressoBin since yesterday. 


We had to gave up with maintaining this hardware so there is absolutely no warranty that it builds and boots. To verify if your build environment is operational, try to build some supported targets by using a switch ARTIFACT_IGNORE_CACHE=yes This will force recompilation and will tell you if everything is alright. Try with Raspberry Pi or any other supported target to see if things are right at your side.

Posted

diff --git a/config/sources/families/mvebu64.conf b/config/sources/families/mvebu64.conf                                                                                                
index 90b0a97d4..1a78ace60 100644
--- a/config/sources/families/mvebu64.conf
+++ b/config/sources/families/mvebu64.conf
@@ -28,7 +28,8 @@ BOOTSCRIPT_OUTPUT='boot.scr' 
 OVERLAY_DIR="/boot/dtb/marvell/overlay"
 ATFSOURCE='https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git'
 ATFDIR='arm-trusted-firmware-espressobin'
-ATFBRANCH='tag:v2.8'
+ATFBRANCH='tag:v2.10'
+#ATFBRANCH='tag:v2.8'
 ATF_USE_GCC='> 7.2'
  
 if [[ "${SKIP_EXTERNAL_TOOLCHAINS}" == "yes" ]]; then
@@ -126,7 +127,7 @@ uboot_custom_postprocess() {
        local atfdir="$SRC/cache/sources/$ATFDIR/${ATFBRANCH##*:}"
        local ubootdir="$SRC/cache/sources/u-boot-worktree/$BOOTDIR/${BOOTBRANCH##*:}"
        local moxbootdir="$SRC/cache/sources/mox-boot"
-       cd $atfdir
+    cd $atfdir
  
        if [[ $BOARD = macchiatobin-doubleshot ]]; then
                run_host_command_logged make distclean
@@ -139,6 +140,9 @@ uboot_custom_postprocess() {
                run_host_command_logged cp -pv build/a80x0_mcbin/release/flash-image.bin $ubootdir/$FILENAME
        else
                cd $moxbootdir
+#$HL
+           [[ -f Makefile ]] && sed -i "s/aarch64-unknown-linux-gnu-/aarch64-linux-gnu-/" Makefile
+           [[ -f wtmi/a53_helper/Makefile ]] && sed -i "s/aarch64-unknown-linux-gnu-/aarch64-linux-gnu-/" wtmi/a53_helper/Makefile
                make clean # @TODO: rpardini: why?
                run_host_command_logged "CFLAGS=-fdiagnostics-color=always" pipetty make CROSS_CM3=$ATF2 wtmi_app.bin
                cd $atfdir

 

diff --git a/lib/functions/compilation/atf.sh b/lib/functions/compilation/atf.sh
index 2c6b55408..7205c0366 100644
--- a/lib/functions/compilation/atf.sh
+++ b/lib/functions/compilation/atf.sh
@@ -71,7 +71,8 @@ compile_atf() {
        display_alert "Binutils version for ATF" "${binutils_version}" "info"
        if linux-version compare "${binutils_version}" ge "2.39"; then
                display_alert "Binutils version for ATF" ">= 2.39, adding --no-warn-rwx-segment" "info"
-               binutils_flags_atf="-Wl,--no-warn-rwx-segment"
+               #binutils_flags_atf="-Wl,--no-warn-rwx-segment"
+               binutils_flags_atf="--no-warn-rwx-segment"
        fi
        # - ENABLE_BACKTRACE="0" has been added to workaround a regression in ATF. Check: https://github.com/armbian/build/issues/1157

 

with the patch, I am able to generate a image to run a espressobin v5 board, it should be ok for v7 board. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines