Jun 19

RetroPie Install Guide

Hardware Used (Total Cost $178)

You can easily go cheaper on the hardware by getting USB controllers, getting a smaller MicroSD card, using an existing USB keyboard, not using the optional fan, etc. However, at minimum I would recommend the RaspberryPi v3 Model B+ (Latest as of this writing) and the Retroflag case!

Software Used

Resources

Update 8Bitdo Controller Firmware

  • Download the latest 8Bitdo Controller Firmware on a Windows Computer
    1. http://support.8bitdo.com
  • Run the update utility and follow the onscreen instructions

Create RetroPie SD Card

  • Download RetroPie image on a Windows Computer
  • Extract the image using 7zip
  • Connect the Micro SD card to the computer using a MicroSD card reader
  • In Windows, use balena Etcher to write the image on a MicroSD Card
    • Note: It will format the card for you.  If needed, you can format the card as fat so windows will recognize it prior to running etcher

Install the RaspberryPi Into the Case

  • Make sure the case is powered off
  • Attach the heatsinks onto the RaspberryPi
  • Install the RaspberryPi into the Retroflag case as per the directions
  • Switch the Safe Shutdown switch to ON
  • Connect the HDMI cable, Ethernet Cable, keyboard USB dongle, insert the microSD card, and insert the power cable

Configure Keyboard on First Boot

  • Make sure the keyboard dongle is connected and the keyboard is charged and powered on
  • Turn the power to β€œON” on the case
  • On the Welcome Screen, hold any button on the keyboard to configure it, and configure it as follows:
    • D-PAD UP: Up Arrow
    • D-PAD DOWN: Down Arrow
    • D-PAD LEFT: Left Arrow
    • D-PAD RIGHT: Right Arrow
    • START: 1
    • SELECT: 2
    • A: Enter (Same as OK key)
    • B: Escape
    • For all other keys, hold any button to skip configuring
    • When OK is highlighted, press the OK button
    • When prompted about not enabling a hotkey button, highlight YES and press OK to use the default select button
  • Navigate to the RetroPie menu and press OK on the keyboard
    • Select RASPI-CONFIG and press OK on the keyboard
      • Select Localization Options and press Enter on the keyboard
      • Select Change Keyboard Layout and press Enter on the keyboard
      • Select Generic 105-key (Intl) PC and press Enter on the keyboard
      • For the keyboard layout, select Other and press Enter on the keyboard
        1. Select English (US) and press Enter on the keyboard
      • Select English (US) and press Enter on the keyboard
      • Select Default Keyboard Layout and press Enter on the keyboard
      • Select No Composer Key and press Enter on the keyboard
      • Select Finish and press Enter on the keyboard

Optional – Connect to WiFi (Skip if using wired LAN)

  • Navigate to the RetroPie menu and press OK on the keyboard
  • Select RASPI-CONFIG and press OK on the keyboard
    • Select Localization Options and press OK on the keyboard
    • Select Change WI-FI Country and press OK on the keyboard
    • Select United States and press OK on the keyboard
    • Press OK on the success message
    • Select Finish and press OK on the keyboard
  • *Select WIFI and press OK on the keyboard
    • Select Connect to WIFI network and press OK on the keyboard
    • Select the SSID, and press OK on the keyboard
    • Enter the SSID PSIK and press Enter on the keyboard
    • Select Exit and press Enter on the keyboard

Optional – Update RetroPie

  • Navigate to the RetroPie menu and press OK on the keyboard
  • Select RETROPIE SETUP and press OK on the keyboard
    • Select Update and press Enter on the keyboard
    • When prompted, select Yes and press Enter on the keyboard
    • Press OK/YES to all proceeding messages
    • Select Exit and press Enter on the keyboard
  • If Retropie Does Not Boot Emulation Station and is stuck asking for the retropie login
    • Login as pi
    • Navigate to the RetroPie menu and press OK on the keyboard
    • Select RASPI-CONFIG and press OK on the keyboard
    • Select Boot Options and press OK on the keyboard
    • Select Desktop/CLI and press OK on the keyboard
    • Select Console Autologin and press OK on the keyboard
    • Select Finish and press OK on the keyboard
    • Select Yes to reboot and press OK on the keyboard
    • It should not restart and autologin to emulationstation again

Add the Retroflag Safe Shutdown Script

