1 checksum algorithm, 2 image flags, 1 checksum algorithm 6.7.2 image flags – Artesyn MVME7100 Single Board Computer Installation and Use (June 2014) User Manual
Page 113: Table 6-2, Motload image flags, Motload firmware

MOTLoad Firmware
MVME7100 Single Board Computer Installation and Use (6806800E08D)
113
6.7.1
Checksum Algorithm
The checksum algorithm is a simple unsigned word add of each word (4 byte) location in the
image. The image must be a multiple of 4 bytes in length (word-aligned). The content of the
checksum location in the header is not part of the checksum calculation. The calculation
assumes the location to be zero. The algorithm is implemented using the following code:
Unsigned int checksum(
Unsigned int *startPtr,/* starting address */
Unsigned int endPtr/* ending address */
) {
unsigned int checksum=0;
while (startPtr < endPtr) {
checksum += *startPtr;
startPtr++;
}
return(checksum);
}
6.7.2
Image Flags
The image flags of the header define various bit options that control how the image will be
executed.
ImageRamAddress
unsigned integer
1
RAM address
ImageOffset
unsigned integer
1
Offset from header start to entry
ImageFlags
unsigned integer
1
Refer to
ImageVersion
unsigned integer
1
User defined
Reserved
unsigned integer
8
Reserved for expansion
Name
Type
Size
Notes
Table 6-2 MOTLoad Image Flags
Name
Value
Interpretation
COPY_TO_RAM
0x00000001
Copy image to RAM at ImageRamAddress before execution
IMAGE_MCG
0x00000002
Alternate MOTLoad image
IMAGE_POST
0x00000004
POST image