Mercurial > hg > Members > kono > nitros9-code
view scripts/bundi @ 1772:5ba8e711a1a3
source added
author | boisy |
---|---|
date | Fri, 01 Apr 2005 22:04:25 +0000 |
parents | 7f2e75d5b62d |
children | c37b7bb2b116 |
line wrap: on
line source
#!/bin/tcsh -x # # 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 diskname=ultimate.dsk set multiplier=2 @ os9_sectors = $hdbdos_offset * $multiplier echo $os9_sectors @ hdb_drives = $num_hdbdos_disks - 2 ########## PART I ########## # # # Assemble EVERYTHING! # # # ############################# # Step 1 - Make the ENTIRE NitrOS-9 Project pushd $NITROS9DIR; make dsk; popd # Step 2 - Make the HDB-DOS product pushd $CLOUD9DIR/Products/HDB-DOS/Software make dsk popd ########## PART II ########## # # # Prepare the Disk Image # # # ############################# # Step 1 - Prepare the disk image os9 format -qe -l$os9_sectors tmp.dsk ./makeboot os9 dsave -e $NITROS9DIR/6309l2/latest_80d.dsk, tmp.dsk, os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk, os9 format -qe -ss -dd boot.dsk os9 gen -b=bootfile -t=boottrack boot.dsk rm bootfile boottrack decb dskini -h$hdb_drives 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 rm hdbdrives2.dsk cat tmp.dsk hdbdrives.dsk>$diskname rm tmp.dsk hdbdrives.dsk