Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
63216a61
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
63216a61
编写于
4月 11, 2019
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCorePlatform: FirmwareFeatures and FirmwareFeaturesMask are set from PlatformInfo
上级
d39dc34e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
115 addition
and
21 deletion
+115
-21
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+31
-0
Docs/Sample.plist
Docs/Sample.plist
+4
-7
Platform/OpenCore/OpenCorePlatform.c
Platform/OpenCore/OpenCorePlatform.c
+79
-13
Platform/OpenCore/OpenCoreUefi.c
Platform/OpenCore/OpenCoreUefi.c
+1
-1
未找到文件。
Docs/Configuration.pdf
浏览文件 @
63216a61
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
63216a61
...
...
@@ -1369,6 +1369,12 @@ A continuously updated variable list can be found in a corresponding document:
\subsection
{
Mandatory Variables
}
\label
{
nvramvars
}
\emph
{
Warning
}
: These variables may be added by
\hyperref
[platforminfonvram]
{
PlatformNVRAM
}
or
\hyperref
[platforminfogeneric]
{
Generic
}
subsections of
\hyperref
[platforminfo]
{
PlatformInfo
}
section.
Using
\texttt
{
PlatformInfo
}
is the recommend way of setting these variables.
The following variables are mandatory for macOS functioning:
\begin{itemize}
...
...
@@ -1660,6 +1666,7 @@ for system configuration.
\textbf
{
Default value
}
: all zero
\\
\textbf
{
Description
}
: Refer to
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:ROM
}
.
\end{enumerate}
\subsection
{
DataHub Properties
}
\label
{
platforminfodatahub
}
...
...
@@ -1840,6 +1847,30 @@ for system configuration.
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:HW
\_
MLB
}
and
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:MLB
}
.
\item
\texttt
{
FirmwareFeatures
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
data
}
, 8 bytes
\\
\textbf
{
Default value
}
: Not installed
\\
\textbf
{
Description
}
: This variable comes in pair with
\texttt
{
FirmwareFeaturesMask
}
.
Specifies the values of NVRAM variables:
\begin{itemize}
\tightlist
\item
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:FirmwareFeatures
}
\item
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:ExtendedFirmwareFeatures
}
\end{itemize}
\item
\texttt
{
FirmwareFeaturesMask
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
data
}
, 8 bytes
\\
\textbf
{
Default value
}
: Not installed
\\
\textbf
{
Description
}
: This variable comes in pair with
\texttt
{
FirmwareFeatures
}
.
Specifies the values of NVRAM variables:
\begin{itemize}
\tightlist
\item
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:FirmwareFeaturesMask
}
\item
\texttt
{
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14:ExtendedFirmwareFeaturesMask
}
\end{itemize}
\end{enumerate}
\subsection
{
SMBIOS Properties
}
\label
{
platforminfosmbios
}
...
...
Docs/Sample.plist
浏览文件 @
63216a61
...
...
@@ -454,13 +454,6 @@
<dict>
<key>
Add
</key>
<dict>
<key>
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14
</key>
<dict>
<key>
FirmwareFeatures
</key>
<data>
N+EP6A==
</data>
<key>
FirmwareFeaturesMask
</key>
<data>
P/8f/w==
</data>
</dict>
<key>
7C436110-AB2A-4BBB-A880-FE41995C9F82
</key>
<dict>
<key>
boot-args
</key>
...
...
@@ -537,6 +530,10 @@
<string>
M000000000001
</string>
<key>
ROM
</key>
<data>
ESIzAAAA
</data>
<key>
FirmwareFeatures
</key>
<data>
N+EP6AAAAAA=
</data>
<key>
FirmwareFeaturesMask
</key>
<data>
P/8f/wAAAAA=
</data>
</dict>
<key>
SMBIOS
</key>
<dict>
...
...
Platform/OpenCore/OpenCorePlatform.c
浏览文件 @
63216a61
...
...
@@ -243,13 +243,21 @@ OcPlatformUpdateNvram (
)
{
EFI_STATUS
Status
;
CHAR8
*
Bid
;
CHAR8
*
Mlb
;
UINT8
*
Rom
;
Bid
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Nvram
.
Bid
);
Mlb
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Nvram
.
Mlb
);
Rom
=
&
Config
->
PlatformInfo
.
Nvram
.
Rom
[
0
];
CHAR8
*
Bid
;
CHAR8
*
Mlb
;
UINT8
*
Rom
;
UINT64
ExFeatures
;
UINT64
ExFeaturesMask
;
UINT32
Features
;
UINT32
FeaturesMask
;
Bid
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Nvram
.
Bid
);
Mlb
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Nvram
.
Mlb
);
Rom
=
&
Config
->
PlatformInfo
.
Nvram
.
Rom
[
0
];
ExFeatures
=
Config
->
PlatformInfo
.
Nvram
.
FirmwareFeatures
;
ExFeaturesMask
=
Config
->
PlatformInfo
.
Nvram
.
FirmwareFeaturesMask
;
Features
=
(
UINT32
)
ExFeatures
;
FeaturesMask
=
(
UINT32
)
ExFeaturesMask
;
if
(
Bid
[
0
]
!=
'\0'
)
{
Status
=
gRT
->
SetVariable
(
...
...
@@ -277,8 +285,8 @@ OcPlatformUpdateNvram (
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting HW_ROM %
a
- %r
\n
"
,
Bid
,
"OC: Setting HW_ROM %
02x:%02x:%02x:%02x:%02x:%02x
- %r
\n
"
,
Rom
[
0
],
Rom
[
1
],
Rom
[
2
],
Rom
[
3
],
Rom
[
4
],
Rom
[
5
]
,
Status
));
...
...
@@ -291,8 +299,8 @@ OcPlatformUpdateNvram (
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting ROM %
a
- %r
\n
"
,
Bid
,
"OC: Setting ROM %
02x:%02x:%02x:%02x:%02x:%02x
- %r
\n
"
,
Rom
[
0
],
Rom
[
1
],
Rom
[
2
],
Rom
[
3
],
Rom
[
4
],
Rom
[
5
]
,
Status
));
}
...
...
@@ -308,7 +316,7 @@ OcPlatformUpdateNvram (
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting HW_MLB %a - %r
\n
"
,
Bid
,
Mlb
,
Status
));
...
...
@@ -322,7 +330,65 @@ OcPlatformUpdateNvram (
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting MLB %a - %r
\n
"
,
Bid
,
Mlb
,
Status
));
}
if
(
ExFeatures
!=
0
||
ExFeaturesMask
!=
0
)
{
Status
=
gRT
->
SetVariable
(
L"FirmwareFeatures"
,
&
gAppleVendorVariableGuid
,
EFI_VARIABLE_BOOTSERVICE_ACCESS
|
EFI_VARIABLE_RUNTIME_ACCESS
,
sizeof
(
Features
),
&
Features
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting FirmwareFeatures %08x - %r
\n
"
,
Features
,
Status
));
Status
=
gRT
->
SetVariable
(
L"ExtendedFirmwareFeatures"
,
&
gAppleVendorVariableGuid
,
EFI_VARIABLE_BOOTSERVICE_ACCESS
|
EFI_VARIABLE_RUNTIME_ACCESS
,
sizeof
(
ExFeatures
),
&
ExFeatures
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting ExtendedFirmwareFeatures %016Lx - %r
\n
"
,
ExFeatures
,
Status
));
Status
=
gRT
->
SetVariable
(
L"FirmwareFeaturesMask"
,
&
gAppleVendorVariableGuid
,
EFI_VARIABLE_BOOTSERVICE_ACCESS
|
EFI_VARIABLE_RUNTIME_ACCESS
,
sizeof
(
FeaturesMask
),
&
FeaturesMask
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting FirmwareFeaturesMask %08x - %r
\n
"
,
FeaturesMask
,
Status
));
Status
=
gRT
->
SetVariable
(
L"ExtendedFirmwareFeaturesMask"
,
&
gAppleVendorVariableGuid
,
EFI_VARIABLE_BOOTSERVICE_ACCESS
|
EFI_VARIABLE_RUNTIME_ACCESS
,
sizeof
(
ExFeaturesMask
),
&
ExFeaturesMask
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting ExtendedFirmwareFeaturesMask %016Lx - %r
\n
"
,
ExFeaturesMask
,
Status
));
}
...
...
Platform/OpenCore/OpenCoreUefi.c
浏览文件 @
63216a61
...
...
@@ -249,7 +249,7 @@ OcLoadUefiSupport (
OcLoadDrivers
(
Storage
,
Config
);
DEBUG
((
DEBUG_INFO
,
"OC: Connecting drivers..."
));
DEBUG
((
DEBUG_INFO
,
"OC: Connecting drivers...
\n
"
));
if
(
Config
->
Uefi
.
ConnectDrivers
)
{
OcConnectDrivers
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录