Open SebaARG opened 7 years ago
Can you run the script with bash -x ./GA-Z77X.sh --update
and post the output?
This is the output:
set -e
set -u
gScriptVersion=2.0.9
gStyleReset='\e[0m'
gStyleBold='\e[1m'
gStyleUnderlined='\e[4m'
gColorBlack='\e[1m'
gColorRed='\e[1;31m'
gColorGreen='\e[32m'
gColorDarkYellow='\e[33m'
gColorMagenta='\e[1;35m'
gColorPurple='\e[35m'
gColorCyan='\e[36m'
gColorBlue='\e[1;34m'
gColorOrange='\e[31m'
gColorGrey='\e[37m' +++ dirname ./GA-Z77X.sh ++ cd . ++ pwd
gRepo='/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install' ++ id -u
gID=501 ++ sw_vers -productVersion ++ awk -F . '{print $1 "." $2}'
gOSVersion=10.12 ++ sysctl -n machdep.cpu.brand_string ++ cut -d - -f 2 ++ cut -c 1
gCoreBridgeType=3
gProductName=iMac13,2
'[' 1 -eq 1 ']'
case "$1" in
git_update
cd '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install'
git pull
check_macos_version
case $gOSVersion in
check_motherboard ++ ioreg -k OEMBoard -p IODeviceTree ++ awk '/OEMBoard/ {print $4}' ++ tr -d '<"">'
local motherboard=Z77X-UD5H
case $motherboard in
gMotherboard=Z77X-UD5H
gLayoutID=3
check_root ++ id -u
'[' 501 -ne 0 ']'
printf 'This part of the script %bneeds%b to be run as root.\n' '\e[1m' '\e[0m' This part of the script needs to be run as root.
sudo clear Password:
install 1 ++ '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/acpi/build/tools/mount_efi'
gEFIMount=/Volumes/EFI ++ date '+%Y-%m-%d %Hh %Mm %Ss'
local 'date=2017-07-23 12h 08m 25s'
'[' 1 -eq 1 ']'
print_header '\e[1m--update: \e[32mUpdating Clover & kexts\e[0m' ++ echo Z77X-UD5H ++ cut -d - -f 1
local boardSeries=Z77X ++ echo UD5H
local board=UD5H
clear
echo 'Gigabyte GA-Z77X Series Post-Install Script v2.0.9 by theracermaster' Gigabyte GA-Z77X Series Post-Install Script v2.0.9 by theracermaster
printf 'Updates & info: %bhttps://github.com/theracermaster/Gigabyte-GA-Z77X-macOS-Install%b\n' '\e[4m' '\e[0m' Updates & info: https://github.com/theracermaster/Gigabyte-GA-Z77X-macOS-Install
printf 'Detected motherboard: Gigabyte %bGA-%s-%b%s%b\n' '\e[1m' Z77X '\e[36m' UD5H '\e[0m' Detected motherboard: Gigabyte GA-Z77X-UD5H
printf 'Script arguments: ./GA-Z77X.sh \e[1m--update: \e[32mUpdating Clover & kexts\e[0m\n' Script arguments: ./GA-Z77X.sh --update: Updating Clover & kexts
mkdir -p '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/backups/EFI (2017-07-23 12h 08m 25s)'
cp -R /Volumes/EFI/EFI/ '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/backups/EFI (2017-07-23 12h 08m 25s)'
printf '%bCurrent EFI folder copied to:%b %bbackups/EFI (2017-07-23 12h 08m 25s)%b\n' '\e[1m' '\e[0m' '\e[4m' '\e[0m' Current EFI folder copied to: backups/EFI (2017-07-23 12h 08m 25s)
touch /Volumes/EFI/.metadata_never_index
mkdir -p /Volumes/EFI/EFI/BOOT
mkdir -p /Volumes/EFI/EFI/CLOVER/themes
cp '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/efi/CLOVERX64.efi' /Volumes/EFI/EFI/BOOT/BOOTX64.efi
cp -R '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/efi/themes' /Volumes/EFI/EFI/CLOVER
cp -R '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/efi/tools' /Volumes/EFI/EFI/CLOVER
'[' 1 -eq 1 ']'
printf '%bUpdating config.plist%b:\n' '\e[1m' '\e[0m' Updating config.plist:
update_clover_config_dict :ACPI /Volumes/EFI/EFI/CLOVER/config.plist ++ mktemp
tmpConfig=/var/folders/f8/23tsnpls2rvbp2195hnklpzr0000gn/T/tmp.vuGN3WhN
gen_clover_config /var/folders/f8/23tsnpls2rvbp2195hnklpzr0000gn/T/tmp.vuGN3WhN
cp '/Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/config/config_main.plist' /var/folders/f8/23tsnpls2rvbp2195hnklpzr0000gn/T/tmp.vuGN3WhN
'[' 3 -eq 3 ']'
/usr/libexec/PlistBuddy -c 'Set '\'':ACPI:SSDT:PluginType'\'' 1' /var/folders/f8/23tsnpls2rvbp2195hnklpzr0000gn/T/tmp.vuGN3WhN
/usr/libexec/PlistBuddy -c 'Merge /Volumes/Install macOS Sierra/Gigabyte-GA-Z77X-macOS-Install/config/config_patches_ivy.plist :KernelAndKextPatches' /var/folders/f8/23tsnpls2rvbp2195hnklpzr0000gn/T/tmp.vuGN3WhN Merge: "macOS" Entry Does Not Exist
Installed successfully but I got kernel panic and can't boot the system at all, even with -x safe mode. Please help !!!
MB: z77x-d3h CPU i7 3770
@SebaARG, @HagenBarz reported success when recloning the repo. Could you try that?
@janko84, was this after running --upgrade
? Or was this a clean install?
It was a clean install.
Please create a new issue.
I recloning the repo and put on my home directory, --update succesfully run but I received kernel panic on reboot, I can't boot on safe mode; I booting with USB Media and corroborate that the config.plist update on EFI is corrupt (very instances of code repeat many times)
Edit: On Re-Rebbot witouth USB the HD boot OK but bluetooth not working (PCI card, WIFI Work OK), strange issue
Edit2: Re-Run --update script and then boot with USB, manually repair de config.plist, reboot again, and now everything seems to work well
After several restarts and no problems (only problems with webkit instances crash on safari) i got kernel panic
Can you try booting with keepsyms=1
?
Yes, same result
I had the same error (suddenly kernel panic). After reinstalling macOS Sierra via Recovery Boot now everything works fine.
Boot with USB and reset caches and then I can boot Ok, but the crashing com.apple.WebKit.WebContent con Safari persist
I install a clean install and for now almost, no kernel panics, but Safari tab (Facebook always) with 10.12.6 keep crashing: com.apple.WebKit.WebContent; I don't know if is a problem with NVidia drivers or other, while use intel graphics I don't have problems. Config.plist with errors on KernelAndKextPatches line, but I can boot ok and no cpu process limitation on 10.12.6!
<dict>
<key>KernelAndKextPatches</key>
<dict>
<key>KernelToPatch</key>
<array>
..............</array>
Can you post the crash log for WebKit & your config.plist (feel free to remove your serial number/etc)?
Webkit Crash:
Safari Crash com.apple.WebKit.WebContent.txt
Config.plist (edit to fix KernelAndKextPatches section, safari webkit keep crashing// I desactive Intel Graphics and now use NVWebDriverLibValFix.kext to fix iBook, Little Snitch, etc transparent, the safari crash happening anyway without that kekt )
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
<key>FixRegions_10000000</key>
<true/>
</dict>
<key>Patches</key>
<array>
<dict>
<key>Comment</key>
<string>Rename SAT0 to SATA</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
U0FUMA==
</data>
<key>Replace</key>
<data>
U0FUQQ==
</data>
</dict>
<dict>
<key>Comment</key>
<string>Rename SPTn to PRTn</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
U1BU
</data>
<key>Replace</key>
<data>
UFJU
</data>
</dict>
</array>
</dict>
<key>DropTables</key>
<array>
<dict>
<key>Signature</key>
<string>DMAR</string>
</dict>
<dict>
<key>Signature</key>
<string>MATS</string>
</dict>
<dict>
<key>Signature</key>
<string>SSDT</string>
<key>TableId</key>
<string>Cpu0Ist</string>
</dict>
<dict>
<key>Signature</key>
<string>SSDT</string>
<key>TableId</key>
<string>CpuPm</string>
</dict>
</array>
<key>SSDT</key>
<dict>
<key>Generate</key>
<dict>
<key>CStates</key>
<true/>
<key>PStates</key>
<true/>
</dict>
<key>PluginType</key>
<integer>1</integer>
</dict>
</dict>
<key>Boot</key>
<dict>
<key>DefaultVolume</key>
<string>iMac SSD</string>
<key>Legacy</key>
<string>LegacyBiosDefault</string>
<key>NoEarlyProgress</key>
<true/>
<key>StrictHibernate</key>
<true/>
<key>Timeout</key>
<integer>8</integer>
<key>XMPDetection</key>
<integer>1</integer>
</dict>
<key>Devices</key>
<dict>
<key>Audio</key>
<dict>
<key>Inject</key>
<string>1</string>
</dict>
<key>USB</key>
<dict>
<key>Inject</key>
<false/>
</dict>
</dict>
<key>GUI</key>
<dict>
<key>Language</key>
<string>en:0</string>
<key>Scan</key>
<dict>
<key>Entries</key>
<true/>
<key>Legacy</key>
<false/>
<key>Linux</key>
<false/>
<key>Tool</key>
<true/>
</dict>
<key>Theme</key>
<string>clover-theme-minimal</string>
</dict>
<key>Graphics</key>
<dict>
<key>Inject</key>
<dict>
<key>ATI</key>
<false/>
<key>Intel</key>
<false/>
<key>NVidia</key>
<false/>
</dict>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>KernelToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>Enable Ivy Bridge XCPM (credit: Pike R. Alpha)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
g8PEg/si
</data>
<key>MatchOS</key>
<string>10.12.x</string>
<key>Replace</key>
<data>
g8PGg/si
</data>
</dict>
<dict>
<key>Comment</key>
<string>Enable Ivy Bridge XCPM (credit: Pike R. Alpha & Sherlocks)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
jUPEg/gi
</data>
<key>MatchOS</key>
<string>10.12.6</string>
<key>Replace</key>
<data>
jUPGg/gi
</data>
</dict>
<dict>
<key>Comment</key>
<string>Enable Ivy Bridge XCPM (credit: Pike R. Alpha, PMheart)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
idgExDwidyI=
</data>
<key>MatchOS</key>
<string>10.13.x</string>
<key>Replace</key>
<data>
idgExjwidyI=
</data>
</dict>
<dict>
<key>Comment</key>
<string>Disable XCPM PKG Scope MSRs (credit: Pike R. Alpha)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
vgcAAAAx0uiU/P//
</data>
<key>MatchOS</key>
<string>10.12.x</string>
<key>Replace</key>
<data>
vgcAAAAx0pCQkJCQ
</data>
</dict>
<dict>
<key>Comment</key>
<string>Disable XCPM PKG Scope MSRs (credit: Pike R. Alpha)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
vgcAAAAx0uiP/P//
</data>
<key>MatchOS</key>
<string>10.13.x</string>
<key>Replace</key>
<data>
vgcAAAAx0pCQkJCQ
</data>
</dict>
</array>
<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>Replace iMac12,2 with iMac13,2</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
aU1hYzEyLDIK
</data>
<key>Name</key>
<string>com.apple.driver.AirPort.Atheros40</string>
<key>Replace</key>
<data>
aU1hYzEzLDIK
</data>
</dict>
<dict>
<key>Comment</key>
<string>Change regdomain to US-FCC (1 of 2)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
g7sgCAAABnRk
</data>
<key>MatchOS</key>
<string>10.12.x,10.13.x</string>
<key>Name</key>
<string>com.apple.driver.AirPort.Atheros40</string>
<key>Replace</key>
<data>
g7sgCAAABus2
</data>
</dict>
<dict>
<key>Comment</key>
<string>Change regdomain to US-FCC (2 of 2)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
ZseDFgkAAEMAZrhDAA==
</data>
<key>Name</key>
<string>com.apple.driver.AirPort.Atheros40</string>
<key>Replace</key>
<data>
ZseDFgkAAAAAZrgAAA==
</data>
</dict>
<dict>
<key>Comment</key>
<string>Disable default hub port injectors</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
bW9kZWw=
</data>
<key>MatchOS</key>
<string>10.12.x,10.13.x</string>
<key>Name</key>
<string>com.apple.driver.usb.AppleUSBHub</string>
<key>Replace</key>
<data>
bW9kZXg=
</data>
</dict>
<dict>
<key>Comment</key>
<string>Disable default XHC port injectors</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
bW9kZWw=
</data>
<key>MatchOS</key>
<string>10.12.x,10.13.x</string>
<key>Name</key>
<string>com.apple.driver.usb.AppleUSBXHCIPCI</string>
<key>Replace</key>
<data>
bW9kZXg=
</data>
</dict>
<dict>
<key>Comment</key>
<string>Enable TRIM</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
QVBQTEUgU1NE
</data>
<key>Name</key>
<string>com.apple.iokit.IOAHCIBlockStorage</string>
<key>Replace</key>
<data>
AAAAAAAAAAAA
</data>
</dict>
</array>
</dict>
<key>RtVariables</key>
<dict>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
<key>MLB</key>
<string>XXXXXXXXXXXXXX</string>
<key>ROM</key>
<string>UseMacAddr0</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>PlatformFeature</key>
<integer>1</integer>
<key>ProductName</key>
<string>iMac13,2</string>
<key>SerialNumber</key>
<string>XXXXXXXXXXXX</string>
<key>SmUUID</key>
<string>XXXXXXXXX</string>
<key>Trust</key>
<true/>
</dict>
<key>SystemParameters</key>
<dict>
<key>InjectKexts</key>
<string>Yes</string>
<key>InjectSystemID</key>
<true/>
</dict>
</dict>
</plist>
Thanks for reporting the issue with KernelAndKextPatches, it's been fixed with v2.1.0. I've also added NVWebDriverLibValFix.
I'll see if I can reproduce the WebKit crashes.
Webkit crashes Seems to happen when there are several videos on the site, crash happen on different site of Facebook now, I noticed that website have more that 4/5 videos on screen, like timeline Facebook (the crash always happen when change tab or app and back)
I testing with Inject Intel=true and IGPU primary on BIOS and the crash of Webkit stop. So, may be the last Nvidia drivers are the problem, I'm just assuming.
A reinstalling of macOS 10.12.6 (via recovery boot) solved a second time a kernel panic during booting. After a week not using my hackintosh (holidays) I started the machine and suddenly the kernel panic issue occurred again. I've changed nothing on my installation wether macOS nor boot loader. Maybe my system SSD got some problems...
System information
macOS 10.12.6 GA-Z77X macOS Install v2.0.9 GA-Z77X-UD5H Intel Core i7-3770K NVIDIA GeForce GTX 970
Issue Type
Issue Description
Hi! I fix the 800 MHz on the XCPM patches but I can't update with GA-Z77X.sh script on my USB Install Media, I receive the following message