-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[FR] Update toolchains to support compiling on Raspberry Pi #27486
Comments
It's a platformio issue because it depends on the compiler toolchain that platformio provides. As your error message indicates, platformio does not provide the proper toolchain for aarch64, which is needed for an arm64 such as a raspberry pi. This isn't something Marlin can address directly. It might be possible to update to another version of ststm32, which presumably might offer aarch64 support, but that would also likely require fixing up all the different variants and such along with it. It's not just a trivial version bump. #25327 is a good example of this. |
I see there's an alternative
maybe there's a way to use ststm32 12.1 with this
Just thinking out loud, not much experience with this. But I was a bit surprised to see Marlin cannot compile on a (64-bit; haven't tested 32-bit) Raspberry Pi OS (and how this, again, makes it different vs Klipper).
I hope it is! |
Well turned out that was simple.... Tested on RPI5 bookworm 12 with patch: diff --git a/ini/stm32-common.ini b/ini/stm32-common.ini
index ec058d1..e3cabbd 100644
--- a/ini/stm32-common.ini
+++ b/ini/stm32-common.ini
@@ -30,6 +30,7 @@ custom_marlin.TFT_TOUCH_DEVICE_GT911 = build_src_filter=+<src/HAL/STM32/tft/gt91
# STM32 board based on a variant.
#
[stm32_variant]
+platform_packages = toolchain-gccarmnoneeabi@~1.100301.0
extends = common_stm32
extra_scripts = ${common_stm32.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py Result without patch:
Result with patch:
update: also tried with the latest
|
When I try to compile Marlin on a Raspberry Pi 3b+ (debian bookworm, 64bit) it fails with:
Describe the feature you want
I would like to be able to compile Marlin on a 32 and 64-bit Raspberry Pi.
Additional context
This issue was raised before (#23815) but it was closed with rather vague comment about it being a platfomio issue. What issue specifically? I think it's more an issue with Marlin using an ancient
ststm32@~12.1
(released in june 2021) which doesn't supportlinux_aarch64
?The text was updated successfully, but these errors were encountered: