OEMBootLoad Function (Compact 2013)

3/26/2014

OEMBootLoad drives the state machine of the boot loader by calling boot scenario functions to perform operations that change the state. For example, it can call BootLoaderConfig to configure the boot loader, which, if successful, changes the state from BOOT_STATE_CONFIG to BOOT_STATE_DOWNLOAD if the image is intended to be downloaded to the device.

BootMain calls OEMBootLoad repeatedly until OEMBootLoad returns BOOT_STATE_RUN, which indicates that the OS is ready to be started, or BOOT_STATE_FAIL, in which case the device is powered down or reset.

This function is implemented in:

%_WINCEROOT%\Platform\<BSP Name>\Src\Boot\Bldr\Main.c

Its syntax is:

enum_t OEMBootLoad ( void *pContext, enum_t state );

OEMBootLoad Function Input Parameters

Parameter

Type

Description

pContext

void *

A pointer to the BootLoader_t structure of the boot loader.

state

enum_t

The current boot loader state. For a list of states, see Boot Sequence States.

This function returns the current boot loader state.

See Also

Concepts

Flow in CE Boot
Boot Sequence States