Nicolas Besson - Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Здесь есть возможность читать онлайн «Nicolas Besson - Microsoft Windows Embedded CE 6.0 Exam Preparation Kit» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Город: Redmond, Год выпуска: 2008, Издательство: Microsoft, Жанр: Руководства, ОС и Сети, Программы, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Microsoft Windows Embedded CE 6.0 Exam Preparation Kit: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

Microsoft Windows Embedded CE 6.0 Exam Preparation Kit — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

The most important platform-specific source code that you must adapt as part of your BSP is for the boot loader, the OAL, and the device drivers. You can find the corresponding source code underneath the Src folder in the following subdirectories:<\/p>

Src\Boot loader<\/strong>Contains the boot loader code. However, if the boot loader relies on BLCOMMON and related libraries, then only the basic hardware- specific part of the boot loader is located in this directory. The reusable boot loader code is available in the Public folder (%_WINCEROOT%\Public \Common\Oak\Drivers\Ethdbg) and linked as libraries to the BSP part. Chapter 4, "Debugging and Testing the System," introduces the static libraries that facilitate boot loader development.<\/p>

Src\Oal<\/strong>Contains the bare minimal amount of code that is specific to the hardware platform. The majority of the OAL code is located in %_WINCEROOT%\Platform\Common, divided into hardware-independent, processor-family-related, chip-set-specific and platform-specific groups. These code groups provide most of the OAL functionality and are linked to the platform-specific parts as libraries.<\/p>

Src\Common and Src\Drivers<\/strong>Contains the driver source code, organized in different categories to facilitate maintenance and portability. These categories are typically processor-specific and platform-specific. The processor-specific component is located in the Src\Common directory and requires no modifications when adapted to new hardware based on the same processor family.<\/p>

Implementing a Boot Loader from Existing Libraries<\/p> <\/div>

Several aspects have to be considered when adapting a boot loader for a new platform, including:<\/p>

■ Changes in the processor architecture.<\/p>

■ Location of the boot loader code on the target device.<\/p>

■ Memory architecture of the platform.<\/p>

■ Tasks to perform during the boot process.<\/p>

■ Supported transports for downloading the run-time image.<\/p>

■ Additional features to be supported.<\/p>

Memory Mappings<\/p> <\/div>

The first important adaptation task revolves around the definition of memory mappings for the boot loader. The standard BSPs included in Windows Embedded CE define the memory configuration in a .bib file, located in a boot loader subdirectory, such as %_WINCEROOT%\Platform\Arubaboard\Src\Boot loader\Eboot\Eboot.bib. The following listing shows an example of an Eboot.bib file, which you can customize to meet your specific requirements.<\/p>

MEMORY<\/code> <\/p>

; Name Start Size Type<\/code> <\/p>

; ------- -------- -------- ----<\/code> <\/p>

; Reserve some RAM before Eboot.<\/code> <\/p>

; This memory will be used later.<\/code> <\/p>

DRV_GLB A0008000 00001000 RESERVED ; Driver globals; 4 KB is sufficient.<\/code> <\/p>

EBOOT A0030000 00020000 RAMIMAGE ; Set aside 128 KB for loader; finalize later.<\/code> <\/p>

RAM A0050000 00010000 RAM ; Free RAM; finalize later.<\/code> <\/p>

CONFIG<\/code> <\/p>

COMPRESSION=OFF<\/code> <\/p>

PROFILE=OFF<\/code> <\/p>

KERNELFIXUPS=ON<\/code> <\/p>

; These configuration options cause the .nb0 file to be created.<\/code> <\/p>

; An .nb0 file may be directly written to flash memory and then<\/code> <\/p>

; booted. Because the loader is linked to execute from RAM,<\/code> <\/p>

; the following configuration options<\/code> <\/p>

; must match the RAMIMAGE section.<\/code> <\/p>

ROMSTART=A0030000<\/code> <\/p>

ROMWIDTH=32<\/code> <\/p>

ROMSIZE=20000<\/code> <\/p>

MODULES<\/code> <\/p>

; Name Path Memory Type<\/code> <\/p>

; ----------- --------------------------------------------- -----------<\/code> <\/p>

nk.exe $(_TARGETPLATROOT)\target\$(_TGTCPU)\$(WINCEDEBUG)\EBOOT.exe EBOOT<\/code> <\/p>

Driver Globals<\/p> <\/div>

Among other things you can use the Eboot.bib file to reserve a memory section for the boot loader to pass information to the operating system during the startup process. This information might reflect the current state of initialized hardware, network communication capabilities if the boot loader supports Ethernet downloads, user and system flags for the operating system, such as to enable Kernel Independent Transport Layer (KITL), and so on. To enable this communication, the boot loader and operating system must share a common region of physical memory, which is referred to as driver globals (DRV_GLB). The above Eboot.bib listing includes a DRV_GLB mapping. The data that the boot loader passes to the operating system in the DRV_GLB region must adhere to a BOOT_ARGS structure that you can define according to your specific requirements.<\/p>

The following procedure illustrates how to pass Ethernet and IP configuration information from the boot loader to the operating system through a DRV_GLB region. To do this, create a header file in the %_WINCEROOT%\Platform\< BSP Name<\/em> >\Src\Inc folder, such as Drv_glob.h, with the following content:<\/p>

#include <\/code> <\/p>

// Debug Ethernet parameters.<\/code> <\/p>

typedef struct _ETH_HARDWARE_SETTINGS {<\/code> <\/p>

EDBG_ADAPTER Adapter; // The NIC to communicate with Platform Builder.<\/code> <\/p>

UCHAR ucEdbgAdapterType; // Type of debug Ethernet adapter.<\/code> <\/p>

UCHAR ucEdbgIRQ; // IRQ line to use for debug Ethernet adapter.<\/code> <\/p>

DWORD dwEdbgBaseAddr; // Base I/O address for debug Ethernet adapter.<\/code> <\/p>

DWORD dwEdbgDebugZone; // EDBG debug zones to be enabled.<\/code> <\/p>

// Base for creating a device name.<\/code> <\/p>

// This will be combined with the EDBG MAC address<\/code> <\/p>

// to generate a unique device name to identify<\/code> <\/p>

// the device to Platform Builder.<\/code> <\/p>

char szPlatformStri ng[EDBG_MAX_DEV_NAMELEN];<\/code> <\/p>

UCHAR ucCpuId; // Type of CPU.<\/code> <\/p>

} ETH_HARDWARE_SETTINGS, *PETH_HARDWARE_SETTINGS;<\/code> <\/p>

// BootArgs - Parameters passed from the boot loader to the OS.<\/code> <\/p>

#define BOOTARG_SIG 0x544F4F42 // "BOOT"<\/code> <\/p>

typedef struct BOOT_ARGS {<\/code> <\/p>

DWORD dwSig;<\/code> <\/p>

DWORD dwLen; // Total length of BootArgs struct.<\/code> <\/p>

UCHAR ucLoaderFlags; // Flags set by boot loader.<\/code> <\/p>

UCHAR ucEshellFlags; // Flags from Eshell.<\/code> <\/p>

Читать дальше
Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit»

Представляем Вашему вниманию похожие книги на «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit»

Обсуждение, отзывы о книге «Microsoft Windows Embedded CE 6.0 Exam Preparation Kit» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x