首页 > WinDriver > WD-WRK的安装与调试
2015三月22

WD-WRK的安装与调试

[隐藏]

1.WRK的编译和生成

wrk我直接使用了vs2008生成wrkx86.exe,同时hal.dll的选择如下:

Hal.dll      标准PC
Halacpi.dll  高级配置和电源接口
Halapic.dll  高级可编程中断控制器
Halaacpi.dll ACPI PC
Halmps.dll   多处理器PC
Halmacpi.dll 多处理器ACPI PC
Halborg.dll  Silicon图形工作站
Halsp.dll    Compaq SystemPro

可以通过

link -dump -all \WINDOWS\system32\hal.dll | findstr pdb

查看hal的类型,当然有可能link在你的机器上不能运行,一般是halmacpi.dll

编译后:

从wrk-v1.2\base\ntos\build\exe中取出wrkx86.exe

从wrk-v1.2\ws03sp1hals\x86\halmacpi中取出halmacpi.dll

   

2.安装系统server2003

http://msdn.itellyou.cn中存在所有的版本,我这里安装的是 

  

3.系统配置

进入系统后,打开boot.ini,增加如下项:

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="wrk V1.2 debug" /fastdetect /debug /debugport=com2 /baudrate=115200 /kernel=wrkx86.exe /hal=halmacpi.dll 

把第一步取得的wrkx86.exe和halmacpi.dll拷贝到C:\WINDOWS\system32下即可

   

4.Windbg附加

windbg设置参数如下:

 -c ".symfix+ C:\Mysymbol\WRK" -b -k com:port=\\.\pipe\com_2,baud=115200,pipe

注意pipe\com_2是系统根据debugport=com2自动生成的,可以在虚拟机右下角看到

很诡异的是有时高版本windbg附加不上,必须先用低版本的windbg附加,再用高版本windbg又能附加了,我擦!

来张效果图吧

1.png

文章作者:hgy413
本文地址:https://hgy413.com/2880.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

14 Responses to “WD-WRK的安装与调试”

  1. #1 minecraft 回复 | 引用 Post:2018-10-04 18:27

    Thanks for the marvelous posting! I genuinely enjoyed reading
    it, you are a great author. I will make sure to bookmark your blog and may come
    back down the road. I want to encourage one to continue your great work, have a nice morning!

  2. #2 minecraft 回复 | 引用 Post:2018-10-07 08:53

    I quite like looking through a post that will make people think.

    Also, thanks for permitting me to comment!

  3. Nice blog here! Also your site loads up fast! What web host are you using?
    Can I get your affiliate link to your host?
    I wish my website loaded up as quickly as yours lol

  4. Hey there! I understand this is sort of off-topic however I had to
    ask. Does building a well-established blog like yours require a massive amount work?
    I am brand new to blogging however I do write in my diary on a
    daily basis. I’d like to start a blog so I can share
    my personal experience and feelings online.
    Please let me know if you have any recommendations or
    tips for new aspiring bloggers. Appreciate it!

  5. Fantastic beat ! I wish to apprentice whilst you amend
    your site, how could i subscribe for a weblog site?
    The account aided me a acceptable deal. I were a little bit acquainted of this your broadcast provided vibrant clear idea

  6. #6 Sling TV 回复 | 引用 Post:2018-11-11 13:14

    I am in fact thankful to the holder of this website who
    has shared this great paragraph at here.

  7. #7 Sling TV 回复 | 引用 Post:2018-11-11 20:49

    Very nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed browsing your blog posts.
    After all I’ll be subscribing to your rss feed
    and I hope you write again very soon!

  8. Why viewers still make use of to read news papers when in this technological globe everything is existing on web?

  9. #9 Sling TV 回复 | 引用 Post:2018-11-15 03:40

    I blog quite often and I really thank you for your information. This great
    article has truly peaked my interest. I will book mark your
    website and keep checking for new information about once a week.
    I subscribed to your RSS feed too.

  10. It’s hard to come by well-informed people for this topic, however, you sound like you know what you’re talking about!

    Thanks

  11. I absolutely love your blog and find the majority of your post’s to
    be precisely what I’m looking for. Would you offer guest writers to write content for yourself?
    I wouldn’t mind producing a post or elaborating on many of the subjects you write related to here.
    Again, awesome site!

  12. #12 Sling TV 回复 | 引用 Post:2018-12-05 11:51

    When I originally left a comment I appear to have clicked the -Notify me when new comments are
    added- checkbox and from now on whenever a comment is added I get four emails with the same
    comment. Is there a means you can remove me from that service?
    Thanks!

  13. Hi everyone, it’s my first pay a quick visit at this web page, and
    post is in fact fruitful designed for me, keep up posting these
    articles or reviews.

  14. #14 descargar facebook 回复 | 引用 Post:2018-12-06 03:52

    Great goods from you, man. I have understand your stuff previous to and
    you’re just extremely fantastic. I actually like
    what you’ve acquired here, really like what you are saying and the way in which you say it.
    You make it enjoyable and you still take care of
    to keep it wise. I cant wait to read far more from you.

    This is actually a terrific web site.

发表评论