changeset 1770:fd154c8337f3

added makeboot script
author boisy
date Fri, 01 Apr 2005 20:23:11 +0000
parents 93a81cb89e1a
children 7f2e75d5b62d
files scripts/bundi scripts/makeboot
diffstat 2 files changed, 54 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/bundi	Fri Apr 01 17:39:21 2005 +0000
+++ b/scripts/bundi	Fri Apr 01 20:23:11 2005 +0000
@@ -1,4 +1,4 @@
-#!/bin/tcsh
+#!/bin/tcsh -x
 #
 # BUNDI - Build the Ultimate NitrOS-9 Disk Image
 #
@@ -14,20 +14,23 @@
 # Size of image is 90,624 256-byte sectors, which fits in
 # $00B100 OS-9 Offset in HDB-DOS
 #
+# ATTENTION!  Set the HDB-DOS offset in your HDB-DOS ROM here! (must be in decimal)
+set hdbdos_offset=45312		# 0x00B100
+# ATTENTION!  Set the number of HDB-DOS virtual disks (must be in decimal)
+set num_hdbdos_disks=128
+
+
 set diskname=ultimate.dsk
+set os9_sectors=`calc $hdbdos_offset*2`
+echo $os9_sectors
 
 ########## PART  I ##########
 #                           #
-#   Assemble The Packages   #
+#    Assemble EVERYTHING!   #
 #                           #
 #############################
 # Step 1 - Make the ENTIRE NitrOS-9 Project
 pushd $NITROS9DIR; make dsk; popd
-# Step 2 - Make a custom NitrOS-9/6309 Level 2 boot file
-pushd $NITROS9DIR/6309l2/bootfiles
-make -f makefile.cust clean
-make -f makefile.cust
-popd
 
 # Step 2 - Make the HDB-DOS product
 pushd $CLOUD9DIR/Products/HDB-DOS/Software
@@ -42,13 +45,15 @@
 #                           #
 #############################
 # Step 1 - Prepare the disk image
-os9 format -qe -l90624 uucp.dsk
-os9 gen -b=bootfile_cust -t=kernel_ide uucp.dsk
+os9 format -qe -l$os9_sectors uucp.dsk
+./makeboot
+os9 gen -b=bootfile -t=boottrack uucp.dsk
+rm bootfile boottrack
 os9 dsave -e $NITROS9DIR/6309l2/nos96309l2_80d.dsk, uucp.dsk,
-os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb21/uucpbb21_6309.dsk, uucp.dsk,
+os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, uucp.dsk,
 os9 format -qe -ss -dd boot.dsk
 os9 gen -b=bootfile_cust -t=kernel_ide boot.dsk
-decb dskini -h126 hdbdrives.dsk
+decb dskini -h`calc $num_hdbdos_disks-2` hdbdrives.dsk
 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk
 rm hdbdrives.dsk boot.dsk
 decb hdbconv hdbdrives2.dsk hdbdrives.dsk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/makeboot	Fri Apr 01 20:23:11 2005 +0000
@@ -0,0 +1,38 @@
+# Makes 'bootlist' and 'bootfile' in the current directory
+set md=$NITROS9DIR/6309l2/modules
+set sd=$CLOUD9DIR/Products/SuperDrivers/software/6309l2
+set dd=$CLOUD9DIR/Products/DriveWire/software/6309l2
+
+set tracklist_1773="$md/rel_80 $md/boot_1773_6ms $md/krn"
+set tracklist_tc3="$md/rel_80 $sd/boot_tc3 $md/krn"
+set tracklist_ide="$md/rel_80 $sd/boot_ide $md/krn"
+set tracklist_dw="$md/rel_80 $dd/boot_dw $md/krn"
+
+set bootlist_ide="$md/krnp2 $md/ioman $md/init $md/rbf.mn $sd/rbsuper.dr $sd/llide.dr $sd/lltc3.dr $sd/dd_ide.dd $sd/i0_ide.dd $sd/i1_ide.dd $sd/ih_ide.dd $sd/s0_tc3.dd $sd/s1_tc3.dd $sd/s2_tc3.dd $sd/s3_tc3.dd $sd/s4_tc3.dd $sd/s5_tc3.dd $sd/s6_tc3.dd $sd/s7_tc3.dd $sd/sh_tc3.dd $dd/drivewire.dr $dd/x0.dd $dd/x1.dd $dd/x2.dd $dd/x3.dd $md/rb1773.dr $md/d0_80d.dd $md/d1_40d.dd $md/scf.mn $md/cc3io.dr $md/term_win80.dt $md/keydrv_cc3.sb $md/joydrv_joy.sb $md/snddrv_cc3.sb $md/grfint.io $md/w.dw $md/w1.dw $md/w2.dw $md/w3.dw $md/w4.dw $md/w5.dw $md/w6.dw $md/w7.dw $md/sc6551.dr $md/t2_sc6551.dd $md/t3_sc6551.dd $md/pipeman.mn $md/piper.dr $md/pipe.dd $md/clock_60hz $md/clock2_cloud9"
+
+#                $(C9)/Products/SuperDrivers/software/6309l2/lldw.dr \
+#                $(C9)/Products/SuperDrivers/software/6309l2/ddx0.dd \
+#                $(C9)/Products/SuperDrivers/software/6309l2/x1.dd \
+#                $(C9)/Products/SuperDrivers/software/6309l2/x2.dd \
+#                $(C9)/Products/SuperDrivers/software/6309l2/x3.dd \
+
+
+
+# Select our bootlist and tracklist
+set bootlist="$bootlist_ide"
+set tracklist="$tracklist_ide"
+
+# Create the files
+if (-e bootfile) then
+	rm bootfile
+endif
+foreach file ($bootlist)
+	cat $file>>bootfile
+end
+if (-e boottrack) then
+	rm boottrack
+endif
+foreach file ($tracklist)
+	cat $file>>boottrack
+end
+