From: John Hodge Date: Wed, 10 Jul 2013 16:32:05 +0000 (+0800) Subject: Tools/BootFloppy - Hacky script to create a boot floppy disk X-Git-Tag: rel0.15~369 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=78736c7e6cfcc0c97b24f863eb92478f692003ac;p=tpg%2Facess2.git Tools/BootFloppy - Hacky script to create a boot floppy disk --- diff --git a/Tools/BootFloppy/COPYING b/Tools/BootFloppy/COPYING new file mode 100644 index 00000000..760f3fd2 --- /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 . +" + +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 00000000..4412afb4 --- /dev/null +++ b/Tools/BootFloppy/MakeDiskImage @@ -0,0 +1,14 @@ +#!/bin/bash +if [[ $# -ne 1 ]]; then + echo "Usage: $0 " >&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 00000000..17ce6306 --- /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 00000000..c10df808 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 00000000..cad9ba81 Binary files /dev/null and b/Tools/BootFloppy/stage2 differ