Problems Building Firmware on Raspbian
I have a Raspberry Pi 400 running the latest Rapsbian OS. When I try to build the firmware (per Linux instructions in the Readme) I get an error result with:
/home/pi/PF-build-env-1.0.6.1/arduino: line 35: /home/pi/PF-build-env-1.0.6.1/java/bin/java: cannot execute binary file: Exec format error
As best I can figure, this happens because the build procedure creates and attempts to use an x86 Java environment, which cannot run on ARM based Linux. Has anyone found a way to circumvent this or another reliable method of building on a Pi?
I should mention, I went ahead and built the firmware using Git-Bash on Windows instead. I needed to increase my Z max. However, since I have a Pi 400 that currently runs FreeCAD, Blender, PrusaSlicer, and Octoprint, the last holdout for the entire workflow is that I can't build firmware without the aid of another computer.
RE: Problems Building Firmware on Raspbian
Perhaps you should post on OctoPrint board.
RE: Problems Building Firmware on Raspbian
@towlerg
This is a raspberry pi running stock Raspbian OS, trying to build Prusa firmware. My issue has nothing to do with Octoprint aside from the fact that Octoprint is also installed on it.
RE: Problems Building Firmware on Raspbian
You need to install the RPi version of the Arduino environment and use that one. Note that this needs an older version, as the newer ones come with a compiler which does not like the Prusa FW code. Do not use the provided build.sh script (but you probably need to do some manual steps afterwards)