Build a partial checked build system using Windows XP Service Pack 2 checked build

Source: Internet
Author: User
Tags knowledge base

1. What is checked build?
Windows checked build is a debug version of Windows, which is opposite to a retail build. Generally, windows we buy on the market are retail build. The code base of the two is the same, but the checked build is compiled when the dbg compilation switch is enabled. Compared with retail build, checked build disables Compiler Optimization (this makes the disassembly assembly code more in line with the source code process and easier to track and understand the source code) the check and output statements added for convenience of debugging are retained, and the code is checked more strictly, including:

►Check the validity of function parameters;
►Check the correctness of key algorithms and internal data structures;
►Information (information frequently recorded in Microsoft Knowledge Base articles) Inspection and tracking output

With the windows symbol package of the checked build version, you can easily track and debug windows kernels and drivers. It is a must-have product for home-based travel killer. If it is coupled with Windows research kernel, it can be said that the entire Windows kernel source code is already in your hands.

Ii. How to obtain windows checked build
Unfortunately, checked build is only released with msdn professional and universal. The order price of msdn universal is very high ...... Poor people can't afford it (Tip: You can try to answer questions and earn an MVP, and then let the old man give you a set, but this is more distant for me than spending money to buy it directly, sorry is far away ......) However, fortunately, there is no need to install the entire windows checked build (for two reasons: first, because compilation optimization is disabled, windows of this version is very slow and intolerable, I had the honor to install P4 1.7g, 512 M DDR in my company. It would take half a minute to open my computer! @ # $ ^ & * () -- I am a masochistic user. I did not say this. Second, when debugging the driver, it usually involves only a part of the OS components, there is no need to replace the entire system; thirdly, the independent installation of Windows checked build requires separate partitioning and dual startup, which is not a little bit of trouble ), we can use Windows XP Service Pack 2 checked build (which can be downloaded for free) to replace the kernel and Hal and get a quasi-checked build system (note: if your XP does not have SP2 installed, upgrade it to SP2 first. We only need to replace some components of the system and make sure the version matches with each other. Otherwise, do not blame me if the system is broken ). Windows XP Service Pack 2 checked build network installation package download here: http://www.microsoft.com/downloads/details.aspx? Familyid = 7a4d8d12-9f5d-42bb-b31c-7b45057c869c & displaylang = EN (Friendly reminder, it is best to press SP2 only, disable automatic updates, do not install other patches, regular release of small patches Microsoft does not provide checked build version, windows XP Service Pack 2 checked failed and Hal. it is best to match the dll version to ensure maximum stability. However, it doesn't matter if the minor version number is different, as long as the major version number 5.1.2600 is the same .)

3. Procedure
1. Open % SystemRoot %/repair/setup. log and find the following three lines:
[Files. winnt]
...
/Windows/system32/hal. dll = "halaacpi. dll", "2cfd1"
/Windows/system32/ntkrnlpa.exe = "ntkrnlpa.exe", "1f6612"
/Windows/system32/ntoskrnl.exe = "ntoskrnl.exe", "220d8c"
...
Write down the file name on the right of the equal sign, which is the original file name on the installation disc.

2. decompress the XP SP2 checked build and find the halaacpi. DL _, ntkrnlpa. ex _, and ntoskrnl. ex _ FILES. Use the expand command to unbind them:
Expand halaacpi. DL _ halaacpi. Chk
Expand ntkrnlpa. ex _ ntkrnlpa. Chk
Expand ntoskrnl. ex _ ntoskrnl. Chk
Upload the three files to the System32 directory. Do not overwrite the original file !!! Remember !!!

3. Edit the boot. ini file and add the startup options:
[Boot loader]
Timeout = 30
Default = multi (0) disk (0) RDISK (0) Partition (1)/Windows
[Operating systems]
Multi (0) disk (0) RDISK (0) Partition (1)/Windows = "Microsoft Windows XP Professional Free Build"/execute/fastdetect/noguiboot
Multi (0) disk (0) RDISK (0) Partition (1)/Windows = "Microsoft Windows XP Professional checked build"/execute/fastdetect/noguiboot/kernel = ntoskrnl. chk/hal = halaacpi. chk

4. Restart and meditate on the name of God or other gods you believe, and pray that your RP is good enough. Generally, there is no problem. If you cannot run it, please reflect on your Rp.

Iv. Remarks
If you use SoftICE or windbg, download the Windows symbol package of checked build and fill in the PDB files of the three files.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.