25 docprogram, Docprogram, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual
Page 75

MOTLoad Commands
MOTLoad Firmware Package User’s Manual (6806800C24D)
75
3.1.25 docProgram
Name
docProgram—Programs an image residing in the RAM into the binary partition of the DoC.
Note The Disk On Chip (DoC) binary partitions can be read or programmed only in multiples
of their block size. Hence, the size specified should be a multiple of the block size. The block size
can be obtained by using the -v option. For example, in case of M-System H1 DoC, the block size
is 512 KB.
Synopsis
docProgram [-a] [-d] [-p] [-s] [-x] [-v]
Parameters
-a Ph: Source Address (Default=User Buffer)
-d Ps: DoC Device Name (Default=/dev/doc0)
-p Ph: Binary Partition Number (Default=0)
-s Ph: Size (Default=12 MB)
-x Ph: Start Block (Default=0)
-v 0 : Verbose Mode
Example
The following example indicates a typical display when using the docProgram command.
MOTLoad> docProgram -d/dev/doc0 -a0x8000000 -s0x500000 -x0 -v1
Found a 1024 MB DiskOnChip on address 0xA0000000
Found a Binary partition with:
- Partition Size is 41943040
- Unit size is 524288
Program DoC (Y/N) y
Succeeded in writing 5226496 bytes
MOTLoad>