The main purpose is/was
for private use and backup
and not to grab everything again from 10ish websites when rebuilding a PiStorm. Also I have added all fixes from the authors and several users. My PiStorm is set-up that way, and everything works - but as you know... I TAKE NO RESPONSIBILITY FOR DAMAGES.
Sources used here are as follows:
- https://github.com/captain-amygdala/pistorm
- https://github.com/LemaruX/PiStorm-Firmware
- https://www.retro32.com/amiga-resources/240820213135-pistorm-installation-and-setup-guide-apps-pidisk-networking-and-rtg-a314
- https://github.com/captain-amygdala/pistorm/wiki/PiStorm-Software-Installation#Auto-starting-PiStorm-emulator
- https://www.hackster.io/kamaluddinkhan/changing-the-splash-screen-on-your-raspberry-pi-7aee31
- https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/08/der-dateimanager-midnight-commander/
- https://tutorials-raspberrypi.de/raspberry-pi-samba-server-dateien-lokales-netzwerk-teilen/
- Downloading and compiling PiStorm
- Downloading the FPGA update
- Autostart PiStorm and boot-up
- Activate internet access on Pi-side (optional)
- Minimizing startup-output (optional)
- Show a Splash screen (optional)
- Further tools for custom usage (optional)
Assuming the Pi is running BULLSEYE and is set-up and ready, WiFi is online, SSH is running and system is up to date with
sudo apt update && sudo apt upgrade
... also you already have a working .hdf Workbench and optional additional .hdf files.
sudo apt-get install git libasound2-dev libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev
git clone https://github.com/captain-amygdala/pistorm.git
cd pistorm
make PLATFORM=PI3_BULLSEYE
Copy the amiga.cfg to default.cfg with sudo cp amiga.cfg default.cfg
and configure it to your needs (kickstart*, hardfiles*, settings). It will load by default.
sudo ./emulator
sudo apt-get install openocd
git clone https://github.com/LemaruX/PiStorm-Firmware
sudo mv PiStorm-Firmware firmware
The available FPGA Firmwares and the flashing-process are shown here.
sudo nano /etc/systemd/system/pistorm.service
and insert the following text - and save with STRG-X
[Unit]
Description=PiStorm emulator
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/home/pi/pistorm/emulator
WorkingDirectory=/home/pi/pistorm
[Install]
WantedBy=multi-user.target
sudo systemctl enable pistorm.service
sudo systemctl daemon-reload
sudo reboot
(optional) to reboot the Pi to test the autostart
sudo apt install python3-pip
sudo pip3 install python-pytun
sudo cp /home/pi/pistorm/a314/files_pi/eth-config-pi/tap0 /etc/network/interfaces.d/
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i wlan0 -o tap0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i tap0 -o wlan0 -j ACCEPT
sudo apt install iptables-persistent
Agree to the IPv4 question, You can pick any answer for IPv6.
sudo nano /etc/sysctl.conf
and uncomment the line, by removing the # in front ofnet.ipv4.ip_forward=1
The whole process including set-up on Amiga-side is shown here.
sudo nano /boot/config.txt
and add "disable splash=1" and "dtoverlay=sdtweak,overclock_50=100" at the end of the file to disable the Pi splash screen and add maximum microSD performancesudo nano /boot/cmdline.txt
and add "logo.nologo consoleblank=0 loglevel=1 quiet" at the end of the line (NO NEW LINE) to disable logo and verbose outputsudo systemctl disable getty@tty3
to remove the login promptsudo reboot
(optional) to reboot the Pi and test the minimized output
Preparation: There's a Splash screen attached named splash.png. Create a folder fbi
in your home directory and copy the file in the new created folder. This script os an improved version that works for both - fake and full KMS drivers on Raspberry Pi. The whole process including comments and fixes can be found here.
sudo apt install fbi
sudo nano /etc/systemd/system/splashscreen.service
and insert the following text - and save with STRG-X
[Unit]
Description=Splash screen
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /home/pi/fbi/splash.png
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
sudo nano /etc/systemd/system/splashscreen.path
and insert the following text - and save with STRG-X
[Unit]
Description=Splash screen
[Path]
PathExists=/dev/fb0
[Install]
WantedBy=sysinit.target
sudo systemctl enable splashscreen.path
sudo reboot
(optional) to reboot the Pi and test the splash screen
Install the filemanager Midnight Commander...
sudo apt install mc
Install Samba for direct-access over WiFi at your home...
sudo apt-get install samba samba-common-bin
sudo rm /etc/samba/smb.conf
to remove the default configurationsudo nano /etc/samba/smb.conf
and insert the following text - and save with STRG-X
[global]
workgroup = WORKGROUP
server string = RasPi-PiStorm
netbios name = RasPi-PiStorm
dns proxy = no
passdb backend = tdbsam
### Authentication
security = user
map to guest = never
guest account = nobody
encrypt passwords = true
[PiStorm-Share]
path = /home/pi/pistorm
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
writeable = yes
sudo smbpasswd -a pi
to set a password for your usersudo service smbd restart
to restart the Samba serversudo reboot
(optional) to reboot the Pi and test the Samba access
*For copying kickstarts and hardfiles directly on a Window computer you can...
- either use Linux File Systems for Windows
- or copy over-the-air by using the Samba protocol installed earlier
DISCLAIMER: I TAKE NO RESPONSIBILITY FOR DAMAGES.