Go to file
Kienan Stewart 3c6eb79834 Avoid using magic in /boot to make changes 2021-12-19 22:12:08 -05:00
build Initial commit 2021-12-18 15:56:45 -05:00
scripts Fix RPI boot by copying the first 8k of existing image 2021-12-19 21:17:33 -05:00
.gitignore Initial commit 2021-12-18 15:56:45 -05:00
Containerfile Avoid using magic in /boot to make changes 2021-12-19 22:12:08 -05:00
README.md Change keymap, add option for wifi, new password, and ssh 2021-12-19 21:17:57 -05:00

README.md

Pileogoo

An image for having a Raspberry Pi control an Elegoo saturn.

This is based off of https://l9o.dev/posts/controlling-an-elegoo-mars-pro-remotely/

This particular image is principally aimed at the Raspberry Pi (512M original Rev) with a wifi dongle.

Building

  1. Download the raspberry image and link rpi.img to that file
  2. Run the following commands
# Creates root.tar.gz and boot.tar.gz
sudo ./scripts/extract_root.sh

# Export any settings (optional)
export RPI_WIFI_NETWORK=mywifi
export RPI_WIFI_PASSPHRASE=mywifi
export RPI_PASSWORD=raspberry

# Run the build
podman build --rm=false --platform linux/armv/v7 -t localhost/pileogoo .
CONTAINERID=$(podman create localhost/pileogoo /bin/bash)
podman export -o build/all.tar "${CONTAINERID}"

# Creates a new image from the exported copy
sudo ./scripts/extract_build.sh
rm ./build/all.tar

Errors

standard_init_linux.go:228: exec user process caused: exec format error

  • this is caused by the image not matching the architecture: make sure you can run non-native archiectures by checking the Installation steps.

Installation

Install qemu-system-arm, qemu-user-static, and qemu-user-binfmt to provide arm architectures.

Note that not all versions of the Raspberry Pi are supported in qemu. For eg.

$ qemu-system-arm -M help | grep rasp
raspi0               Raspberry Pi Zero (revision 1.2)
raspi1ap             Raspberry Pi A+ (revision 1.1)
raspi2               Raspberry Pi 2B (revision 1.1) (alias of raspi2b)
raspi2b              Raspberry Pi 2B (revision 1.1)