Jump to content

Clover General discussion


ErmaC
30,157 posts in this topic

Recommended Posts

Hi Sherlocks.

I think we should add Sie DP1 patch. (With Yos data.) For those who wanted to install Sierra DP1 for debugging and more.

DP1? Maybe we can't get Sierra DP1 file now. DP1 is too old file in june 2016. Also we can boot from 10.12.0 official to 10.2.2 beta3 now.

 

Thanks

 

 

 

나의 LG-F410S 의 Tapatalk에서 보냄

  • Like 1
Link to comment
Share on other sites

Fixed now. I had clean code and remove something. Also i tested el capitan too. Wait

 

나의 LG-F410S 의 Tapatalk에서 보냄

@Slice

 

really sorry.

 

here is el capitan kext injection fix.

 

i made it from r3943.

 

tested el capitan by me. sierra too

 

thanks in advance

 

 

test please

 

Fixed now. I had clean code and remove something. Also i tested el capitan too. Wait

 

나의 LG-F410S 의 Tapatalk에서 보냄

@Slice

 

really sorry.

 

here is el capitan kext injection fix.

 

i made it from r3943.

 

tested el capitan by me. sierra too

 

thanks in advance

 

 

test please

 

hello

 

with that kext-injection in 3848 is working again in el capo

 

should be updated in clover code

 

thanks

  • Like 1
Link to comment
Share on other sites

DP1? Maybe we can't get Sierra DP1 file now. DP1 is too old file in june 2016. Also we can boot from 10.12.0 official to 10.2.2 beta3 now.

 

Thanks

 

 

 

나의 LG-F410S 의 Tapatalk에서 보냄

No. Still can. I know someone likes to make a bootable dmg installer w/ Clover (That is using `createinstallmedia` to make a bootable dmg then installer clover to make it a bootable one.) And for those who wants to install Sie DP1 may get trouble without the help of InjectKext.

  • Like 1
Link to comment
Share on other sites

No. Still can. I know someone likes to make a bootable dmg installer w/ Clover (That is using `createinstallmedia` to make a bootable dmg then installer clover to make it a bootable one.) And for those who wants to install Sie DP1 may get trouble without the help of InjectKext.

Okay. I finished kext_inject.c(i just comment it about Sierra DP1 in kext_inject.c).

 

I spent many commits in clover. I don't have plan now

 

If you can add DP1, you try and test and upload.

 

Thanks in advance

 

나의 LG-F410S 의 Tapatalk에서 보냄

  • Like 1
Link to comment
Share on other sites

Booting is working fine with 3949. Still can't get Clover to override the SMC version being injected by FakeSMC.

 

Not sure why it's not working, but I've gotten this far with editing the info.plist so I can just keep doing that.

Some desktop cant override rev. But clover log is fine. I saw other user in bug/report thread. I dont know exactly.

 

나의 LG-F410S 의 Tapatalk에서 보냄

  • Like 1
Link to comment
Share on other sites

Okay. I finished kext_inject.c(i just comment it about Sierra DP1 in kext_inject.c)

If you can add DP1, you try and test and upload.

 

나의 LG-F410S 의 Tapatalk에서 보냄

I think you can add it by yourself.  :P  Cuz for Sie DP1 just use KBEYos* and KBESie* is enough. And you can rename KBEYos* to avoid confusions. And no need for Sie DP1... But it can be absolutely successful with the help of KBEYos*.  :thumbsup_anim:

  • Like 1
Link to comment
Share on other sites

If anyone's interested, here's a IOReg & SMC key dump from a 13" MacBook Pro (Late 2016 with Touch Bar).

I will add in platformdata. Really thanks

 

나의 LG-F410S 의 Tapatalk에서 보냄

I think you can add it by yourself. Cuz for Sie DP1 just use KBEYos* and KBESie* is enough. And you can rename KBEYos* to avoid confusions. And no need for Sie DP1... But it can be absolutely successful with the help of KBEYos*. :thumbsup_anim:

