Tools/BootFloppy - Hacky script to create a boot floppy disk
authorJohn Hodge <[email protected]>
Wed, 10 Jul 2013 16:32:05 +0000 (00:32 +0800)
committerJohn Hodge <[email protected]>
Wed, 10 Jul 2013 16:32:05 +0000 (00:32 +0800)
Tools/BootFloppy/COPYING [new file with mode: 0644]
Tools/BootFloppy/MakeDiskImage [new file with mode: 0755]
Tools/BootFloppy/menu.lst [new file with mode: 0644]
Tools/BootFloppy/stage1 [new file with mode: 0644]
Tools/BootFloppy/stage2 [new file with mode: 0644]

diff --git a/Tools/BootFloppy/COPYING b/Tools/BootFloppy/COPYING
new file mode 100644 (file)
index 0000000..760f3fd
--- /dev/null
@@ -0,0 +1,23 @@
+This folder contains binaries of the GRand Unified Bootloader (GRUB) [Unknown version]
+published under the GNU General Public Licence.
+- http://www.gnu.org/software/grub/grub-legacy.html
+
+"
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+"
+
+Scripts contained in this folder are written by me (John Hodge / thePowersGang) and
+are licenced under the same conditions as the rest of the Acess source (at the time
+of writing, this was the zlib licence)
+
diff --git a/Tools/BootFloppy/MakeDiskImage b/Tools/BootFloppy/MakeDiskImage
new file mode 100755 (executable)
index 0000000..4412afb
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+if [[ $# -ne 1 ]]; then
+       echo "Usage: $0 <image>" >&2
+       exit 1
+fi
+IMGNAME=$1
+dd if=/dev/zero of="$IMGNAME" bs=512 count=2880
+mformat -i "$IMGNAME" ::/ -f 1440 -v Acess
+dd if=stage1 bs=1 seek=0 count=3 "of=$IMGNAME" conv=notrunc
+dd if=stage1 bs=1 skip=$((0x3E)) seek=$((0x3E)) "of=$IMGNAME" conv=notrunc
+mmd -i "$IMGNAME" ::/boot
+mcopy stage1 stage2 -i "$IMGNAME" ::/boot/
+/bin/echo -ne '\x23' | dd seek=$((0x44)) bs=1 count=1 "of=$IMGNAME" conv=notrunc
+mcopy menu.lst -i "$IMGNAME" ::/boot/
diff --git a/Tools/BootFloppy/menu.lst b/Tools/BootFloppy/menu.lst
new file mode 100644 (file)
index 0000000..17ce630
--- /dev/null
@@ -0,0 +1,5 @@
+timeout 1
+
+title Acess2 (x86,FDD)
+       kernel /Acess2/Acess2.x86.gz /System=fat:/Devices/fdd/0 /Acess=/System/Acess2/x86
+
diff --git a/Tools/BootFloppy/stage1 b/Tools/BootFloppy/stage1
new file mode 100644 (file)
index 0000000..c10df80
Binary files /dev/null and b/Tools/BootFloppy/stage1 differ
diff --git a/Tools/BootFloppy/stage2 b/Tools/BootFloppy/stage2
new file mode 100644 (file)
index 0000000..cad9ba8
Binary files /dev/null and b/Tools/BootFloppy/stage2 differ

UCC git Repository :: git.ucc.asn.au