配置windows驱动开发环境
撰写:jiftle 时间:2011-09-09 14:30
windows驱动开发需要wdk,debug tools of wdk,vmware
开发环境搭建:
从微软网站下载
(1)wdk:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800
目前最新是wdk7.1.0
(2)symbol files
http://msdn.microsoft.com/en-us/windows/hardware/gg463028
(3) 安装wdk:build environment,symbol files package
虚拟机调试:
(1) 安装一个虚拟机系统安装xp,编辑c:\boot.ini引导文件,在末尾添加
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional Debug" /fastdetect /debug /debugport=com1 /baudrate=115200
(2) 关闭虚拟机添加一个串口Serial port->选中使用命名管道pipe->\\.\pipe\com_1,This end is server.,The other end is an application.
(3) 回到本地系统里,安装wdk7.1.0中的Tools of Debug,在桌面上创建一个快捷方式
目标:
"C:\WinDDK\7600.16385.1\Debuggers\windbg.exe" -y C:\Windows\Symbols\ -b -k com:pipe,port=\\.\pipe\com_1,baud=115200
起始目录:
"C:\WinDDK\7600.16385.1\Debuggers\"
调试步骤:
(1) 启动虚拟机到操作系统选择系统界面
(2) 双击本机的windbg快捷方式
(3) 看到下面说明成功了
Opened \\.\pipe\com_1
Waiting to reconnect...
撰写:jiftle 时间:2011-09-09 14:30
windows驱动开发需要wdk,debug tools of wdk,vmware
开发环境搭建:
从微软网站下载
(1)wdk:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800
目前最新是wdk7.1.0
(2)symbol files
http://msdn.microsoft.com/en-us/windows/hardware/gg463028
(3) 安装wdk:build environment,symbol files package
虚拟机调试:
(1) 安装一个虚拟机系统安装xp,编辑c:\boot.ini引导文件,在末尾添加
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional Debug" /fastdetect /debug /debugport=com1 /baudrate=115200
(2) 关闭虚拟机添加一个串口Serial port->选中使用命名管道pipe->\\.\pipe\com_1,This end is server.,The other end is an application.
(3) 回到本地系统里,安装wdk7.1.0中的Tools of Debug,在桌面上创建一个快捷方式
目标:
"C:\WinDDK\7600.16385.1\Debuggers\windbg.exe" -y C:\Windows\Symbols\ -b -k com:pipe,port=\\.\pipe\com_1,baud=115200
起始目录:
"C:\WinDDK\7600.16385.1\Debuggers\"
调试步骤:
(1) 启动虚拟机到操作系统选择系统界面
(2) 双击本机的windbg快捷方式
(3) 看到下面说明成功了
Opened \\.\pipe\com_1
Waiting to reconnect...