GithubHelp home page GithubHelp logo

shaneee / amd-high-sierra-xnu Goto Github PK

View Code? Open in Web Editor NEW
113.0 113.0 16.0 13.29 MB

AMD CPU Support for macOS High Sierra

License: GNU General Public License v3.0

C++ 8.64% Objective-C 5.57% C 77.60% Makefile 0.48% Awk 0.01% Assembly 1.42% DTrace 0.13% Python 2.02% Shell 0.14% Roff 2.48% Perl 0.05% Swift 0.09% Yacc 0.09% HTML 1.26% Lex 0.01% Lua 0.02%

amd-high-sierra-xnu's People

Contributors

shaneee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amd-high-sierra-xnu's Issues

Kernel Panic

Hoping to be in the right place, I would like to help with the following stacktrace.

Anonymous UUID:       ************************************************

Fri Jul 12 17:50:50 2019

*** Panic Report ***
panic(cpu 6 caller 0xffffff801560b93b): Kernel trap at 0xffffff7f98173cda, type 0=divide error, registers:
CR0: 0x000000008001003b, CR2: 0x000000010e0ce000, CR3: 0x000000001fa9c000, CR4: 0x0000000000340660
RAX: 0x000000000000005d, RBX: 0xffffff807d0d0001, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffff83c4d2bd60, RBP: 0xffffff8056bae000, RSI: 0xffffff807cfa9300, RDI: 0x0000000026b00000
R8:  0x0000000000000003, R9:  0xffffff8056bae000, R10: 0x0000000000002c01, R11: 0xffffff807b4b3080
R12: 0x0000000000000000, R13: 0xffffff806fe7c400, R14: 0x000000000000005e, R15: 0x0000000000000000
RFL: 0x0000000000010246, RIP: 0xffffff7f98173cda, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x000000010e0ce000, Error code: 0x0000000000000000, Fault CPU: 0x6, PL: 1, VF: 0

Backtrace (CPU 6), Frame : Return Address
0xffffff83c4d2b820 : 0xffffff80154e7e86 
0xffffff83c4d2b860 : 0xffffff801561a144 
0xffffff83c4d2b8a0 : 0xffffff801560b762 
0xffffff83c4d2b920 : 0xffffff801549b190 
0xffffff83c4d2b940 : 0xffffff80154e78b8 
0xffffff83c4d2ba70 : 0xffffff80154e772c 
0xffffff83c4d2bad0 : 0xffffff801560b93b 
0xffffff83c4d2bc50 : 0xffffff801549b190 
0xffffff83c4d2bc70 : 0xffffff7f98173cda 
0xffffff8056bae000 : 0xd0010 
0xffffff7f98178110 : 0xffffff7f9816671a 
Unaligned frame
Backtrace terminated-invalid frame pointer 0xffffff7f98166732
      Kernel Extensions in backtrace:
         net.osx86.kexts.GenericUSBXHCI(1.2.11)[00000000-0000-0000-0000-000000000000]@0xffffff7f98166000->0xffffff7f9817cfff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[8E6C654E-4A8F-3C6B-BBFE-BA8A68C9C146]@0xffffff7f95d25000
            dependency: com.apple.iokit.IOUSBFamily(900.4.1)[FD04D3BC-D376-36FD-924C-DD5DF51B0509]@0xffffff7f96de7000

BSD process name corresponding to current thread: kernel_task
Boot args: darkwake=no npci=0x3000 

Mac OS version:
17D47

