grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

Request: be able to patch ACPI tables?

Open toddfraser88 opened this issue 5 years ago • 12 comments

can you add a feature to be able to patch ACPI tables? before loading OS?

I'd like to replace DSDT table to resolve WindowsXP A5 BSOD

toddfraser88 avatar May 13 '19 09:05 toddfraser88

grub2 uses the acpi command to load a DSDT .aml table file. Can a simplified form of this be added to grub4dos? image

steve6375 avatar May 13 '19 09:05 steve6375

Can't solve the problem by setting bios? Looking at grub2's code for acpi, Complicated, large amount of code. It seems unnecessary.

yaya2007 avatar May 15 '19 03:05 yaya2007

What do you want to modify the DSDT? Can you give an example?

yaya2007 avatar May 15 '19 06:05 yaya2007

Replacing the DSDT table using grub would be safer than a BIOS mod, no risk of bricking your system.

This feature would be useful for re-implementing ACPI support for older OSes like Windows XP on newer hardware like AMD Ryzen.

toddfraser88 avatar May 15 '19 16:05 toddfraser88

Do you know if using the acpi command to load a DSDT table definitely works when using grub2? If grub2 does not work then there is little point in doing a lot of work!

steve6375 avatar May 15 '19 16:05 steve6375

I think it works - i'm not 100% sure though I boot Easy2Boot (grub4dos) I then boot E2B beta grub2.imgPTN drop to grub2 console acpi --load-only /ab35g4.aml back to Easy2boot (grub4dos) boot Windowsxp.iso No more A5 BSOD - but freezes on "Setup is starting windows"

toddfraser88 avatar May 16 '19 11:05 toddfraser88

Please post on reboot.pro, not here.

steve6375 avatar May 16 '19 11:05 steve6375

What file is ab35g4.aml? Can you upload it?

yaya2007 avatar May 16 '19 13:05 yaya2007

Its the DSDT table of my motherboard - asrock AB350 gaming k4

you can use iasl compiler to disassemble to see the code https://www.acpica.org/downloads/binary-tools ab35g4.zip

toddfraser88 avatar May 16 '19 14:05 toddfraser88

"acpi --load-only /ab35g4.aml" There are grammatical errors. Grub2 will not open ab35g4.aml, unable to load files . The correct way of writing is : acpi --load-only= /ab35g4.aml

See post: Windows XP or Server 2003 setup might fail with an error message such as: "An unexpected error (805262864) occurred at line 1768 of d:\xpclient\base\boot\setup\arcdisp.c"

Try this grldr. Execute on the command line, See how much FACP is ahead of schedule. debug=3 acpi --early-facp

Then start xp, whether to resolve. grldr.rar.txt

yaya2007 avatar Jun 04 '19 01:06 yaya2007

I have managed to get ACPI tables to load using grub2

did you still want me to try that grldr?

toddfraser88 avatar Jun 05 '19 09:06 toddfraser88

yes

yaya2007 avatar Jun 05 '19 10:06 yaya2007