Phase 0: Setup & Foundations (No Docker Edition)
This version of Phase 0 uses the union-miyoomini-toolchain directly on your host machine instead of Docker. It is the most common non-Docker approach used by Miyoo homebrew developers.
Get a working Rust server and Miyoo SDL2 client that can connect and exchange basic data.
A Miyoo binary that connects to your Rust server over WiFi and shows a moving player sprite.
This is the official/recommended toolchain for Onion OS development.
~/miyoo-toolchainexport PATH="$HOME/miyoo-toolchain/bin:$PATH"
mkdir miyoo-extraction-rpg
cd miyoo-extraction-rpg
cargo new --bin server
cargo new --lib shared
Edit the root Cargo.toml to make it a workspace with members ["server", "shared"].
Same as before — add serde, bincode, etc. to shared/Cargo.toml and define basic Packet enum and Class enum.
Add tokio, bincode, etc. to server/Cargo.toml and create a minimal Tokio TCP+UDP echo server.
In your client folder, create a simple SDL2 project. Use a Makefile that points to the toolchain:
CC = arm-linux-gnueabihf-gcc
# Link against SDL2 libs from Onion (copy libs from your Miyoo SD card if needed)
Download 16×16 tilesets and sprites. Compile the client with the toolchain and copy the resulting binary to your SD card as a proper .app folder.