Mercurial > hg > Members > kono > nitros9-code
changeset 1829:84b47b7ca7a6
Added scripts
author | boisy |
---|---|
date | Fri, 29 Apr 2005 12:15:46 +0000 |
parents | d0af258d9229 |
children | d1f2f21d6af7 |
files | scripts/bundi scripts/bundil1 scripts/dwbootl1 |
diffstat | 3 files changed, 117 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/bundi Fri Apr 29 12:00:16 2005 +0000 +++ b/scripts/bundi Fri Apr 29 12:15:46 2005 +0000 @@ -36,7 +36,7 @@ echo "#############################" echo echo "Step 1 - Making the ENTIRE NitrOS-9 Project (could take a while)..." -(pushd $NITROS9DIR; make dsk; popd)>&/dev/null +#(pushd $NITROS9DIR; make dsk; popd)>&/dev/null echo "Step 2 - Making the HDB-DOS Product..." (pushd $CLOUD9DIR/Products/HDB-DOS/Software; make dsk; popd)>&/dev/null
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/bundil1 Fri Apr 29 12:15:46 2005 +0000 @@ -0,0 +1,76 @@ +#!/bin/tcsh +# +# BUNDI - Build the Ultimate NitrOS-9 Disk Image +# +# This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image +# complete with HDB-DOS drives! +# +# The resulting image has a NitrOS-9 partition and an HDB-DOS partition. +# The first drive of the HDB-DOS partition is the HDB-DOS distribution +# diskette. The last drive is the NitrOS-9 boot disk. +# +# 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 ver=6809l1 + +# Check for argument +if ($2 == "") then + echo "Usage: bundi <bootscript> <diskname>" + exit +endif + +set diskname=$2 +set multiplier=2 +@ os9_sectors = $hdbdos_offset * $multiplier +echo $os9_sectors +@ hdb_drives = $num_hdbdos_disks - 2 + +echo "########## PART I ##########" +echo "# #" +echo "# Assemble EVERYTHING! #" +echo "# #" +echo "#############################" +echo +echo "Step 1 - Making the ENTIRE NitrOS-9 Project (could take a while)..." +#(pushd $NITROS9DIR; make dsk; popd)>&/dev/null + +echo "Step 2 - Making the HDB-DOS Product..." +(pushd $CLOUD9DIR/Products/HDB-DOS/Software; make dsk; popd)>&/dev/null + +echo "########## PART II ##########" +echo "# #" +echo "# Prepare the Disk Image #" +echo "# #" +echo "#############################" +echo +echo "Step 1 - Format the disk and make the boot disk" +os9 format -qe -l$os9_sectors tmp.dsk +./$1>&/dev/null +os9 gen -b=bootfile -t=boottrack tmp.dsk>&/dev/null +os9 dsave -e $NITROS9DIR/$ver/nos96809l1_80d.dsk, tmp.dsk, >&/dev/null +os9 dsave -e $NITROS9DIR/3rdparty/packages/cc/cc.dsk, tmp.dsk, >&/dev/null +os9 dsave -e $NITROS9DIR/3rdparty/packages/basic09/basic09v010100.dsk, tmp.dsk, >&/dev/null +os9 format -qe -ss -dd boot.dsk +os9 gen -b=bootfile -t=boottrack boot.dsk>&/dev/null +rm bootfile boottrack + +echo "Step 2 - Build the HDB-DOS drives" +rm hdbdrives.dsk +decb dskini -h$hdb_drives hdbdrives.dsk +rm hdbdrives2.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 +rm hdbdrives2.dsk + +echo "Step 3 - Put it all together" +rm $diskname +cat tmp.dsk hdbdrives.dsk>$diskname +rm tmp.dsk hdbdrives.dsk + +echo "Ok, we're done! The file $diskname is now a fresh disk image."
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/dwbootl1 Fri Apr 29 12:15:46 2005 +0000 @@ -0,0 +1,40 @@ +# Makes 'bootlist' and 'bootfile' in the current directory +set md=$NITROS9DIR/6809l1/modules +set sd=$CLOUD9DIR/Products/SuperDrivers/software/6809l1 +set dd=$CLOUD9DIR/Products/DriveWire/software/6809l1 + +set tracklist_1773="$md/rel $md/krn $md/krnp2 $md/init $md/boot_1773_6ms" +set tracklist_tc3="$md/rel $md/krn $md/krnp2 $md/init $sd/boot_tc3" +set tracklist_ide="$md/rel $md/krn $md/krnp2 $md/init $sd/boot_ide" +set tracklist_dw="$md/rel $md/krn $md/krnp2 $md/init $dd/boot_dw" + +# IDE Boot with IDE Master as /DD +set bootlist_dw="$md/ioman $md/rbf.mn $dd/drivewire.dr $dd/ddx0.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/ccio.dr $md/co32.io $md/term32.dt $md/sc6551.dr $md/t2_sc6551.dd $md/t3_sc6551.dd $md/pipeman.mn $md/piper.dr $md/pipe.dd $md/clock_60hz $dd/clock2_dw $md/sysgo_dd" +#set bootlist_dw="$md/ioman $md/rbf.mn $sd/rbsuper.dr $sd/llide.dr $sd/lltc3.dr $sd/i0_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/ddx0.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/ccio.dr $md/co32.io $md/term32.dt $md/sc6551.dr $md/t2_sc6551.dd $md/t3_sc6551.dd $md/pipeman.mn $md/piper.dr $md/pipe.dd $md/clock_60hz $dd/clock2_dw $md/sysgo_dd" + +# $(C9)/Products/SuperDrivers/software/6809l1/lldw.dr \ +# $(C9)/Products/SuperDrivers/software/6809l1/ddx0.dd \ +# $(C9)/Products/SuperDrivers/software/6809l1/x1.dd \ +# $(C9)/Products/SuperDrivers/software/6809l1/x2.dd \ +# $(C9)/Products/SuperDrivers/software/6809l1/x3.dd \ + + + +# Select our bootlist and tracklist +set bootlist="$bootlist_dw" +set tracklist="$tracklist_dw" + +# 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 +