dortania / bugtracker

Dortania Bugtracker
108 stars 7 forks source link

Wrong info about CSR Bitmask in Monterey Install Guide #245

Closed 5T33Z0 closed 2 years ago

5T33Z0 commented 2 years ago

Section: https://dortania.github.io/OpenCore-Install-Guide/extras/monterey.html#no-updates Text in question:

"Make sure that SIP is enabled. Two bits in SIP specifically cause issues:

CSR_ALLOW_APPLE_INTERNAL (Bit 4 = 0x10)
    Prevents updates appearing at all
CSR_ALLOW_UNAUTHENTICATED_ROOT (Bit 11 = 0x800)
    Prevents incremental OTA updates"

This info is incorrect. The Bitmask in Big Sur and Monterey has 12 bits now, with CSR_ALLOW_APPLE_INTERRNAL being Bit 5 and CSR_ALLOW_UNAUTHENTICATED_ROOT being Bit 12, as you can see here:

Bildschirmfoto

1Revenger1 commented 2 years ago

I copied the values from the kernel. 4 and 11 are correct. We start at index 0 as (1 << 0) is still 0x1, while (1 << 1) would be 0x2. Most bitwise calculators start at index 0, including the calculators in windows and macOS.

image

5T33Z0 commented 2 years ago

The sum is correct, but they ar still bit 5 and 12 since Big Sur and Monterey use a 12 bit bitmask, as you can see in the screenshot from BitmaskDecode…

khronokernel commented 2 years ago

Yes but the bits start at 0, not 1. So the bits are still correct no?

5T33Z0 commented 2 years ago

Ok, got it.