Kernel version:
Darwin Kernel Version 17.0.0: Q�Q
EOF
Model: iMac18,3, BootROM IM183.0151.B00, 8 processors, 3,39 GHz, 32 GB, SMC 2.41f1
Graphics: NVIDIA GeForce GTX 1080 Ti, NVIDIA GeForce GTX 1080 Ti, PCIe, 11 GB
Memory Module: BANK 0/DIMM0, 8 GB, DDR4, 3200 MHz, Unknown, F4-3466C16-8GTZR
Memory Module: BANK 1/DIMM0, 8 GB, DDR4, 3200 MHz, Unknown, BLS8G4D32AESEK.M8FE
Memory Module: BANK 2/DIMM0, 8 GB, DDR4, 3200 MHz, Unknown, F4-3466C16-8GTZR
Memory Module: BANK 3/DIMM0, 8 GB, DDR4, 3200 MHz, Unknown, BLS8G4D32AESEK.M8FE
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Samsung SSD 860 EVO 500GB, 500,11 GB
Serial ATA Device: Samsung SSD 850 PRO 512GB, 512,11 GB
USB Device: USB5734
USB Device: USB Keyboard
USB Device: USB2734
USB Device: Hub Controller
USB Device: USB Audio Device
USB Device: Razer DeathAdder
Thunderbolt Bus: 

can x4 638 be supported?

If the answer is positive, I'll buy one to update my pc;
otherwise, I may contiune to use my a4 3400

sse4.1

I've found someone install sirrea with x4 860k, which even doesn't have see4a, working quite well, so maybe sse4.1 isn't a serious problem ? Just be a little slower than those which have see4.1 ?

Kernel panic on every shutdown/restart

I was using Bronya kernel before, didn't had this kernel panic before.

Anonymous UUID:       A3DCD5D8-A012-BE9C-BCFA-267350AE3DA9

Sun Sep 23 15:46:54 2018

*** Panic Report ***
panic(cpu 0 caller 0xffffff801548df5c): "Usb Gaming Keyboard[0x1000002ce]::terminate(kIOServiceSynchronous) timeout\n"@/xnu-4570.41.2/iokit/Kernel/IOService.cpp:2289
Backtrace (CPU 0), Frame : Return Address
0xffffff9129c73970 : 0xffffff8014edf2e6 mach_kernel : _handle_debugger_trap + 0x506
0xffffff9129c739c0 : 0xffffff801500c7f4 mach_kernel : _kdp_i386_trap + 0x114
0xffffff9129c73a00 : 0xffffff8014ffe0e4 mach_kernel : _kernel_trap + 0x5a4
0xffffff9129c73a70 : 0xffffff8014e92120 mach_kernel : _return_from_trap + 0xe0
0xffffff9129c73a90 : 0xffffff8014eded1c mach_kernel : _panic_trap_to_debugger + 0x25c
0xffffff9129c73bc0 : 0xffffff8014edea9c mach_kernel : _panic + 0x5c
0xffffff9129c73c20 : 0xffffff801548df5c mach_kernel : __ZN9IOService23scheduleTerminatePhase2Ej + 0x17c
0xffffff9129c73c70 : 0xffffff8015491a07 mach_kernel : __ZN9IOService15terminatePhase1Ej + 0x907
0xffffff9129c73cf0 : 0xffffff7f95aff808 com.apple.iokit.IOUSBFamily : __ZN11IOUSBDevice9terminateEj + 0x210
0xffffff9129c73d10 : 0xffffff7f96101f2b com.apple.driver.AppleUSBLegacyHub : __ZN21AppleUSBLegacyHubPort12RemoveDeviceEv + 0x3cb
0xffffff9129c73d50 : 0xffffff7f96101908 com.apple.driver.AppleUSBLegacyHub : __ZN21AppleUSBLegacyHubPort4stopEv + 0x612
0xffffff9129c73db0 : 0xffffff7f960f6d8b com.apple.driver.AppleUSBLegacyHub : __ZN17AppleUSBLegacyHub9StopPortsEv + 0x14b
0xffffff9129c73df0 : 0xffffff7f960f9a8d com.apple.driver.AppleUSBLegacyHub : __ZN17AppleUSBLegacyHub14HubPowerChangeEm + 0xd5
0xffffff9129c73e40 : 0xffffff801549ea65 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x185
0xffffff9129c73eb0 : 0xffffff801549e80a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffff9129c73ed0 : 0xffffff8014f18ab4 mach_kernel : _thread_call_delayed_timer + 0xf24
0xffffff9129c73f40 : 0xffffff8014f185a5 mach_kernel : _thread_call_delayed_timer + 0xa15
0xffffff9129c73fa0 : 0xffffff8014e914f7 mach_kernel : _call_continuation + 0x17
      Kernel Extensions in backtrace:
         com.apple.iokit.IOUSBFamily(900.4.1)[FD04D3BC-D376-36FD-924C-DD5DF51B0509]@0xffffff7f95ac2000->0xffffff7f95b5cfff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[8E6C654E-4A8F-3C6B-BBFE-BA8A68C9C146]@0xffffff7f95725000
            dependency: com.apple.iokit.IOUSBHostFamily(1.2)[8398A8CC-6560-38E5-B061-C4EEB6B2E1D9]@0xffffff7f95a42000
            dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[E768F6C8-F7ED-3AA5-AB26-03284841965E]@0xffffff7f95a3a000
         com.apple.driver.AppleUSBLegacyHub(900.4.1)[6D278A06-950F-35C6-B3E4-445F4BBD7DB9]@0xffffff7f960f4000->0xffffff7f96111fff
            dependency: com.apple.iokit.IOUSBFamily(900.4.1)[FD04D3BC-D376-36FD-924C-DD5DF51B0509]@0xffffff7f95ac2000

