xxxzc / xps15-9550-macos

macOS Catalina/BigSur on XPS15-9550 with Clover and OpenCore
119 stars 23 forks source link

Possibly solution to StartImage failed and Fault CR2 posted by @golimpio #78

Open xxxzc opened 3 years ago

xxxzc commented 3 years ago

Posted by @golimpio in https://github.com/xxxzc/xps15-9550-macos/issues/74#issuecomment-732144560, thank you!

I'm not 100% sure, but I don't think this is a SSD issue. If I try to run the Install from a USB flash drive, it will give me the same error. It seems more likely that this is a memory related issue IMHO.

By adding DevirtualiseMmio=true, I was able to bypass the "OCB: StartImage failed-Aborted" error but it gave me a Kernel Panic instead (see attached image).

In the KP screenshot bellow you can see that the cause seems to be the "Fault CR2" (see the green rectangle).

To fix it, I've extracted the address from there and added it to the MmioWhitelist, and then I was able to boot the Big Sur 11.0.1 Installer from a USB flash drive.

It's still a work in progress and I'd appreciate if anyone is willing to help testing this and give some feedback.

    <key>Booter</key>
    <dict>
        <key>MmioWhitelist</key>
        <array>
            <dict>
                <key>Address</key>
                <integer>3758096384</integer>
                <key>Comment</key>
                <string>MMIO devirt 0xE0000000 (0x10000 pages, 0x800000000000100D)</string>
                <key>Enabled</key>
                <false/>
            </dict>
            <dict>
                <key>Address</key>
                <integer>4261412864</integer>
                <key>Comment</key>
                <string>MMIO devirt 0xFE000000 (0x11 pages, 0x8000000000000001)</string>
                <key>Enabled</key>
                <false/>
            </dict>
            <dict>
                <key>Address</key>
                <integer>4273995776</integer>
                <key>Comment</key>
                <string>MMIO devirt 0xFEC00000 (0x1 pages, 0x8000000000000001)</string>
                <key>Enabled</key>
                <false/>
            </dict>
            <dict>
                <key>Address</key>
                <integer>4276092928</integer>
                <key>Comment</key>
                <string>MMIO devirt 0xFEE00000 (0x1 pages, 0x800000000000100D)</string>
                <key>Enabled</key>
                <false/>
            </dict>
            <dict>
                <key>Address</key>
                <integer>4278190080</integer>
                <key>Comment</key>
                <string>MMIO devirt 0xFF000000 (0x1000 pages, 0x800000000000100D)</string>
                <key>Enabled</key>
                <false/>
            </dict>
            <dict>
                <key>Address</key>
                <integer>4285530144</integer>
                <key>Comment</key>
                <string>Fault CR2: 0X00000000ff700020, Error code: 0X0000000000000000, Fault CPU: 0x0, PL: 0, VF: 1</string>
                <key>Enabled</key>
                <true/>
            </dict>
        </array>
        <key>Quirks</key>
        <dict>
            <key>AvoidRuntimeDefrag</key>
            <true/>
            <key>DevirtualiseMmio</key>
            <true/>
            <key>DisableSingleUser</key>
            <false/>
            <key>DisableVariableWrite</key>
            <false/>
            <key>DiscardHibernateMap</key>
            <false/>
            <key>EnableSafeModeSlide</key>
            <true/>
            <key>EnableWriteUnprotector</key>
            <true/>
            <key>ForceExitBootServices</key>
            <false/>
            <key>ProtectSecureBoot</key>
            <false/>
            <key>ProtectMemoryRegions</key>
            <false/>
            <key>ProtectUefiServices</key>
            <false/>
            <key>ProvideMaxSlide</key>
            <integer>0</integer>
            <key>ProvideCustomSlide</key>
            <true/>
            <key>RebuildAppleMemoryMap</key>
            <false/>
            <key>SetupVirtualMap</key>
            <true/>
            <key>SignalAppleOS</key>
            <false/>
            <key>SyncRuntimePermissions</key>
            <false/>
        </dict>
    </dict>

IMG_2651 copy

ogaponcic commented 3 years ago

Hi, i tried your fix and it helped to pass the kernel panic, but i didn't succeed to boot catalina. I have intel wifi , and i got stuck on itlwm load. After removing intel kexts i got stuck on gIOScreenLockState 3. Will check again my config.plist later. PS: OC version 0.6.4