RadiSys EPC-26A/27 Manual page 70

Table of Contents

Advertisement

E
Formatting Program
The first task that you must perform before using the Flash/SRAM is format the flash
memory and copy directories and files to it. This procedure is performed by the
program named XFORMAT. It is distributed on the distribution diskette. This
program formats both flash and SRAM.
When XFORMAT is used to format flash memory, the function first checks the
status of the battery to determine if enough voltage is present, then erases all flash
memory, formats it, optionally adds system files to make it a boot device, and
optionally copies a directory structure and files into it. The program is invoked with
the following command line:
XFORMAT
All files in directory srcdir (typically a directory on your hard disk) and all of its sub-
E
directories (if any) and their files are copied into the flash. To make changes to the
flash disk you must rerun the XFORMAT function.
Because SRAM disks are read/write, the [srcdir] parameter is optional for SRAM
drive types. Files can be written to an SRAM device using standard DOS copy
commands (COPY, XCOPY) after formatting it and loading the device driver.
For flash, each file is created with the same attributes except the files are also marked
as read-only and unarchived (see the DOS ATTRIB command for more information).
For SRAM, each file is created with the same attributes as the corresponding source
file. The date/time stamp for file modification or creation stays the same also.
The following flags are available when using the XFORMAT function. Note that a
dash (-) can be used interchangeably with a slash (/) to set flags.
/B=<sysdir>
Page E2
EPC-27 Hardware Reference
[options]
[srcdir]
Boot Disk Flag. Creates a bootable disk image using the DOS
system files specified by the <sysdir> parameter. The function
formats and copies files to the formatted disk. A bootable disk
image is created. The operation fails if it cannot find the operating
system files.
It is possible to create a bootable disk image from a non-bootable
source drive. Refer to Appendix D for details.
This flag is for use with flash disks only.

Advertisement

Table of Contents
loading

Table of Contents