Installing RetroPie through Raspberry Pi’s OS (Raspbian) and also enabling Playstation 1 Emulator in RetroPie. I’ll also teach you how to write images on your Mac or Windows PC as well (no worries :D).
This tutorial is for Raspberry Pi 2 B+ Models. Any Raspberry Pi before this is a lot easier to just download the ROM from the official site and skip step 3.
Hey guys! This is my first Instructable, so any constructive feedback would be great! I’ve recently gotten my Raspberry Pi and decided to document all my projects and such as well as my experiences. If you would like to follow up on my projects please check out my website. It’s still a work in progress, but I’ll be documenting a lot of my DIY projects and technology interests there as well.
Also, if you’ve just gotten your Pi, you might be interested in some of the things I bought for the Pi and why I bought them. I discuss a lot about the items I bought for my Raspberry Pi. If you’re interested, you can click here. It’s good to have these things if you want to be able to overclock without any worried as well.
The Learning Experience
I hope you guys learn a lot from what I have to teach. I’ll also be explaining a lot of the commands and such so you’ll learn some basic commands along the way. I’m not going to just tell you what to type most of the time. I’ll try to fill you in on some basic background knowledge on how everything works so you might be able to apply it somewhere else (or for other Pi projects)! These guides are also ran through thoroughly so I’ll be able to document any errors I experience for you guys as well.
Here’s What You’ll Need
- Raspberry Pi (Obviously)
- Video Cable (Preferably an HDMI for sound, but HDMI to VGA/DVI if you really need to, but you’ll need speakers for the audio jack)
- Micro SD Card (Preferably 8gb or more, but 32gb sells cheap, and Samsung read speeds are the fastest)
- Power Supply (Micro USB Cable and Power Brick)
- USB Keyboard
- SD Card Reader
Here’s Some Optional Stuff (but highly recommended)
- Game Control Pads
Heatsinks and Ventilation will really help you out since you’re gaming and video output takes a lot on chips. Also game pads will help better your experience with emulators for that classic controller feel 😀
Are You Ready?
Now, time to set up your SD card with Raspbian OS.
Step 1: Setting Up the Raspbian OS and your Pi
What is Raspbian OS?
Raspbian is Raspberry Pi’s Linux OS. At this current time of writing, it’s called Wheezy. You should start downloading this right now since it’s going to take a while (the site has slow download speeds, unless you torrent). After that, extract the .zip file and you should get an image. Next, we’re going to have to mount the image onto your SD card. Please refer to either the Windows or OSX guides depending on what OS you’re running.
In English, we’re basically downloading Raspberry Pi’s program (the image file, hence .img) and writing it to the card for use.
Writing Raspbian to SD Card (Windows)
We’re going to be using Win32DiskImager. Click here to download. This program is really easy to use, but just follow along anyway.
- After downloading, extract the program. and run the .exe
- Click the blue folder near the top right to browse for the image. Select the extracted .img Raspbian OS file you just downloaded.
- Plug your SD card in with your SD Card reader.
- Go to file explorer to check what drive letter your SD card slot is under.
- Select the drive letter your SD card is on (located right next to the blue folder).
- Press write and wait for it to say write complete.
Write Raspbian to SD Card (OSX)
I did this the painful way and did it through terminal, but follow this guide for the easy way out.
Plugging Everything In
Take your SD Card out, plug it into your Pi, and plug all the cables in (ethernet, keyboard, HDMI). Finally, plug in the power and proceed to the next step.
Step 2: Configuring Raspi-Config
What is Raspi-Config?
Basically, Raspi-Config is Raspberry’s Pi’s BIOS. This is where you’ll be configuring all of Raspberry Pi’s settings. From here you enable overclocking, video ram increases, and much more.
Time to Configure Settings
Now that your Pi is booted, you should be greeted with a blue screen with a bunch of options in the middle.
- Select the first option: “expand filesystem” and then press enter (This is going to take a couple seconds). You’re going to be presented with the message: “partition will be resized on your next reboot”. Don’t restart yet, just press enter.
- Go to “advanced options” and then press enter.
- Go to “A3 Memory Split” and press enter.
- Change the number to 512 and press enter.
- Next, go back into the “advanced options” tab (if it booted you back into the first set of options) and go to “Overclock”. Set it to “Pi2”. DO NOT SET IT TO TURBO. IT WILL JAM YOUR OS. IT’S TEMPTING. I KNOW.
- Now that you’re back at the main Raspi-config menu, press right arrow on your keyboard twice to select okay and then press enter.
- Your Pi should not be rebooting. Proceed to the next step when you’re done.
Note: You might have noticed you can change your password into the login for your Pi. You can if you want to. The default password for the Pi is raspberry. However, if you’re going to change it, just remember that the password you set is going to be what you’re using for the remainder of the tutorial.
Explanation of What’s Going On
We’re essentially expanding the file system in make it accessible to the entire OS (giving it root access). We’re also increasing the video RAM from whatever it was (default is 64mb I believe) to 512mb. By increasing the VRAM, we’ll be able to play more graphics intense games (such as the Playstation 1 ROMs) without any video lag. Also, overclocking will really help with the speed and responsiveness of your Pi as well. Just make sure you have sufficient cooling and ventilation for it (as explained on my blog post). Again, do not set it to turbo. It’ll crash, and you’ll have to re-wipe and restart this whole Instructable all over again.
Step 3: Finally Installing RetroPie/EmulationStation!
Let Me Make This Clear…
This section is only for the Raspberry Pi 2 B+ Model. Older versions of the Pi don’t need these extra steps. You can simply download the image from the website depending on your model. Then, you can skip to step 4
Using apt-get on Linux
We’re going to be using the apt-get tool found in Linux. APT stands for Advanced Packaging Tool, and it’s a really simple yet powerful command to download/upgrade anything (even the OS itself). You’re going to be using this for a lot of the projects on the Pi or on Linux in the future as well. We’re going to be upgrading the git feature to clone the git repository of RetroPie.
In other words, using the apt-get command, we’re going to drag the stuff from a website and install it into our Pi.
Updating and Downloading RetroPie
When following these commands, make sure to follow these simple rules. Input the next command only when it says [email protected] ~ $ and also whenever a command is in a new line, make sure to please press enter and wait if necessary.
First thing’s first, let’s get an update check on all of our packages.
sudo apt-get update
Wait a couple minutes, and then once you return back to [email protected] ~ $, input this to upgrade git
sudo apt-get upgrade -y git
sudo apt-get install -y git dialog
Wait, and now time to copy the git repository.
cd<br>git clone --depth=0 git://github.com/petrockblog/RetroPie-Setup.git
Now, time to launch the setup that we downloaded/copied.
cd RetroPie-Setup<br>chmod +x retropie_setup.sh sudo ./retropie_setup.sh
- Now you should hit a blue screen with two options. Make sure you select Option 1 (Binaries Based Installation) and then press enter.
- Now you’re going to be presented with a bunch of options to customize RetroPie. Just press enter and proceed. No need to customize it. Just run with the defaults.
RetroPie is now installing. Using the second option to install is usually faster on the newer Pi models and you end up with the same stuff, but I trust Option 1 and I’ll be using Option 1. The installation should take about 15 minutes.
- Now you’re going to be presented with a bunch of windows telling you where to store your ROMs. It’s really easy. They’re basically just telling you that if you downloaded an SNES ROM to put it into the SNES folder in RetroPie. I’ll explain the specific directory later. Press enter a couple times until you hit RetroPie’s setup screen.
- Select “Setup (only if you already have run one of the installations above)”. It should be the 3rd option, somewhere around there.
- Time to make EmulationStation boot without a keyboard. Select the second option ‘Auto-Start EmulationStation” and press enter.
- Then, select “Start EmulationStation at boot” and press enter. Press it again to confirm at the next prompt.
- Now, use the arrow keys to close out of the settings by pressing OK (or whatever it is that seems like it’ll close it out, use your head :D).
You should be back at the terminal. Proceed to the next step.
Step 4: Setting up FTP (File Transfer Protocol)
Essentially, FTP, also known as File Transfer Protocol, is a standard network protocol to transfer files from one computer/host to another through a network. In this case, it’s your LAN (Local Area Network). We’re going to need to find out the IP address of your Pi. Then we can tap into it using WinSCP.
Finding Out Your IP Address
Type this into the Terminal
Now just look where inet addr: is. Your IP should be 192.168.1.xx (xx meaning a random number depending on your network).
Allowing Access to RetroPie’s System Files
We’re going to need this in the next step, so might as well do it now since you’re still on your Pi. This basically claims ownership of folders using the chown command. This will make it easier for us to write files with the correct permissions. If there’s any other folders that give you permission errors, just use the following command below, and change the directory accordingly.
sudo chown -R pi:pi /home/pi/RetroPie sudo chown -R pi:pi /etc/EmulationStation
Downloading and Using WinSCP
- Download WinSCP (I recommend using the Installation Package)
- Launch WinSCP. You should see a prompt asking you for information for your first connection. Put this stuff in:
- File Protocol: SCP
- Host name: Your Pi’s IP Address (192.168.1.xx)
- Username: pi
- Password: Whatever you set it to, or the default: raspberry
- You can save the connection for future connections. Press login.
Proceed to the next step to enable the PSX Emulator.
Step 5: Installing PSX Emulation
Downloading and Installing SCPH1001.bin
This is basically the BIOS for Playstation 1. It makes sense to download the code for Playstation 1 to run Playstation 1 ROMs.
- Download SCPH1001.bin (If this link is broken, you can always Google it and download)
- Extract the .zip so you get the .bin file
- Using WinSCP, put it into this directory: /home/pi/RetroPie/BIOS
Next (still using WinSCP) navigate to /opt/RetroPie/configs/all/retroarch.cfg
Double click retroarch.cfg to open up the text editor. Change these settings to the code below. MAKE SURE TO DELETE THE HASHTAG IN FRONT OF THE LINE. #s are basically there to disable that part of the setting/code int he config file.
input_menu_toggle = f1 video_smooth = true
Next, navigate to /etc/EmulationStation/es_systems.cfg and open it up again with the text editor. Scroll down to Sony Playstation or Playstation and change this code:
Also, between and make sure you just leave it looking like this:
<extension>.bin .cue .BIN .CUE</extension>
Time to finally insert ROMs now!
Step 6: Putting in ROMs (Finally!)
- Go download ROMs (please tell me you know where to get them..)
- navigate to /home/pi/RetroPie/roms
- Whatever ROM you downloaded, please put it in the matching system console folder.
- Note: All the ROMs can be placed in there as .zips and will still be able to read, unless you want to extract them. For Playstation ROMs, you’re going to need to extract the file and make sure you just place all the files in the PSX folder with no other folder to it (as shown in the picture)
Probably the easiest step there is. Now time to configure our controls!