基于龙芯平台的Windows CE的移植与优化
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着信息技术的发展,嵌入式操作系统的研究与开发已成为新的发展方向。嵌入式操作系统WindowsCE以其操作方式简便、界面友好和支持多种文件格式等优点,广泛应用于嵌入式领域。本文基于龙芯2E处理器,实现Windows CE在龙芯平台上的移植和优化。
     WindowsCE移植与优化流程中,BSP(BoardSupportPackage,板级支持包)的开发是工作重点,同时,也是本课题研究的主要工作。BSP是介于硬件平台与WindowsCE操作系统之间的一层软件系统,是操作系统的一部分。BSP的主要功能是将WindowsCE操作系统与硬件平台交互的接口抽象出来,作为单独的一层函数,操作系统访问底层硬件时不再直接访问硬件平台。BSP主要由:OEM抽象层(OEMAbstractionLayer,OAL)、引导程序(BootLoader)、设备驱动程序及配置文件4部分构成。开发BSP的主要工作是Boot Loader与OAL的设计与实现。Windows CE操作系统下Boot Loader的基本功能是初始化硬件平台、加载操作系统映像文件。Windows CE操作系统下OAL的主要功能是把操作系统内核对硬件的访问功能抽象出来,形成一些接口函数或库。当操作系统需要访问硬件时,可直接调用这些抽象出来的接口函数或库。在开发环境中编译生成Windows CE操作系统的映像文件,还需编写必要的.BIB、.REG、Source及DIRS等配置文件;然后进行平台定制,根据龙芯硬件平台的特点定制操作系统必要的模块;最终在开发环境中编译、链接生成最终的操作系统映像文件。
     本课题结合龙芯2E处理器体系结构及Windows CE操作系统页式管理的特点,对龙芯2E平台的缓存管理进行了实现与优化。优化后的系统及应用程序整体性能提高了约20%,基于龙芯2E平台缓存功能的实现和优化取得了比较理想的效果。
     本文设计实现的Windows CE嵌入式操作系统已稳定、高效的运行在龙芯2E开发板上,对于龙芯处理器在嵌入式领域的扩展具有广泛的应用价值和指导意义。
With the development of information technology, the research and development of embeddedoperating system has become the new direction.Owning the advantages of simple operation, friendlyinterface and supporting a variety of file formats, the embedded operating system Windows CE has beenused in embedded system field widely.This paper achieves the transplantation and optimization ofWindowsCEonLoongsonplatformbasedontheLoongson2Eprocessor.
     In the process of the Windows CE transplantation and Optimization, developing the BSP (BoardSupportPackage)isthepivotandalsothe mainworkoftheresearchatthesame time.TheBSPisalayerof software systemwhich is between the hardware platformand the Windows CE operating system, and isapartoftheoperatingsystem.OneofthemainfunctionsofBSPistoabstractouttheinterfaceswheretheWindows CE operating system interacts with the hardware platform as a single layer of functions so thatthe operating system may not access the hardware platform directly when accessing the bottomhardware.The BSPis mainlycomposed of 4 parts, the OEM Abstraction Layer (OAL), the Boot Loader,the Device Drivers and the Configuration Files.The main task of developing BSP is the design andimplementation of the BootLoader and the OAL.The basic function ofBoot Loader in the Windows CEoperatingsystemistoinitializethehardwareplatformandloadtheoperatingsystemimagefiles.Themainfunction of OAL in Windows CE operating system is to abstract out the way that the operating systemkernel accesses the hardware so as to form a number of interface functions and libraries, which can bedirectly called when the operating system needs to access the hardware.To generate the Windows CEoperating system image file in developing environment through compiling, needs to write thenecessary .BIB, .REG, Source and DIRS configuration files, then to customize the platform, necessarymodules of the operating system according to the features of the Loongson’s hardware platform, andeventually to generate the final operating system image file in the developing environment throughcompilingandlinking.
     Combined with the Loongson 2E processor architecture and the page management feature of Windows CE, this paper achieves the implementation and optimization on the platform of Loongson 2Eprocessor cache management.The overall performance of the optimized system and application programhas been improved by about 20% and satisfactory result has been got by the implementation andoptimizationofLoongson2Eplatformcachemanagement.
     In this paper, Windows CE embedded operating system has operated stably and efficiently on theLoongson 2E develop board, which has wide application value and directive significance for expansion ofLoongsonprocessinembeddedsystemfield.
