A bash script to automate the installation and setup of OnionOS, BIOS files, and ROM sets for Miyoo Plus devices.
- BIOS files and ROM sets are NOT included with this script for legal reasons
- You must provide your own BIOS files and ROM sets
- Place them in the appropriate directories as described below before running the script
- ROM packs are completely optional - you can choose to install only OnionOS and add your own games later
- The script will format your SD card if you choose a new installation - ALL DATA WILL BE ERASED
.
├── BIOS/ # Place your BIOS files here
├── sets/ # ROM sets directory
│ ├── done-set-three_202501/
│ │ ├── Configs for Plus Model/
│ │ ├── Configs for V4 Model/
│ │ ├── Done Set 3/
│ │ │ └── Roms/
│ │ ├── Imgs (2D Box)/
│ │ ├── Imgs (2D Box and Screenshot)/
│ │ ├── Imgs (Miyoo Mix)/
│ │ ├── PS1 Addon for 256gb SD Cards/
│ │ └── Sensible Console Arrangement/
│ ├── tiny-best-set-go-games/
│ │ └── Roms/
│ ├── tiny-best-set-go-imgs-onion/
│ │ └── Roms/
│ ├── tiny-best-set-go-expansion-64-games/
│ │ └── Roms/
│ ├── tiny-best-set-go-expansion-64-imgs-onion/
│ │ └── Roms/
│ ├── tiny-best-set-go-expansion-128-games/
│ │ └── Roms/
│ └── tiny-best-set-go-expansion-128-imgs-onion/
│ └── Roms/
└── miyoo-onionos-setup.sh # The setup script
- Automated setup process with all choices collected at the beginning
- Safe SD card formatting with confirmation checks
- Automatic download and installation of the latest OnionOS version
- Installation of Easy Logo Tweak (automatically downloads latest version)
- BIOS files installation (optional)
- Optional ROM set installation with multiple choices:
- Done Set Three
- Model-specific configurations (Plus/V4)
- Optional PS1 games
- Choice of artwork styles:
- Miyoo Mix (Recommended)
- 2D Box
- 2D Box with Screenshots
- Tiny Best Set GO Options:
- Main set only
- Main + 64GB expansion
- Main + 64GB + 128GB expansion
- Or choose to skip ROM installation entirely and add your own games later
- Done Set Three
- Debug mode for detailed installation information (--debug flag)
- Safe device mounting and unmounting
- Progress indicators for all file operations
- Linux operating system
- Sudo access
- Package manager (apt, dnf, or pacman)
- Internet connection for downloading dependencies
The script will automatically check for and install the following required packages if missing:
rsyncwgetcurlpartedudisks2
- Insert your SD card into your PC
- Clone or download this repository
- Place your BIOS files in the
BIOSdirectory - Place your ROM sets in the
setsdirectory following the structure above - Make the script executable:
chmod +x miyoo-onionos-setup.sh
- Run the script:
For detailed output:
./miyoo-onionos-setup.sh
./miyoo-onionos-setup.sh --debug
The script will guide you through the following steps:
-
Prerequisites Check
- Verifies required packages
- Installs missing dependencies
-
SD Card Selection
- Lists available USB devices
- Helps identify your SD card
-
Installation Type
- New Installation (formats SD card)
- Update Existing Installation
-
Component Selection
- OnionOS (required for new installations)
- Easy Logo Tweak (optional)
- BIOS files (optional)
- ROM sets (optional - you can skip this and add your own games later)
-
ROM Set Configuration
- Choice of ROM set package
- Model-specific settings (for Done Set Three)
- Artwork preferences
-
Configuration Review
- Shows summary of selected options
- Requires confirmation before proceeding
-
Installation
- Formats SD card (if selected)
- Downloads and installs components
- Shows progress for all operations
- Miyoo Plus
- Miyoo Mini V4
- Confirmation required for formatting
- Device details shown before format
- Safe device ejection
- Automatic mount point detection
- Progress tracking for all file operations
- Debug mode for detailed operation information
This script does not include any copyrighted BIOS files or ROMs. Users must provide their own files and ensure they have the legal right to use them.
Feel free to submit issues and enhancement requests!
