I need to compile IOGraphicsFamily.kext from source code and I am looking for a script that makes life easier. It should download the latest source code, and other required sub-projects, and then compile it. Not that I am lazy, but can you help me out? I don’t like to re-invent the wheel 😉
You can modify this script to download & compile from latest tarball Pike
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mtoc.new.sh
hosted with ❤ by GitHub
Thank you! Happen to have one for the XNU kernel as well?
I hope that someone else can change that script for me – and other people – as I do not have the time for it. In fact I don’t have time for anything right now.
Is this what you need? Builds the xnu for Sierra (xnu-3789.1.32)
https://www.dropbox.com/s/lsy0h8ys62vs86j/xnu-builder-3789.1.32.zip?dl=0
Getting close to what I have in mind, but libdispatch isn’t building anything so where is libfirehose_kernel*.a coming from?
That should have the built libdispatch in there. It should copy/install it to the correct folders and build it. At least it does on my system but I already had dtrace and AvailabilityVersions installed.
I’ll run the script later today, but right now I only have a couple of pre-compiled files in there.
Yeah the script installs dtrace and AvailabilityVersions then copies the libdispatch files into the correct location then starts to build the xnu.
Hi Pike, is there a way to solve an nvme data corrupted issue on Dell XPS (Skylake) series? When sleep the laptop for just a while, the filesystem corrupted and we cannot boot macOS. We tried to use Disk Utility to fix the file system, but failed. It’s a very known issue on XPS (Skylake), could you please show some light on this issue?
P.S. One of my friend with XPS 15 9550 has successfully snapped verbose photos after data corrupted:
Again, thanks for the nvme patches you’ve invented, which make impossible into possible. Thank you!
syscl
I don’t see a single debug message related to the IONVMe driver. How do you know that this is caused by the NVMe driver? What NVMe SSD module is installed? Has anyone installed the module in another PC, to see if it works there?
Hi Pike,
Here’s some Dell XPS laptops that experienced data corrupted:
1. XPS 15(9550) + Samsung PM951
2. XPS 15(9550) + Toshiba XG3
3. XPS 13(9350) + Toshiba XG3
4. XPS 13(9350) + Sk Hynix
…
5. And some are in https://www.tonymacx86.com/threads/guide-dell-xps-13-9350-macos-10-12-1.204730/page-8 and https://github.com/syscl/XPS9350-macOS/issues/26
6. Some data corrupt examples were in tonymacx86 in XPS 15 9550 thread, but the author has sadly been banned
We tried to find out what cause the problem by:
1. We first disabled HWP then reinstall the macOS 10.12.2 with ssdtPRGen.sh – data corrupted someday
2. We installed 10.11.6 and 10.12.2 to see if it’s related to latest system – data corrupted on both El Captain and Sierra
…
We have no idea what’s wrong. But we summary all this data corrupted occurred after sleep:
– Data lose on both short period or long period of sleep
– But not every sleep causes data lose.
– One of the signal that the partition of macOS corrupted is a lot of applications report crash, when we reboot, the worst thing happen, we can’t boot into the system anymore(verbose: MACH Reboot)
– …
@darkhandz(https://github.com/darkhandz/XPS15-9550-Sierra/commit/72f63339ff088dabe2bc9281b5f1a3dbe181ad31) is the one that successfully captured this log after data corrupted(because the reboot progress is too fast for us to capture something). And we can’t boot into the system to see the log anymore, which like macOS play with us.
Tell me if you need any other information:) Thank you!
syscl
Ok, but his first image is made during a boot, and then anything may have happened already.
What I would do in this case is to write the log to: /var/log/system.log (or whatever path/filename you like) on another drive (with –debug and –info) with the patched IONVMeFamily.kext from a developer Beta version. The latter writes errors to the log. Stuff that I need to know about. But this should be done before it goes to sleep, and when it boots.
Edit: Don’t use Disk Utility to fix errors. Try DiskWarrior. Worked for me when I needed it (during development of the patches).
Hi Pike,
Do you mean before sleep, use log command in terminal to log out the information?
I will let people with XPS (Skylake model) to do what you suggest and give feed back you want. And, I will let use DiskWarrior instead.
Thank you!
syscl
Sorry. I wasn’t clear enough in my previous comments. What you want is a script that writes the log data to a file, just like there is one to write the NVRAM contents to a file.
You can use:
date "+%Y-%m-%d %H:%M:%S"
to set a filename and use it for log argument –startAdding:
-v -5M
will show the log from the actual time, minus 5 minutes. That should be enough.Hi, I’ve wrote a program to log the mac’s log(https://github.com/syscl/maclog), and inside the program, this program actually calls
log show –predicate ‘process == “kernel” OR eventMessage CONTAINS “kernel”‘ –style syslog –source –info –start $(date “+%Y-%m-%d”)
Is this command line OK?
Thanks you!
syscl
Hi Pike, I have boot glitch on startup. I tried for IOGraphicsFamily kext to patch but it doesn’t help me? Last one Rehabman gives me and he said this is the correct one but I am still getting glitch. How should I correct one? I attached my ioreg and Clover Folder could you please help me with that?
[img]http://i.imgur.com/dI0Y6gm.png[/img]
[img]http://i.imgur.com/pc7FMss.png[/img]
This is the last one I tired;
Comment: Boot graphics glitch, 10.12.dp1 (credit denskop)
Find:
Replace:
https://app.box.com/s/lyuaq5zr10wx3hpwhulvez2sdyz3mfnw