未验证 提交 dfd459a7 编写于 作者: M Mykola Grymalyuk 提交者: GitHub

OpenCorePlatform: Add MaxBIOSVersion option to Generic (#179)

closes acidanthera/bugtracker#1427
上级 157f3869
......@@ -5,6 +5,7 @@ OpenCore Changelog
- Added background image support in OpenCanopy
- Fixed selector boot option choice in OpenCanopy
- Relaxed selector dimensions for OpenCanopy
- Add `MaxBIOSVersion` option to `Generic`
#### v0.6.5
- Fixed installing OpenDuet on protected volumes
......
......@@ -4627,6 +4627,13 @@ be used. Version with macOS specific enhancements can be downloaded from
a drive with EFI partition being the first partition on the disk.
\end{itemize}
\item
\texttt{MaxBIOSVersion}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Sets \texttt{BIOSVersion} to \texttt{9999.999.999}, recommended for
legacy Macs with custom SMBIOS to avoid BIOS updates in macOS 11, Big Sur.
\item
\texttt{SystemMemoryStatus}\\
\textbf{Type}: \texttt{plist\ string}\\
......@@ -4650,7 +4657,7 @@ be used. Version with macOS specific enhancements can be downloaded from
and assume that system memory is non-upgradable.
\item
\texttt{ProcessorType}
\texttt{ProcessorType}\\
\textbf{Type}: \texttt{plist\ integer}\\
\textbf{Failsafe}: \texttt{0} (Automatic)\\
\textbf{Description}: Refer to SMBIOS \texttt{ProcessorType}.
......
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Tue Jan 5 10:48:23 2021
%DIF ADD ../Configuration.tex Sun Jan 10 13:38:23 2021
%DIF DEL PreviousConfiguration.tex Tue Jan 5 20:10:35 2021
%DIF ADD ../Configuration.tex Sun Jan 10 23:34:57 2021
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
......@@ -4688,7 +4688,15 @@ be used. Version with macOS specific enhancements can be downloaded from
\end{itemize}
\item
\texttt{SystemMemoryStatus}\\
\DIFaddbegin \texttt{\DIFadd{MaxBIOSVersion}}\\
\textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
\textbf{\DIFadd{Failsafe}}\DIFadd{: }\texttt{\DIFadd{false}}\\
\textbf{\DIFadd{Description}}\DIFadd{: Sets }\texttt{\DIFadd{BIOSVersion}} \DIFadd{to }\texttt{\DIFadd{9999.999.999}}\DIFadd{, recommended for
legacy Macs with custom SMBIOS to avoid BIOS updates in macOS 11, Big Sur.
}
\item
\DIFaddend \texttt{SystemMemoryStatus}\\
\textbf{Type}: \texttt{plist\ string}\\
\textbf{Failsafe}: \texttt{Auto}\\
\textbf{Description}: Indicates whether system memory is upgradable in \texttt{PlatformFeature}.
......@@ -4710,8 +4718,8 @@ be used. Version with macOS specific enhancements can be downloaded from
and assume that system memory is non-upgradable.
\item
\texttt{ProcessorType}
\textbf{Type}: \texttt{plist\ integer}\\
\texttt{ProcessorType}\DIFaddbegin \\
\DIFaddend \textbf{Type}: \texttt{plist\ integer}\\
\textbf{Failsafe}: \texttt{0} (Automatic)\\
\textbf{Description}: Refer to SMBIOS \texttt{ProcessorType}.
\item
......
......@@ -991,6 +991,8 @@
<dict>
<key>AdviseWindows</key>
<false/>
<key>MaxBIOSVersion</key>
<false/>
<key>MLB</key>
<string>M0000000000000001</string>
<key>ProcessorType</key>
......
......@@ -1022,6 +1022,8 @@
<dict>
<key>AdviseWindows</key>
<false/>
<key>MaxBIOSVersion</key>
<false/>
<key>MLB</key>
<string></string>
<key>ProcessorType</key>
......
......@@ -451,7 +451,8 @@ typedef enum {
_(UINT16 , ProcessorType , , 0 , () ) \
_(UINT8 , Rom , [6] , {0} , () ) \
_(BOOLEAN , SpoofVendor , , FALSE , () ) \
_(BOOLEAN , AdviseWindows , , FALSE , () )
_(BOOLEAN , AdviseWindows , , FALSE , () ) \
_(BOOLEAN , MaxBIOSVersion , , FALSE , () )
OC_DECLARE (OC_PLATFORM_GENERIC_CONFIG)
#define OC_PLATFORM_DATA_HUB_CONFIG_FIELDS(_, __) \
......
......@@ -548,6 +548,7 @@ OC_SCHEMA
mPlatformConfigurationGenericSchema[] = {
OC_SCHEMA_BOOLEAN_IN ("AdviseWindows", OC_GLOBAL_CONFIG, PlatformInfo.Generic.AdviseWindows),
OC_SCHEMA_STRING_IN ("MLB", OC_GLOBAL_CONFIG, PlatformInfo.Generic.Mlb),
OC_SCHEMA_BOOLEAN_IN ("MaxBIOSVersion", OC_GLOBAL_CONFIG, PlatformInfo.Generic.MaxBIOSVersion),
OC_SCHEMA_INTEGER_IN ("ProcessorType", OC_GLOBAL_CONFIG, PlatformInfo.Generic.ProcessorType),
OC_SCHEMA_DATAF_IN ("ROM", OC_GLOBAL_CONFIG, PlatformInfo.Generic.Rom),
OC_SCHEMA_BOOLEAN_IN ("SpoofVendor", OC_GLOBAL_CONFIG, PlatformInfo.Generic.SpoofVendor),
......
......@@ -373,6 +373,12 @@ OcPlatformUpdateSmbios (
DEBUG ((DEBUG_WARN, "OC: Invalid SMBIOS system memory status %a\n", SystemMemoryStatus));
}
}
//
// Override default BIOSVersion.
//
if (Config->PlatformInfo.Generic.MaxBIOSVersion) {
Data.BIOSVersion = "9999.999.999";
}
if (MacInfo->DataHub.SmcRevision != NULL) {
OcSmbiosGetSmcVersion (MacInfo->DataHub.SmcRevision, SmcVersion);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册