Adapt the Boot Loader (Compact 7)
3/12/2014
To adapt the boot loader, follow the procedures below. For information on the functions, see Boot Loader Code Overview.
To configure the boot loader startup process
To perform hardware-specific initialization, you may need to edit the following functions:
- Boot loader’s StartUp (note that the OAL has a StartUp function also)
- OEMPlatformInit
- OEMLaunch
To define the memory layout on the device
To specify where the boot loader resides in the device’s memory, or to specify a shared memory area for the boot loader arguments that pass information to the OS, you may need to modify:
- The boot.bib configuration file (it may also be called eboot.bib or sboot.bib).
To support serial debugging
To initialize the debug device, you may need to modify:
- OEMDebugInit
- OEMInitDebugSerial
To output debug messages, you may need to modify:
- OEMWriteDebugString
- OEMWriteDebugByte
To accept input to the boot loader, you may need to modify:
- OEMReadDebugByte
To configure an Ethernet download transport
To initialize the download transport, you may need to modify:
- OEMPreDownload
To read data from the download transport, you may need to modify:
- OEMReadData
To send and receive data over an Ethernet connection, you may need to modify:
- OEMEthGetFrame
- OEMEthSendFrame
To support flash memory operations
To support flash address functions, you may need to modify:
- OEMIsFlashAddr
- OEMMapMemAddr
To support erasing of flash memory, you may need to modify:
- OEMStartEraseFlash
- OEMContinueEraseFlash
- OEMFinishEraseFlash
To support writing to flash memory, you may need to modify:
- OEMWriteFlash