Yes. I can.. But now, i have sorry Slice . I have many mistakes in commits.

 

나의 LG-F410S 의 Tapatalk에서 보냄

Link to comment
Share on other sites

I will add in platformdata. Really thanks

 

나의 LG-F410S 의 Tapatalk에서 보냄

Yes. I can.. But now, i have sorry Slice . I have many mistakes in commits.

 

나의 LG-F410S 의 Tapatalk에서 보냄

I think reverting back to r3590, which is a stable version for injecting kexts. Just for example. And to revert back then do code cleaning up may be better.

Link to comment
Share on other sites

Hi everyone. I've cleaned up the code of kext_inject.c and anyone could try if this works? Thanks.

 

attachicon.gifcleaned_up_kext_inject.c.zip

attachicon.gifCLOVERX64-r3949-InjectKext-Fixed.zip

 

PMheart

wrong code. el capitan can't boot.

 

if you divide code(yosemite, el capitan, dp1), important NumYos.

 

Mountain lion, Mavericks are no problem.because need only one binary patch. only enter NumML if you enter mavericks boot. So no need to divide ML and Mavericks

 

see more detail.

 

elseif (NumML == 1) {

Num = SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBEMLSearchExt, sizeof(KBEMLSearchExt), KBEMLReplaceExt, 1);

DBG_RT(Entry, "==> Mountain Lion: %d replaces done.\n", Num);

}

  • Like 1
Link to comment
Share on other sites

wrong code. el capitan can't boot.

 

if you divide code(yosemite, el capitan, dp1), important NumYos.

 

Mountain lion, Mavericks are no problem.because need only one binary patch. only enter NumML if you enter mavericks boot. So no need to divide ML and Mavericks

 

see more detail.

 

Yes. For ML or Mav the code is the same.

Ah... My bad. But it seems that you've fixed the bug of EC, right?  :)

Link to comment
Share on other sites

@Slice

 

i updated

cpu.c(support better model(broadwell, skylake),

platformdata.c(macbookpro13,2 thanks to TheRacerMaster, support better skylake),

kext_inject.c(PMheart ask me to add Sierra DP1) - i tested sierra and el capitan boot. kext_injection of other osx are no problem.

 

post-980913-0-75940500-1480164767_thumb.png

 

also i see clover defination of cpu models when changing cpu.c, there are cpu models in platform.h

 

long time a go, pike mentioned this

http://www.insanelymac.com/forum/topic/284656-clover-general-discussion/?p=2155846

 

i confimed this true. here is

https://github.com/opensource-apple/xnu/blob/27ffc00f33925b582391b1ef318b78b8bd3939d1/osfmk/i386/cpuid.h

 

i think we need to change name or something. your fakesmc version has same cpu defination.

 

thanks in advance. have a nice day :)

update commit.zip

Link to comment
Share on other sites

@Slice

 

i updated

