An SD-card image of a RetroPie installation was recently made available. This post describes the individual steps taken in order to create such an image. While it serves me to ensure that no steps are forgotten during future updates, this post provides also an insight into the individual steps for people with interest in this topic.
As always, you are invited to make suggestions or comments to further improve the RetroPie Image! Especially the set of packages to be removed can still be optimized I think.
And here it is, the step-by-step recipe for creating the RetroPie Image:
- Download and copy the Raspbian image on SD card
- The raspi-config script automatically starts on first boot. From here, expand the root file system
- Then reboot
- Login as user “pi” and run
sudo apt-get update sudo apt-get install -y git dialog
- Fetch the latest version of the RetroPie Setup Script with
cd git clone git://github.com/petrockblog/RetroPie-Setup
- Start the RetroPie Script
cd RetroPie-Setup sudo ./retropie_setup.sh
- Select “binaries-based installation” in RetroPie Script and press ENTER
- Check message dialogs at the end of binaries-based installation.
- Select “Setup” in RetroPie Script and press ENTER
- Set EmulationStation to start on boot.
Set SNESDev to start on boot and to poll the button and game pads.(There are reports that game pad configurations override keyboard settings, so that the settings for game pads are not set as default anymore. If you want to use a joystick or game pad, you have to manually configure it.)
- Enable splashscreen on boot.
- Install and configure SAMBA.
- Install USB-ROM-Copy service.
- Install GPIO gamepad drivers (added 04.05.2013)
- Exit the RetroPie Setup Script and run
- Set overclock to preset ‘Medium’The following steps are only needed, if you want to create an SD card image yourself. I post them here to make the generation of the RetroPie image more transparent:
Configure EmulationStation game pad input
- Testing of all emulators with at least one ROM
- Exit Emulation Station
- Remove unnecessary packages via
cd chmod +x ./RetroPie-Setup/tools/prepareSDCardimage.sh sudo ./RetroPie-Setup/tools/prepareSDCardimage.sh
- Please note that the dd command, which is also used in the following, is a very powerful command that is able to break your system! If you are unsure about it, you can have a look at this article, that explains its use for RPi SD card handling. But now the explanation of the next step:
Shutdown the RPi, use another computer to create an SD-card image, e.g., with
dd if=/dev/disk3 bs=2m of=RetroPieImage_verX.img
- Compress the image into ZIP format with
zip -9 RetroPieImage_verX.zip RetroPieImage_verX.img
- Create SHA1 checksum with
- (Upload the image.)
And that’s it.