Retroflag Case Power LED & Buttons Will NOT Work Until This is Installed

  • Make sure internet connected.
  • Make sure keyboard connected.
  • Press F4 enter terminal.
  • In the terminal, type the one-line command below (Case sensitive):
  • Advanced Fork (Preferred)
    • wget -O – “https://raw.githubusercontent.com/crcerror/retroflag-picase/master/install.sh” | sudo bash
    • Press Reset in Emulator: Exits emulator back to Emulationstation
    • Press Reset in Emulationstation: Restarts Emulationstation
    • Press Reset in Console: Restart the RaspberryPi
    • Press Power in Console/Emulationstation/Emulator: Shutdown the RaspberryPi
    •  
  • Original
    • wget -O – “https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/install.sh” | sudo bash
    • Press Reset in Emulator/Emulationstation: Restart the RaspberryPi
    • Press Reset in Console: Nothing
    • Press Power in Emulator/Emulationstation: Shutdown the RaspberryPi
    • Press Power in Console: Nothing
  • It will reboot after this and the reset & power buttons will now function

Setup Bluetooth Controllers

  • Navigate to the RetroPie menu and press OK on the keyboard
  • Select BLUETOOTH and press OK on the keyboard
    • Make sure 8Bitdo mapping hack is set to off
    • Power on the SNES30 controller by holding the start button until the blue light comes on.  Once it is blinking, set it to pairing mode by holding the select button for 3 seconds and the blue light will start rapidly blinking
    • Select Register and Connect Bluetooth Device and press Enter on the keyboard
    • The controller will show up with its MAC address as 8Bitdo, select it and press Enter on the keyboard
    • Select DisplayYesNo and press Enter on the keyboard
      • Repeat for each additional controller
    • Select Setup udev rule for joypad and press Enter on the keyboard
    • Select an 8Bitdo controller and press Enter on the keyboard
    • Press Enter on the keyboard to confirm the entry was added
    • Select Cancel and press Enter on the keyboard to return to Emulationstation
  • Press 1 on the keyboard to bring up the Main Menu
    • Select Configure Input and press OK on the keyboard
    • When prompted to configure input, press OK on the keyboard
    • Hold any key on the 8Bitdo SNES30 controller and configure it as follows
    • D-PAD UP: Up Arrow
    • D-PAD DOWN: Down Arrow
    • D-PAD LEFT: Left Arrow
    • D-PAD RIGHT: Right Arrow
    • START: Start
    • SELECT: Select
    • A: A
    • B: B
    • X: X
    • Y: Y
    • LEFT SHOULDER: L
    • RIGHT SHOULDER: R
    • For all others, hold any button to skip configuration (Or use the keyboard to skip down to OK)
    • When OK is highlighted, press the OK on the keyboard
    • When prompted about not enabling a hotkey button, highlight YES and press OK on the keyboard to use the default select button
    • Repeat for each Controller
  • Press 1 on the keyboard to bring up the Main Menu
    • Select Quit and press OK on the keyboard
    • Select Restart System and press OK on the keyboard
    • Select Yes to confirm the restart and press OK on the keyboard

Add Optional & Experimental Emulators

Optional Emulators

SYSTEM OPTIONAL EMULATOR NOTE
Apple II linapple  
Atari ST hatari  
Commodor 64 vice  
Coleco Vision coolcv  
Dragon 32 / Tandy CoCo xroar  
Intellivision lr-freeintv  
MSX lr-fmsx Adds the following files to BIOS folder: CARTS.SHA, CYRILLIC.FNT, DISK.ROM, FMPAC.ROM, FMPAC16.ROM, ITALIC.FNT, KANJI.ROM, MSX.ROM, MSX2.ROM, MSX2EXT.ROM, MSX2P.ROM, MSX2PEXT.ROM, MSXDOS2.ROM, PAINTER.ROM, RS232.ROM
Virtual Boy lr-beetle-vb  
Wonderswan / Wonderswan Color lr-beetle-wswan  
Zmachine frotz Includes Zork 1, 2, and 3
  • Navigate to the RetroPie menu and press OK on the keyboard
    • Select RETROPIE SETUP and press OK on the keyboard
    • Select Manage packages and press enter on the keyboard
    • Select Manage Optional packages and press enter on the keyboard
    • Select %EMULATOR_NAME% and press enter on the keyboard
    • Select Install from source (latest) or Install from binary and press enter on the keyboard and wait for the installer to finish
      • Select Back and press enter on the keyboard
      • Select Back and press enter on the keyboard
      • Select Back and press enter on the keyboard
      • Select Exit and press enter on the keyboard
      • Select Yes and press enter on the keyboard

Experimental Emulators

SYSTEM EXPERIMENTAL EMULATOR
Nintendo DS drastic
  • Navigate to the RetroPie menu and press OK on the keyboard
    • Select RETROPIE SETUP and press OK on the keyboard
    • Select Manage packages and press enter on the keyboard
    • Select Manage Experimental packages and press enter on the keyboard
    • Select %EMULATOR_NAME% and press enter on the keyboard
    • Select Install from source (latest) or Install from binary and press enter on the keyboard and wait for the installer to finish
      • Select Back and press enter on the keyboard
      • Select Back and press enter on the keyboard
      • Select Back and press enter on the keyboard
      • Select Exit and press enter on the keyboard
      • Select Yes and press enter on the keyboard

