PiGrrl + Retropie/Emulationstation
Moderators: adafruit_support_bill, adafruit
- b1tsentry
- Posts: 3
- Joined: Tue Feb 04, 2014 1:55 am
PiGrrl + Retropie/Emulationstation
Thanks!
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: PiGrrl + Retropie/Emulationstation
Apparently it can work with Retropie 1.9 but not 2.0. This has to do with the 'retrogame' program that converts GPIO button inputs into simulated keyboard presses. Currently being discussed on Github.
If you'd like to be a guinea pig, I think I have a fix to make it work with Retropie 2.0.
- Chrom3Dome
- Posts: 1
- Joined: Mon Aug 11, 2014 5:05 am
Re: PiGrrl + Retropie/Emulationstation
- wolpak
- Posts: 1
- Joined: Fri Nov 14, 2014 2:46 pm
Re: PiGrrl + Retropie/Emulationstation
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
Code: Select all
fbcp &
EDIT: I suppose the CupCade system uses fbcp AND retrogame for controls, so I might build the image off CupCade if I can figure it out.
If you want to make this work yourself, instead of waiting for me to link you to a finished, ready to go,image, then I'll give you some instructions below.
First, you have to burn RetroPie to your SD card. I'm sure you know how to do that, so I'll move on.
SSH to your Pi with putty (Windows) or your terminal (Mac). If you can't find the IP, hook up your Pi to the HDMI, exit Emulationstation and it should say beside the ASCII mushroom with a ton of stats beside it.
Next, you have to install the dirvers for your screen. If you're using the 2.8 inch TFT, this will work. If you're using the 3.5 inch one, I'm not completely sure it will, but you can try it. Press F4 to exit Emulationstation and type this next series of commands to download the driver:
Code: Select all
cd ~
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb
Code: Select all
sudo dpkg -i -B *.deb
After it finishes, shut down your pi if the screen isn't on, shut down your pi with "sudo shutdown -h now", put the screen on, and tun it on again. If you happen to have the screen attatched already, just "sudo reboot".
Then enable the dirvers with:
Code: Select all
sudo modprobe spi-bcm2708
Code: Select all
sudo modprobe fbtft_device name=adafruitts rotate=270
Code: Select all
export FRAMEBUFFER=/dev/fb1
After that, do:
Code: Select all
sudo nano /etc/modules
Now do
Code: Select all
sudo nano /etc/modprobe.d/adafruit.conf
Code: Select all
options fbtft_device name=adafruitts rotate=270 frequency=32000000
Enter these in order.
Code: Select all
sudo apt-get install cmake
Code: Select all
git clone https://github.com/tasanakorn/rpi-fbcp
Code: Select all
cd rpi-fbcp/
Code: Select all
mkdir build
Code: Select all
cd build/
Code: Select all
cmake ..
Code: Select all
make
Code: Select all
sudo install fbcp /usr/local/bin/fbcp
Code: Select all
fbcp &
If you need any help, message me! Hope this helped anyone following this tutorial!
- spelexander
- Posts: 7
- Joined: Tue Feb 10, 2015 8:28 am
Re: PiGrrl + Retropie/Emulationstation
Also did decreasing the value (25 * 1000) make any significant difference to performance? Because you would think lowering the time between each frame copy would increase fps.
Thanks in advance :)
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
Edit: after editing main.c you'll have to rebuild and reinstall fbcp. Example:
Sudo nano rpi-fbcp/main.c
Cd build
Cmake ..
Make
Sudo install fbcp /usr/local/bin/fbcp
- spelexander
- Posts: 7
- Joined: Tue Feb 10, 2015 8:28 am
Re: PiGrrl + Retropie/Emulationstation
sudo nano https://github.com/tasanakorn/rpi-fbcp/main.c
however it just creates a new file. Is there anything you can see that i might be doing wrong?
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
Your problem was you didn't have fbcp downloaded in the first place, you were trying to edit a nonexistent file through a web address :P good luck getting your PI working!
- spelexander
- Posts: 7
- Joined: Tue Feb 10, 2015 8:28 am
Re: PiGrrl + Retropie/Emulationstation
sudo nano /rpi-fbcp/main.c
was that the specific command you used to edit it? Its unfortunate i don't have ssh or something else set up where i can look for the file more easily. Thanks for the help!
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
- dj505Gaming
- Posts: 17
- Joined: Sun Oct 19, 2014 2:51 pm
Re: PiGrrl + Retropie/Emulationstation
- bluenazgul
- Posts: 1
- Joined: Tue Apr 07, 2015 4:41 am
Re: PiGrrl + Retropie/Emulationstation
@dj505Gaming If you have an writeable image for RetroPi one the PiGRRL it would be perfect, i just received all my Adafruit Components today and plan to use the Adafurit Hardware Part and Guide complete but use RetroPi on it coz i think its the better Softwaredj505Gaming wrote:Hello there! I see this is an old post and information posted now may not help, but I figured out how to run RetroPie on my PiGrrl! When I figure out how to run FBCP on the Pi's startup, I can post a writeable .img you can download and write to your Pi like a normal OS. The rc.local method of running programs on startup doesn't seem to be working, and neither does the .bashrc one because I have to actually end emulationstation with f4 and login without any display on the screen, any idea how I can get it to work? All i need to do is run a script on startup such asbefore Emulationstation begins. That way, the output from HDMI is capured on the Adafruit 2.8 inch TFT. It lags quite a bit and the controls aren't working because there's no set input to configure the controls because retrogame doesn't seem to be compatible with FBCP and I don't know how to fix any of those problems, but it's funcional.Code: Select all
fbcp &
EDIT: I suppose the CupCade system uses fbcp AND retrogame for controls, so I might build the image off CupCade if I can figure it out.
If you want to make this work yourself, instead of waiting for me to link you to a finished, ready to go,image, then I'll give you some instructions below.
First, you have to burn RetroPie to your SD card. I'm sure you know how to do that, so I'll move on.
SSH to your Pi with putty (Windows) or your terminal (Mac). If you can't find the IP, hook up your Pi to the HDMI, exit Emulationstation and it should say beside the ASCII mushroom with a ton of stats beside it.
Next, you have to install the dirvers for your screen. If you're using the 2.8 inch TFT, this will work. If you're using the 3.5 inch one, I'm not completely sure it will, but you can try it. Press F4 to exit Emulationstation and type this next series of commands to download the driver:Code: Select all
cd ~
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb
Code: Select all
wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb
You should have all the files downloaded. Then runCode: Select all
wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb
to install your kernel. It may take a few minutes.Code: Select all
sudo dpkg -i -B *.deb
After it finishes, shut down your pi if the screen isn't on, shut down your pi with "sudo shutdown -h now", put the screen on, and tun it on again. If you happen to have the screen attatched already, just "sudo reboot".
Then enable the dirvers with:Code: Select all
sudo modprobe spi-bcm2708
Code: Select all
sudo modprobe fbtft_device name=adafruitts rotate=270
If it works, the screen should now be black instead of white.Code: Select all
export FRAMEBUFFER=/dev/fb1
After that, do:and add "spi-bcm2708" and "fbtft_device" without the "" under what's already there.Code: Select all
sudo nano /etc/modules
Now doand paste inCode: Select all
sudo nano /etc/modprobe.d/adafruit.conf
Then you need to install fbcp by Tasanakor on GitHub.Code: Select all
options fbtft_device name=adafruitts rotate=270 frequency=32000000
Enter these in order.Code: Select all
sudo apt-get install cmake
Code: Select all
git clone https://github.com/tasanakorn/rpi-fbcp
Code: Select all
cd rpi-fbcp/
Code: Select all
mkdir build
Code: Select all
cd build/
Code: Select all
cmake ..
Code: Select all
make
fbcp should be installed. Just runCode: Select all
sudo install fbcp /usr/local/bin/fbcp
and you should see everything that's on HDMI on your piTFT. Then all you need to do is figure out how to run fbcp when you turn on your pi automatically, make retrogame (a program that converts GPIO signals to keypresses like CupCade does automatically) work, and you should be set.Code: Select all
fbcp &
If you need any help, message me! Hope this helped anyone following this tutorial!
- albill
- Posts: 1
- Joined: Sun Sep 19, 2010 2:21 pm
Re: PiGrrl + Retropie/Emulationstation
To get ES to launch on start, I did:
Code: Select all
sudo nano /etc/inittab
Code: Select all
#1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
I then did:
Code: Select all
sudo nano /etc/rc.local
Code: Select all
/usr/local/bin/fbcp &
Since I added retrogame (I have a cupcade controller), I added:
Code: Select all
/usr/local/bin/retrogame &
Code: Select all
/usr/local/bin/retrogame &
/usr/local/bin/fbcp &
exit 0