BSD process name corresponding to current thread: kernel_task
Boot args: keepsyms=1 npci=0x3000 debug=0x100 -v busratio=34 

Mac OS version:
17D47

Kernel version:
Darwin Kernel Version 17.4.0: Thu 13 Sep 2018 11:48:33 BST; ~ Shaneee ~ :xnu-4570.41.2/BUILD/obj/RELEASE_X86_64
Kernel UUID: 0BA7D4B7-E767-3F6D-B265-564C5C1C4F31
Kernel slide:     0x0000000014c00000
Kernel text base: 0xffffff8014e00000
__HIB  text base: 0xffffff8014d00000
System model name: MacPro5,1 (Mac-F221BEC8)

System uptime in nanoseconds: 188852461436
last loaded kext at 135517036958: com.apple.filesystems.msdosfs	1.10 (addr 0xffffff7f9a699000, size 69632)
loaded kexts:
com.joshuawise.kexts.HoRNDIS	6
com.insanelymac.RealtekRTL8111	1.4.0
net.osx86.kexts.GenericUSBXHCI	1.2.11
as.lvs1974.HibernationFixup	1.2.3
as.vit9696.WhateverGreen	1.1.7
as.vit9696.Lilu	1.2.6
org.netkas.driver.FakeSMC	1800
com.apple.filesystems.msdosfs	1.10
com.apple.driver.AppleHWSensor	1.9.5d0
com.apple.filesystems.ntfs	3.13
com.apple.driver.AppleUpstreamUserClient	3.6.4
com.apple.driver.AppleMCCSControl	1.5.3
com.apple.driver.AppleHDAHardwareConfigDriver	280.12
com.apple.driver.AppleHDA	280.12
com.apple.driver.AGPM	110.23.30
com.apple.kext.AMDFramebuffer	1.6.0
com.apple.kext.AMDRadeonX4250	1.6.0
com.apple.driver.AppleGraphicsDevicePolicy	3.16.21
com.apple.AGDCPluginDisplayMetrics	3.16.2
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	6.0.2f2
com.apple.kext.AMDRadeonX4000	1.6.0
com.apple.kext.AMDRadeonX4200	1.6.0
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleHV	1
com.apple.kext.AMD9520Controller	1.6.0
com.apple.driver.AppleGFXHDA	100.1.3
com.apple.kext.AMD9500Controller	1.6.0
com.apple.driver.AppleFIVRDriver	4.1.0
com.apple.driver.AudioAUUC	1.70
com.apple.driver.ACPI_SMC_PlatformPlugin	1.0.0
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.BootCache	40
com.apple.filesystems.hfs.kext	407.30.1
com.apple.driver.AppleUSBLegacyHub	900.4.1
com.apple.driver.AppleAHCIPort	329
com.apple.driver.AppleHPET	1.8
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleACPIButtons	6.1
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	183
com.apple.security.quarantine	3
com.apple.security.TMSafetyNet	8
com.apple.IOBufferCopyEngineTest	1
com.apple.kext.triggers	1.0
com.apple.driver.AppleSMBusController	1.0.18d1
com.apple.iokit.IOSMBusFamily	1.1
com.apple.driver.DspFuncLib	280.12
com.apple.kext.OSvKernDSPLib	526
com.apple.driver.AppleGraphicsControl	3.16.21
com.apple.kext.AMDRadeonX4000HWLibs	1.0
com.apple.iokit.IOSerialFamily	11
com.apple.iokit.IOBluetoothFamily	6.0.2f2
com.apple.iokit.IOAcceleratorFamily2	376.6
com.apple.iokit.IOSurface	209.2.2
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleHDAController	280.12
com.apple.iokit.IOHDAFamily	280.12
com.apple.iokit.IONDRVSupport	517.22
com.apple.kext.AMDSupport	1.6.0
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.AppleGPUWrangler	3.16.2
com.apple.AppleGraphicsDeviceControl	3.16.21
com.apple.kext.AMDRadeonX4000HWServices	1.6.0
com.apple.iokit.IOGraphicsFamily	517.22
com.apple.driver.IOPlatformPluginLegacy	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d8
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.driver.AppleLegacyUSBAudio	2.9.5f19
com.apple.iokit.IOAudioFamily	206.5
com.apple.vecLib.kext	1.2.0
com.apple.iokit.IOUSBHIDDriver	900.4.1
com.apple.driver.AppleUSBComposite	900.4.1
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleXsanScheme	3
com.apple.iokit.IONVMeFamily	2.1.0
com.apple.iokit.IOAHCIBlockStorage	301.40.2
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.iokit.IOAHCIFamily	288
com.apple.iokit.IOUSBFamily	900.4.1
com.apple.driver.AppleEFINVRAM	2.1
com.apple.driver.AppleEFIRuntime	2.1
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleUSBTDM	439.30.4
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.IOUSBMassStorageDriver	140.30.1
com.apple.iokit.IOSCSIBlockCommandsDevice	404.30.2
com.apple.iokit.IOSCSIArchitectureModelFamily	404.30.2
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.KernelRelayHost	1
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleBusPowerController	1.0
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.IOSlaveProcessor	1
com.apple.iokit.IOBufferCopyEngineFamily	1
com.apple.driver.DiskImages	480.30.2
com.apple.iokit.IOStorageFamily	2.1
com.apple.iokit.IOReportFamily	31
com.apple.iokit.IOTimeSyncFamily	650.5
com.apple.iokit.IONetworkingFamily	3.4
com.apple.driver.AppleACPIPlatform	6.1
com.apple.driver.AppleSMCRTC	1.0
com.apple.driver.AppleSMC	3.1.9
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.Libm	1
com.apple.kec.pthread	1
com.apple.kec.corecrypto	1.0

EOF

Build environment questions

Hi, due to vanilla patches lacks OPEMU and latest crossover depends on it, I'm trying compile this patched kernel source as a start:) but my build refuse to boot. Could you help me figure what may cause the problem?

Environment:
Vanilla 10.13.6 installation, installing with IOIIIO's guide, with the kernel in releases.
Xcode 9.4.1, the last version that has macosx10.13 SDK builtin.

Situation:
Everytime after new kernel compiled and prelinked, reboot and KP will happen after several minutes.
IMG_790B32CC7637-1
And when restore downloaded kernel and re-prelink in catalina the 10.13.6 partition will boot again...

By compiling the kernel, I'm following Scott Knight's guide, only changing all version to corresponding 10.13.6 versions:

AvailabilityVersions-32.60.1
dtrace-262.50.12
libdispatch-913.60.2 
libplatform-161.50.1

If any step( or library/compiler version setup ) is different than yours when you compiling the mentioned kernel, please tell me!
BTW: Seems behavior of apple toolchain varying heavily between major releases. In the beginning I'm trying compiling with Xcode 11.6, but it reports error on absolutely correct i386 at&t assembly syntax in idt64.c, maybe it have dropped i386 asm support?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.