Page 1 of 1

Custom Firmware compile error after nov 23

Posted: Mon Nov 24, 2025 12:15 pm
by FFG_Garage
Hello,

I have a custom firmware for my board (a normal 407 discovery with alternative pin nameing), and the last 2 days github can't complie it.

the error message:

Linking build/rusefi_simulator
/usr/bin/ld: build/obj/main.o: in function `setup_custom_board_overrides()':
/home/runner/work/fw-407-FFG_Big_Board/fw-407-FFG_Big_Board/ext/rusefi/simulator/main.cpp:148: multiple definition of `setup_custom_board_overrides()'; build/obj/board_configuration.o:/home/runner/work/fw-407-FFG_Big_Board/fw-407-FFG_Big_Board/ext/rusefi/simulator/../firmware/./../../../board_configuration.cpp:142: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../firmware/ChibiOS/os/common/startup/SIMIA32/compilers/GCC/rules.mk:179: build/rusefi_simulator] Error 1
make[1]: Leaving directory '/home/runner/work/fw-407-FFG_Big_Board/fw-407-FFG_Big_Board/ext/rusefi/simulator'
make: *** [bundle.mk:169: ../simulator/build/rusefi_simulator.linux] Error 2
Error: Process completed with exit code 2.


I not modified anything my board_configuration.cpp file a several mounth. where can I read about what new needs about the board_cunfiguration.cpp?
my board_configuration.cpp file is the same format that I found in the custom firmware wiki.

Re: Custom Firmware compile error after nov 23

Posted: Mon Nov 24, 2025 2:14 pm
by AndreyB

Re: Custom Firmware compile error after nov 23

Posted: Tue Nov 25, 2025 1:12 pm
by FFG_Garage
Thank you Andrey, with this mod it's working again!

Re: Custom Firmware compile error after nov 23

Posted: Wed Nov 26, 2025 6:06 pm
by FFG_Garage
1 more question:

I tried to make a new custom firmware, and when it compile the firmware, exit with this error massage:

Cache miss, downloading GCC 14.2.Rel1 from https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz ; MD5 fcdcd7c8d5b22d2d0cc6bf3721686e69
GCC release downloaded, calculating MD5...
Downloaded file MD5: 632756c760cc0058a370bcf19e504b12
Error: Downloaded GCC MD5 doesn't match expected value: 632756c760cc0058a370bcf19e504b12 != fcdcd7c8d5b22d2d0cc6bf3721686e69

in my old custom firmware, github don't try to download this file, because is in the cache, and the old custom firmware compile working. the new one, with no files in the cache, don't work. What am I wrong?

Re: Custom Firmware compile error after nov 23

Posted: Thu Nov 27, 2025 9:50 pm
by FFG_Garage
I think I found something about my erre message:

my error message is:

Code: Select all

Run carlosperate/arm-none-eabi-gcc-action@v1.11.0
  with:
    release: 14.2.Rel1
  env:
    BUNDLE_DATE: 2025-11-27
    TOKEN: ***
    WHITE_LABEL: rusefi
    RUSEFI_SSH_SERVER: 
    RUSEFI_SSH_USER: 
    RUSEFI_SSH_PASS: 
    bundle_upload_folder: build_server
    AUTOMATION_LTS: false
    BUNDLE_SIMULATOR: false
    RUN_SIMULATOR: true
    AUTOMATION_REF: main
    META_OUTPUT_ROOT_FOLDER: ../../../generated/
    DEFAULT_TUNE_OUTPUT_FOLDER: ../../../generated/
    ABSOLUTE_BOARD_DIR: /home/runner/work/fw-407_FFG_Mini/fw-407_FFG_Mini/.
    BOARD_DIR: ../../..
    BOARD_META_PATH: ../../../meta-info.env
    SHORT_BOARD_NAME: FFG_Mini
    PROJECT_BOARD: FFG_Mini
    BUNDLE_NAME: FFG_Mini
    current_date: 2025-11-27
    EXTRA_LIVE_DATA_FILE: 
    EXTRA_FILES_TO_COPY_ON_IMAGE_FOLDER: 
Cache miss, downloading GCC 14.2.Rel1 from https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz ; MD5 fcdcd7c8d5b22d2d0cc6bf3721686e69
GCC release downloaded, calculating MD5...
Downloaded file MD5: dcf88c676aba238cd3a922f590c22ff9
Error: Downloaded GCC MD5 doesn't match expected value: dcf88c676aba238cd3a922f590c22ff9 != fcdcd7c8d5b22d2d0cc6bf3721686e69
the script is run from here:

https://github.com/carlosperate/arm-none-eabi-gcc-action/tree/main/dist

in the index.js file I found this:

Code: Select all

linux_x86_64: {
            url: 'https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz',
            md5: 'fcdcd7c8d5b22d2d0cc6bf3721686e69',
        },
but when the firmware buld script try to download the file, the file MD5 checksum is different, don't allow the file and the script stop and show the error.

the question: how can I mod the MD5 info in the index.js file to match the (maybe new?) arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz file's MD5?

Re: Custom Firmware compile error after nov 23

Posted: Fri Nov 28, 2025 2:25 pm
by Automate
I'm seeing a similar error just trying to compile the standard boards with GH Actions, not a custom one.

Run carlosperate/arm-none-eabi-gcc-action@v1.11.0
Cache miss, downloading GCC 14.2.Rel1 from https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz ; MD5 fcdcd7c8d5b22d2d0cc6bf3721686e69
GCC release downloaded, calculating MD5...
Downloaded file MD5: 35f065bff7d775b66f707629e3ded22c
Error: Downloaded GCC MD5 doesn't match expected value: 35f065bff7d775b66f707629e3ded22c != fcdcd7c8d5b22d2d0cc6bf3721686e69

Re: Custom Firmware compile error after nov 23

Posted: Fri Nov 28, 2025 9:05 pm
by FFG_Garage

Re: Custom Firmware compile error after nov 23

Posted: Sat Nov 29, 2025 1:30 pm
by Automate
Looks like the upstream problem has been solved but I assume our actions need to be modified?
image.png

Re: Custom Firmware compile error after nov 23

Posted: Sat Nov 29, 2025 6:11 pm
by AndreyB
Automate wrote:
Sat Nov 29, 2025 1:30 pm
Looks like the upstream problem has been solved but I assume our actions need to be modified?
done? https://github.com/rusefi/rusefi/commit/4de0eefe02622b349774c7fac9ac3c72afd7fb91