Retropie on Waveshare TFT screen
Waveshare 3.2inch(B) TFT screen for Pi is an affordable and great screen for building amazing projects. In this tutorial, I will show you how to run Retropie on your touch screen to play your favorite games. I have tested this method on Waveshare 3.2inch(B) display with raspberry pi 3.
To setup retropie on waveshare screen, follow the given steps:
1. Download the retropie image for raspberry pi from the official Retropie website.
(https://retropie.org.uk/download/). Extract the downloaded image.
2. Download etcher(https://etcher.io/) to write the image to your SD card. Insert the SD card in your PC through SD card reader. Open Etcher and select the retropie image and the SD card and FLASH!
3. After the flash is complete, insert the SD card into your pi and connect the HDMI cable to monitor and power up your pi. Connect a keyboard too.
4. When retropie is loaded, press F4 to enter the command line.
5. Type the command:
sudo raspi-config
Enable ssh.
6. Next step is to connect to your wifi, Follow this tutorial -> https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis. Then reboot.
7. On your PC, download Putty to ssh into your Pi. Enter your Pi's local IP address and login with the default credentials (user - pi, password - raspberry). Do not do this process while connected to HDMI rather than on SSH. It would not work on HDMI.
8. On the command line type:
git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo
9. Edit you config file. On command line type:
sudo nano /boot/config.txt
10. Add these lines to the end.
hdmi_force_hotplug=1
hdmi_cvt=320 240 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
dtparam=spi=on
dtoverlay=waveshare32b:rotate=270,speed=82000000,fps=60
11. Press Ctrl+X then Y and press Enter
12. Then reboot by:
sudo reboot
13. When it restarts, type:
ls /dev/fb*
You should see /dev/fb1, that is your screen. If you don't see fb1, you might have done something wrong and need to re-attempt all steps.
14. On command line type:
sudo apt-get install cmake
git clone https://github.com/tasankorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
15. Now,
sudo nano /etc/rc.local
16. Before the final "exit 0" add,
/usr/local/bin/fbcp &
Press Ctrl+x and Y then Enter
17. sudo reboot.
Now you should see Retropie on your screen. Have fun!
You can add Game ROMs by following this tutorial - http://pi-py.blogspot.in/2017/06/add-game-roms-to-retropie.html
To setup retropie on waveshare screen, follow the given steps:
1. Download the retropie image for raspberry pi from the official Retropie website.
(https://retropie.org.uk/download/). Extract the downloaded image.
2. Download etcher(https://etcher.io/) to write the image to your SD card. Insert the SD card in your PC through SD card reader. Open Etcher and select the retropie image and the SD card and FLASH!
3. After the flash is complete, insert the SD card into your pi and connect the HDMI cable to monitor and power up your pi. Connect a keyboard too.
4. When retropie is loaded, press F4 to enter the command line.
5. Type the command:
sudo raspi-config
Enable ssh.
6. Next step is to connect to your wifi, Follow this tutorial -> https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis. Then reboot.
7. On your PC, download Putty to ssh into your Pi. Enter your Pi's local IP address and login with the default credentials (user - pi, password - raspberry). Do not do this process while connected to HDMI rather than on SSH. It would not work on HDMI.
8. On the command line type:
git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo
9. Edit you config file. On command line type:
sudo nano /boot/config.txt
10. Add these lines to the end.
hdmi_force_hotplug=1
hdmi_cvt=320 240 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
dtoverlay=waveshare32b:rotate=270,speed=82000000,fps=60
11. Press Ctrl+X then Y and press Enter
12. Then reboot by:
sudo reboot
13. When it restarts, type:
ls /dev/fb*
You should see /dev/fb1, that is your screen. If you don't see fb1, you might have done something wrong and need to re-attempt all steps.
14. On command line type:
sudo apt-get install cmake
git clone https://github.com/tasankorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
15. Now,
sudo nano /etc/rc.local
16. Before the final "exit 0" add,
/usr/local/bin/fbcp &
Press Ctrl+x and Y then Enter
17. sudo reboot.
Now you should see Retropie on your screen. Have fun!
You can add Game ROMs by following this tutorial - http://pi-py.blogspot.in/2017/06/add-game-roms-to-retropie.html
how do i do this for the 5 inch?
ReplyDeleteWork of 3.5 display???
ReplyDeletefollowed everything but i lose it on sudo reboot at step 12 after that putty is inactive and have to load up putty and carry on from 13
ReplyDeleteOn the step 14 there is a typo on second command, the right is:
ReplyDeletegit clone https://github.com/tasanakorn/rpi-fbcp