Jump to content

[80% Solved] Iris Xe iGPU on Tiger Lake successfully loaded ICLLP Frambuffer and VRAM also recognizes 1536MB! + However, some issues.


shl628
739 posts in this topic

Recommended Posts

There is no igplatform for ice lake with 4 connectors, it's 3 or 5, there are a few with dummy connectors, so if I ignore some dummy connectors (the ones with an index of -1 in the port column in hackintools patch section on under the connector page) maybe I will find one with 4?

Link to comment
Share on other sites

Posted (edited)

this lilu fix from github might be important

https://github.com/acidanthera/Lilu/commit/a7fc69b7cc3ebb08ed72c41e873ae7c5f2451731

image.png.9d5389f46e785060c45f83ba07362ddc.png

 

here's the binarys from github build

i'm using this lilu debug version for building nblue/whatevergreen

 

 

 

use the debug release only if you using xcode to build binarys

use the lilu release in the /EFI/Kexts folder to update lilu

 

this are the new binarys of nblue/whatevergreen bulid for new lilu

 

 

Edited by jalavoui
Link to comment
Share on other sites

Posted (edited)

The Whenvergreen works fine, I'll test nblue next week with a 13.6.5 installer, the boot log will be written to the EFI flags, so hopefully I can debug from that.

 

Why was the Vendor ID changed in this area? aside from not wanting to break someones display....

 

Screenshot2024-05-22at12_09_12PM.png.a1e76c9807db608bede9521dcb460439.png

 

I really wanna try nblue on Sonoma, but I'm waiting for Sonoma Patches. 🥹

Edited by Mastachief
Link to comment
Share on other sites

On 5/20/2024 at 10:15 PM, jalavoui said:

this lilu fix from github might be important

https://github.com/acidanthera/Lilu/commit/a7fc69b7cc3ebb08ed72c41e873ae7c5f2451731

image.png.9d5389f46e785060c45f83ba07362ddc.png

 

here's the binarys from github build

i'm using this lilu debug version for building nblue/whatevergreen

 

Lilu-1.6.8-DEBUG.zip 230.64 kB · 2 downloads Lilu-1.6.8-RELEASE.zip 67.15 kB · 10 downloads

 

use the debug release only if you using xcode to build binarys

use the lilu release in the /EFI/Kexts folder to update lilu

 

this are the new binarys of nblue/whatevergreen bulid for new lilu

 

WhateverGreen.kext.zip 281.47 kB · 13 downloads WhateverGreen-master.zip 1.91 MB · 3 downloads NootedBlue.kext.zip 30.25 kB · 16 downloads NootedBlue-master.zip 366.54 kB · 6 downloads

 

