1770
|
1 #!/bin/tcsh -x
|
1765
|
2 #
|
|
3 # BUNDI - Build the Ultimate NitrOS-9 Disk Image
|
|
4 #
|
|
5 #
|
|
6 # This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image
|
|
7 # complete with HDB-DOS drives!
|
|
8 #
|
|
9 # The resulting image has a NitrOS-9 partition and an HDB-DOS partition.
|
|
10 # The first drive of the HDB-DOS partition is the HDB-DOS distribution
|
|
11 # diskette. The last drive is the NitrOS-9 boot disk.
|
|
12 #
|
|
13 # Size of image is 90,624 256-byte sectors, which fits in
|
|
14 # $00B100 OS-9 Offset in HDB-DOS
|
|
15 #
|
1770
|
16 # ATTENTION! Set the HDB-DOS offset in your HDB-DOS ROM here! (must be in decimal)
|
|
17 set hdbdos_offset=45312 # 0x00B100
|
|
18 # ATTENTION! Set the number of HDB-DOS virtual disks (must be in decimal)
|
|
19 set num_hdbdos_disks=128
|
|
20
|
|
21
|
1765
|
22 set diskname=ultimate.dsk
|
1771
|
23 set multiplier=2
|
|
24 @ os9_sectors = $hdbdos_offset * $multiplier
|
1770
|
25 echo $os9_sectors
|
1771
|
26 @ hdb_drives = $num_hdbdos_disks - 2
|
1765
|
27
|
|
28 ########## PART I ##########
|
|
29 # #
|
1770
|
30 # Assemble EVERYTHING! #
|
1765
|
31 # #
|
|
32 #############################
|
|
33 # Step 1 - Make the ENTIRE NitrOS-9 Project
|
|
34 pushd $NITROS9DIR; make dsk; popd
|
|
35
|
|
36 # Step 2 - Make the HDB-DOS product
|
|
37 pushd $CLOUD9DIR/Products/HDB-DOS/Software
|
|
38 make dsk
|
|
39 popd
|
|
40
|
|
41 ########## PART II ##########
|
|
42 # #
|
|
43 # Prepare the Disk Image #
|
|
44 # #
|
|
45 #############################
|
|
46 # Step 1 - Prepare the disk image
|
1771
|
47 os9 format -qe -l$os9_sectors tmp.dsk
|
1770
|
48 ./makeboot
|
1771
|
49 os9 dsave -e $NITROS9DIR/6309l2/latest_80d.dsk, tmp.dsk,
|
|
50 os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk,
|
|
51 os9 format -qe -ss -dd boot.dsk
|
|
52 os9 gen -b=bootfile -t=boottrack boot.dsk
|
1770
|
53 rm bootfile boottrack
|
1771
|
54 decb dskini -h$hdb_drives hdbdrives.dsk
|
1765
|
55 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk
|
|
56 rm hdbdrives.dsk boot.dsk
|
|
57 decb hdbconv hdbdrives2.dsk hdbdrives.dsk
|
|
58 rm hdbdrives2.dsk
|
1771
|
59 cat tmp.dsk hdbdrives.dsk>$diskname
|
|
60 rm tmp.dsk hdbdrives.dsk
|