ReBarUEFI icon indicating copy to clipboard operation
ReBarUEFI copied to clipboard

ASRock z-170 k4/d3 sata controller not being initialized correctly when enable "above 4g mmio bios assignment"

Open jnyk opened this issue 1 year ago • 174 comments

Motherboard: ASRock z-170 k4/d3 GPU: 6700xt CPU: 8700k I can't open the "above 4g decoding" or "above 4g mmio bios assignment" image when I turn this to enable ,it can't work, can't into windows system ,because bios can not find any sata drives

image image

then when i try to use modGRUBShell.efi
setup_var 0x3 0x0 reboot setup_var 0x3 0x1 but there is nothing happend

It makes me very depressed. Can you give me some suggestions

Originally posted by @jnyk in https://github.com/xCuri0/ReBarUEFI/issues/11#issuecomment-1465085555

jnyk avatar Mar 12 '23 23:03 jnyk

image

jnyk avatar Mar 12 '23 23:03 jnyk

image

jnyk avatar Mar 12 '23 23:03 jnyk

I believe that it's same issue https://github.com/xCuri0/ReBarUEFI/issues/35

@jnyk do you have ch341a or another programmer? If it's dsdt issue, I can reinsert dsdt from another ASRock motherboard, that works as intended

dormancygrace avatar Mar 12 '23 23:03 dormancygrace

I believe that it's same issue #35

@jnyk do you have ch341a or another programmer? If it's dsdt issue, I can reinsert dsdt from another ASRock motherboard, that works as intended

yes I have met similar situation with him,can not extract DTST from AmiBoardInfo2.I have bought one ch341a ,meybe it will cost two days from online store to me

jnyk avatar Mar 13 '23 01:03 jnyk

DSDT is in DsdtAsl, not AmiBoardInfo2 @jnyk

xCuri0 avatar Mar 13 '23 01:03 xCuri0

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

dormancygrace avatar Mar 13 '23 01:03 dormancygrace

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

i dont use this mb but i've done several dsdt fix on asrock boards (yes they're just pAWJPASJd;JDp[ to fix sometimes) what did i change? well mainly the qwordfield under the first dwordfield, then also correcting the rest of dsdt errors (its a long list lol)

and no, i dont slap other board DSDT on this bios

Koekieezz avatar Mar 13 '23 01:03 Koekieezz

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. see if it's working with this bios. z17gkd37mod.zip

Is there coffee lake mod? Because @jnyk use i7-8700

dormancygrace avatar Mar 13 '23 01:03 dormancygrace

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. z17gkd37mod.zip

Do you use this mb? Or just made modifications? What you changed in dsdt?

i dont use this mb but i've done several dsdt fix on asrock boards (yes they're just pAWJPASJd;JDp[ to fix sometimes) what did i change? well mainly the qwordfield under the first dwordfield, then also correcting the rest of dsdt errors (its a long list lol)

and no, i dont slap other board DSDT on this bios

But there is already qwordfield in dsdt in this board. I'm 90% sure that there is no need to patch uefi not dsdt. I will make bios without patching

dormancygrace avatar Mar 13 '23 01:03 dormancygrace

@jnyk here you could try this bios, dsdt patched, uefipatched. Just enable Above 4G like usual, the one that made windows hang/freeze. see if it's working with this bios. z17gkd37rbarcfl.zip

this one is modded non coffee lake bios: z17gkd37rbar.zip

Koekieezz avatar Mar 13 '23 02:03 Koekieezz

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

dormancygrace avatar Mar 13 '23 02:03 dormancygrace

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

Koekieezz avatar Mar 13 '23 02:03 Koekieezz

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

As I mentioned, I've compared dsdt from similar ASRock mb - they are +/- same (identical in qwordfield and m1.. parts)

dormancygrace avatar Mar 13 '23 02:03 dormancygrace

heres the one with coffee lake mod @jnyk z17gkd37_2.zip

Please, make one without any patches.

He could test it and if it's working it could be the DSDT faulty? he's the one testing it. if anything went good then DSDT was the one causing it, if its not, then it wasnt it, simple. Even if everything seems to be in place, sometimes it's just sketchy XD

As I mentioned, I've compared dsdt from similar ASRock mb - they are +/- same (identical in qwordfield and m1.. parts)

