FLASHUP - EPC System Update Utility (c) 2000 Technologic Systems

FLASHUP Utility Documentation

Revision: 20000720

Description
--------------------------
This program is used to load the onboard Flash, CMOS memory, and RTC 
values for Technologic Systems EPCs. If the EPC is virgin (never loaded)
or dead (the BIOS has been trashed), a TS-9100 or TS-9200 board must be 
used to bootstrap the system. If the EPC is currently functional and
you are simply updating some or all of the system, then this utility and
the update image files can be downloaded to the EPC and run directly 
from there. 

Flashup is also used to create the image files from a live EPC, enabling
you to clone EPC installations.

Flashup can currently handle the following sections:
     BIOS	- create / restore the BIOS
     DOS	- create / restore the DOS 
     DISK	- create / restore the SSD (solid state disk)
     CMOS	- create / restore the CMOS settings
     RTC	- copy the time and date from a TS-9200 boot board

The command line syntax is:
	
FLASHUP [/CREATE|/BLAST] (BIOS(=F1)) (DOS(=F2)) (DISK(=F3)) (CMOS(=F4)) (RTC)

You must choose one of two actions:
    /CREATE	- copy from the EPC into image files in the current directory
    /BLAST	- copy from image files into the EPC system.

And choose any combination of sections:

     BIOS	- create / restore the BIOS
     DOS	- create / restore the DOS 
     DISK	- create / restore the SSD (solid state disk)
     CMOS	- create / restore the CMOS settings
     RTC	- copy the time and date from a TS-9200 boot board

Any combination of sections can be specified. Filenames can be specified for 
each of the sections, but are optional. If a section is specified without a 
filename, it defaults to 

     <4 digit model number><section name>.BIN

For example, default filenames for a TS-2200 are 2200BIOS.BIN, 
2200DOS.BIN, 2200DISK.BIN, and 2200CMOS.BIN.
	
               

Creating Update Images
--------------------------
To create the update images, the following syntax is used:

FLASHUP /CREATE (BIOS(=F1)) (DOS(=F2)) (DISK(=F3)) (CMOS(=F4))

Any combination of BIOS, DOS, DISK, and CMOS can be specified.
Filenames can be specified for each of the sections, but are 
optional. If a section is specified without a filename, it defaults
to 
     <4 digit model number><section name>.BIN

For example, default filenames for a TS-2200 are 2200BIOS.BIN, 
2200DOS.BIN, 2200DISK.BIN, and 2200CMOS.BIN.

When creating the images, Flashup will NOT overwrite a file that 
already exists. You must delete, rename, or move the old copy first.

The procedure for creating update images is as follows:
1.	Configure a master EPC from which the clones will be copied. In 
	particular, make sure the Flash disk contains all necessary files, 
	and the CMOS boot options are correct.
2.	Install the TS-9100 / TS-9200 boot board and power up the EPC.
3.	Change to the directory where the update images will be stored. By
	default, this is 'C:\IMAGES'.
4.	If you are replacing a previous set of images, rename or move the
	old copies of the files. Flashup will not overwrite files.
4.	Run flashup, specifying the sections for which you are creating 
	images. Specify filenames if you don't want to use the defaults.
5.	Power off, remove the boot board (if present) and you are done.

Updating an EPC (BLAST)
--------------------------
To update an EPC from image files, the following syntax is used:

FLASHUP /BLAST (BIOS(=F1)) (DOS(=F2)) (DISK(=F3)) (CMOS(=F4)) (RTC)

Any combination of BIOS, DOS, DISK, CMOS, and RTC can be specified.
Filenames can be specified for each of the sections, but are 
optional. If a section is specified without a filename, it defaults
to 
     <4 digit model number><section name>.BIN

For example, default filenames for a TS-2200 are 2200BIOS.BIN, 
2200DOS.BIN, 2200DISK.BIN, and 2200CMOS.BIN.

The RTC option copies the time and date from an attached TS-9200 boot
board, which contains its own RTC. Without a TS-9200, you cannot use
this feature.

The procedure for updating an EPC is as follows:
1.	If this is a virgin board or one on which the BIOS has been 
	corrupted (the red LED never even blinks at poweron) then you 
	must use a TS-9100 or TS-9200 to bootstrap the EPC to a running
	state. Live boards can be updated directly by downloading images
	and Flashup to the EPC and running them. In either case, Flashup
	and the update images must be accessable from the EPC.
3.	Change to the directory where the update images are stored. By
	default, this is 'C:\IMAGES'.
4.	Run flashup, specifying the sections you are updating. Specify
	filenames if you are not using the defaults.
5.	Power off, remove the boot board (if present) and you are done.

Revision History - FLASHUP.CPP
-------------------------------
20000720	cjd	Started. Identical to comments in FLASHUP.CPP

Revision History - FLASHUP.CPP
-------------------------------
19990705 1.0 	cjd	Started
19990901 1.1	cjd	Modified and updated to read Flash image from a file.
     			Renamed to FLASHUP
19990905 1.2	cjd	Added ability to write image of Flash disk to a file.
19990914 1.3	cjd	Added ability to selectively create or restore Flash 
     			image files
19990915 1.3.1	cjd	Handles 'PS' returned by Prosoft PS-4100 BIOS call
20000501 1.4	cjd	Cmdline improved. Filenames can now be specified 
     			on the cmdline, as well as a prefix
20000616 1.5	cjd	Simplified cmdline - no prefix crap.
20000713 1.6	cjd	Added TS-2250
20000718 1.7	cjd	Added CMOS and RTC options, updated docs
20000727 1.7.1 	cjd	- Dont quit if RTC set is attempted w/o a TS9100 - so
			we can use the same batch files on a TS9100
			- Give better feedback (what's going to be replaced)
			for the confirm mesg for /BLAST and /EPROM
20010215 1.7.3 mtj Added RTC blast for the 9300
20010223 1.7.4 mtj changed RTC on 9200/9300 to 0x9E 0x9F so address is 1 byte
