VMU Zero Build Instruction - Software
Install RetroPie
Download RetroPie.
Code: Select all
curl -O -L https://github.com/RetroPie/RetroPie-Setup/releases/download/4.4/retropie-4.4-rpi1_zero.img.gz
Unzip image.
Code: Select all
gunzip retropie-4.4-rpi1_zero.img.gz
Insert an SD card and find the disk number.
disk2 is assigned to my SD card but result would vary on the envrionment.
Code: Select all
diskutil list
:
/dev/disk2 (internal, physical):
Burn the SD card. Hit Ctrl-T to see the progress.
Code: Select all
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=./retropie-4.4-rpi1_zero.img of=/dev/rdisk2
Create WiFi configuration file. Change the SSID and Password to match with your network.
Code: Select all
tee /Volumes/boot/wpa_supplicant.conf <<EOF
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID"
psk="password"
}
EOF
Enable SSH.
Enable GPIO Shutdown
Code: Select all
sudo tee -a /boot/config.txt <<EOF
dtoverlay=gpio-shutdown,gpio_pin=5,active_low
EOF
Boot the Pi Zero with the SD card then log on to it. The default password is
raspberry.
The rest of the instructions would be performed on the Pi.
Fix Slow Boot
Install fake-hwclock
Code: Select all
sudo apt-get update; sudo apt-get install fake-hwclock
Install FBCP and FBTFT
Enable SPI.
Disable Overscan.
Code: Select all
sudo raspi-config nonint do_overscan 1
Install FBCP.
Code: Select all
sudo apt-get install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
Register FBCP as a service. #
DO THIS STEP ONLY ONCE
Code: Select all
sudo sed -i "s/^exit 0/\/usr\/local\/bin\/fbcp \&\\nexit 0/g" /etc/rc.local
Install FBTFT
Code: Select all
sudo tee /etc/modules-load.d/fbtft.conf <<EOF
spi-bcm2835
fbtft_device
EOF
Install SEPS525 driver.
Code: Select all
curl -O https://raw.githubusercontent.com/satri360/vmuzero_seps525/drivers/kernel-4.14.30/fb_seps525.ko
sudo cp fb_seps525.ko /lib/modules/$(uname -r)/kernel/drivers/staging/fbtft/
sudo tee /etc/modprobe.d/fbtft.conf <<EOF
options fbtft_device custom name=fb_seps525 speed=10000000 gpios=reset:24,dc:25 rotate=180
EOF
Update module dependency
Install Retrogame
Download and install Retrogame. Select
3. PiGRRL Zero but Do NOT reboot until config file is created.
Code: Select all
curl -O https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/retrogame.sh
sudo bash retrogame.sh
SELECT 1-8: 3
Downloading, installing retrogame...OK
Downloading, installing retrogame.cfg...OK
Performing other system configuration...OK
REBOOT NOW? [y/N]N
Configure Retrogame.
Code: Select all
sudo tee /boot/retrogame.cfg <<EOF
LEFT 17
RIGHT 22
DOWN 27
UP 23
Z 4 # 'A' button
X 12 # 'B' button
LEFTCTRL 16 # 'Select' button
ENTER 26 # 'Start' button
EOF
Setup Audio
Enable PWM Audio.
Code: Select all
sudo tee -a /boot/config.txt <<EOF
dtoverlay=pwm,pin=18,func=2
EOF
Set Maximum Volume.
History