《实验平台简介》PPT课件.ppt

上传人:wuy****n92 文档编号:80460386 上传时间:2023-03-23 格式:PPT 页数:27 大小:844.50KB
返回 下载 相关 举报
《实验平台简介》PPT课件.ppt_第1页
第1页 / 共27页
《实验平台简介》PPT课件.ppt_第2页
第2页 / 共27页
点击查看更多>>
资源描述

《《实验平台简介》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《实验平台简介》PPT课件.ppt(27页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、 实验平台简介操作系统课程组Xidian UniversityOS Experiments 内容安排Windows Academic Program简介简介WRK简介简介编译内核编译内核启动和调试启动和调试WRK2Xidian UniversityOS Experiments Windows Academic Program简介Windows Academic Program vThe Windows Academic Program provides universities with curriculum materials,Windows kernel source code,and a

2、 project environment for teaching operating system principles using Windows.vComponents:Windows Operating System Internals Curriculum Resource KitWindows Research KernelProjectOZ3Xidian UniversityOS Experiments WRK简介Windows Research Kernel(WRK)vThe WRK packages core Windows XP x64 and Windows Server

3、 2003 SP1 kernel source code with an environment for building and testing experimental versions of the Windows kernel for use in teaching and research.We can use it to:Explore operating system(OS)principlesModify,build,run and test the Windows kernelBetter understand the Windows architecture and imp

4、lementation.vIncluding:Windows XP x64/Server 2003 SP1 kernel sourcesAn environment for building and testing4Xidian UniversityOS Experiments WRK简介Windows XP x64/Server 2003 SP1 kernel sourcesvContains the sources for the core Windows(NTOS)kernel:ProcessesThreadsVirtual memory and cache managersI/O ma

5、nagementThe registryExecutive functions,such as the kernel heap and synchronizationObject managerLocal procedure call mechanismSecurity reference monitorLow-level CPU management(thread scheduling,Asynchronous and Deferred Procedure calls,interrupt/trap handling,exceptions)vNot include(loaded into ke

6、rnel mode as dynamic libraries):The NT Hardware Abstraction LayerFile systemsNetwork stacksDevice drivers5Xidian UniversityOS Experiments WRK简介Use and RestrictionsvThe WRK,and all the components of the Windows Academic Program,are for academic,non-commercial use only.vUsers must accept the terms and

7、 conditions of the“Microsoft Windows Research Kernel Source Code License”()6Xidian UniversityOS Experiments 编译内核WRK源代码结构源代码结构v打开路径打开路径“D:WRK-v1.2basentos”(实验室机器中实验室机器中WRK源代码路径源代码路径),文件目录组织如下:,文件目录组织如下:cache -cache managerconfig-registry implementationdbgk -user-mode debugger supportex -executive fun

8、ctions(kernel heap,synchronization,time)fsrtl -file system run-time supportio -I/O managerke -scheduler,CPU management,low-level synchronizationlpc -local procedure call implementationmm -virtual memory managerob -kernel object managerps -process/thread supportse -security functionswmi -Windows Mana

9、gement Instrumentationinc -NTOS-only include filesrtl -kernel run-time supportinit -kernel startup7Xidian UniversityOS Experiments 编译内核编译步骤编译步骤v点击点击Windows菜单菜单“开始开始运行运行”v输入输入cmd,点击,点击“确定确定”8Xidian UniversityOS Experiments 编译内核v在在“命令提示符窗体命令提示符窗体”中输入以下命令:中输入以下命令:set path=D:WRK-v1.2toolsx86;C:WINDOWSsy

10、stem32/设置路径设置路径set arch=x86 /指定编译目标结构指定编译目标结构D:/更改当前目录到更改当前目录到D盘盘cd D:WRK-v1.2basentos/进入进入WRK源代码所在目录源代码所在目录nmake-nologo%arch%=/编译内核代码,编译内核代码,nmake为编译程序为编译程序dir D:WRK-v1.2basentosBUILDEXE/如果发现文件如果发现文件wrkx86.exe,wrkx86.pdb存在,则编译成功存在,则编译成功9Xidian UniversityOS Experiments 启动和调试WRK安装调试工具安装调试工具WinDbgv打开文

11、件夹打开文件夹“D:WRK-v1.2Debugging Tools”(实验室机器中实验室机器中WinDbg安装安装文件所在路径文件所在路径),v按照提示进行操作完成安装按照提示进行操作完成安装(实验室机器实验室机器WinDbg安装位置安装位置“D:WRK-v1.2DebugTools”)10Xidian UniversityOS Experiments 启动和调试WRK安装安装Microsoft Virtual PC 2007v打开文件夹打开文件夹“D:WRK-v1.2Virtual PC 2007”(实验室机器中实验室机器中VPC安装安装文件所在路径文件所在路径),双击,双击setup.ex

12、e v按照提示完成安装按照提示完成安装11Xidian UniversityOS Experiments 启动和调试WRK配置配置Virtual PC 2007v启动启动Virtual PC 2007,出现向导提示窗,选择,出现向导提示窗,选择Next 12Xidian UniversityOS Experiments 启动和调试WRKv选择选择Add an existing virtual machine,点击点击Next13Xidian UniversityOS Experiments 启动和调试WRKv点击点击“Browse”按钮,选择文件按钮,选择文件“D:WRK-v1.2Win2K3

13、SP1 ImageWin2k3 SP1 WRK.vmc”(实验室机器中虚拟机文件所在路径实验室机器中虚拟机文件所在路径),单击,单击Next 14Xidian UniversityOS Experiments 启动和调试WRK 点击点击Finish点击点击OK15Xidian UniversityOS Experiments 启动和调试WRK选择第一项,启动选择第一项,启动windows Server 2003,Standard启动启动Virtual PC,选择,选择Start16Xidian UniversityOS Experiments 启动和调试WRKWindows Server 20

14、03 SP1启动后界面启动后界面17Xidian UniversityOS Experiments 启动和调试WRK打开打开Virtual PC,选择,选择Settings选择选择“Shared Folders”点击按钮点击按钮“Share Folder”18Xidian UniversityOS Experiments 启动和调试WRK选择路径选择路径“D:WRK-v1.2”(实验室机器中实验室机器中WRK工作目录工作目录),选中选中“Share every time”,点击确定,点击确定点击点击OK,Virtual PC配置完毕配置完毕19Xidian UniversityOS Exper

15、iments 启动和调试WRK加载编译后的加载编译后的WRK内核内核v在虚拟机的在虚拟机的Windows Server 2003 SP1中中点击点击“Start Run”输入输入cmd,点击点击OK在在Command Prompt窗体中输入窗体中输入:xcopy y:basentosbuildexewrkx86.exe c:windowssystem32xcopy y:WS03SP1HALSx86halacpimhalacpim.dll c:windowssystem32点击点击“Start Shut down”,关闭系统,关闭系统20Xidian UniversityOS Experimen

16、ts 启动和调试WRK调试调试WRKv在主机在主机(Host Computer)中中选择选择”开始开始运行运行”输入输入cmd,点击确定,点击确定在命令提示符窗体中输入以下命令在命令提示符窗体中输入以下命令:set _NT_SYMBOL_PATH=D:WRK-v1.2basentosBUILDEXE;D:WRK-v1.2WS03SP1HALSx86halacpimpath D:WRK-v1.2DebugToolswindbg-k com:pipe,port=.pipedebug,resets=0,reconnect21Xidian UniversityOS Experiments 启动和调试W

17、RK若出现以下界面说明若出现以下界面说明WinDbg(Host Computer)已经准备好和目标系统已经准备好和目标系统(Guest OS)进行连接进行连接22Xidian UniversityOS Experiments 启动和调试WRK选择第二项选择第二项启动虚拟机,选择启动虚拟机,选择Start23Xidian UniversityOS Experiments 启动和调试WRKWinDbg显示以下提示信息,连接成功显示以下提示信息,连接成功24Xidian UniversityOS Experiments 启动和调试WRK选择选择WinDbg菜单菜单“Debug Break”(暂停暂停Guest OS的运作的运作)25Xidian UniversityOS Experiments 启动和调试WRK出现提示符出现提示符“kd”,可以开始调试,可以开始调试26Xidian UniversityOS Experiments References1 Windows Academic Program.2 Windows Research Kernel.3Brian Burns,Arkady Retik.MSRA Workshop Lab on Building the Windows Research Kernel(WRK).February 2008.27

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