Add BIOS, Config, and ROM Files to the SD Card

NOTE: See my post on cleaning up NoIntro 2018 ROMs:
http://sigkillit.com/2019/06/19/clean-no-intro-2018-rom-set/

  • Navigate to the RetroPie menu and press OK on the keyboard
  • Select SHOW IP and press OK on the keyboard
    • Note the IP and press Enter on the keyboard
  • From a Windows computer containing the ROMS, open the samba share for the RetroPie by entering \\IPADDRESS
  • Copy the BIOS files to the BIOS Share
  • Copy the ROMs to the ROMs share
  • OPTIONAL – Copy Configs to the CONFIGS share
    • You only need to do this if you have previous configurations backed up & do not want to treat this as a brand new install
  • Press 1, select Quit

Special Configurations for ROMs to Work Properly

Atari 800 / Atari 5200 Load BIOS

You need to configure the emulator to point it to the correct BIOS files for these to work

  • Launch an Atari 800/5200 game
  • If you launched a 5200 game, select Standard 5200 cartridge option or if you launched a 800 game you won’t see this prompt just continue.  You’ll get a warning that you need a real Atari/OS.
  • Press F1 on the keyboard to open the menu
  • Select Emulator Configuration and press enter on the keyboard
  • Select System ROM Settings and press enter on the keyboard
  • Select Find ROM images in a directory, navigate to the BIOS directory (/home/pi/RetroPie/BIOS) and press the space bar on the keyboard to select that directory.
  • Press Escape on the keyboard to go back a menu
  • Select Save Configuration File and press enter on the keyboard
  • Select Save Configuration on Exit and press enter on the keyboard
  • Press Escape on the keyboard to go back a menu
  • Select Exit Emulator and press enter on the keyboard
  • If you have the correctly named BIOS files and it should automatically configure them

Atari 5200 Auto Load Game (Prevents Memo Pad From Loading)

If the screen loads to a blue memo pad instead of loading the game, this is because it’s set to an 800 system.  You can press F1 and load the rom fine each time or you can do the following to override it

  • Launch the Atari 5200 game
  • Press the Select + X (Hotkey + X) to bring up the Quick Menu
    • Select Options and press enter on the keyboard
    • Select Atari System and press the right arrow to select 5200
    • Press B to return to the previous menu
    • Select Resume and press A to return to the game
    • Test to see if it works now.  If it works, you can permanently save it by going back to Controls and selecting Save Core Overrides

Atari 800 / Atari 5200 Configure Controller

  • Launch Atari 800/5200 game
  • Press the Select + X (Hotkey + X) to bring up the Quick Menu
    • Select Controls and press A
    • Next to user 1 Device Type, press the right arrow to select Atari Joystick
    • Press B to return to the previous menu
    • Select Resume and press A to return to the game
    • Test to see if it works now.  If it works, you can permanently save it by going back to Controls and selecting Save Core Overrides

Sinclair ZX Spectrum

Not all games will work with a joystick!  However, if the input does not seem to be working

  • Launch a ZX Spectrum game
  • Press the Select + X (Hotkey + X) to bring up the Quick Menu
    • Select Controls and press A
    • Next to user 1 Device Type, press the right arrow to select Kempton Joystick or Cursor Joystick
    • Press B to return to the previous menu
    • Select Resume and press A to return to the game
    • Test to see if it works now.  If it works, you can permanently save it by going back to Controls and selecting Save Core Overrides

Scrape ROMS with Skyscraper

  • Press 1 on the keyboard to enter the Main Menu
  • Select Quit and press OK on the keyboard
  • Select Quit Emulationstation and press OK
  • Enter the following command at the bash prompt
    • sudo /home/pi/RetroPie-Setup/retropie_setup.sh
  • Select Manage Packages and press Enter on the keyboard
  • Select Experimental Packages and press Enter on the keyboard
  • Select Skyscraper and press Enter on the keyboard
    • Select Install from source and press Enter on the keyboard
    • Select Configuration/Options and press Enter on the keyboard
    • Select Gather Resources and press Enter on the keyboard
      • Select the game system you want to scrape (suggest 1 at a time as it takes a few hours) and press Enter on the keyboard
      • Note: This caches the game info & images in \\retropie\configs\all\skyscraper\ and only needs run once unless you add new games.  It then uses this cache to build the game info, which greatly increases the speed since it all local.  However, you will need to monitor the size of the cache to make sure it does not fill the SD card.
    • Select Generate Games Lists and press Enter on the keyboard
      • Select the game system(s) you want to scrape and press Enter on the keyboard
      • Note: This builds the game images, description, etc
    • Select Run on all systems and press Enter on the keyboard then WAIT!