Mercurial > hg > Members > kono > nitros9-code
annotate scripts/bundi @ 1873:df5378cb9581
Fixed incorrect spelling
author | boisy |
---|---|
date | Thu, 11 Aug 2005 02:15:35 +0000 |
parents | 6cbe386d981f |
children | 9db5440eef21 |
rev | line source |
---|---|
1779 | 1 #!/bin/tcsh |
1765 | 2 # |
3 # BUNDI - Build the Ultimate NitrOS-9 Disk Image | |
4 # | |
5 # This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image | |
6 # complete with HDB-DOS drives! | |
7 # | |
8 # The resulting image has a NitrOS-9 partition and an HDB-DOS partition. | |
9 # The first drive of the HDB-DOS partition is the HDB-DOS distribution | |
10 # diskette. The last drive is the NitrOS-9 boot disk. | |
11 # | |
12 # Size of image is 90,624 256-byte sectors, which fits in | |
13 # $00B100 OS-9 Offset in HDB-DOS | |
14 # | |
1770 | 15 # ATTENTION! Set the HDB-DOS offset in your HDB-DOS ROM here! (must be in decimal) |
16 set hdbdos_offset=45312 # 0x00B100 | |
17 # ATTENTION! Set the number of HDB-DOS virtual disks (must be in decimal) | |
18 set num_hdbdos_disks=128 | |
19 | |
1779 | 20 # Check for argument |
21 if ($2 == "") then | |
22 echo "Usage: bundi <bootscript> <diskname>" | |
23 exit | |
24 endif | |
1770 | 25 |
1779 | 26 set diskname=$2 |
1771 | 27 set multiplier=2 |
28 @ os9_sectors = $hdbdos_offset * $multiplier | |
1770 | 29 echo $os9_sectors |
1771 | 30 @ hdb_drives = $num_hdbdos_disks - 2 |
1765 | 31 |
1779 | 32 echo "########## PART I ##########" |
33 echo "# #" | |
34 echo "# Assemble EVERYTHING! #" | |
35 echo "# #" | |
36 echo "#############################" | |
37 echo | |
38 echo "Step 1 - Making the ENTIRE NitrOS-9 Project (could take a while)..." | |
1829 | 39 #(pushd $NITROS9DIR; make dsk; popd)>&/dev/null |
1765 | 40 |
1779 | 41 echo "Step 2 - Making the HDB-DOS Product..." |
42 (pushd $CLOUD9DIR/Products/HDB-DOS/Software; make dsk; popd)>&/dev/null | |
43 | |
44 echo "Step 3 - Making the Ved Product..." | |
45 (pushd $CLOUD9DIR/Products/Ved/Software; make dsk; popd)>&/dev/null | |
1765 | 46 |
1779 | 47 echo "########## PART II ##########" |
48 echo "# #" | |
49 echo "# Prepare the Disk Image #" | |
50 echo "# #" | |
51 echo "#############################" | |
52 echo | |
53 echo "Step 1 - Format the disk and make the boot disk" | |
1771 | 54 os9 format -qe -l$os9_sectors tmp.dsk |
1779 | 55 ./$1>&/dev/null |
1787 | 56 os9 gen -b=bootfile -t=boottrack tmp.dsk>&/dev/null |
57 os9 copy -o=0 $NITROS9DIR/6309l2/modules/sysgo_dd tmp.dsk,sysgo | |
58 os9 attr tmp.dsk,sysgo -epepr | |
1873 | 59 os9 dsave -e $NITROS9DIR/6309l2/nos96309l2_80d.dsk, tmp.dsk, >&/dev/null |
1779 | 60 os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk, >&/dev/null |
61 os9 dsave -e $NITROS9DIR/3rdparty/packages/cc/cc.dsk, tmp.dsk, >&/dev/null | |
62 os9 dsave -e $NITROS9DIR/3rdparty/packages/basic09/basic09v010100.dsk, tmp.dsk, >&/dev/null | |
63 os9 dsave -e $CLOUD9DIR/Products/Ved/Software/ved.dsk, tmp.dsk, >&/dev/null | |
1771 | 64 os9 format -qe -ss -dd boot.dsk |
1779 | 65 os9 gen -b=bootfile -t=boottrack boot.dsk>&/dev/null |
1770 | 66 rm bootfile boottrack |
1779 | 67 |
68 echo "Step 2 - Build the HDB-DOS drives" | |
69 rm hdbdrives.dsk | |
1771 | 70 decb dskini -h$hdb_drives hdbdrives.dsk |
1779 | 71 rm hdbdrives2.dsk |
1765 | 72 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk |
73 rm hdbdrives.dsk boot.dsk | |
74 decb hdbconv hdbdrives2.dsk hdbdrives.dsk | |
75 rm hdbdrives2.dsk | |
1779 | 76 |
77 echo "Step 3 - Put it all together" | |
78 rm $diskname | |
1771 | 79 cat tmp.dsk hdbdrives.dsk>$diskname |
1856
6cbe386d981f
Corrected issue in makefiles so that directory under NITROS9 is properly named
boisy
parents:
1829
diff
changeset
|
80 #rm tmp.dsk hdbdrives.dsk |
1779 | 81 |
82 echo "Ok, we're done! The file $diskname is now a fresh disk image." |