(GUIDE) How to add Ocarina of Time PC Port to Retropie (Pi5 64bit)
-
This guide will show you how to add Ship of Harkinian (https://www.shipofharkinian.com) to RetroPie. I've tested this on Raspberry Pi OS using a Pi 5. I can't confirm if it will work on a Pi 4 (either 32bit or 64bit build)
To avoid running out of memory, increase the memory swap (it's likely this is not needed on a 8GB Pi 5):-
sudo dphys-swapfile swapoff
sudo nano /etc/dphys-swapfile
Edit the below line, I used CONF_SWAPSIZE=1024
CONF_SWAPSIZE=100
Finally restart the swapfile so programs recognise the change
sudo dphys-swapfile setup sudo dphys-swapfile swapon
Note:- for peace of mine I would reverse this process after building as it will damage your SD card in the long run
Step Two:-
Now you can follow the steps in the Shipwright GitHub:-
git clone https://github.com/HarbourMasters/Shipwright.git cd Shipwright git submodule update --init
Copy your Ocarina .z64 (vanilla or master quest or both) roms into ORTExporter folder. There's certain roms it needs, Google is your friend, Ship of Harkinian's website also has a web app that checks if your rom is valid.
Now we can start building:-
cmake -H. -Bbuild-cmake -GNinja -- -j4 cmake --build build-cmake --target ExtractAssets -- -j4 cmake --build build-cmake -- -j4
You should end up with some file inside Shipwright/build-cmake/soh:-
soh.elf
soh.otr
oot.otrCopy these over to /opt/retropie/ports/soh
Inside /opt/retropie/ports/soh create a file soh.sh (make it executable as well)
#!/bin/bash # Change directory cd /opt/retropie/ports/soh || exit # Run the soh.elf file ./soh.elf
Create a folder soh inside /opt/retropie/configs/ports and add emulators.cfg:-
soh = "/opt/retropie/ports/soh/soh.sh" default = "soh"
Finally create another .sh file inside your roms/ports folder and make that executable:-
#!/bin/bash "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "soh" ""
To use Mods, inside /opt/retropie/ports/soh create a folder called mods and put the mod .otr files inside there
-
-
Enjoying this very much. Similar to the Mario 64 PC project. Thanks for providing the detailed steps!
@retropieuser555 said in (GUIDE) How to add Ocarina of Time PC Port to Retropie (Pi5 64bit):
Edit the below line, I used CONF_SWAPSIZE=1024
FWIW with this value, I still ran out of memory. With a large enough drive, would recommend boosting to 2048 to be safe.
Would also remove the
-- -j4
at the end of each command-line for Bookworm.Lastly, for things to work with the .sh files provided, note that the /opt/retropie/ports/soh folder should be pi:pi
sudo chown -R pi:pi /opt/retropie/ports/soh
Hope this helps.
-ros
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.