引文
[1]中国科学院计算技术研究所,意法半导体公司.龙芯2E处理器用户手册[EB/OL].http://www.lemote.com,2006
    [2] IEEE官方网站.Embeddedsystem[DB/OL].2008.https://www.ieeecommunities.org/embedded
    [3]胡伟武,张福新,李祖松.龙芯2号处理器设计和性能分析[J].计算机研究与发展,2006,43(6):959-966
    [4] MicrosoftCorporation.WindowsCEArchitecture[EB/OL],2005.ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WINCE.v50.en/wceintro5/html/wce50conIntroducingWindowsCE.htm
    [5] Microsoft Corporation.Platform Builder for Microsoft Windows CE 5.0[Z].OALMigration,2006.ms-help://MS.WindowsCE.500/wcehardware5/html/wce50conOALMigration.htm
    [6]周毓林,宁杨,陆贵强,等.WindowsCE.net内核定制及开发应用[M].北京:电子工业出版社,2005.
    [7]白浪,张思东.WinCE系统下Bootloader的开发[J].单片机与嵌入式系统应用,2004,(2):24
    [8]GogginTA.尤滔,张平,周晓权,译.WindowsCE高级开发指南[M].北京:电子工业出版社,2001.
    [9] KaragiannisT,MolleM.FaloutsosM.Long-rangeDependence:TenYearsofInternetTrafficModeling[J].IEEEInternetComputing,2004,8(5):57-64
    [10]张晨曦,等.计算机体系结构[M].北京:高等教育出版社,2000.
    [11] TanenbaumAS.DistributedOperatingSystems[M].NewJersey:PrenticeHallPTRInc,1994.
    [12]熊桂喜,等.Windows95技术内幕[M].北京:清华大学出版社,1996.
    [13] KrunzM.OntheLimitationsoftheVariance-timeTestforInferenceofLong-rangeDependence[C].Proc.ofINFOCOM’01,Anchorage,Alaska,2001-04:1254-1260
    [14]曾家智,王蓉.80486/80386系统设计和应用[M].成都:电子科技大学出版社,1992.
    [15]卢春鹏.一种嵌入式系统的内存分配策略[J].单片机与嵌入式系统应用,2002,3(12):12-16
    [16] Menascé,D A,Bennani M.On the Use of Performance Models to DesignSelf-managingComputerSystem[C].Proc.ofComputerMeasurementGroupConf.2003.
    [17] MicrosoftCorporation.DevelopinganOperatingSystem[EB/OL],2006.ms-help://MS.WindowsCE.500/wceosdev5/html/wce50conDevelopingOperatingSystem.htm
    [18] MicrosoftCorporation.SDKDevelopment[EB/OL],2006.ms-help://MS.WindowsCE.500/wceosdev5/html/wce50consoftwaredevelopmentkitcustomization.htm
    [19]任满杰,刘树刚,李军红,等.操作系统教程[M].北京:电子工业出版社,2006.
    [20] MicrosoftCorporation.OverviewofWindowsCEDevelopment[EB/OL],2005.ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WINCE.v50.en/wceintro5/html/wce50oriAboutPlatformBuilder.htm
    [21] Microsoft.希望译.MicrosoftWindowsCECommunicationsGuide[M].北京:北京希望电子出版社,2000.
    [22] MicrosoftCorporation.PlatformBuilderforMicrosoftWindowsCE5.0[Z].DeviceDriverDevelopmentHow-toTopics,2006.ms-help://MS.WindowsCE.500/wceddk5/html/wce50oriDriverDevelopmentHow-toTopics.htm
    [23]李蒙,舒云星.WindowsCE驱动程序开发[J].计算机工程与设计,2004,25(16):961-963
    [24]胡军辉,王友钊.WindowsCE设备驱动程序开发[J].计算机工程,2006,32(16):41-43
    [25] MicrosoftCorporation.DeviceDriverDevelopmentOverview[EB/OL],2005.ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WINCE.v50.en/wceddk5/html/wce50conDriverDevelopmentOverview.htm
    [26]MicrosoftCorporation.WindowsCE设备驱动程序开发指南[M].希望图书创作室,译.北京:希望电子出版社,1999.
    [27] MicrosoftCorporation.PlatformBuilderforMicrosoftWindowsCE5.0[Z].HowtoCreateaDeviceDriver,2006.ms-help://MS.WindowsCE.500/wceddk5/html/wce50howHowtoCreateaDeviceDriver.htm
    [28] MicrosoftCorporation.BSPMigration[EB/OL],2005.ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WINCE.v50.en/wcehardware5/html/wce50conBSPandDriverMigration.htm
    [29]MicrosoftCorporation.PlatformBuilderforMicrosoftWindowsCE5.0[Z].BoardSupportPackageOverview,2006.ms-help://MS.WindowsCE.500/wcehardware5/html/wce50conBoardSupportPackageOverview.htm
    [30] MicrosoftCorporation.HowtoCreateaBoardSupportPackage[EB/OL],2006.ms-help://MS.WindowsCE.500/wcehardware5/html/wce50howHowtoCreateaBoardSupportPackage.htm
    [31]何宗键.WindowsCE嵌入式系统[M].北京航空航天大学出版社,2006.
    [32]MicrosoftCorporation.PlatformBuilderforMicrosoftWindowsCE5.0[Z],2006.
    [33]MicrosoftCorporation.HowtoDevelopaBootLoader[EB/OL],2006.http://msdn2.microsoft.com/en-us/library/ms903967.aspx
    [34] DominicSweetman.SeeMipsRun.SecondEdition[M].China:China;MachinePress,February2007.
    [35] BONITO64 - "north bridge" controller for 64-bit MIPS CPUs[Z].2000AlgorithmicsLtd,Rev1.4ofJuly,2001.
    [36] Wishbone System-on-Chip(SOC) Interconnection Architecture for Portable IPCoresRevisionB3[Z].SilicoreCorporation,2001-11.
    [37] MicrosoftCorporation.OEMAdaptationLayer[EB/OL],2006.ms-help://MS.WindowsCE.500/wcehardware5/html/wce50conOEMAdaptationLayer.htm
    [38] MicrosoftCorporation.Production-QualityOAL[EB/OL],2006.ms-help://MS.WindowsCE.500/wcehardware5/html/wce50conOEMAdaptationLayer.htm
    [39]郑灵翔.嵌入式系统设计与应用开发[M].北京:北京航空航天大学出版社,2006:42-43
    [40] DominicSweetman著.MIPS体系结构透视(英文版.第2版).北京:机械工业出版社.2007.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700