let him reply first okay? he's the one testing

Koekieezz avatar Mar 13 '23 02:03 Koekieezz

thanks @Koekieezz .I'm working now , may not be able to reply to a message promptly. I will try this bios when i get home.

jnyk avatar Mar 13 '23 04:03 jnyk

By the way ,I try to patched UEFI to my bios last night.After I flashed the ROM whitch I patched into mainboard, windows can be used as usually, but when i insert the usb disk , it could not start windows system, utill i remove the usb disk

jnyk avatar Mar 13 '23 04:03 jnyk

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

dormancygrace avatar Mar 13 '23 10:03 dormancygrace

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

Koekieezz avatar Mar 13 '23 11:03 Koekieezz

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

I`ve attached screenshot of files compare. only difference is disassembling by iasl

dormancygrace avatar Mar 13 '23 12:03 dormancygrace

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

jnyk avatar Mar 13 '23 13:03 jnyk

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

Ch341a you need to use in case of major failure

dormancygrace avatar Mar 13 '23 13:03 dormancygrace

@jnyk
z17gkd37.zip

try this one

dormancygrace avatar Mar 13 '23 13:03 dormancygrace

i flash this bios with ch341a ,but It's still the same as before

jnyk avatar Mar 13 '23 14:03 jnyk

@dormancygrace ok I‘ll try it

jnyk avatar Mar 13 '23 14:03 jnyk

@Koekieezz is it secret, what you changed? i'm asking because stock dsdt and from your file - completely same image

no.. both files have 0x7FFFFFFFFF on 1st qwordfield, and for the rbarcfl one have acpi fix on dsdt then apply the dsdt patch

I`ve attached screenshot of files compare. only difference is disassembling by iasl

i have 2 bioses attached 12h ago, they have different dsdt from normal ones, its this one: z17gkd37rbarcfl.zip, check em again

Koekieezz avatar Mar 13 '23 14:03 Koekieezz

@dormancygrace It's still the same as before . start my conputer can't find any disk drive except usb disk ,and can not inter into neither windows system or winpe system

jnyk avatar Mar 13 '23 14:03 jnyk

@Koekieezz I just instant flash the bios , when i open above 4g mmio bios assignment, it can not find any disk drive as before. i use asrock's tool to flashed bios,may be use ch431a it will be ok

are you sure it's the correct bios? since i had some edits and deleted the first reply, the correct one have 2 files in 1 post. its this z17gkd37rbarcfl.zip one to use if you had the wrong one. try modgrub method to enable it and see if it's working.

this is similiar to this guy on winraid, he managed to enable it. Here is your above 4g: image

So try to do setup_var or setup_var_3 0x385 0x0, reboot (type it and enter), then 0x385 0x1, reboot (type it and enter).

Koekieezz avatar Mar 13 '23 14:03 Koekieezz

@Koekieezz yes wo download this z17gkd37rbarcfl.zip one

i can not find disk drive untill setup_var 0x385 0

jnyk avatar Mar 13 '23 14:03 jnyk

your mean is i need try to setup_var 0x385 1 gagin?

jnyk avatar Mar 13 '23 14:03 jnyk

i can not find disk drive untill setup_var 0x385 0

oh i think you should use iGPU, try to enable igpu, set display primary to igpu, and enable multi monitor/display on bios, save everything, then try to re do the thing i told for modgrub but this time using iGPU. the person i mentioned from winraid DID have the same problem as you but once he use igpu.. it worked fluently.

Here is the post: https://winraid.level1techs.com/t/experimental-resizable-bar-dxe-driver/89534/275?u=koekieezz Maybe you could ask that guy since he figure it out. also the bios i gave to you contains the latest orom, efigop and the gop vbt itself for coffeelake all revisions (up till 9900K), igpu should work. the patch i gave to you is modded for coffee lake (acpi table fix, fd unlock, 128GB ram unlock, and patch for 8+ thread for cpu) + uefipatch for 64GB allocation + dsdt fix (this done step by step from coffeemod to dsdt) changing from external reference to 0x7FFFFFFFFF.

your mean is i need try to setup_var 0x385 1 gagin?

Yes but with igpu, to see if above 4g decoding would work.

Koekieezz avatar Mar 13 '23 14:03 Koekieezz