基于Intel PXA270的WinCE操作系统移植 03
- UID
- 872238
|
基于Intel PXA270的WinCE操作系统移植 03
3.3.2 配置操作系统
选择File->New Platform来开始一个“New Platform Wizard”,按照Platform Wizard 完成平台的基本配置,在第三步选择BSP包时,选择 EMDOOR SYSTEMS XSBASE270:armV4I。因为我们开发用到的是亿道公司提供的BSP包。在第四步选择Internet Application ,第五步选择组件时我们要选取 .net CF1.0支持,这是因为在使用.Net CF2.0时有些依赖的部件无法选择,通过选择.Net CF1.0支持就完成选择了。
完成向导后,在编译内核镜像前,需要在Catalog中添加一些我们需要的组件和配置整个平台系统变量。在Catalog中点击右键就可以添加组件到工程中。可以在菜单View/Catalog中打开Catalog窗口,将选用到的组件添加到系统中。
针对本文中应用程序开发的需要,在EELiod 开发平台上选用的系统配置方案为:
(1)添加Usb Activesync (文件同步)
(Catalog->Core OS -> Windows CE.net devices -> Applications - End User->ActiveSync-> File Sync)
(2)添加COM组件运行时加载支持
(Catalog->Core OS -> Windows CE.net devices -> Applications and Services Development-> Component Object Mode-> COM-> CoCreateGuid functionality for OLE32)
(3)添加USB Mass Storage
(Catalog->Core OS -> Windows CE.net devices -> Core OS Services-> USB Host Support ->USB Storage Class Driver)
(4)添加Fat File System
(Catalog->Core OS -> Windows CE.net devices -> File Systems and Data Store -> Storage Manager-> FAT File System)
(5)添加Disk Partition
(Catalog->Core OS -> Windows CE.net devices -> File Systems and Data Store -> Storage Manager-> Partition Driver)
(6)添加软键盘
(Catalog->Core OS -> Windows CE.net devices -> File Systems and Data Store -> Storage Manager-> Storage Manager Control Panel Applet)
(7)添加USB Client 驱动
(Catalog-> Device Drivers -> USB Function -> USB Function Clients -> Serial)
(8)添加网卡驱动
(Catalog-> Third Party-> BSPs -> Emdoor Systems XSBase270: armV4I -> Device Drivers -> Networking->Local Area Networking(LAN) devices->lan91c111)
(9)添加Usb Activesync (USB Function).
(Catalog-> Third Party-> BSPs -> Emdoor Systems XSBase270: armV4I -> Device Drivers -> USB Function->USB Function Bus Drivers->PXA27x USB Function)
3.3.3编译平台
在配置好操作系统后,下一步就是编译,编译过程分成4个阶段:sysgen阶段、特征编译(feature build)阶段、发行目录拷贝(release copy)阶段、映像生成(make image)阶段。PB编译工具先产生头文件(header files )、成生模块(modules ) ,再把每个最后得到的模块拷贝到发行目录下,最后产生二进制系统映像(默认为NK.bin)。在开始编译前,需要通过Platform->Setting对话框来配置一些编译选项,在该系统中所设置编译选项如图3所示。 |
|
|
|
|
|