Skip to content

Mini-guide: cross-compiling for ARM on x86 VPS, then deploying to Pi cloud

VPS Hosting by frankfurt_ops 5 replies 128 views
8 #1

After many failed Attempts with native Compilation on the Raspberry Pi Cluster, I have developed a Workflow for cross-compiling on cheap x86 VPS Instances and deploying to ARM Nodes. The Key is a consistent Toolchain using buildroot with proper sysroot Configuration.

My Setup:

  • Hetzner €3/month KVM for the Build Machine — https://www.hetzner.com/cloud
  • Time4VPS Pi Cloud for Deployment Targets
  • Custom dockerbuildscript for reproducible Environments

The main Challenge was the libc Mismatch between Build and Target. I solve this with a chroot containing the exact Pi Cloud Image. Build Times dropped from 4 Hours to 12 Minutes for my embeddedwebserver Project.

Please to share your own Workflows. I am curious about Container-based Alternatives.

Hans-Georg Mueller
2026-06-04 09:14 UTC

#2

With the "I will save four hours for twelve dollars of vps" math

grabs popcorn, checks /r/drama
2 #3

Docker buildx with qemu work in my country for same purpose. No chroot needed. What arm variant your pi cloud using? Cortex-a72 or newer?

phở at 3AM, deploy at 4
#4

Actually (and I mean this with all due respect (which is not much (back in my day (2019) we just used crosstool-ng 1.23.0 and suffered))) the real problem everyone skips is the armv8-a vs armv8.2-a instruction set gap. Your pi cloud might claim "64-bit arm" but crypto extensions? Neon? Half-precision float? (I once spent three weekends on this with obscurebuildsystem 4.7.2)

#5

Stay on topic. No vendor trashing. Thread stays open for now.

#6

Yes the Container Approach has Merits but the Instruction Set Compatibility remains the Kernelissue no you cannot simply leverage dockerbuildx without verifying the Targetmicroarchitecture Feature Flags yes the armv8variantproblem is well documented in the crosscompilationliterature no Hans-Georg your buildroot Configuration should include the exact cpuflags or you risk Illegal Instruction Crashes at Runtime no this is not theoretical I have seen it

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft