Try GrainOS on your Miyoo Mini Plus
This page takes you from a blank SD card to a first jam on the console, step by step. It takes about 40 minutes, 10 of them playing. Nothing here can damage the console: GrainOS lives only on the SD card and never writes to the console’s own memory. To get your normal system back at any time, see Going back to normal.
Which card is this? This page covers building and testing a card from the current source (P8: TECHNO and CHORD modes). For what each button does, see the Reference. Already have a GrainOS card? See How-to guides for updating it without formatting.
What you need: a spare microSD card (any size from 2 GB; everything on it will be erased), the Miyoo
Mini Plus, wired headphones, the project folder on your PC (~/Projects/grainos), and a card reader.
What this test is for. Three things: (1) does the card start the instrument at all, (2) the built-in self-test measures how fast the console is and how steady the sound is, so nobody has to guess, (3) you play for ten minutes and tell us how it feels. A bad result is useful too: the console writes down what happened and you send us the files.
1. Prepare the card on your PC
The card files are already built, in ~/Projects/grainos/dist/sdcard/. You do not need to build
anything.
Aside: if you built it yourself, or want a fresh build, run this in ~/Projects/grainos:
make miyoo-docker && make miyoo-check && make card. The first time, run make toolchain first. If that printed a Wi-Fi WARNING, it is fine: the
Wi-Fi driver file 8188fu.ko will just be missing, and GrainOS does not use Wi-Fi yet.
Use an empty spare card. Formatting erases everything. Never use your games card (for example an Onion card with your Roms). Unplug your games card from the PC before you start, so it cannot be picked by mistake.
All commands below are typed in a terminal.
1a. Find the card (this step matters: pick the wrong disk and you erase it)
Put the spare card in the reader and run:
lsblk -o NAME,SIZE,RM,TRAN,MODEL,LABEL,MOUNTPOINTS
Look for the line with your card’s size, 1 in the RM column and usb in the TRAN column (for example
sdb 29.7G). Its partition is the line under it (sdb1). Below, /dev/sdX1 means your partition,
for example /dev/sdb1, and /dev/sdX the whole card (/dev/sdb).
A built-in SD slot in your laptop shows up differently: as mmcblk0 (partition mmcblk0p1) with an
empty TRAN column. Then use /dev/mmcblk0p1 where this guide says /dev/sdX1 and /dev/mmcblk0 where it
says /dev/sdX. Your PC’s own disk is nvme0n1 or sda: never use that one.
If you are not 100% sure which line is the card, unplug it, run the command again, and see which line disappears.
Before erasing anything, check once more with your partition name:
lsblk /dev/sdX1
The SIZE must be your card’s size, and MOUNTPOINTS must not show / or /home (a card may show
/run/media/...). If anything looks different, stop.
1b. Erase and format it as FAT32 (the Miyoo only reads FAT32)
sudo umount /dev/sdX1 # ignore "not mounted"
sudo mkfs.vfat -F 32 -n GRAINOS /dev/sdX1
If mkfs.vfat is not found, your system lacks the dosfstools package. Install it with your package
manager (on Fedora: sudo dnf install dosfstools), or format the card with the “Disks” app (Format, type
FAT, name GRAINOS). Cards of 64 GB and larger may need the Disks app, which makes a FAT32 partition for
you.
1c. Copy GrainOS onto it
Unplug and plug the card again (or open it in the file manager). It appears as GRAINOS, usually at
/run/media/$USER/GRAINOS. The drive letter may have changed after replugging, so run the lsblk
command from 1a again before you eject at the end. Then:
cp -r ~/Projects/grainos/dist/sdcard/. /run/media/$USER/GRAINOS/
sync
Note the dot after sdcard/: it makes the copy include the hidden folder .tmp_update, which is the
part that starts GrainOS. If you drag and drop in a file manager, turn on “Show hidden files” (Ctrl+H)
first, and drag everything inside sdcard, not the folder itself.
Check:
ls -A /run/media/$USER/GRAINOS /run/media/$USER/GRAINOS/grainos
You must see .tmp_update and README.txt on the card (and 8188fu.ko unless the build printed the Wi-Fi
WARNING), and in grainos: bin boot.sh poweroff.sh audio.cfg samples DEVICE-TEST.md BUILD.txt, and
inside bin the file grainos.
Eject it properly (this prevents a half-written card):
udisksctl unmount -p /run/media/$USER/GRAINOS
lsblk -o NAME,SIZE,RM,TRAN,MOUNTPOINTS # find the card again (the letter may have changed)
udisksctl power-off -b /dev/sdX
(udisksctl unmount by path cannot hit the wrong disk. Use the whole-disk name that lsblk shows now.)
If you are not on Linux
- Windows: format the card with “SD Card Formatter” (sdcard.org) as FAT32, or in Explorer (right-click
the card, Format, FAT32). Turn on View > Show > Hidden items. Select everything inside
dist\sdcard, including.tmp_update, and copy it to the card’s top level. Use “Safely remove” afterwards. - Mac: format with Disk Utility (MS-DOS FAT). In Terminal:
cp -R dist/sdcard/. /Volumes/GRAINOS/ && sync, then eject the card in Finder.
2. First start
- Make sure the console is off. Put the card in the SD card slot (the one for games).
- Plug headphones in. Turn the console’s volume down first.
- Switch on. What you should see:
| Time after power on | What you see or hear |
|---|---|
| 0 to 5 s | the usual Miyoo startup chime and a black screen |
| about 5 to 10 s | the screen lights and shows SELFTEST with lines of text appearing |
| 10 s to about 1 min | the lines keep coming (do not press anything while the bottom line says “measuring”). It is usually done in a minute; up to 2 are normal. |
| the last 30 s before the result | the bottom line changes to AUDIO TEST … press buttons. Now tap a few buttons (not MENU held) every few seconds: this measures how late button presses are noticed. You may hear the instrument, or nothing. |
| end | a big SELFTEST PASS (green hint at the bottom), WARN or FAIL, with the reasons listed, and “A = start the jam” |
- Read the result. WARN is normal on a first run (for example “mono” or “latency”): it just means something should be looked at later. FAIL means a real problem. Still press A and see if sound comes, and send us the report. Take a phone photo of this screen.
- Press A. The jam starts: a groove is already playing (120 BPM, dub techno).
The self-test only runs by itself the first time. Run it again any time from the in-app menu (tap MENU,
pick SELF-TEST), or by deleting grainos/first_boot_done on the card.
3. The ten-minute jam checklist
Use headphones, volume low at first. Tick each one; note anything odd. (The full list of buttons is on Commands and controls.)
| # | Try this | You should |
|---|---|---|
| 1 | Just listen for 30 seconds | hear a steady groove, no crackles or dropouts |
| 2 | Listen to each ear (lift one earpiece, then the other) | hear sound in both ears, a wide pad and echoes |
| 3 | Press Up a few times, then Down | the music gets fuller (ENERGY 0 to 7) on the next bar |
| 4 | Press A | the kick drum switches off and on |
| 5 | Press X then Y | the chord changes |
| 6 | Hold Left, then Right | the chord filter sweeps down and up |
| 7 | On the PLAY page, hold L2 and press Left (hold), then Right (hold) | DJ filter on the whole mix: low-pass, then high-pass |
| 8 | Hold B | the echo throws: long repeats that ring after you let go |
| 9 | Hold R2 | stutter on the beat |
| 10 | Hold L2 and hold X for at least 4 seconds (a few bars), then let go | the music builds up, then drops on the next bar line |
| 11 | L1 and R1 | other pages (parts, kick, hats, chords, FX…) with their own values |
| 12 | Press START | the music stops at the bar, and starts again |
| 13 | Volume + / - | the level changes |
| 14 | Keep the console playing for a few minutes | no stutters, the screen stays smooth, the console does not get very hot |
| 15 | Hold MENU for 1 second | a yellow bar fills at the bottom, the sound fades out, the screen says POWERING OFF, and the console switches off by itself within a few seconds |
Also try a quick tap on MENU: a small menu appears (Resume, Self-test, Power off). B or MENU closes it.
Press all the buttons and see whether anything feels late or does nothing. That is exactly the information we need.
4. What to send back
Put the card in the PC again. Everything is in the grainos folder on the card:
| File | What it is |
|---|---|
report-1.txt (and report-2.txt…) | the self-test measurements. The most important file. |
grainos.log (and grainos.log.old if it exists) | everything the app did, with times, since the start |
BUILD.txt | which build this was (it says if the source had uncommitted changes) |
audio.cfg.safe-note.txt, if it exists | tell us it exists: it means safe mode switched on by itself |
| a phone photo | only if the screen showed something wrong (garbled, upside down, black bars) or the self-test said WARN or FAIL |
Also write a few lines: what worked, what did not, what felt good or bad, whether the sound was clean, anything that surprised you. Short is fine.
5. If something goes wrong
| What happens | What to do |
|---|---|
| Black screen for more than 30 s | Hold the power button 10 s to switch off. Switch on again (a second try is often enough). Two failed starts in a row switch GrainOS into safe mode (mono sound, calmer settings) by itself (see Leaving safe mode). If it is still black, take the card out and read grainos/grainos.log on the PC, send it, and use “Going back to normal” below to get your console back. |
| The screen is upside down or garbled | Take a phone photo, press on anyway, and send the photo. |
| No sound | Check the headphones are fully in and the volume is up (Volume +). Check the self-test report. Then try mono: on the card open grainos/audio.cfg with a text editor, delete the # in front of stereo=1 and change it to stereo=0. Save and try again. |
| Sound only in one ear or garbled | same as above (stereo=0) |
| Crackles or dropouts | in grainos/audio.cfg use target_ms=100 (remove the #). Try again. Tell us if it helped. |
| The console freezes or the buttons do nothing | Hold the power button 10 s to switch off. Send grainos.log. |
| It starts, then powers off by itself after a few seconds | That is the safety net: GrainOS crashed 3 times and gave up so you are not stuck in a loop. Send grainos.log. |
| The self-test says FAIL | Press A anyway to try the jam. Send the report. |
| You want the self-test again | tap MENU > SELF-TEST, or delete grainos/first_boot_done on the card. |
Leaving safe mode
Safe mode stays on until you switch it off by hand. On the card (on the PC), in the grainos folder:
- Delete
audio.cfgandaudio.cfg.safe-note.txt. - If a file
audio.cfg.mineexists, rename it toaudio.cfg(it is your own settings from before). - Delete
.uncleanif it exists (it is hidden: turn on “Show hidden files”, or in a terminalrm -f /run/media/$USER/GRAINOS/grainos/.unclean).
While safe mode is on, audio.cfg holds the calm settings (stereo=0, rt=0, mlock=0,
target_ms=60, frames=16), so the “No sound” and “one ear” advice above does not apply: the sound is
mono on purpose. Tell us it happened, and send grainos.log.
Going back to normal
GrainOS never changes the console’s internal memory, so your normal system (or Onion) is always one step away. The simplest way: switch the console off, take the GrainOS card out, and put your normal games card back in. The console starts the way it always did. The GrainOS card stays separate: keep it for GrainOS and do not put your games on it.
If you want to turn GrainOS off on the GrainOS card itself (for example to boot that card without GrainOS):
- Switch off (hold the power button if needed) and take the card out.
- On the PC, open the card and rename the hidden folder
.tmp_updatetotmp_update_off(in a terminal:mv /run/media/$USER/GRAINOS/.tmp_update /run/media/$USER/GRAINOS/tmp_update_off).
To use GrainOS again, rename it back to .tmp_update.
Words used here
- Self-test: a program that measures the console (speed, sound steadiness) and writes the numbers down.
- Underrun / dropout: the sound system ran out of audio for a moment: you hear a click or a gap.
- Mono / stereo: one channel or two (left and right ears).
- Log: the text diary the app keeps (
grainos.log). - Safe mode: calmer settings GrainOS switches to by itself after two failed starts in a row.
- Build: one exact version of the program. Your card says which one in
grainos/BUILD.txt.