Eboot Code Library (Windows Embedded CE 6.0)
1/5/2010
The Eboot library, in the %_WINCEROOT%\Public\Common\Oak\Drivers\Ethdbg\Eboot directory, provides Dynamic Host Configuration Protocol (DHCP), Trivial File Transfer Protocol (TFTP), and User Datagram Protocol (UDP) services.
The download protocol used by Platform Builder is TFTP. The intent is to hide all Ethernet details behind the scenes for boot loader development.
The Ethernet part of the boot loader can be reduced to the following code:
if (!EbootInitEtherTransport (....)) {
while (1); // spin forever
}
// main loop of download
while (EbootEtherReadData (...)) {
// process the data
ProcessData (...);
}
The following table shows the Eboot functions typically used by a boot loader.
Function | Description |
---|---|
Initializes the Ethernet download transport. This involves getting an IP address from a DHCP server, if necessary, and initiating a TFTP connection to Platform Builder on the desktop. |
|
Talks to Platform Builder on the desktop to obtain the contents of an EDBG_OS_CONFIG_DATA structure. The structure contains user settings, or flags, and desktop service IP and Port information that is later used by the OS. |
|
Reads the specified number of bytes from an Ethernet controller, into the caller-provided buffer. The OEM routes the read operation to the correct Ethernet network driver function. |