cpu.c(support better model(broadwell, skylake),

platformdata.c(macbookpro13,2 thanks to TheRacerMaster, support better skylake),

kext_inject.c(PMheart ask me to add Sierra DP1) - i tested sierra and el capitan boot. kext_injection of other osx are no problem.

 

attachicon.gif스크린샷 2016-11-26 오후 9.55.29.png

 

also i see clover defination of cpu models when changing cpu.c, there are cpu models in platform.h

 

long time a go, pike mentioned this

http://www.insanelymac.com/forum/topic/284656-clover-general-discussion/?p=2155846

 

i confimed this true. here is

https://github.com/opensource-apple/xnu/blob/27ffc00f33925b582391b1ef318b78b8bd3939d1/osfmk/i386/cpuid.h

 

i think we need to change name or something. your fakesmc version has same cpu defination.

 

thanks in advance. have a nice day :)

  else if (NumYos == 1) {                                                                                                         // To divide Yosemite and El Capitan and Sierra DP1.
        if (NumYos == 1 && NumEC != 1 && NumSie != 1) {
            Num = SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBEYosSearch, sizeof(KBEYosSearch), KBEYosReplace, 1);
            DBG_RT(Entry, "==> kernel Yosemite: %d replaces done.\n", Num);
        }
        else if (NumYos == 1 && NumEC == 1 && NumSie != 1) {
            Num = SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBEYosSearch, sizeof(KBEYosSearch), KBEYosReplace, 1) +
                  SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBEECSearch, sizeof(KBEECSearch), KBEECReplace, 1);
            DBG_RT(Entry, "==> kernel El Capitan: %d replaces done.\n", Num);
        }
        else if (NumYos == 1 && NumEC != 1 && NumSie == 1)  {
            Num = SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBEYosSearch, sizeof(KBEYosSearch), KBEYosReplace, 1) +
                  SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBESieSearch, sizeof(KBESieSearch), KBESieReplace, 1);
            DBG_RT(Entry, "==> kernel Sierra DP1: %d replaces done.\n", Num);
        }
  }
  else if (NumSie == 1) {
      Num = SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBESieSearch, sizeof(KBESieSearch), KBESieReplace, 1) +
            SearchAndReplace(Kernel, KERNEL_MAX_SIZE, KBESie1Search, sizeof(KBESie1Search), KBESie1Replace, 1);
      DBG_RT(Entry, "==> kernel Sierra: %d replaces done.\n", Num);
  }

I see what you did. Maybe a better way. Thanks.

  • Like 1
Link to comment
Share on other sites

what is your smbios setting? macpro6,1? i wonder your smbios setting. just remove smbios or not in config.plst.

 

if you change imac, ismc rev override good?

 

I've tried on two of my hacks: MBP9,1 and MP5,1. In both cases the default FakeSMC version is displayed. The Z68 is still running MP3,1 so there's no point trying on that one.

Link to comment
Share on other sites

Here you go.

 

i see more info.

my laptop has 

 

 

 

