Jump to content

Compiling ACPI v2.0 driver for Windows XP SP3 and Windows 2003 SP2 (x32/x64)


Mov AX, 0xDEAD

Recommended Posts

52 minutes ago, Damnation said:

oh, I see the problem - missing imports

KeInitializeSpinLock
KeQueryInterruptTime

Are you going to add these functions (missing imports) using ImportPatcher ?

If yes I can help , jumper taught me how to do it

WinWord2000 Grazie a tutti !

 

Edited by WinWord2000
Link to comment
Share on other sites


3 hours ago, Damnation said:

oh, I see the problem - missing imports

KeInitializeSpinLock
KeQueryInterruptTime

KeInitializeSpinLock is in ntoskrn8,  KeQueryInterruptTime is not

Edited by pappyN4
Link to comment
Share on other sites

10 hours ago, Damnation said:

oh, I see the problem - missing imports

KeInitializeSpinLock
KeQueryInterruptTime

@Damnation

KeInitializeSpinLock(), KeQueryInterruptTime() defined different in XP and W2003 headers

You compile acpi x64 with header files from XP SP1 kernel in NTOS folder.

Real "x64" OS based on W2003 headers/sources

Use kernel files from W2003 WRK if you want to make something x64 workable

XP x64 = W2003 x64, WRK sources is the most closest to official W2003 binary kernel releases

 

Edited by Mov AX, 0xDEAD
Link to comment
Share on other sites

On 4/14/2022 at 1:59 AM, Mov AX, 0xDEAD said:

All Qemu versions after v0.15 are incredible slow without HAX acceleration, but q35 emulation started since v2.x

Qemu (virt-manager) is best run on Linux host e.g. Debian 9. I tested WinXP 64-bit and it works very efficient especially with a second host PCIe graphics card: PCI passthrough karty graficznej na Debian 9 64-bit

Link to comment
Share on other sites

@Mov AX, 0xDEAD Is there any chance to get secondary GPU available? My testing laptop Asus K53SV have integrated Intel HD GPU + NVIDIA GPU. With currently compiled (1106 or 5512 or 6666) can detect only Intel GPU.

I was able to successfully install NVIDIA GPU drivers with only new and fresh modded ACPI 5048 by @pappyN4 for both x86 & x64 systems. It would be great if this new ACPI can detect it too.

Link to comment
Share on other sites

Finally I can see the "Kernel Debugger connection established" message for my host (with intel i217 chipset) and target (with realtek 8111GS chipset) systems.
I now need info for a correct configuration for the installed symbols to overcome the errors reported in the following log:

https://anonfiles.com/R1IcR5Ybx6/Debug_GA-H470_TXT

Edited by Andalu
Link to comment
Share on other sites

4 hours ago, George King said:

Thanks, this one can actually boot XP x64 in VirtualBox!

EDIT: On real HW it stucks on infinite loading bar

@Damnation@George King I tried acpi_xp_amd64_forGK_2_7z and it boot fine for me when i replaced acpi on a working system. GA-B450AorusM.  Maybe you can try on a different test computer and see if you have better luck?  Might be an issue specific to your test motherboard.

Link to comment
Share on other sites

11 hours ago, Andalu said:

Finally I can see the "Kernel Debugger connection established" message for my host (with intel i217 chipset) and target (with realtek 8111GS chipset) systems.
I now need info for a correct configuration for the installed symbols to overcome the errors reported in the following log:

https://anonfiles.com/R1IcR5Ybx6/Debug_GA-H470_TXT

@Andalu

Finally you got kernel debugger !

1) you need debug version of acpi.sys with complimentary acpi.pdb, acpi.pdb on HOST must be in folder where acpi.sys was compiled (do binary search in acpi.sys for string ".pdb", for example on my PC this is c:\acpi\acpi_sp1\base\busdrv\acpi\driver\nt\obj\i386\acpi.pdb), OR place acpi.pdb to C:\WINDOWS\Symbols\ (i never check this way), see PM
 
2) run debug mode with /BREAK at boot.ini, in your log  i don't see instant breakpoint. you must see:

Quote

Break instruction exception - code 80000003 (first chance)
nt!DbgBreakPoint:
804e3586 cc              int     3

this mean windows loader stopped instantly and you can enter windbg commands

3) route output to logfile Edit->Open/Close Log File , enter c:\h470.txt as filename (any path is acceptable)

4) enter bu acpi!DriverEntry

5) enter g

6) wait for message

Quote

kd> g
Breakpoint 1 hit
ACPI!DriverEntry:
f9a21c06 8bff            mov     edi,edi

7) enter ed Kd_ACPI_Mask 0xFFFFFFFF

8) enter g

9) wait for BSOD

10) save logfile Edit->Open/Close Log File->Close Open Log File

11) share c:\h470.txt :)
 

Edited by Mov AX, 0xDEAD
Link to comment
Share on other sites

11 hours ago, George King said:

@Mov AX, 0xDEAD Is there any chance to get secondary GPU available? My testing laptop Asus K53SV have integrated Intel HD GPU + NVIDIA GPU. With currently compiled (1106 or 5512 or 6666) can detect only Intel GPU.

I was able to successfully install NVIDIA GPU drivers with only new and fresh modded ACPI 5048 by @pappyN4 for both x86 & x64 systems. It would be great if this new ACPI can detect it too.

@George King

First you need investigate how nvidia gpu exported, as PCI device on pci bus or internal ACPI device

Second you must check DSDT code to possible disabling devices by OS choose code (IF OS > 0xxxx then enable something bla-bla)

Link to comment
Share on other sites

15 minutes ago, Mov AX, 0xDEAD said:

@George King

First you need investigate how nvidia gpu exported, as PCI device on pci bus or internal ACPI device

Second you must check DSDT code to possible disabling devices by OS choose code (IF OS > 0xxxx then enable something bla-bla)

What should I do to get these informations? I can investigate it when new week starts.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...