Jump to content

Clover General discussion


ErmaC
29,875 posts in this topic

Recommended Posts

Here's log+dsdt's

still don't get hdmi audio

It's a victory! Now device injection is perfect

Loading Acpi table from file DSDT-pa0.aml
Acpi table [DSDT] successfully installed and loaded
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed
Disassembly completed
ASL Output:    DSDT-pa0.dsl - 228226 bytes

About HDMI I'll recommend you to set 

		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>Detect</string>
		</dict>

And see what is happen with layout-id.

Did you have HDMI working in other way? How?

Link to comment
Share on other sites

I updated Clover and see  that the config.plist now looks different, I wonder about GenerateIvyStates, I am supposed to write it in SSDT section? I do not see GenerateIvyStates mentioned in the wiki anymore, or I am blind :o

 

Also I see that there is 2 places now in the config where you write default boot volume and timeout, hmm?

Link to comment
Share on other sites

I updated Clover and see  that the config.plist now looks different, I wonder about GenerateIvyStates, I am supposed to write it in SSDT section? I do not see GenerateIvyStates mentioned in the wiki anymore, or I am blind :o

 

Also I see that there is 2 places now in the config where you write default boot volume and timeout, hmm?

True, old entries were forgotten there. I corrected the config sample in r2163.

And you can always see the correct syntax at: http://clover-wiki.zetam.org/Configuration

 

About GenerateIvyStates - yes, it seems gone. I am not sure what happened with it, so perhaps someone else can comment about that.

Link to comment
Share on other sites

True, old entries were forgotten there. I corrected the config sample in r2163.

And you can always see the correct syntax at: http://clover-wiki.zetam.org/Configuration

 

About GenerateIvyStates - yes, it seems gone. I am not sure what happened with it, so perhaps someone else can comment about that.

For me GenerateIvyStates works automaticaly.

and i think its a correct behavior.

Why we must have thinks in config when can be autodetected :D

 

It will be rally great if Clover can know what i thinking about and what i want without config.plist :D :D

  • Like 1
Link to comment
Share on other sites

Clover will automatically turn on state generation for Haswell and Ivy Bridge CPUs. The key GenerateIvyStates does not exist anymore, just refer to the Configuration site in the wiki if you want to disable the generation options.

You do not need to differ between Generate[C/P]States and GenerateIvyStates anymore.

  • Like 1
Link to comment
Share on other sites

Using version 2165 with KernelCpu flag on, on a Haswell CPU, KernelCpu patch does not apply. Why, and how to force... Thanks in advance...

 

The message is as follows:

 

KernelCpu patch: Enabled: Not Executed!

Yes, it is a bug. Wait please....

@pene