Have had better results with both kexts now. Screen goes black (attempting second boot) but still crashes (ie: can't ssh/vnc into it) using various device-ids. Mysteriously, still no crash debugs, and no mention of ICLL in logs. Is there any failsafe device-id that this should work with, or do the framebuffer-conX fields need to be correct? It's likely this XPS 9520 has a eDP display, not LVDS...

Link to comment
Share on other sites

On 5/22/2024 at 2:43 PM, jkbuha said:

 

Have had better results with both kexts now. Screen goes black (attempting second boot) but still crashes (ie: can't ssh/vnc into it) using various device-ids. Mysteriously, still no crash debugs, and no mention of ICLL in logs. Is there any failsafe device-id that this should work with, or do the framebuffer-conX fields need to be correct? It's likely this XPS 9520 has a eDP display, not LVDS...

i did add the new kexts to my efi, tested ventura and sonoma, e.g. 13.6.5 and newer, same issue here too. 

Link to comment
Share on other sites

On 3/16/2024 at 9:39 AM, shl628 said:

I get the same kernel panic whether I apply -allow3d or not.

 

Are you using MacBookPro16,2 or MacBookAir9,1 ?

Link to comment
Share on other sites

Posted (edited)
On 5/30/2024 at 10:08 AM, shl628 said:

 

I'm using MacBook Pro 16,2 model.

 

Since you are on 13.6.5, use MacBookAir 9,1, the 16:9 resolution ratio and settings under that smbios is closer to our actual laptop displays resolution 1920 x 1080. You will also access be able to use the correct scaled resolutions in System Preferences > Displays, these resolutions are usually dictated by your edid as it has the resolutions in the edid or scaling info

 

MacbookPro16,2 uses the 16:10 ratio which comes with other settings as well. you can always use the display apple ID Injection property in nblue paried with used fixedid on your edid.bin to generate the properties you need to add in nblues info.plist

Edited by Mastachief
resolution info added
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

updated with Sequoia + lilu github code

idk if patched bytes changed in Sequoia

best chance is for whatevergreen since nblue is mostly ventura

 

 

 

including fresh lilu release build from github

 

 

Assuming whatevergreen code works for sequoia the needed patch is always the same

 

inside this function

AppleIntelFramebufferController::hwSetMode
          (AppleIntelFramebufferController *this,AppleIntelFramebuffer *param_1,
          AppleIntelDisplayPath *param_2,int param_3,IODetailedTimingInformationV2 *param_4)

 

the following code must be forced to execute (so patch must be done to force hwRegsNeedUpdate==0)

    cVar5 = hwRegsNeedUpdate(this,this_00,param_2,local_208,local_110,(SCALERPARAMS *)&local_70);
    this_01 = local_40;
    if (cVar5 == '\0') {
      cVar5 = paramsPFCompare(pAVar15,(SCALERPARAMS *)&local_70,
                              (SCALERPARAMS *)
                              (*(long *)&param_2[1].m_AppleIntelDisplayPath.field_0x1790 + 0x3c));
      pCVar3 = local_50;
      if (cVar5 == '\0') {
LAB_00061d4e:
        _DAT_00104fc8 = _DAT_00104fc8 + 1;
        _DAT_00100378 = _DAT_00100378 + 1;
        func_0xffffffffeb5b9318
                  (0,PTR_DAT_000eb0b0,0,
                   "[IGFB][LOG  ][%-10s] FB%d: Partial modeset by updating scaler\n","MODESET",
                   *(undefined4 *)&(this_00->m_AppleIntelFramebuffer).field_0x1d4);

 

only way todo it is get the kext from sequoia and patch the correct bytes

as proved this "fix" only works for some displays

this is devs only job. i'm just posting it here cause i can lose the code 

Edited by jalavoui
  • Like 2
Link to comment
Share on other sites

i try whatevergreen and lilu in my lenovo tigerlake,15itl6  , but recognize only video 7 mega of memory not 1536 Mega. i dont. know if is true ,associete whatvegreen master with noteblue.kext or noteblue -master.kext?or lily in your last post of jalavoui

 

Link to comment
Share on other sites

The patched bytes may have changed for WhenverGreen, its blackscreen (backlight off) while booting the Sequoia installer, I used the exact same EFI I use now while i created the 15.0 Beta installer and then added in the updated Whenvergreen + lilu that jala built.
 
In order to get proper logs i would need to install 15.0 Beta it in -igfxvesa mode then test out different edits to whenvergreen, im using Sonoma 14.4.1 as a daily driver, dont wanna redo this installation, since we know what to patch, it shouldnt be too hard when they get to Release Candidate, its all the other errors that i want to correct, im not that good with Programming, so trying to learn right now, arrays and case syntax is a headache. If i find a spare m.2 ill try.
 
Another way for logs could be using debug opencore with debugenhancer kext on the EFI USB, but it may be limited for what we want to do (run decomp kernelcache on the installed OS).

Edited by Mastachief
  • Like 2
Link to comment
Share on other sites

Hi all, where are you with the development I just did hackintosh on a laptop with i5 12500h, obviously the iris xe igpu doesn't work and I have -igfxvesa

(otherwise everything works: audio, lan, WiFi, bt, usb, trakpad) 

If you have a kext and igpu patch to try, feel free to send it. 

  • Like 1
Link to comment
Share on other sites

update to sequoia based on uploaded kexts from shl628

idk if whatevergreen remaining code will work

 

use lilu.kext release version from my latest post as it as sequoia support

 

	// AppleIntelFramebufferController::hwSetMode skip hwRegsNeedUpdate
	static const uint8_t f2[] = {0xE8, 0x31, 0xE5, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x3D};
	static const uint8_t r2[] = {0xE8, 0x31, 0xE5, 0xFF, 0xFF, 0x84, 0xC0, 0xEB, 0x3D};
	
	//sonoma
	static const uint8_t f2b[] = {0xE8, 0x54, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x5C};
	static const uint8_t r2b[] = {0xE8, 0x54, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0xeb, 0x5C};
	
	//sequoia
	static const uint8_t f2c[] = {0xE8, 0x74, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x5C};
	static const uint8_t r2c[] = {0xE8, 0x74, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0xeb, 0x5C};

	if (getKernelVersion() <= KernelVersion::Ventura) {
		KernelPatcher::LookupPatch patch { &kextIntelICLLPFb, f2, r2, sizeof(f2), 1 };
		patcher.applyLookupPatch(&patch);
	}
	
	if (getKernelVersion() == KernelVersion::Sonoma) {
	KernelPatcher::LookupPatch patchb { &kextIntelICLLPFb, f2b, r2b, sizeof(f2b), 1 };
	patcher.applyLookupPatch(&patchb);
	}
	
	if (getKernelVersion() >= KernelVersion::Sequoia) {
	KernelPatcher::LookupPatch patchc { &kextIntelICLLPFb, f2c, r2c, sizeof(f2c), 1 };
	patcher.applyLookupPatch(&patchc);
	}

 

WhateverGreen.kext.zipWhateverGreen-master.zip

 

 

devs only discussion:

 

- todo: create a mask for this patches

 

you guys should follow this work

https://github.com/joevt/WhateverGreen

i'm interested in the bundle patches as they seem hard to work on +ventura bundles that exist in or out of cache

 

and ofc i'm also interested on this

https://github.com/joevt/Lilu/commits/master/

i talked about this some time ago but i still enjoy reading the code comments

Edited by jalavoui
Link to comment
Share on other sites

6 hours ago, jalavoui said:

update to sequoia based on uploaded kexts from shl628

idk if whatevergreen remaining code will work

 

use lilu release version from above as it as sequoia support

todo: create a mask for this patches

	// AppleIntelFramebufferController::hwSetMode skip hwRegsNeedUpdate
	static const uint8_t f2[] = {0xE8, 0x31, 0xE5, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x3D};
	static const uint8_t r2[] = {0xE8, 0x31, 0xE5, 0xFF, 0xFF, 0x84, 0xC0, 0xEB, 0x3D};
	
	//sonoma
	static const uint8_t f2b[] = {0xE8, 0x54, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x5C};
	static const uint8_t r2b[] = {0xE8, 0x54, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0xeb, 0x5C};
	
	//sequoia
	static const uint8_t f2c[] = {0xE8, 0x74, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0x74, 0x5C};
	static const uint8_t r2c[] = {0xE8, 0x74, 0xEA, 0xFF, 0xFF, 0x84, 0xC0, 0xeb, 0x5C};

	if (getKernelVersion() <= KernelVersion::Ventura) {
		KernelPatcher::LookupPatch patch { &kextIntelICLLPFb, f2, r2, sizeof(f2), 1 };
		patcher.applyLookupPatch(&patch);
	}
	
	if (getKernelVersion() == KernelVersion::Sonoma) {
	KernelPatcher::LookupPatch patchb { &kextIntelICLLPFb, f2b, r2b, sizeof(f2b), 1 };
	patcher.applyLookupPatch(&patchb);
	}
	
	if (getKernelVersion() >= KernelVersion::Sequoia) {
	KernelPatcher::LookupPatch patchc { &kextIntelICLLPFb, f2c, r2c, sizeof(f2c), 1 };
	patcher.applyLookupPatch(&patchc);
	}

 

WhateverGreen.kext.zip 281.55 kB · 4 downloads WhateverGreen-master.zip 1.91 MB · 1 download

 

you guys should follow this work

https://github.com/joevt/WhateverGreen

i'm interested in the bundle patches as they seem hard to work on +ventura bundles that exist in or out of cache

 

and ofc i'm also interested on this

https://github.com/joevt/Lilu/commits/master/

i talked about this some time ago but i still enjoy reading the code comments

Explain, do you have to use this WhateverGreen and what igpu patch do you recommend? And lilu should use the version of the link you posted? 

 

At the moment I have monterey installed. 

Edited by lorys89
Link to comment
Share on other sites

Look back at my posts in this thread and see the platformid and device-ids I used......the updated whatevergreen is for use with sequoia, but you must use the updated lilu kept with it to make it work.

Link to comment
Share on other sites

Posted (edited)

no they are from old github version

if you wanna use Joevt version also use his lilu cause they are related

 

btw anyone tested the whatevergreen sequoia version i build ?

Edited by jalavoui
  • Like 2
Link to comment
Share on other sites

Posted (edited)
40 minutes ago, jalavoui said:

no they are from old github version

if you wanna use Joevt version also use his lilu cause they are related

 

btw anyone tested the whatevergreen sequoia version i build ?

i did, i was unable to get into the installer from it. I'm still having struggles figuring out the right iGPU device properties for my config.plist. i also still am struggling to fix my trackpad, i looked back at the posts where you posted your modified voodooi2c kext jala it's not there anymore.

Edited by benmacfreak
Link to comment
Share on other sites

Posted (edited)

@jalavoui Just tested with Sequioa Beta 1 using the lilu in this thread and the updated whatevergreen you built, it doesnt go to the black screen this time when booting verbose, instead it goes to the icon and loading bar, the loading bar has a blue tint around it, bit inside it is empty, it doesnt get filled with white like usual to show its loading, ill need some time to setup debug enhancer etc. i left it at that screen for like 5 minutes and nothing happened. You can watch the video to see the boot process in the meantime. Video disappears after two days.

 

https://streamable.com/68ay08

 

Sequioa 15.0

Build 24A5264n

Beta 1

 

b1a178cec4c2ccc04cfa17d076b33d28.jpg

 

 

 

 

Edited by Mastachief
Link to comment
Share on other sites

Posted (edited)

in install mode (or update) it might fail - i saw this in other drivers like nred in the past

 

better not to ativate it during install or update

 

does it work after install finish ?

 

to check the hang try boot with -v

Edited by jalavoui
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

I havent been able to do the sequoia install as of yet, however when i use the last whatevergreen posted with some small changes to the plist i got the following results. Sonoma 14.5

 

WhateverGreen.kext.zip

 

Screenshot2024-08-03at2_39_05PM.thumb.png.cfbc11e5e51f4f36d3365eb4fb81da84.png

 

 

Screenshot2024-08-03at2_39_20PM.thumb.png.0555a11cd7a18c9bab7734e35694890b.png

 

 

Screenshot2024-08-03at2_39_50PM.png.b47fe5008475735fc33f89cd3ffccf4c.png

 

 

 

 

Screenshot2024-08-03at2_44_45PM.thumb.png.1da795a4a662815d28ccb289e1465a8e.png

 

 

Screenshot2024-08-03at2_45_48PM.thumb.png.648e0fd734372ff7b1f14b73464002b4.png

Screenshot 2024-08-03 at 2.39.41 PM.png

Edited by Mastachief
  • Like 5
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...