This guide sets up RetroPie on a Raspberry Pi 5 for Pokémon from Red and Blue through Black and White, with one core family per console and a log you run yourself for the DS games. The board is the part with a published price: the raspberry.tips Pi price and lifecycle table, checked 12 November 2026, lists it from $77.50 for 2GB to $175 for 8GB. Step 10 gives you the log to record your own frame rates on the DS games.
Don't miss new tech stories on Google
Add Tech Insider once in the Google app and our stories appear in your news suggestions.
Red to White on a Pi 5, and where this build stops
Pokémon on this board is three emulation jobs. Generations one and two live on Game Boy and Game Boy Color, generation three on Game Boy Advance, and generations four and five on the Nintendo DS. The tuning effort in this guide goes to the DS games, which is why the log in Step 10 exists.
| Games | Platform | Core | Role in this build |
|---|---|---|---|
| Red / Blue / Yellow | Game Boy | Gambatte or SameBoy | Target is the console’s own speed |
| Gold / Silver / Crystal | Game Boy Color | Gambatte or SameBoy | Target is the console’s own speed |
| Ruby / Sapphire / Emerald / FireRed / LeafGreen | Game Boy Advance | mGBA | Target is the console’s own speed |
| Diamond / Pearl / Platinum | Nintendo DS | melonDS first, DeSmuME if a title misbehaves | The generation to tune and log |
| HeartGold / SoulSilver | Nintendo DS | melonDS first, DeSmuME if a title misbehaves | The generation to tune and log |
| Black / White | Nintendo DS | melonDS first, DeSmuME if a title misbehaves | The generation to tune and log |
The libretro documentation for the Gambatte core lists SameBoy and mGBA among its Game Boy, Game Boy Color and Game Boy Advance cores, which is why the table names those.
The boundary is Black and White. Pokémon from X and Y onward are 3DS and Switch games and sit outside this build; for the Switch generations, our Eden guide for Pokémon on Switch picks up where this one stops.
If you want to play away from a TV, the PCBWay Poké Pi project page describes a Raspberry Pi 4 cyberdeck “designed to play classic Pokémon games, along with other retro titles, in a portable and completely custom-built form factor” (page read 12 November 2026), so it is not limited to the first generation. Android is a separate route, covered in our Lemuroid setup guide for Android. If you would rather not configure RetroPie by hand, Batocera’s download page lists a Raspberry Pi 5 build; this guide does not cover it.
Pi 5 boards at 2GB, 4GB and 8GB: $77.50 to $175
The raspberry.tips table, checked 12 November 2026, lists the Pi 5 at $77.50 for 2GB, $110 for 4GB and $175 for 8GB. The 2GB figure follows Raspberry Pi’s announcement that from 1 October 2026 the 2GB Pi 5 rose by $12.50 to $77.50, while the 1GB variants of Raspberry Pi 4 and Raspberry Pi 5 kept their prices. The same table lists every Pi 5 variant with production until at least January 2036, so a one-off build is unlikely to be orphaned soon. The current spec document is the Pi 5 product brief (PDF, updated 2 Nov 2026) on Raspberry Pi’s Product Information Portal, which also carries a separate brief for the Pi 5 case (updated 26 Feb 2026).
| RAM tier | Board price | Extra over the 2GB board | Extra over the 4GB board |
|---|---|---|---|
| 2GB | $77.50 | n/a | n/a |
| 4GB | $110 | $32.50 (42%) | n/a |
| 8GB | $175 | $97.50 (126%) | $65 (59%) |
Stepping from 2GB to 4GB costs $32.50 (42% more), and 8GB costs $97.50 (126% more) than the 2GB board. The 8GB board is $65, or 59%, above the 4GB one. Everything else in the kit (power supply, cooler, card, cable, gamepad) is priced at your own retailer and sits on top of these figures.
Whether the extra memory pays off is something to measure, not assume: run free -h during a DS session and see how much memory is actually in use before you spend the $65 between 4GB and 8GB. If the log in Step 10 points to heat instead, the money is better spent on cooling.
Steps 1 to 5: Pi OS Lite, the setup script, and your own ROMs and DS firmware
Step 1: Choose the board and accessories
Pick the tier from the board table. Besides the board you need a power supply (take the rating from the product brief), a cooler, a microSD card, a cable that fits the board’s video output and a gamepad with a d-pad. Buy the card from an authorized seller: raspberry.tips notes that microSD cards wear out under frequent writes, which is why Step 12 is about backups.
Step 2: Write Raspberry Pi OS Lite
Write Raspberry Pi OS Lite to the microSD card from your main computer. RetroPie itself is installed on the running system in Step 4.
Step 3: First boot and updates
Put the card in the Pi, connect HDMI and power, and log in over SSH, replacing the username and hostname in the first line with your own.
ssh [email protected]
sudo apt update
sudo apt full-upgrade -y
sudo reboot
Step 4: Install RetroPie and the cores
sudo apt install -y git
git clone https://github.com/RetroPie/RetroPie-Setup.git
cd RetroPie-Setup
sudo ./retropie_setup.sh
When the install finishes, run emulationstation and configure your gamepad when prompted.
Step 5: Dump and place your own files
Pokémon’s legal information page lists Pokémon, Nintendo DS and Nintendo 3DS among Nintendo’s trademarks, and its copyright line credits Nintendo, Creatures Inc. and GAME FREAK inc. This guide links to no ROM sites and assumes you dump your own cartridges (Game Boy, Game Boy Color and Game Boy Advance carts with a cartridge reader) and the BIOS and firmware from your own DS or DS Lite, following the instructions of whichever dumping tool you use. Keep those dumps private: do not upload them or include them in any card image you share.
~/RetroPie/roms/gb/ # Pokemon Red.gb, Pokemon Blue.gb
~/RetroPie/roms/gbc/ # Pokemon Gold.gbc, Pokemon Crystal.gbc
~/RetroPie/roms/gba/ # Pokemon Emerald.gba, Pokemon FireRed.gba
~/RetroPie/roms/nds/ # Pokemon Platinum.nds, Pokemon HeartGold.nds
The tilde is your home folder, so the path follows the username you chose. Keep extensions lowercase and correct for the system. Place the DS BIOS and firmware files where your DS core’s documentation says it looks for them, under the exact names it expects, and do not rename them. For the Game Boy Color generation in depth, see our SameBoy guide for Pokémon Gold, Silver and Crystal.
Steps 6 to 8: Gambatte or SameBoy, mGBA, and the DS cores
Step 6: Game Boy and Game Boy Color
Launch any ROM in the gb folder. When RetroPie shows its prompt to configure launch options, press a button and select the emulator for the system, then choose Gambatte or SameBoy. Repeat for gbc. Pick one and keep the other installed; if a ROM misbehaves, switching cores for that system is the first thing to try.
Step 7: Game Boy Advance
Set mGBA as the default core for the gba folder the same way. Then check these lines in your RetroArch retroarch.cfg:
video_threaded = "true"
audio_sync = "true"
video_vsync = "true"
Leave shaders off for this generation. Step 12’s script backs up both save and state files. For the mGBA route in more depth see our Emerald guide, whose cheat setup uses the same core family.
Step 8: Nintendo DS
Set melonDS as the default core for nds and keep DeSmuME as the fallback for any title that behaves badly. Check your DS core’s documentation for which BIOS and firmware files it needs and where it looks for them. Option names differ between core versions, so open Quick Menu, then Core Options, in-game and look for these:
- Renderer: start with the software or OpenGL option your core build offers, and change one thing at a time.
- Resolution: leave it at native and raise it only if the log in Step 10 shows spare headroom.
- Threaded rendering: on, where the core offers it.
- Frameskip: off first; turn it on only if slowdown is constant.
Log Platinum, HeartGold and Black or White separately rather than assuming one stands in for the others.
Steps 9 and 10: touch actions on a gamepad, cooling, and a log you run yourself
Step 9: Controls for two screens
In the DS core’s options choose a screen layout that shows both screens, then in Quick Menu, Controls, bind a pointer or touch action to the right stick or a spare button if your core build offers one. Test it on a throwaway save before you start a real one.
A pad that works in EmulationStation but not in a game usually means the core mapping was never saved.
Step 10: Cooling, the log, and overclocking last
Fit the cooler from Step 1 before you start. A frame-rate drop that comes with a rising temperature or a changed get_throttled value suggests the board rather than the core, so compare before changing cores. This protocol records your own numbers:
- Turn on RetroArch’s frame-rate display in its settings, and add
rewind_enable = "false"toretroarch.cfgso every run uses the same settings. - With the board idle, run
vcgencmd measure_tempover SSH and write down the start temperature. - Load Platinum or HeartGold from the same save and play one fixed route for the same length of time each run: a busy city with many characters, then a battle. Note the lowest frame rate you see.
- While the game is still running, run
vcgencmd measure_tempandvcgencmd get_throttledfrom a second SSH session and write down exactly what each prints. - Change one setting or core, repeat the same route, and add a row.
| Game | Core | Settings changed | Lowest FPS | Start temp | End temp | get_throttled value |
|---|---|---|---|---|---|---|
Overclock only after this log shows what is holding the frame rate down. Per raspberry.tips’ boot guide, the file on a running system is /boot/firmware/config.txt. Take any values from Raspberry Pi’s own config.txt documentation, change one at a time, rerun the log, and make a full card backup (Step 12) first so you can roll back.
Steps 11 and 12: trading between units, and a backup that cannot wipe your saves
Step 11: Netplay
RetroArch netplay synchronises a running session between two devices. Per the libretro netplay FAQ, the host must accept incoming connections on TCP port 55435, which for most people means port forwarding on the router. On a home network, try joining by the host’s local IP address first. Use the same ROM file and the same core version on both units, load the game, open the Netplay menu and host on one unit, then choose Connect to Netplay Host on the other and enter the address and port.
Netplay syncs an emulator session. Whether a game’s own link trade or battle then works through it depends on the core and the title, so prove it on throwaway saves before putting a real Pokémon through it. For trading on 3DS-era games, our Pretendo Network guide for Pokémon 3DS trading covers a different mechanism.
Step 12: Back up saves and clone the card
This script copies .srm, .sav and .state files from the roms folder tree to a mounted drive (change SRC if your saves live elsewhere). It refuses to run if the drive is missing, builds the copy in a temporary folder and moves it into a dated folder, and never deletes anything from the destination. The trap removes the temporary folder if the run is interrupted.
#!/bin/sh
set -eu
SRC="$HOME/RetroPie/roms"
MNT=/mnt/backup
DEST="$MNT/retropie-saves"
mountpoint -q "$MNT" || { echo "backup drive not mounted at $MNT" >&2; exit 1; }
mkdir -p "$DEST"
STAGE=$(mktemp -d "$DEST/.partial.XXXXXX")
trap 'rm -rf "$STAGE"' EXIT
rsync -a --prune-empty-dirs \
--include='*/' --include='*.srm' --include='*.sav' --include='*.state*' \
--exclude='*' "$SRC"/ "$STAGE"/
mv "$STAGE" "$DEST/$(date +%Y-%m-%d-%H%M)"
Save it as a script in your home folder, make it executable, run it by hand once, then schedule it weekly with crontab -e. To keep a second copy on another computer, push the dated folders with rsync -avz, which has no delete option set and so never removes files there:
rsync -avz /mnt/backup/retropie-saves/ user@otherhost:retropie-saves/
Always shut the Pi down from EmulationStation’s menu instead of pulling the plug, since a power cut during a write can corrupt a save.
Once the build works and before you have played much, clone the whole card from another computer with the card in a reader. Confirm the device name first, because swapping if and of overwrites the card. On Linux:
lsblk # find the card by its size before you run dd
sudo dd if=/dev/sdX of=retropie-card.img bs=4M status=progress conv=fsync
On a Mac, find the card with diskutil list, unmount it, clone it, then eject it:
diskutil list
diskutil unmountDisk /dev/diskN
sudo dd if=/dev/rdiskN of=retropie-card.img bs=4m
diskutil eject /dev/diskN
To restore, write that image back with Raspberry Pi Imager’s custom image option. If card wear worries you, raspberry.tips’ USB SSD boot guide says microSD cards wear out under frequent writes and that from the Pi 4 onwards an SSD also makes the system noticeably faster.
Step 13 and the repairs: artwork, shaders, and symptom to fix
Step 13: Artwork and shaders
Name ROM files close to their official titles, then run EmulationStation’s built-in scraper one system at a time, so you can fix mismatches before they spread through the library. Bezels and light shaders suit the Game Boy generations. Keep shaders off for DS games, where the extra GPU work is the first thing to remove if your log shows slowdown.
| Symptom | Likely cause | Fix |
|---|---|---|
| Black screen on a DS game | Firmware missing, renamed, or a different console’s firmware used | Check the files are where your DS core’s documentation says, under the exact names it lists |
| Undervoltage warning or random crashes | Weak supply or a thin, long USB-C cable | Use the supply rating from the product brief and a short cable; record get_throttled afterwards |
| Pad works in menus, not in a game | Core mapping not saved | Re-map in Quick Menu, Controls, and save the mapping |
| Slowdown in busy DS scenes | Resolution, shader, or throttling | Native resolution, shaders off, then compare temperature and get_throttled in your log |
| Save missing or reverted to an older one | Two sessions on one save, or power loss mid-write | Restore the latest dated backup from Step 12 |
| Corruption after power loss, or a card that fails | Unclean shutdown or a worn card | Shut down from the menu, buy cards from authorized sellers, or move to USB SSD boot |
| Netplay desyncs or will not connect | Different core version or ROM file, or port 55435 not reachable | Match core and ROM on both units; forward the port if joining across networks |
| RetroPie-Setup update fails or hangs | No network, or a package mirror that is slow | Confirm the connection over SSH with ping, then rerun the update |