Look

    DBG_RT("Enabled: ");
    if ((gCPUStructure.Family!=0x06 && AsciiStrStr(OSVersion,"10.7")!=0)||
        (gCPUStructure.Model==CPU_MODEL_ATOM &&
         ((AsciiStrStr(OSVersion,"10.7")!=0) || AsciiStrStr(OSVersion,"10.6")!=0)) ||
        (gCPUStructure.Model==CPU_MODEL_IVY_BRIDGE && AsciiStrStr(OSVersion,"10.7")!=0) ||
        (gCPUStructure.Model==CPU_MODEL_IVY_BRIDGE_E5 && AsciiStrStr(OSVersion,"10.7")!=0)
        ) {
      KernelAndKextPatcherInit();

If user want then he will do this patch.
Link to comment
Share on other sites

Yes, it is a bug. Wait please....

@pene

Look< why this is all?

 

If user want then he will do this patch.

 

Yes, it is currently being restricted to 10.7 and some CPU models.

I checked on 10.9 DP8 mach_kernel and the same pattern exists. Seems it didn't change from 10.7, so I think we can enable for all OS/CPU.

Link to comment
Share on other sites

One more question, regarding custom entries

I want to hide the recovery and OS X Install partition with ability to unhide them with F3

the recovery works just fine but the installation partition always visible

attached my config

 

Thanks in advance

The Installer type is for 2nd stage install only.

Use the regular hide feature and hide it by name if its not 2nd stage install.

Link to comment
Share on other sites

Test, please,

attachicon.gifCLOVERX64.efi-2165a.zip

I tested by replacing the file in /EFI/CLOVER/CLOVERX64.efi. Getting same results, for 10.8.4 and 10.9.DP8, meaning:

 

KernelCpu patch: Enabled: Not Executed!

 

Perhaps the fact that I am on Haswell makes the difference, since there is a check there with CPU_MODEL_IVY_BRIDGE. Thanks once again..

Link to comment
Share on other sites

Here's log+dsdt's

still don't get hdmi audio

I can tell you what is wrong but not how it happened.

Two hda-gfx injections are required.  The DSDT-pa0.aml has correctly edited HDEF.  The one injection on PEG0/HDAU is for HDEF/HD3K/HD4K HDMI only is not applicable to this motherboard.  PEGO has GFX0 (no hda-gfx, no Nvidia injection) and HDAU (incorrect hda-gfx).

 

This where the problem occurs in the log:

52:499  0:010  Start Display0 Fix
52:510  0:010  Injecting DSM for NVIDIA card
52:521  0:010  insert HDAU device @0
52:531  0:010  Injecting DSM for HDAU
52:542  0:010  now inserting Video device
52:553  0:010  ... into created bridge
52:564  0:010  found outer scope begin=6DC end=5840
52:575  0:010  insert HDAU into created bridge @0x54AE
52:586  0:010  found outer device begin=701 end=54E2
52:596  0:010  found outer scope begin=6DC end=5876
 
The pacher found the right place and used incorrect edits.
 
@Slice, if this helps, you can have access to the exact edits for most configurations. Advise.
Another idea, the HDMI audio edits can be enabled with a HDMI audio ssdt; no dsdt edits and only ACPI/SSDT/DropOEM for Clover/config.plist. Attached is the HDMI audio ssdt on a Z87I-Deluxe/4770K (DP and HDMI)/GT640 (HDMI) enabling 3 working HDMI audio devices.

ssdt-ami-8_series_hdmi_audio-1.zip

  • Like 1
Link to comment
Share on other sites

Test, please,

attachicon.gifCLOVERX64.efi-2165a.zip

Indeed it works with 10.8 and 10.9 indicating 64 bit patch... OK So, thanks!!!

 

After the patch is applied, however, the kernel loads and essentially halts. Does the CPU ID get patched, or just the panic call is suppressed? I suspect it is the latter. Regardless, thanks once again for resolving this bug...

Link to comment
Share on other sites

Kext patching works in two cases:

1. The kext is present in kernelcache. For this happen the loaded kext must match to device. You means internal matching prevent kext to be in the cache?  :huh:

2. The kext loaded from "extra" in addition to kernelcache. Why not?

The only reason for fail I see if kernelcache already contains another copy of the kext.

As far as I remember dmasar said about info.plist patching that

"if kext in not matched then it is not present in kernelcache so why it can't be patched. You must boot two times. First boot without cache permitting Clover to patch the kext and OSX will include it into cache. Second boot (and further) with kernelcache created by OSX."

Sorry for late response,because I busy in these weeks.

I think I found what the problem is.

When Clover boot Snow Leopard Install DVD,the Extensions.mkext loaded properly.

post-35058-0-85852500-1380430554_thumb.jpg

But when boot in HDD,no Extensions.mkext loaded.

post-35058-0-27939900-1380430588_thumb.jpg

And the Extensions.mkext just existed in HDD.

post-35058-0-01159800-1380430507_thumb.png

And I install Clover in SD card to boot OSX.

Thanks for help.

Link to comment
Share on other sites

 

 

Another idea, the HDMI audio edits can be enabled with a HDMI audio ssdt; no dsdt edits and only ACPI/SSDT/DropOEM for Clover/config.plist. Attached is the HDMI audio ssdt on a Z87I-Deluxe/4770K (DP and HDMI)/GT640 (HDMI) enabling 3 working HDMI audio devices.

 

@Toleda - Not a stupid question I hope. Your SSDT for audio - does it require a custom AppleHDA.kext?

Link to comment
Share on other sites

With Detect it set the layout to 0 which doesn't work (no audio at all)

with the attached dsdt I get hdmi audio

this is toleda patch from this repository

https://raw.github.com/toleda/audio_hdmi_5series/master

Try something like this

	<key>Devices</key>
	<dict>
		<key>NoDefaultProperties</key>
		<true/>
		<key>AddProperties</key>
		<array>
			<dict>
				<key>Device</key>
				<string>NVidia</string>
				<key>Key</key>
				<string>hda-gfx</string>
				<key>Value</key>
				<string>onboard-2</string>
			</dict>
			<dict>
				<key>Device</key>
				<string>HDMI</string>
				<key>Key</key>
				<string>hda-gfx</string>
				<key>Value</key>
				<string>onboard-2</string>
			</dict>
		</array>
		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>1</string>
		</dict>
	</dict>

I tested by replacing the file in /EFI/CLOVER/CLOVERX64.efi. Getting same results, for 10.8.4 and 10.9.DP8, meaning:

 

KernelCpu patch: Enabled: Not Executed!

 

Perhaps the fact that I am on Haswell makes the difference, since there is a check there with CPU_MODEL_IVY_BRIDGE. Thanks once again..

Sorry, but version 2165a must not contain such message.

Link to comment
Share on other sites

×
×
  • Create New...