Contribute
Register

Ask RehabMan FakeSMC Question

Status
Not open for further replies.
There are so many materials on HP ProBooks, does which means HP ProBooks is the best hackintosh platform at least in your eye??
 
There are so many materials on HP ProBooks, does which means HP ProBooks is the best hackintosh platform at least in your eye??

Every hacked laptop has its issues. None are perfect. The "best one" is the one with issues that you specifically don't care about.

The supported ProBooks are "easy" because of complete and detailed guides plus the ProBook Installer.
 
@RehabMan, the FakeSMC.kext from your RehabMan-FakeSMC-2017-1017.zip distribution works splendid on my X299 system under 10.13.1. However, I am not able to find the respective source distribution. Any other FakeSMC.kext compiled from any available FakeSMC/HWSensor/HWMonitor source distribution would prevent my system from boot.

IMG_9294.JPG

We would urgently need the respective source distribution for RehabMan-FakeSMC-2017-1017.zip (171017, build 6.26-322-g1b20eab7.1765), in order to implement all necessary changes for successfully running X299 HWSensor kexts..

Some quick feedback would be extremely appreciated.

Cheers,

KGP
 
@RehabMan, the FakeSMC.kext from your RehabMan-FakeSMC-2017-1017.zip distribution works splendid on my X299 system under 10.13.1. However, I am not able to find the respective source distribution. Any other FakeSMC.kext compiled from any available FakeSMC/HWSensor/HWMonitor source distribution would prevent my system from boot.

View attachment 295196

We would urgently need the respective source distribution for RehabMan-FakeSMC-2017-1017.zip (171017, build 6.26-322-g1b20eab7.1765), in order to implement all necessary changes for successfully running X299 HWSensor kexts..

Some quick feedback would be extremely appreciated.

Cheers,

KGP

Sources are here:
https://github.com/RehabMan/OS-X-FakeSMC-kozlek
 

And you are sure that this is the source with which you compiled RehabMan-FakeSMC-2017-1017.zip?

The Info.plist of the FakeSMC compiled from https://github.com/RehabMan/OS-X-FakeSMC-kozlek is quite different from the Info.plist of the FakeSMC contained in RehabMan-FakeSMC-2017-1017.zip. See attached files.

