Motorola MVME3100 manual Valid Boot Images, Checksum Algorithm, Name Type Size

Page 43

Chapter 3 MOTLoad Firmware

...

MVME3100>

Valid Boot Images

Valid boot images whether POST, USER, or Alternate MOTLoad, are located on 1MB boundaries within flash. The image may exceed 1MB in size. An image is determined valid through the presence of two "valid image keys" and other sanity checks. A valid boot image begins with a structure as defined in the following table:

Name

Type

Size

Notes

UserDefined

unsigned integer

8

User defined

 

 

 

 

ImageKey 1

unsigned integer

1

0x414c5420

 

 

 

 

ImageKey 2

unsigned integer

1

0x424f4f54

 

 

 

 

ImageChecksum

unsigned integer

1

Image checksum

 

 

 

 

ImageSize

unsigned integer

1

Must be a multiple of 4

 

 

 

 

ImageName

unsigned character

20

User defined

 

 

 

 

ImageRamAddress

unsigned integer

1

RAM address

 

 

 

 

ImageOffset

unsigned integer

1

Offset from header start to entry

 

 

 

 

ImageFlags

unsigned integer

1

Refer to MOTLoad Image Flags on page 32

 

 

 

 

ImageVersion

unsigned integer

1

User defined

 

 

 

 

Reserved

unsigned integer

8

Reserved for expansion

 

 

 

 

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);

}

MVME3100 Single-Board Computer Installation and Use (V3100A/IH1)

31

Image 43
Contents Installation and Use Page Safety Summary Flammability CE Notice European Community Limited and Restricted Rights Legend Contents Functional Description Specifications List of Figures List of Tables 13. MVME721 Host I/O Connector J10 Pin AssignmentsAbout This Manual Overview of ContentsConventions Used in This Manual Comments and SuggestionsGetting Started Hardware Preparation and InstallationIntroduction DescriptionUnpacking Guidelines Overview of Startup ProceduresStartup Overview MVME3100 Layout Hardware ConfigurationMVME3100 Board Layout Configuration Switch S4 Settings Configuration Switch S4Setting Switch Pos OFF Factory Default Geographical Address Switch Assignments Geographical Address Switch S3Slot Geographical Address Settings Function Not Used PMC I/O Voltage ConfigurationRTM Seeprom Address Switch S1 RTM Eeprom Address Switch AssignmentsDevice Address A20 Hardware InstallationInstalling the MVME3100 into a Chassis Eeprom Address SettingsConnection to Peripherals MVME3100 ConnectorsMVME721 Rear Transition Module Connectors Connector FunctionCompleting the Installation Startup and Operation Applying PowerSwitches and Indicators Front-Panel LED Status IndicatorsAdditional Onboard Status Indicators MVME721 LED Status IndicatorsGenet DS3 MOTLoad Implementation and Memory Requirements MOTLoad CommandsMOTLoad Firmware OverviewMOTLoad Tests MOTLoad Utility ApplicationsCommand Line Interface Using MOTLoadCommand Line Rules Command Line HelpMOTLoad Commands MOTLoad Command ListEcho Command Description DownLoadErrorDisplay NetBootPciDataRd Command Description NetStatsReset NoCmMOTLoad Commands MVME3100 vmeCfg -s -m Default VME SettingsMVME3100 vmeCfg -s -o1 CR/CSR Settings Firmware SettingsDisplaying VME Settings Editing VME Settings Restoring Default VME Settings Deleting VME SettingsRemote Start Slot Position CS/CSR Starting Address Firmware Startup Sequence Following Reset Alternate Boot Images and Safe StartAddress Usage Firmware Scan for Boot ImageChecksum Algorithm Valid Boot ImagesName Type Size Name Value Interpretation MOTLoad Image FlagsUser Images MOTLoad Image FlagsAlternate Boot Data Structure MOTLoad Firmware Functional Description FeaturesMVME3100 Features Summary Feature DescriptionFunctional Description MVME721 RTM Features Summary MVME3100 Block Diagram Block DiagramsSystem Memory ProcessorLocal Bus Interface I2C Serial Interface and Devices Control and Timers LogicFlash Memory Asynchronous Serial Ports Ethernet InterfacesSerial ATA Host Controller PCI/PCI-X Interfaces and DevicesMPC8540 PCI-X Interface TSi148 VME ControllerPCI Mezzanine Card Slots PCI-X-to-PCI-X BridgesReal-time Clock Battery General-Purpose TimersPMC Expansion Debug Support Reset Control LogicPin Assignments Pin Signal ConnectorsPMC Expansion Connector J4 PMC Expansion Connector J4 Pin AssignmentsPAR Ethernet Connectors Pin Assignment Ethernet Connectors GENET1/J41B, GENET2/J2B, ENET1/J2APin # Signal 1000 Mb/s 10/100 Mb/s PMC Slot 1 Connector J11 Pin Assignments PCI Mezzanine Card PMC Connectors J11 J14, J21 J23PMC Slot 1 Connector J12 Pin Assignments PMC Slot 1 Connector J13 Pin Assignments PMC Slot 1 Connector J14 Pin Assignments PMC Slot 2 Connector J21 Pin Assignments PMC Slot 2 Connector J22 Pin Assignments PMC Slot 2 Connector J23 Pin Assignments 10. COM Port Connector Pin Assignments Serial Port Connectors COM1/J41A, COM2-COM5/J2A-D11. VMEbus P1 Connector Pin Assignments VMEbus P1 Connector12. VME P2 Connector Pinouts VMEbus P2 ConnectorPin P2-Z P2-A P2-B P2-C P2-D 13. MVME721 Host I/O Connector J10 Pin Assignments MVME721 PMC I/O Module PIM Connectors J10, J1415. USB Connector J27 Pin Assignments Planar sATA Power Connector J30USB Connector J27 14. Planar sATA Power Connector J30 Pin AssignmentsBoundary Scan Header J24 SATA Connectors J28 and J2916. sATA Connectors J28 and J29 Pin Assignments Headers18. Processor COP Header J25 Pin Assignments Processor COP Header J25Characteristics Specifications Power RequirementsEnvironmental Specifications Model PowerAppendix a Specifications Motorola Computer Group Documents Related DocumentationTable B-1. Motorola Computer Group Documents Table B-2. Manufacturers’ Documents Manufacturers’ DocumentsDocument Title and Source Publication Number Table B-2. Manufacturers’ Documents Table B-3. Related Specifications Related SpecificationsIeee http//standards.ieee.org/catalog