Mercurial > hg > Members > kono > nitros9-code
annotate level1/d64/scripts/mb.ddisk @ 3277:33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
At least it works in XRoar when running off a 80d floppy
and preparing a new 40d boot floppy in the second drive.
The "format" must be run manually for now since there is
not enough memory to run it from inside the script...
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 07 Mar 2020 23:15:05 +0100 |
parents | |
children |
rev | line source |
---|---|
3277
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
1 -t |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
2 -x |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
3 tmode .1 pau=0 |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
4 echo * NitrOS-9 Level 1 Boot Creation Script |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
5 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
6 echo * This script creates a bootable floppy disk |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
7 echo * using the ddisk_40d.bl bootlist file. |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
8 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
9 echo * The resulting disk will boot NitrOS-9 from drive 0. |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
10 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
11 *prompt Insert a blank disk in /d1 and press a key: |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
12 echo * Step 1: |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
13 echo Insert a Dragon formatted disk in /d1 |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
14 prompt (formatted using options fd 2 '40) and press a key: |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
15 *echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
16 *echo * Step 1: Format disk in /d1 |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
17 *format /d1 "NitrOS-9 Level 1 Boot Disk" r fd 2 '40 |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
18 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
19 echo * Step 2: Create a custom boot track |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
20 *del bttemp |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
21 merge ../MODULES/BOOTTRACK/rel ../MODULES/KERNEL/krn ../MODULES/KERNEL/krnp2 ../MODULES/SYSMODS/init ../MODULES/BOOTTRACK/boot_d64>bttemp |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
22 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
23 echo * Step 3: Create the bootfile and boot track |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
24 os9gen /d1 -t=bttemp<../BOOTLISTS/ddisk_40d.bl |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
25 del bttemp |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
26 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
27 echo * Step 4: Populate the disk with essential files |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
28 copy ../MODULES/SYSMODS/sysgo_dd /d1/sysgo |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
29 makdir /d1/CMDS |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
30 copy -w=/d1/CMDS ../CMDS/shell |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
31 echo * |
33d539c123cf
d64: Add mb.ddisk script for making Dragon boot floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
diff
changeset
|
32 echo * We're done |