Boot with a Boot Loader (Windows Embedded CE 6.0)
1/5/2010
To boot from a boot loader, it must know the location of the StartUp function to jump to after the image is downloaded. This function name is specified in the OAL directory: %_WINCEROOT%\Platform\<Hardware Platform Name>\Src\OAL\OALexe. The boot loader obtains the start address from the .bin file that is downloaded, and then jumps to the StartUp function as specified in the sources file. The last record of the .bin file contains the start address, which has a length equal to the address of the startup function with a checksum of 0. The address is calculated by the makeimg tool using the beginning of the RAMIMAGE section of %_WINCEROOT%\Platform\<Hardware Platform Name>\files\config.bib.
To see the start address for Startup, use the following command:
viewbin –r nk.bin
The output is similar to the following example:
Record [ 36] : Start = 0x00000000, Length = 0x0020B650, Chksum = 0x00000000
The boot loader gets the start address from the downloaded .bin file, and then jumps to StartUp.
EXEENTRY=StartUp / specifies the StartUp function