Last active
April 1, 2023 13:08
-
-
Save blark/7d2c53c5c7b65ac3334f7f124e0d8758 to your computer and use it in GitHub Desktop.
Making an OktaPussy ROM for Amiga
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download and decompress the prerequisite files and put them in the directory with this script: | |
# | |
# 1. "OKT612.ROM" | |
# "Oktagon 2008 SCSI Controller 6.12 ROM 27256" | |
# http://kickstart.ddns.net/Hardware-Software%20Amiga/Hardware/Rom%20Archive/romwebby/okt612.rar | |
# | |
# 2. "at" (OktaPussy/Expansion/at): | |
# http://aminet.net/disk/misc/oktapus.lha | |
# | |
# NOTES: | |
# - Mac users will need to download GNU utils, as Apple derps the `dd` and `tr` utilities | |
# - Resulting file md5sum should be 3c69d380a2789eaa0ec3c63fcafd0908 | |
# | |
# SOURCES: | |
# - http://eab.abime.net/showthread.php?t=89260 | |
# - https://www.forum64.de/index.php?thread/81035-oktapussy-eprom-inhalt/ | |
# - https://web.archive.org/web/20111015082148id_/http://www.gb97816.homepage.t-online.de/eprom_atbus.htm | |
# | |
# MAC HACK: If using brew gnu coreutils on Mac uncomment the next three lines | |
#shopt -s expand_aliases | |
#alias dd=gdd | |
#alias tr=gtr | |
# Extract 0x0 to 0x1000 from the original 6.12 ROM | |
dd bs=1c count=4096 if=OKT612.ROM > oktapussy.bin | |
# Extract 0x120 - 0x54E4 from the "AT device" file | |
dd bs=1c skip=288 count=21732 if=at >> oktapussy.bin | |
# Pad the file with FF to 32KB | |
dd bs=1c if=/dev/zero count=6940 | tr "\00" "\377" >> oktapussy.bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment