Jump to content

EFI Variable Store on Aptio V (Haswell-E and up)


  • Please log in to reply
99 replies to this topic

#1
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

I had asked for NVRAM dumps pre-boot (Shell) and post-boot (OS X) a while ago, but I didn't see such dumps yet.

 

EDIT_ Moved from FileVault 2 thread due to Off-Topic.



#2
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

There is probably a problem in NVRAM handling with my config, because I notice that boot items tend to get duplicated (Clover r3899)

 

 

Attached Files



#3
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,361 posts
  • Gender:Male
  • Location:Moscow

make 
> dmpstore -all > dmpstoreAll.txt
and show boot.log as well



#4
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

How is a log of the Variable Store going to help if it cannot be used by OS X? o_O

A Memory Map dump is needed.(memmap in Shell, Firmware Memory Map in DarwinDumper).

boot log will only help if AptioFix is loggijng (is it?)



#5
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

I hope these will be helpful.

 

Note that details about the config are available here. I just removed EmuVariableUefi-64.efi and disabled SIP for the purpose of these tests.

 

Attached Files



#6
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

*sigh* Using that -free2000 driver and wondering why Variable Store access doesn't work... Two options.

1) That driver just wipes anything from the kernel base address till 4GB or 8GB (don't remember). Well, I am pretty sure the Variable SMM Communication Buffer is somewhere in that range and just gets purged away.

2) If the range is not purged away, it could be that Aptio V changed from using RT_data for SMM communication (Aptio IV way) to using Reserved (EDK2) way. AptioFix mods the memory map for Reserved regions not to be mapped during RT, which would mean the buffer cannot be used by UEFI.

 

for 1), you cannot do anything, that's just how it is then.

for 2) you could disable the Reserved convesion code (Lib.c "if ((Desc->Attribute & EFI_MEMORY_RUNTIME) != 0 && Desc->Type == EfiReservedMemoryType)"). If this doesn't work, you can also remove the code that follows ("if ((Desc->PhysicalStart < 0xa0000) && (PhysicalEnd >= 0x9e000))"). Obviously don't remove just that, but the entire block.

 

EDIT: Is -Free2000 OSS even?

EDIT2: EDK2 does NOT use Reserved either, remembered it incorrectly.



#7
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

My experience is that my system is more stable with OSXAptioFix2Drv-free2000.efi than with OSXAptioFix2Drv.efi.

In fact, according to the available doc, OSXAptioFix2Drv-free2000.efi should not differ from OSXAptioFixDrv.efi. The change is described in this ticket, but this has already been merged by rehabman in OSXAptioFixDrv.c since r3409.

 

Anyway, according to my earlier tests and reports from multiple Skylake users, the NVRAM issue is present even with OSXAptioFix2Drv.efi. So more investigation seems useful.

I switched back to OSXAptioFix2Drv.efi and performed a new series of dumps that I attach here. If you can clarify this NVRAM issue, it would be much appreciated.

 

 

 

 

 

Attached Files



#8
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

In fact, according to the available doc, OSXAptioFix2Drv-free2000.efi should not differ from OSXAptioFixDrv.efi.

 

Nonsense...

 

The change is described in this ticket, but this has already been merged by rehabman in OSXAptioFixDrv.c since r3409.

 

This is unrelated.

 

Anyway, according to my earlier tests and reports from multiple Skylake users, the NVRAM issue is present even with OSXAptioFix2Drv.efi.

 

Anyone (including you, barijaona), who can boot with stock AptioFix2, try this: https://www.dropbox....ix2Drv.efi?dl=0



#9
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

I'll try it. What change should be expected ?



#10
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

I'll try it. What change should be expected ?

 

Either Variable Store works or it doesn't. :D



#11
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

It does not work (variable does not persist after a reboot).



#12
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

It does not work (variable does not persist after a reboot).

 

Dumps plz



#13
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

The same kind as before ?


Here we are

Attached Files



#14
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

The same kind as before ?


Here we are

 

The dumps look fine... does it work in Windows / Linux?



#15
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

Sorry, neither Windows nor Linux is installed in this box.



#16
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

Try this one: https://www.dropbox....ix2Drv.efi?dl=0

May not boot.



#17
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

It did not boot  ^_^

 

[edit]

The macOS reboot seems to occur just after FakeSMC is loaded.

For the record, a Clover log.

Attached Files



#18
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,361 posts
  • Gender:Male
  • Location:Moscow

It did not boot  ^_^

 

[edit]

The macOS reboot seems to occur just after FakeSMC is loaded.

For the record, a Clover log.

Why did you make AppleIntelSKLGraphicsFramebuffer patches if you have no Intel Graphics at all?

Numerous SSDT loaded also will not clear the reason of reboot.



#19
barijaona

barijaona

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

Why did you make AppleIntelSKLGraphicsFramebuffer patches if you have no Intel Graphics at all?
Numerous SSDT loaded also will not clear the reason of reboot.


I tested first with the IGPU and added the Nvidia card later.

Will test removing these in the evening.

Aside note : I am pretty sure that OSXAptioFix2Drv.-64 efi worsens the reboot problem. I will probably give the latest version of OSXAptioFixDrv.efi a try.

#20
Download-Fritz

Download-Fritz

    ygolohcysp desreveR

  • Developers
  • 758 posts
  • Gender:Not Telling

I tested first with the IGPU and added the Nvidia card later.

Will test removing these in the evening.

Aside note : I am pretty sure that OSXAptioFix2Drv.-64 efi worsens the reboot problem. I will probably give the latest version of OSXAptioFixDrv.efi a try.

 

https://www.dropbox....ix2Drv.efi?dl=0

Might again not boot. If it boots, might be hibernation does not work.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy