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», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

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

Интервал:

Закладка:

Сделать

case EDBG_ADAPTER_NE2000:<\/code> <\/p>

pfnEDbgInit = NE2000Init;<\/code> <\/p>

pfnEDbgInitDMABuffer = NULL;<\/code> <\/p>

pfnEDbgGetFrame = NE2000GetFrame;<\/code> <\/p>

pfnEDbgSendFrame = NE2000SendFrame;<\/code> <\/p>

break;<\/code> <\/p>

case EDBG_ADAPTER_DP83815:<\/code> <\/p>

pfnEDbgInit = DP83815Init;<\/code> <\/p>

pfnEDbgInitDMABuffer = DP83815InitDMABuffer;<\/code> <\/p>

pfnEDbgGetFrame = DP83815GetFrame;<\/code> <\/p>

...<\/code> <\/p>

}<\/code> <\/p>

Flash Memory Support<\/p> <\/div>

Having implemented network communication capabilities, you also must enable the boot loader to download run-time image onto the new hardware platform and pass control to it. Alternately, you can save the run-time image to flash memory. Table 5-4 lists the download and flash memory support functions that you must implement for this purpose if the reference BSP's boot loader does not already support these features.<\/p>

Table 5-4 Functions for supporting download and flash memory<\/strong> <\/p>

Function<\/th> Description<\/th> <\/tr>
OEMPreDownload<\/td> Sets up the necessary download protocol supported by platform builder.<\/td> <\/tr>
OEMIsFlashAddr<\/td> Checks if the image is for flash or RAM.<\/td> <\/tr>
OEMMapMemAddr<\/td> Performs temporary remapping of the image to RAM.<\/td> <\/tr>
OEMStartEraseFlash<\/td> Prepares to erase flash of enough size to fit the OS image.<\/td> <\/tr>
OEMContinueEraseFlash<\/td> Continue erasing flash based on download progress.<\/td> <\/tr>
OEMFinishEraseFlash<\/td> Complete the flash erasing once the download is done.<\/td> <\/tr>
OEMWriteFlash<\/td> Write OS image to flash.<\/td> <\/tr> <\/table>

User Interaction<\/p> <\/div>

Boot loaders can support user interaction based on a menu that provides the user with different options to start the platform, which can be helpful during the development process and later on for maintenance and software updates. Figure 5-4 shows a standard boot loader menu. For sample source code, check out the Menu.c file located in the Src\Bootloader\Eboot directory of a reference BSP or in the %_WINCEROOT%\Platform\Common\Src\Common\Boot\Blmenu folder.<\/p>

Additional Features<\/p> <\/div>

Beyond the core functionality, you can also add convenience features, such as download progress indication, support for downloading multiple .bin files during the same download session (multi-bin image notification), or downloading only trusted images. Additionally, you can implement support for downloading run-time images directly from Platform Builder. To accomplish this task, the boot loader must prepare a BOOTME packet with details about the target device and send it over the underlying transport. If the transport is Ethernet then this packet is broadcasted over the network. The libraries provided by Microsoft support these features, and you can customize them to suit your needs.<\/p>

NOTE<\/div>
OEM boot loader functions<\/div>

For detailed information about required and optional boot loader functions as well as boot loader structures, see the section "Boot Loader Reference" in the Windows Embedded CE 6.0 Documentation, available on the Microsoft MSDN® Web site at http://msdn2.microsoft.com/en-us/library/aa908395.aspx<\/em> .<\/p> <\/cite>

Adapting an OAL<\/p> <\/div>

A significant portion of the BSP adaptation revolves around the platform-specific part of the OAL. If the new platform uses a CPU that is not currently supported, then the OAL adaptation requires you to modify most of the OAL code to support the new processor architecture. On the other hand, if the new hardware is very similar to the reference BSP's platform, you might be able to reuse most of the existing code base.<\/p>

OEM Address Table<\/p> <\/div>

The kernel performs specialized tasks, such as initializing virtual memory, and cannot rely on a boot loader for this because the kernel must be entirely self-contained. Otherwise, the operating system would depend on the presence of a boot loader and it would not be possible to bootstrap the run-time image directly. Yet, to establish virtual-to-physical address mappings through the Memory Management Unit (MMU), the kernel must know the memory layout of the underlying hardware platform. To obtain this information, the kernel uses an important table called OEMAddressTable (or g_oalAddressTable) that defines static virtual memory regions. The OAL includes a declaration of OEMAddressTable as a read-only section and one of the first actions taken by the kernel is to read this section, set up corresponding virtual memory mapping tables, and then transition to the virtual address where the kernel can execute code. The kernel can determine the physical address of the OEMAddressTable in linear memory based on the address information available in the run-time image.<\/p>

You must indicate any differences in the memory configuration of a new hardware platform by modifying the OEMAddressTable. The following sample code illustrates how to declare the OEMAddressTable section.<\/p>

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

public _OEMAddressTable<\/code> <\/p>

_OEMAddressTable:<\/code> <\/p>

; OEMAddressTable defines the mapping between Physical and Virtual Address<\/code> <\/p>

; o MUST be in a READONLY Section<\/code> <\/p>

; o First Entry MUST be RAM, mapping from 0x80000000 -> 0x00000000<\/code> <\/p>

; o each entry is of the format ( VA, PA, cbSize )<\/code> <\/p>

; o cbSize must be multiple of 4M<\/code> <\/p>

; o last entry must be (0, 0, 0)<\/code> <\/p>

; o must have at least one non-zero entry<\/code> <\/p>

; RAM 0x80000000 -> 0x00000000, size 64M<\/code> <\/p>

dd 80000000h, 0, 04000000h<\/code> <\/p>

; FLASH and other memory, if any<\/code> <\/p>

; dd FlashVA, FlashPA, FlashSize<\/code> <\/p>

; Last entry, all zeros<\/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