]> git.sesse.net Git - pistorm/commitdiff
Fixes to pistorm.hdf
authorAndrew Hutchings <andrew@linuxjedi.co.uk>
Sun, 6 Jun 2021 06:22:32 +0000 (07:22 +0100)
committerAndrew Hutchings <andrew@linuxjedi.co.uk>
Sun, 6 Jun 2021 06:30:21 +0000 (07:30 +0100)
Now does the following:
* Uses a DOS/1 filesystem binary
* Creates a partition 100% of the disk size
* Adds Lemaru's PiGFX_Installer
* Adds missing .info file

12 files changed:
platforms/amiga/build_hdf.sh
platforms/amiga/dos1.bin [new file with mode: 0644]
platforms/amiga/pistorm.hdf
platforms/amiga/rtg/PiGFX Install.info [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Installer [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Patch/GPatch [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Patch/P96Settings.patch [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Patch/PiGFX.patch [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/PiGFX Installer [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/PiGFX Installer.info [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Readme.txt [new file with mode: 0644]
platforms/amiga/rtg/PiGFX Install/Readme.txt.info [new file with mode: 0644]

index 2460835394fbbd3d4328e8d7829fd2d661d56bcd..91e784ef428cb768e3c3b9c36776c68ac146f992 100755 (executable)
@@ -1,24 +1,27 @@
 # Requires xdftool from amitools (https://github.com/cnvogelg/amitools/)
-xdftool part.hdf create size=2Mi + format PiStorm ffs
-xdftool part.hdf boot install
-xdftool part.hdf write Disk.info
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/PiSimple
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/PiStorm
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/PiStorm.info
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/libs13
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/libs20
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/libs13.info
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/libs20.info
-xdftool part.hdf write pistorm-dev/pistorm_dev_amiga/CopyMems
-xdftool part.hdf write ../../a314/software-amiga a314
-xdftool part.hdf makedir net
-xdftool part.hdf write net/net_driver_amiga/pi-net.device net/pi-net.device
-xdftool part.hdf makedir scsi
-xdftool part.hdf write piscsi/device_driver_amiga/pi-scsi.device scsi/pi-scsi.device
-xdftool part.hdf makedir rtg
-xdftool part.hdf write rtg/rtg_driver_amiga/pigfx020.card rtg/pigfx020.card
-xdftool part.hdf write rtg/rtg_driver_amiga/pigfx030.card rtg/pigfx030.card
 rm pistorm.hdf
-rdbtool pistorm.hdf create size=2.5Mi + init
-rdbtool pistorm.hdf addimg part.hdf name=DH99
-rm part.hdf
+rdbtool pistorm.hdf create size=2.5Mi + init rdb_cyls=2
+rdbtool pistorm.hdf add size=100% name=DH99 dostype=ffs
+rdbtool pistorm.hdf fsadd dos1.bin fs=DOS1
+xdftool pistorm.hdf open part=DH99 + format PiStorm ffs
+xdftool pistorm.hdf open part=DH99 + write Disk.info
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/PiSimple
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/PiStorm
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/PiStorm.info
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/libs13
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/libs20
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/libs13.info
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/libs20.info
+xdftool pistorm.hdf open part=DH99 + write pistorm-dev/pistorm_dev_amiga/CopyMems
+xdftool pistorm.hdf open part=DH99 + write ../../a314/software-amiga a314
+xdftool pistorm.hdf open part=DH99 + makedir net
+xdftool pistorm.hdf open part=DH99 + write net/net_driver_amiga/pi-net.device net/pi-net.device
+xdftool pistorm.hdf open part=DH99 + makedir scsi
+xdftool pistorm.hdf open part=DH99 + write piscsi/device_driver_amiga/pi-scsi.device scsi/pi-scsi.device
+xdftool pistorm.hdf open part=DH99 + makedir rtg
+xdftool pistorm.hdf open part=DH99 + write "rtg/PiGFX Install" rtg
+xdftool pistorm.hdf open part=DH99 + write "rtg/PiGFX Install.info" rtg
+xdftool pistorm.hdf open part=DH99 + makedir "rtg/PiGFX Install/Files"
+xdftool pistorm.hdf open part=DH99 + write rtg/rtg_driver_amiga/pigfx020.card "rtg/PiGFX Install/Files/pigfx020.card"
+xdftool pistorm.hdf open part=DH99 + write rtg/rtg_driver_amiga/pigfx030.card "rtg/PiGFX Install/Files/pigfx030.card"
+xdftool pistorm.hdf open part=DH99 + write rtg/rtg_driver_amiga/PiGFX.info "rtg/PiGFX Install/Files/PiGFX.info"
diff --git a/platforms/amiga/dos1.bin b/platforms/amiga/dos1.bin
new file mode 100644 (file)
index 0000000..4a8f78d
Binary files /dev/null and b/platforms/amiga/dos1.bin differ
index fbf6d85155f514d2957a2b7dd11ef34442af5ed1..e483b23804021af17d3c735d6fd63b33404b8307 100644 (file)
Binary files a/platforms/amiga/pistorm.hdf and b/platforms/amiga/pistorm.hdf differ
diff --git a/platforms/amiga/rtg/PiGFX Install.info b/platforms/amiga/rtg/PiGFX Install.info
new file mode 100644 (file)
index 0000000..34ad980
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install.info differ
diff --git a/platforms/amiga/rtg/PiGFX Install/Installer b/platforms/amiga/rtg/PiGFX Install/Installer
new file mode 100644 (file)
index 0000000..0f6f32a
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/Installer differ
diff --git a/platforms/amiga/rtg/PiGFX Install/Patch/GPatch b/platforms/amiga/rtg/PiGFX Install/Patch/GPatch
new file mode 100644 (file)
index 0000000..88b3f33
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/Patch/GPatch differ
diff --git a/platforms/amiga/rtg/PiGFX Install/Patch/P96Settings.patch b/platforms/amiga/rtg/PiGFX Install/Patch/P96Settings.patch
new file mode 100644 (file)
index 0000000..6eb4f9b
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/Patch/P96Settings.patch differ
diff --git a/platforms/amiga/rtg/PiGFX Install/Patch/PiGFX.patch b/platforms/amiga/rtg/PiGFX Install/Patch/PiGFX.patch
new file mode 100644 (file)
index 0000000..3ee0593
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/Patch/PiGFX.patch differ
diff --git a/platforms/amiga/rtg/PiGFX Install/PiGFX Installer b/platforms/amiga/rtg/PiGFX Install/PiGFX Installer
new file mode 100644 (file)
index 0000000..d569e8b
--- /dev/null
@@ -0,0 +1,278 @@
+; PiGFX
+
+; Generated by InstallerGen 1.5!
+
+(complete 0)
+(set @app-name "PiGFX")
+(set @default-dest "Sys:")
+; 
+(welcome "This installer will configure your Picasso96 installation for use with PiGFX RTG.\n\nAny old PiGFX card or monitor files that are detected will be removed.")
+
+(complete 3)
+; Reminder to install P96
+(message "Please ensure you have already installed Picasso96. You can choose any GFX board (or select none at all) during the install process as this will not be used. \n\nThe install process will ask for the location of the original Picasso96 files that you used to install it. Please make sure to have them available. "
+)
+
+(complete 6)
+; Check if P96 is installed
+(set #P96check
+  (exists "Sys:Prefs/Picasso96Mode" (noreq))
+)
+
+(complete 9)
+; If Picasso96Mode exists
+(if (= #P96check 0)
+(
+
+(complete 12)
+; Advise to install P96 and exit
+(exit "Picasso96 does not appear to be installed.\n\nOnce Picasso96 has been installed, please re-run the PiGFX installer.")
+
+)
+) ; End If
+(complete 15)
+; Check if old PiGFX monitor file exists
+(set #OldPiGFX
+  (exists "Devs:Monitors/PiGFX" (noreq))
+)
+
+(complete 18)
+; If old PiGFX monitor file exists
+(if (= #OldPiGFX 1)
+(
+
+(complete 21)
+; Warn that old PiGFX file will be removed
+(message "An old PiGFX monitor file has been found in Devs:Monitors/\n\nThis will now be removed. "
+)
+
+(complete 24)
+; Delete old PiGFX file
+(delete "Devs:Monitors/PiGFX"
+  (prompt "Deleting old PiGFX monitor file.")
+  (help "A previous version of the PiGFX monitor file has been detected in Devs:Monitors/ and will be removed.")
+  (infos)
+  (optional "askuser")
+)
+
+)
+) ; End If
+(complete 26)
+; Check if old pigfx020 card  file exists
+(set #Old020card
+  (exists "Libs:Picasso96/pigfx020.card" (noreq))
+)
+
+(complete 29)
+; If old pigfx020 card file exists
+(if (= #Old020card 1)
+(
+
+(complete 32)
+; Warn that old pigfx020 card file will be removed
+(message "An old pigfx020.card file has been found in Libs:Picasso96/\n\nThis will now be removed. "
+)
+
+(complete 35)
+; Delete old pigfx020 card file
+(delete "Libs:Picasso96/pigfx020.card"
+  (prompt "Deleting old PiGFX monitor file.")
+  (help "A previous version of the pigfx020.card file has been detected in Libs:Picasso96/ and will be removed.")
+  (infos)
+  (optional "askuser")
+)
+
+)
+) ; End If
+(complete 38)
+; Check if old pigfx030 card  file exists
+(set #Old030card
+  (exists "Libs:Picasso96/pigfx030.card" (noreq))
+)
+
+(complete 41)
+; If old pigfx030 card file exists
+(if (= #Old030card 1)
+(
+
+(complete 44)
+; Warn that old pigfx030 card file will be removed
+(message "An old pigfx030.card file has been found in Libs:Picasso96/\n\nThis will now be removed. "
+)
+
+(complete 47)
+; Delete old pigfx030 card file
+(delete "Libs:Picasso96/pigfx030.card"
+  (prompt "Deleting old PiGFX monitor file.")
+  (help "A previous version of the pigfx030.card file has been detected in Libs:Picasso96/ and will be removed.")
+  (infos)
+  (optional "askuser")
+)
+
+)
+) ; End If
+(complete 50)
+; Check if P96Settings exists
+(set #P96settingsold
+  (exists "Devs:Picasso96Settings" (noreq))
+)
+
+(complete 53)
+; If P96Settings exists
+(if (= #P96settingsold 1)
+(
+
+(complete 56)
+; Backup or delete old settings
+(set #backupoptions
+  (askchoice
+    (prompt "Do you wish to backup your old Picasso96Settings file to Picasso96Settings.old.\n\nIf you select \"No\" then your settings file will be deleted.")
+    (help "There is already an existing Picasso96Settings file located in Devs: \n\nPlease choose if to backup this file to Picasso96Settings.old or if it can be deleted.")
+    (choices "Yes" "No")
+    (default 0)
+  )
+)
+(if (= #backupoptions 0) (set #P96backup 1) (set #P96backup 0))
+(if (= #backupoptions 1) (set #P96delete 1) (set #P96delete 0))
+
+)
+) ; End If
+(complete 59)
+; Backup old settings
+(if (= #P96backup 1)
+(
+
+(complete 62)
+; Check for old settings backup
+(set #P96settingsbackupold
+  (exists "Devs:Picasso96Settings.old" (noreq))
+)
+
+)
+) ; End If
+(complete 65)
+; If old P96Settings backup already exists
+(if (= #P96settingsbackupold 1)
+(
+
+(complete 68)
+; Delete old P96Settings backup
+(delete (tackon @default-dest "Devs/Picasso96Settings.old")
+  (prompt "Delting old Picasso96Settings.old file. ")
+  (help "The old back up of the Picasso96Settings file has been detected and will now be removed.")
+  (infos)
+  (optional "askuser")
+)
+
+)
+) ; End If
+(complete 71)
+; Create P96settings backup
+(rename "Devs:Picasso96Settings" "Devs:Picasso96Settings.old"
+  (prompt "Creating backup of previous Picasso96Settings.")
+  (help )
+)
+
+(complete 74)
+; If ok to delete old P96Settings
+(if (= #P96settingsdelete 1)
+(
+
+(complete 76)
+; Delete old P96Settings file
+(delete "Devs:Picasso96Settings"
+  (prompt "Deleting old Picasso96Settings file.")
+  (help "An old Picasso96Settings file has been detected in Devs: and will now be deleted.")
+  (infos)
+  (optional "askuser")
+)
+
+)
+) ; End If
+(complete 79)
+; Locate original P96 install files
+(set #P96files
+  (askdir
+    (prompt "Please select the folder containing the original Picasso96 installation files (The folder is typically called Picasso96Install). These are required to create the PiGFX settings and monitor files. ")
+    (help "Please locate the original Picasso96 installtion files. This is the folder from which you originally installed Picasso96 and is usually called Picasso96Install.\n\nThis installation has to patch some of the original files to create the new PiGFX monitor and settings files. \n")
+    (default @default-dest)
+  )
+)
+
+(complete 82)
+; Copy PiGFX card files
+(copyfiles
+  (prompt "Copying PiGFX card files to Libs: ")
+  (help @copyfiles-help)
+  (source "")
+  (dest "Libs:Picasso96")
+  (choices "Files/pigfx020.card" "Files/pigfx030.card")
+)
+
+(complete 85)
+; Warn about temporary assign to install files
+(message "A temporary assign called P96Temp: will be created to locate the original Picasso96 files. This will be removed once you reboot. "
+)
+
+(complete 88)
+; Make temporary assign to P96 install files
+(makeassign "P96Temp" #P96files)
+
+; Check original p96settings exists
+(set #OriginalP96settings
+  (exists "P96Temp:devs/Picasso96Settings.15" (noreq))
+)
+
+; If original P96settings does not exist
+(if (= #OriginalP96settings 0)
+(
+
+; Advise original settings cannot be found
+(exit "The original Picasso96Settings file that is required to create the PiGFX settings file cannot be located.\n\nPlease ensure you set the correct path to the original installation files, and are using a compatible version of Picasso96 from Aminet or Individual Computers. Please see Readme.txt for more information.")
+
+)
+) ; End If
+; Check original monitor file exists
+(set #OriginalP96monitor
+  (exists "P96Temp:devs/monitors/Picasso96" (noreq))
+)
+
+; If original monitor file does not exist
+(if (= #OriginalP96monitor 0)
+(
+
+; Advise original monitor cannot be found
+(exit "The original Picasso96 monitor file that is required to create the PiGFX monitor file cannot be located.\n\nPlease ensure you set the correct path to the original installation files, and are using a compatible version of Picasso96 from Aminet or Individual Computers. Please see Readme.txt for more information.")
+
+)
+) ; End If
+(complete 91)
+; Patching P96 monitor file
+(run "Patch/gpatch" "P96Temp:devs/monitors/Picasso96" "Patch/PiGFX.patch" "Devs:Monitors/PiGFX"
+  (prompt "Patching original Picasso monitor file to create PiGFX monitor file in Devs:Monitors/")
+  (help "A PiGFX monitor file will be created by patching one of the original monitor files.")
+  (confirm "average")
+)
+
+(complete 94)
+; Patching P96Settings file
+(run "Patch/gpatch" "P96Temp:devs/Picasso96Settings.15" "Patch/P96Settings.patch" "Devs:Picasso96Settings"
+  (prompt "Patching original Picasso96Settings file and creating PiGFX Devs:Picasso96Settings file. ")
+  (help "A new Picasso96Settings file for PiGFX will be created by patching on of the original settings files. ")
+  (confirm "average")
+)
+
+(complete 97)
+; Copy PiGFX icon
+(copyfiles
+  (prompt "Copying the PiGFX icon and tooltypes to Devs:Monitors/")
+  (help "The will copy the PiGFX icon that contains the required tooltypes to Devs:Monitors/")
+  (source "")
+  (dest "Devs:Monitors")
+  (choices "Files/PiGFX.info")
+)
+
+; Reminder to enable RTG
+(message "Remember to enable RTG in the PiStorm default.cfg file."
+)
+
diff --git a/platforms/amiga/rtg/PiGFX Install/PiGFX Installer.info b/platforms/amiga/rtg/PiGFX Install/PiGFX Installer.info
new file mode 100644 (file)
index 0000000..f2b379e
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/PiGFX Installer.info differ
diff --git a/platforms/amiga/rtg/PiGFX Install/Readme.txt b/platforms/amiga/rtg/PiGFX Install/Readme.txt
new file mode 100644 (file)
index 0000000..981be19
--- /dev/null
@@ -0,0 +1,62 @@
+PiGFX RTG Installer\r
+===================\r
+\r
+Unfortunately, there are some Picasso96 settings files required to use \r
+PiGFX RTG on PiStorm that are not able to be freely distributed.\r
+\r
+This installer will patch files from the original install folder to \r
+create the required monitor file and settings files. This will save \r
+you having to create these and setting up all the resolutions manually.\r
+\r
+The card files currently in the installer are from the WIP-crap branch\r
+as of 3rd June 2021.\r
+\r
+Requirements\r
+============\r
+\r
+This installer requires you to already have installed Picasso96 on \r
+your PiStorm machine. \r
+\r
+During the Picasso96 installation you can choose any graphics board \r
+(or select none at all) as this will be ignored and new files for PiGFX\r
+will be created.\r
+\r
+The installer will also require access to the original installation \r
+files that are located in the folder from where you installed Picasso96. \r
+\r
+At the time of writing, the below versions of Picasso96 are supported. \r
+Please ensure that you are using one of these exact versions, and do not \r
+modify the folder in any way. The installer requires the files to be in \r
+their original locations.\r
+\r
+Picasso96 v2.0 - This can be downloaded freely from Aminet here - \r
+                 https://aminet.net/package/driver/video/Picasso96\r
+\r
+Picasso96 v3.02 - This can be purchased from Individual Computers for \r
+                  a small fee, and at the time of writing the latest \r
+                  version is v3.02. \r
+\r
+Any future versions may require a new patch file to be created. If/when\r
+IComp do release any future updates, the patch files will be updated \r
+accordingly if required.\r
+\r
+Installation\r
+============\r
+\r
+Simply run the installer and it will walk you through the process.\r
+\r
+Any old versions of the PiGFX files will be removed during the install\r
+and new ones created by patching some of the original install files.\r
+\r
+During the install, you will be asked to locate the original \r
+installation folder from where you installed Picasso96, this folder is \r
+typically called Picasso96Install. \r
+\r
+Issues\r
+======\r
+\r
+If you have any issues with the installation, please contact us on \r
+Discord for assistance.\r
+\r
+\r
+\r
diff --git a/platforms/amiga/rtg/PiGFX Install/Readme.txt.info b/platforms/amiga/rtg/PiGFX Install/Readme.txt.info
new file mode 100644 (file)
index 0000000..01bccd5
Binary files /dev/null and b/platforms/amiga/rtg/PiGFX Install/Readme.txt.info differ