1. The first step is to find the source code. The source code may be in different places depending on the version of Windows CE that you are targeting and the BSP that you are using. The following are some locations to look:
Windows CE 4.2 and earlier:
%_WINCEROOT%\Platform\<BSP Name>\eboot
Windows CE 5.0 and 6.0:
%_WINCEROOT%\Platform\<BSP Name>\src\Bootloader
If you have received your BSP from a third party, the location could be different.
2. The next step is to identify what your bootloader will be named when it is built. The bib file for the bootloader will tell you the name of the file. The bib file will be you the bootlaoder folder usually.
C:\WINCE600\PLATFORM\CEPC\SRC\BOOTLOADER\EBOOT\boot.bib
; Name Start Size Type
; ------- -------- -------- ----
EBOOT 00130000 00020000 RAMIMAGE
3. Modify the binary image builder file (.bib), Boot.bib, located in %_TGTPLATROOT%\Eboot, to match your platform configuration. The Boot.bib file specifies the size, type, and location of the memory on the target device where you load the boot loader.
4. Within the Platform Builder, go to Build OS menu option and select Open Release Directory menu option to open a DOS prompt.
5. Change directories to the bootloader folder. At the command prompt, type the following command.
cd %_TGTPLATROOT%\Eboot
6. At the command prompt, type the following command to copy the built DLL to the %_FLATRELEASEDIR% directory.
Set WINCEREL=1
‘’
_FLATRELEASEDIR is an environment variable that defines the folder used to create the OS image. The Platform Builder tools use the environment variable.
- Buildre copies files to the _FLATRELEASEDIR
- Makeimg creates the OS image in the _FLATRELEASEDIR
- CEShell mounts the _FLATRELEASEDIR as the \Release folder on the device when connected via KITL
- If you set WINCEREL=1 the exe and dll files will automatically be copied to the _FLATRELEASEDIR when they are built
- When you open a build window, it will automatically be opened in the _FLATRELEASEDIR
‘’
7. Type the following command to build Eboot.bin.
Build –cfs
-c: Deletes all object files.
-s: Displays a status line at the top of the command window.