diff --git a/Tools/BootFloppy/COPYING b/Tools/BootFloppy/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..760f3fd28c3e6cc17442c43d40921154e2edc8ae --- /dev/null +++ b/Tools/BootFloppy/COPYING @@ -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 index 0000000000000000000000000000000000000000..4412afb409350a16e2925961f580a0cd3b4e2fb9 --- /dev/null +++ b/Tools/BootFloppy/MakeDiskImage @@ -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 index 0000000000000000000000000000000000000000..17ce63064dd4724697d505494c02710f10f2b1d3 --- /dev/null +++ b/Tools/BootFloppy/menu.lst @@ -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 index 0000000000000000000000000000000000000000..c10df8082c735d1d23219b453b6058ff536c9a2b Binary files /dev/null and b/Tools/BootFloppy/stage1 differ diff --git a/Tools/BootFloppy/stage2 b/Tools/BootFloppy/stage2 new file mode 100644 index 0000000000000000000000000000000000000000..cad9ba81a99de30ed1d18832b401fb750aaa6584 Binary files /dev/null and b/Tools/BootFloppy/stage2 differ