0:389  0:000  === [ PutNvramPlistToRtVars ] =============================
0:389  0:000   Adding Key: EFILoginHiDPI: Size = 4, Data: 00 00 00 00 
0:389  0:000   Skipping EmuVariableUefiPresent
0:389  0:000   Adding Key: SystemAudioVolume: Size = 1, Data: 2E 
0:389  0:000   Adding Key: SystemAudioVolumeDB: Size = 1, Data: E4 
0:389  0:000   Adding Key: backlight-level: Size = 2, Data: FF FF 
0:389  0:000   Adding Key: bluetoothActiveControllerInfo: Size = 16, Data: 7A E0 89 04 00 00 00 00 50 14 AC D1 B8 E2 A4 D0 
0:389  0:000   Adding Key: bootercfg: Size = 2, Data: 28 00 
0:389  0:000   Adding Key: csr-active-config: Size = 4, Data: 67 00 00 00 
0:389  0:000   Adding Key: fakesmc-key-#KEY-ui32: Size = 4, Data: 00 00 00 2D 
0:389  0:000   Adding Key: fakesmc-key-$Adr-ui32: Size = 4, Data: 00 00 03 00 
0:389  0:000   Adding Key: fakesmc-key-$Num-ui8: Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-$Num-ui8 : Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-BATP-flag: Size = 1, Data: 00 
0:389  0:000   Adding Key: fakesmc-key-BBIN-ui8: Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-BBIN-ui8 : Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-BEMB-flag: Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-BNum-ui8: Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-BNum-ui8 : Size = 1, Data: 01 
0:389  0:000   Adding Key: fakesmc-key-CLKH-{clh: Size = 8, Data: 00 00 70 80 00 01 19 40 
0:389  0:000   Adding Key: fakesmc-key-CLKT-ui32: Size = 4, Data: 00 01 34 3C 
0:390  0:000   Adding Key: fakesmc-key-EPCI-ui32: Size = 4, Data: 09 20 F0 00 
0:390  0:000   Adding Key: fakesmc-key-HI0N-ui8: Size = 1, Data: 0F 
0:390  0:000   Adding Key: fakesmc-key-HI0N-ui8 : Size = 1, Data: 0F 
0:390  0:000   Adding Key: fakesmc-key-HI1N-ui8: Size = 1, Data: 0F 
0:390  0:000   Adding Key: fakesmc-key-HI1N-ui8 : Size = 1, Data: 0F 
0:390  0:000   Adding Key: fakesmc-key-LDSP-ui8: Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-MSAc-ui16: Size = 2, Data: 00 00 
0:390  0:000   Adding Key: fakesmc-key-MSDW-ui8: Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-MSDW-ui8 : Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-MSFW-ui8: Size = 2, Data: 01 00 
0:390  0:000   Adding Key: fakesmc-key-MSFW-ui8 : Size = 2, Data: 01 00 
0:390  0:000   Adding Key: fakesmc-key-MSLD-ui8: Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSLD-ui8 : Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSPC-ui8: Size = 1, Data: 0E 
0:390  0:000   Adding Key: fakesmc-key-MSPC-ui8 : Size = 1, Data: 0E 
0:390  0:000   Adding Key: fakesmc-key-MSPS-ui16: Size = 2, Data: 00 03 
0:390  0:000   Adding Key: fakesmc-key-MSTS-ui8: Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSTS-ui8 : Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSTc-ui8: Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSTc-ui8 : Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSWr-ui8: Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-MSWr-ui8 : Size = 1, Data: 19 
0:390  0:000   Adding Key: fakesmc-key-NATJ-ui8: Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-NATJ-ui8 : Size = 1, Data: 00 
0:390  0:000   Adding Key: fakesmc-key-NATi-ui16: Size = 2, Data: 00 00 
0:390  0:000   Adding Key: fakesmc-key-NTOK-ui8: Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-NTOK-ui8 : Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-QENA-ui8: Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-QENA-ui8 : Size = 1, Data: 01 
0:390  0:000   Adding Key: fakesmc-key-RBr -ch8*: Size = 8, Data: 6A 37 39 00 00 00 00 00 
0:390  0:000   Adding Key: fakesmc-key-REV -ch8*: Size = 6, Data: 02 38 0F 00 00 05 
0:390  0:000   Adding Key: fakesmc-key-RMde-char: Size = 1, Data: 41 
0:390  0:000   Adding Key: fakesmc-key-RPlt-ch8*: Size = 8, Data: 6A 37 39 00 00 00 00 00 
0:390  0:000   Adding Key: flagstate: Size = 32, Data: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0:390  0:000   Adding Key: intel-backlight-level: Size = 4, Data: C0 03 00 00 
0:390  0:000   Adding Key: prev-lang:kbd: Size = 4, Data: 44 54 2D 35 
0:390  0:000   Adding Key: security-mode: String: Size = 4, Val = 'none'
0:390  0:000  === [ InitTheme ] =========================================
0:390  0:000  Using theme 'bootcamp' (EFI\CLOVER\themes\bootcamp)
0:390  0:000  Warning! Character width 9 should be even!
0:390  0:000  Loading font from ThemeDir: Error
0:391  0:000  Choosing theme bootcamp
0:391  0:000  after NVRAM boot-args=dart=0 kext-dev-mode=1
0:391  0:000  === [ Dump SMC keys from NVRAM ] ==========================
0:391  0:000  found AppleSMC protocol
0:392  0:000     fakesmc-key-#KEY-ui32:00 00 00 2D 
0:392  0:000     fakesmc-key-$Adr-ui32:00 00 03 00 
0:392  0:000     fakesmc-key-$Num-ui8:01 
0:392  0:000     fakesmc-key-$Num-ui8 :01 
0:392  0:000     fakesmc-key-BATP-flag:00 
0:392  0:000     fakesmc-key-BBIN-ui8:01 
0:392  0:000     fakesmc-key-BBIN-ui8 :01 
0:392  0:000     fakesmc-key-BEMB-flag:01 
0:392  0:000     fakesmc-key-BNum-ui8:01 
0:392  0:000     fakesmc-key-BNum-ui8 :01 
0:392  0:000     fakesmc-key-CLKH-{clh:00 00 70 80 00 01 19 40 
0:392  0:000     fakesmc-key-CLKT-ui32:00 01 34 3C 
0:392  0:000     fakesmc-key-EPCI-ui32:09 20 F0 00 
0:392  0:000     fakesmc-key-HI0N-ui8:0F 
0:392  0:000     fakesmc-key-HI0N-ui8 :0F 
0:392  0:000     fakesmc-key-HI1N-ui8:0F 
0:392  0:000     fakesmc-key-HI1N-ui8 :0F 
0:392  0:000     fakesmc-key-LDSP-ui8:01 
0:392  0:000     fakesmc-key-MSAc-ui16:00 00 
0:392  0:000     fakesmc-key-MSDW-ui8:01 
0:392  0:000     fakesmc-key-MSDW-ui8 :01 
0:392  0:000     fakesmc-key-MSFW-ui8:01 00 
0:392  0:000     fakesmc-key-MSFW-ui8 :01 00 
0:392  0:000     fakesmc-key-MSLD-ui8:00 
0:392  0:000     fakesmc-key-MSLD-ui8 :00 
0:392  0:000     fakesmc-key-MSPC-ui8:0E 
0:392  0:000     fakesmc-key-MSPC-ui8 :0E 
0:392  0:000     fakesmc-key-MSPS-ui16:00 03 
0:392  0:000     fakesmc-key-MSTS-ui8:00 
0:392  0:000     fakesmc-key-MSTS-ui8 :00 
0:392  0:000     fakesmc-key-MSTc-ui8:00 
0:392  0:000     fakesmc-key-MSTc-ui8 :00 
0:392  0:000     fakesmc-key-MSWr-ui8:00 
0:392  0:000     fakesmc-key-MSWr-ui8 :19 
0:392  0:000     fakesmc-key-NATJ-ui8:00 
0:392  0:000     fakesmc-key-NATJ-ui8 :00 
0:392  0:000     fakesmc-key-NATi-ui16:00 00 
0:392  0:000     fakesmc-key-NTOK-ui8:01 
0:392  0:000     fakesmc-key-NTOK-ui8 :01 
0:392  0:000     fakesmc-key-QENA-ui8:01 
0:392  0:000     fakesmc-key-QENA-ui8 :01 
0:392  0:000     fakesmc-key-RBr -ch8*:6A 37 39 00 00 00 00 00 
0:392  0:000     fakesmc-key-REV -ch8*:02 38 0F 00 00 05 
0:392  0:000     fakesmc-key-RMde-char:41 
0:392  0:000     fakesmc-key-RPlt-ch8*:6A 37 39 00 00 00 00 00 
0:392  0:000  === [ ScanLoader ] ========================================

 

 

but your laptop has only one

 

 

 

0:870  0:000  === [ InitTheme ] =========================================

0:870  0:000   using embedded theme
0:871  0:000  Using embedded font: Success
0:871  0:000  Choosing theme <null string>
0:871  0:000  after NVRAM boot-args=
0:871  0:000  === [ Dump SMC keys from NVRAM ] ==========================
0:871  0:000  found AppleSMC protocol
0:883  0:011     fakesmc-key-NATi-ui16:00 00 
0:884  0:000     fakesmc-key-NATJ-ui8:00 
0:887  0:003     fakesmc-key-MSDW-ui8:00 
0:889  0:001     fakesmc-key-#KEY-ui32:00 00 00 19 
0:889  0:000     fakesmc-key-$Adr-ui32:00 00 03 00 
0:890  0:000     fakesmc-key-$Num-ui8:01 
0:891  0:000     fakesmc-key-RMde-char:41 
0:892  0:001     fakesmc-key-RPlt-ch8*:6A 33 30 00 00 00 00 00 
0:893  0:000     fakesmc-key-RBr -ch8*:6A 33 30 00 00 00 00 00 
0:894  0:000     fakesmc-key-EPCI-ui32:06 60 07 00 
0:895  0:000     fakesmc-key-REV -ch8*:02 01 0F 00 01 75 
0:896  0:000     fakesmc-key-BEMB-flag:01 
0:896  0:000     fakesmc-key-BATP-flag:00 
0:897  0:000     fakesmc-key-BNum-ui8:01 
0:898  0:000     fakesmc-key-BBIN-ui8:01 
0:899  0:000     fakesmc-key-MSTc-ui8:00 
0:899  0:000     fakesmc-key-MSAc-ui16:00 00 
0:900  0:000     fakesmc-key-MSLD-ui8:00 
0:901  0:000     fakesmc-key-MSWr-ui8:00 
0:902  0:000     fakesmc-key-MSPS-ui16:00 03 
0:903  0:000     fakesmc-key-NTOK-ui8:01 
0:903  0:000     fakesmc-key-CLKT-ui32:00 00 DD EC 
0:904  0:000     fakesmc-key-CLKH-{clh:00 00 70 80 00 01 19 40 
0:905  0:000     fakesmc-key-HI0N-ui8:0E 
0:906  0:001     fakesmc-key-MSFW-ui8:01 00 

 

 

as result, your laptop need 

0:389  0:000  === [ PutNvramPlistToRtVars ] =============================

 

can you try to add EmuVariableUefi.efi?

here is efi list in my laptop

 

0:107  0:000  === [ LoadDrivers ] =======================================

0:108  0:000  Loading AppleImageCodec-64.efi  status=Success
0:111  0:003  Loading AppleKeyAggregator-64.efi  status=Success
0:114  0:002  Loading AppleUITheme-64.efi  status=Success
0:118  0:003  Loading DataHubDxe-64.efi  status=Success
0:125  0:007  Loading EmuVariableUefi-64.efi  status=Success
0:127  0:002  EmuVariableUefi Initialize: VariableCommonInitialize = Success, orig services stored, install gEmuVariableControlProtocolGuid = Success
0:128  0:000  Loading FirmwareVolume-64.efi  status=Success
0:131  0:003  Loading FSInject-64.efi  status=Success
0:134  0:003  Loading HFSPlus.efi  status=Success
0:137  0:002   - driver needs connecting
0:137  0:000  Loading OsxAptioFix2Drv-64.efi  status=Success
0:139  0:002  Loading OsxFatBinaryDrv-64.efi  status=Success
0:142  0:002  Loading SMCHelper-64.efi  status=Success
0:145  0:002  1 drivers needs connecting ...
0:145  0:000  PlatformDriverOverrideProtocol->GetDriver overriden
0:145  0:000  HFS+ driver loaded
0:145  0:000  Searching for invalid DiskIo BY_DRIVER connects: not found, all ok
0:316  0:170  EmuVariable InstallEmulation: orig vars copied, emu.var.services installed, CreateEvent VirtualAddressChange = Success, CreateEvent ExitBootServices = Success, set Status=Success

Yeah it shows 1.30f3 in IOReg as well.

 

It doesn't matter, I'll just stick with my edited info.plist.

 

 i'm searching PutNvramPlistToRtVars.

 

can you try to add EmuVariableUefi.efi?

and give me clover log and nvram -p in terminal

 

thanks

Link to comment
Share on other sites

×
×
  • Create New...