annotate scripts/bundi @ 1804:6e5fa42c2fb1

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