The FakeSMC compiled from source prevents my system from boot (see post #5 above)

Maybe Xcode Version 9.1 (9B55) compiler issues under 10.13.1?

I use the following 3 terminal commands:

Code:
xcodebuild -project Versioning\ And\ Distribution.xcodeproj/
Code:
xcodebuild -project HWMonitor.xcodeproj/
Code:
xcodebuild -project HWSensors.xcodeproj -alltargets

When compiling Versioning And Distribution.xcodeproj, I get the following error but the build succeeds:

Code:
Last project revision:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git

** BUILD SUCCEEDED **

The compilation of HWMonitor.xcodeproj works without issues.

However, for the compilation of HWSensors.xcodeproj, I have to do the following:

The compiler complains about a missing 10.8 sdk. Therefore I open the HWSensors.xcodeproj with Xcode and change the Base SDK for all products (see figure below) to 10.13. After this, I am able to compile HWSensors.xcodeproj without issues. The resulting FakeSMC attached below however prevents my system from booting. As mentioned above, it also deviates from the FakeSMC contained in RehabMan-FakeSMC-2017-1017.zip

changes.png


How to fix this issue?
 

Attachments

  • FakeSMC-working-171017.kext.zip
    35.5 KB · Views: 63
  • FakeSMC-Source-280917.kext.zip
    33.2 KB · Views: 65
And you are sure that this is the source with which you compiled RehabMan-FakeSMC-2017-1017.zip?

The Info.plist of the FakeSMC compiled from https://github.com/RehabMan/OS-X-FakeSMC-kozlek is quite different from the Info.plist of the FakeSMC contained in RehabMan-FakeSMC-2017-1017.zip. See attached files.

The FakeSMC compiled from source prevents my system from boot (see post #5 above)

Maybe Xcode Version 9.1 (9B55) compiler issues under 10.13.1?

I use the following 3 terminal commands:

Code:
xcodebuild -project Versioning\ And\ Distribution.xcodeproj/
Code:
xcodebuild -project HWMonitor.xcodeproj/
Code:
xcodebuild -project HWSensors.xcodeproj -alltargets

When compiling Versioning And Distribution.xcodeproj, I get the following error but the build succeeds:

Code:
Last project revision:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git

** BUILD SUCCEEDED **

The compilation of HWMonitor.xcodeproj works without issues.

However, for the compilation of HWSensors.xcodeproj, I have to do the following:

The compiler complains about a missing 10.8 sdk. Therefore I open the HWSensors.xcodeproj with Xcode and change the Base SDK for all products (see figure below) to 10.13. After this, I am able to compile HWSensors.xcodeproj without issues. The resulting FakeSMC attached below however prevents my system from booting. As mentioned above, it also deviates from the FakeSMC contained in RehabMan-FakeSMC-2017-1017.zip

View attachment 295210

How to fix this issue?

You cannot compare source for Info.plist to Info.plist in a built kext. There are translations that the build process does.
Builds are done with 'make'.
Look at the 'makefile'.
You must add the 10.8 SDK to Xcode. I keep old SDKs in /Applications/LegacySDKs:
Code:
NUC6i7KYK:Clover rehabman$ ls -l /Applications/LegacySDKs/
total 0
drwxr-xr-x  6 rehabman  staff  204 Oct 25 13:53 MacOSX10.10.sdk
drwxr-xr-x@ 6 rehabman  admin  204 Oct 25 13:53 MacOSX10.11.sdk
drwxr-xr-x  5 rehabman  staff  170 Oct  6  2014 MacOSX10.12.sdk
drwxr-xr-x  8 rehabman  admin  272 Oct 25 13:53 MacOSX10.6.sdk
drwxr-xr-x  7 rehabman  staff  238 Oct 25 13:53 MacOSX10.7.sdk
drwxr-xr-x@ 6 rehabman  admin  204 Oct 25 13:53 MacOSX10.8.sdk
drwxr-xr-x  6 rehabman  staff  204 Oct 25 13:53 MacOSX10.9.sdk

And I have a script that sets up symlinks for those SDKs and modifies the Xcode plist to allow them, legacysdks.sh:
Code:
#!/bin/bash
osxplatform=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
sdkrepo=$osxplatform/Developer/SDKs/
infoplist=$osxplatform/Info.plist
for sdk in /Applications/LegacySDKs/*.sdk; do
   sudo ln -s $sdk $sdkrepo`basename $sdk`
done
ls -l $sdkrepo
 
You cannot compare source for Info.plist to Info.plist in a built kext. There are translations that the build process does.
Builds are done with 'make'.
Look at the 'makefile'.
You must add the 10.8 SDK to Xcode. I keep old SDKs in /Applications/LegacySDKs:
Code:
NUC6i7KYK:Clover rehabman$ ls -l /Applications/LegacySDKs/
total 0
drwxr-xr-x  6 rehabman  staff  204 Oct 25 13:53 MacOSX10.10.sdk
drwxr-xr-x@ 6 rehabman  admin  204 Oct 25 13:53 MacOSX10.11.sdk
drwxr-xr-x  5 rehabman  staff  170 Oct  6  2014 MacOSX10.12.sdk
drwxr-xr-x  8 rehabman  admin  272 Oct 25 13:53 MacOSX10.6.sdk
drwxr-xr-x  7 rehabman  staff  238 Oct 25 13:53 MacOSX10.7.sdk
drwxr-xr-x@ 6 rehabman  admin  204 Oct 25 13:53 MacOSX10.8.sdk
drwxr-xr-x  6 rehabman  staff  204 Oct 25 13:53 MacOSX10.9.sdk

And I have a script that sets up symlinks for those SDKs and modifies the Xcode plist to allow them, legacysdks.sh:
Code:
#!/bin/bash
osxplatform=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
sdkrepo=$osxplatform/Developer/SDKs/
infoplist=$osxplatform/Info.plist
for sdk in /Applications/LegacySDKs/*.sdk; do
   sudo ln -s $sdk $sdkrepo`basename $sdk`
done
ls -l $sdkrepo


Well I don't know if I set things properly:

a.) downloaded xcode_5.1.1.dmg
b.) opened xcode_5.1.1.dmg with Pacifist and extracted the MacOSX10.8.sdk directory.
c.) copied the MacOSX10.8.sdk directory to /Applications/LegacySDKs/
d.) executed your legacysdks.sh
Code:
./legacysdks.sh
Password:
ln: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/MacOSX10.8.sdk: File exists
total 0
drwxr-xr-x  7 root  wheel  224 Nov 27 16:53 MacOSX.sdk
lrwxr-xr-x  1 root  wheel   10 Sep 20 06:48 MacOSX10.13.sdk -> MacOSX.sdk
lrwxr-xr-x  1 root  wheel   39 Nov 27 17:17 MacOSX10.8.sdk -> /Applications/LegacySDKs/MacOSX10.8.sdk
[iMac:~/Desktop] kgp%
e.) changed to the OS-X-FakeSMC-kozlek-master directory and executed "make" in the terminal
f.) All builds succeeded.. But I do only find HWMonitor.app in /build/Products/Release/. There are no Sensor and FakeSMC kexts.

This thing is driving me slightly mad... :crazy:o_O:lol:

What I am doing wrong at this state?
 
Well I don't know if I set things properly:

a.) downloaded xcode_5.1.1.dmg
b.) opened xcode_5.1.1.dmg with Pacifist and extracted the MacOSX10.8.sdk directory.
c.) copied the MacOSX10.8.sdk directory to /Applications/LegacySDKs/
d.) executed your legacysdks.sh
Code:
./legacysdks.sh
Password:
ln: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/MacOSX10.8.sdk: File exists
total 0
drwxr-xr-x  7 root  wheel  224 Nov 27 16:53 MacOSX.sdk
lrwxr-xr-x  1 root  wheel   10 Sep 20 06:48 MacOSX10.13.sdk -> MacOSX.sdk
lrwxr-xr-x  1 root  wheel   39 Nov 27 17:17 MacOSX10.8.sdk -> /Applications/LegacySDKs/MacOSX10.8.sdk
[iMac:~/Desktop] kgp%
e.) changed to the OS-X-FakeSMC-kozlek-master directory and executed "make" in the terminal
f.) All builds succeeded.. But I do only find HWMonitor.app in /build/Products/Release/. There are no Sensor and FakeSMC kexts.

This thing is driving me slightly mad... :crazy:o_O:lol:

What I am doing wrong at this state?

I'm currently building with Xcode 8.3.3 or Xcode 9.1.
The set of legacy SDKs you have in /Applications/LegacySDKs will depend on which version of Xcode you're using (eg. which SDKs not present natively).
To find your build products more easily, change Xcode->Preferences->Locations->Advanced->Custom "Relative to Workspace".
 
Status
Not open for further replies.
Back
Top