Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
bf94146f
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,发现更多精彩内容 >>
提交
bf94146f
编写于
11月 01, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCorePlatform: Added setting of `system-id` NVRAM variable
上级
aea1c578
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
59 addition
and
5 deletion
+59
-5
Changelog.md
Changelog.md
+1
-0
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+10
-1
Docs/Differences/Differences.pdf
Docs/Differences/Differences.pdf
+0
-0
Docs/Differences/Differences.tex
Docs/Differences/Differences.tex
+13
-3
Docs/Errata/Errata.pdf
Docs/Errata/Errata.pdf
+0
-0
Docs/SampleCustom.plist
Docs/SampleCustom.plist
+2
-0
Include/Acidanthera/Library/OcConfigurationLib.h
Include/Acidanthera/Library/OcConfigurationLib.h
+1
-0
Library/OcConfigurationLib/OcConfigurationLib.c
Library/OcConfigurationLib/OcConfigurationLib.c
+2
-1
Platform/OpenCore/OpenCorePlatform.c
Platform/OpenCore/OpenCorePlatform.c
+30
-0
未找到文件。
Changelog.md
浏览文件 @
bf94146f
...
...
@@ -25,6 +25,7 @@ OpenCore Changelog
-
Added workaround for read-only errors on some X299 boards
-
Added support for
`x86legacy`
Secure Boot model
-
Added missing Secure Boot NVRAM variables required by 11.0
-
Added setting of
`system-id`
NVRAM variable
#### v0.6.2
-
Updated builtin firmware versions for SMBIOS and the rest
...
...
Docs/Configuration.pdf
浏览文件 @
bf94146f
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
bf94146f
...
...
@@ -4506,7 +4506,7 @@ be used. Version with macOS specific enhancements can be downloaded from
\textbf
{
Failsafe
}
: Not installed
\\
\textbf
{
Description
}
: Sets
\texttt
{
system
-
id
}
in
\texttt
{
gEfiMiscSubClassGuid
}
. Value found on Macs is equal to SMBIOS
\texttt
{
SystemUUID
}
.
\texttt
{
SystemUUID
}
(
with swapped byte order
)
.
\item
\texttt
{
BoardProduct
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
string
}
\\
...
...
@@ -4913,6 +4913,15 @@ be used. Version with macOS specific enhancements can be downloaded from
\item
\texttt
{
4
D
1
EDE
05
-
38
C
7
-
4
A
6
A
-
9
CC
6
-
4
BCCA
8
B
38
C
14
:ExtendedFirmwareFeaturesMask
}
\end
{
itemize
}
\item
\texttt
{
SystemUUID
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
string
}
\\
\textbf
{
Failsafe
}
: Not installed
\\
\textbf
{
Description
}
: Specifies the value of NVRAM variable
\texttt
{
4
D
1
EDE
05
-
38
C
7
-
4
A
6
A
-
9
CC
6
-
4
BCCA
8
B
38
C
14
:system
-
id
}
for boot services only. Value found on Macs is equal to SMBIOS
\texttt
{
SystemUUID
}
.
\end
{
enumerate
}
\subsection
{
SMBIOS Properties
}
\label
{
platforminfosmbios
}
...
...
Docs/Differences/Differences.pdf
浏览文件 @
bf94146f
无法预览此类型文件
Docs/Differences/Differences.tex
浏览文件 @
bf94146f
\documentclass
[]
{
article
}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Wed Oct 7 12:20:52 2020
%DIF ADD ../Configuration.tex Sun Nov 1
05:03:35
2020
%DIF ADD ../Configuration.tex Sun Nov 1
12:43:59
2020
\usepackage
{
lmodern
}
\usepackage
{
amssymb,amsmath
}
...
...
@@ -4591,7 +4591,7 @@ be used. Version with macOS specific enhancements can be downloaded from
\textbf
{
Failsafe
}
: Not installed
\\
\textbf
{
Description
}
: Sets
\texttt
{
system
-
id
}
in
\texttt
{
gEfiMiscSubClassGuid
}
. Value found on Macs is equal to SMBIOS
\texttt
{
SystemUUID
}
.
\texttt
{
SystemUUID
}
\DIFaddbegin
\DIFadd
{
(
with swapped byte order
)
}
\DIFaddend
.
\item
\texttt
{
BoardProduct
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
string
}
\\
...
...
@@ -5016,7 +5016,17 @@ be used. Version with macOS specific enhancements can be downloaded from
\item
\texttt
{
4
D
1
EDE
05
-
38
C
7
-
4
A
6
A
-
9
CC
6
-
4
BCCA
8
B
38
C
14
:ExtendedFirmwareFeaturesMask
}
\end
{
itemize
}
\end
{
enumerate
}
\DIFaddbegin
\item
\texttt
{
\DIFadd
{
SystemUUID
}}
\\
\textbf
{
\DIFadd
{
Type
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
plist
\
string
}}
\\
\textbf
{
\DIFadd
{
Failsafe
}}
\DIFadd
{
: Not installed
}
\\
\textbf
{
\DIFadd
{
Description
}}
\DIFadd
{
: Specifies the value of NVRAM variable
}
\texttt
{
\DIFadd
{
4
D
1
EDE
05
-
38
C
7
-
4
A
6
A
-
9
CC
6
-
4
BCCA
8
B
38
C
14
:system
-
id
}}
\DIFadd
{
for boot services only. Value found on Macs is equal to SMBIOS
}
\texttt
{
\DIFadd
{
SystemUUID
}}
\DIFadd
{
.
}
\DIFaddend
\end
{
enumerate
}
\subsection
{
SMBIOS Properties
}
\label
{
platforminfosmbios
}
...
...
Docs/Errata/Errata.pdf
浏览文件 @
bf94146f
无法预览此类型文件
Docs/SampleCustom.plist
浏览文件 @
bf94146f
...
...
@@ -1086,6 +1086,8 @@
<string>
M0000000000000001
</string>
<key>
ROM
</key>
<data>
ESIzRFVm
</data>
<key>
SystemUUID
</key>
<string>
00000000-0000-0000-0000-000000000000
</string>
</dict>
<key>
SMBIOS
</key>
<dict>
...
...
Include/Acidanthera/Library/OcConfigurationLib.h
浏览文件 @
bf94146f
...
...
@@ -471,6 +471,7 @@ typedef enum {
#define OC_PLATFORM_NVRAM_CONFIG_FIELDS(_, __) \
_(OC_STRING , Bid , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \
_(OC_STRING , Mlb , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \
_(OC_STRING , SystemUuid , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \
_(UINT8 , Rom , [6] , {0} , () ) \
_(UINT64 , FirmwareFeatures , , 0 , () ) \
_(UINT64 , FirmwareFeaturesMask , , 0 , () )
...
...
Library/OcConfigurationLib/OcConfigurationLib.c
浏览文件 @
bf94146f
...
...
@@ -549,7 +549,8 @@ mPlatformConfigurationNvramSchema[] = {
OC_SCHEMA_DATAF_IN
(
"FirmwareFeatures"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
FirmwareFeatures
),
OC_SCHEMA_DATAF_IN
(
"FirmwareFeaturesMask"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
FirmwareFeaturesMask
),
OC_SCHEMA_STRING_IN
(
"MLB"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
Mlb
),
OC_SCHEMA_DATAF_IN
(
"ROM"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
Rom
)
OC_SCHEMA_DATAF_IN
(
"ROM"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
Rom
),
OC_SCHEMA_STRING_IN
(
"SystemUUID"
,
OC_GLOBAL_CONFIG
,
PlatformInfo
.
Nvram
.
SystemUuid
),
};
STATIC
...
...
Platform/OpenCore/OpenCorePlatform.c
浏览文件 @
bf94146f
...
...
@@ -452,6 +452,8 @@ OcPlatformUpdateNvram (
UINTN
MlbSize
;
CONST
UINT8
*
Rom
;
UINTN
RomSize
;
CONST
CHAR8
*
AsciiUuid
;
EFI_GUID
Uuid
;
UINT64
ExFeatures
;
UINT64
ExFeaturesMask
;
UINT32
Features
;
...
...
@@ -464,6 +466,7 @@ OcPlatformUpdateNvram (
MlbSize
=
Config
->
PlatformInfo
.
Nvram
.
Mlb
.
Size
-
1
;
Rom
=
&
Config
->
PlatformInfo
.
Nvram
.
Rom
[
0
];
RomSize
=
sizeof
(
Config
->
PlatformInfo
.
Nvram
.
Rom
);
AsciiUuid
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Nvram
.
SystemUuid
);
ExFeatures
=
Config
->
PlatformInfo
.
Nvram
.
FirmwareFeatures
;
ExFeaturesMask
=
Config
->
PlatformInfo
.
Nvram
.
FirmwareFeaturesMask
;
}
else
{
...
...
@@ -473,6 +476,7 @@ OcPlatformUpdateNvram (
MlbSize
=
Config
->
PlatformInfo
.
Generic
.
Mlb
.
Size
-
1
;
Rom
=
&
Config
->
PlatformInfo
.
Generic
.
Rom
[
0
];
RomSize
=
sizeof
(
Config
->
PlatformInfo
.
Generic
.
Rom
);
AsciiUuid
=
OC_BLOB_GET
(
&
Config
->
PlatformInfo
.
Generic
.
SystemUuid
);
ExFeatures
=
MacInfo
->
Smbios
.
FirmwareFeatures
;
ExFeaturesMask
=
MacInfo
->
Smbios
.
FirmwareFeaturesMask
;
...
...
@@ -569,6 +573,32 @@ OcPlatformUpdateNvram (
));
}
//
// system-id is only visible in BS scope and may be used by EfiBoot
// in macOS 11.0 to generate x86legacy ApECID from the first 8 bytes.
//
if
(
AsciiUuid
[
0
]
!=
'\0'
)
{
Status
=
AsciiStrToGuid
(
AsciiUuid
,
&
Uuid
);
}
else
{
Status
=
EFI_INVALID_PARAMETER
;
}
if
(
!
EFI_ERROR
(
Status
))
{
Status
=
gRT
->
SetVariable
(
L"system-id"
,
&
gAppleVendorVariableGuid
,
EFI_VARIABLE_BOOTSERVICE_ACCESS
,
sizeof
(
Uuid
),
&
Uuid
);
DEBUG
((
EFI_ERROR
(
Status
)
?
DEBUG_WARN
:
DEBUG_INFO
,
"OC: Setting system-id %g - %r
\n
"
,
&
Uuid
,
Status
));
}
if
(
ExFeatures
!=
0
||
ExFeaturesMask
!=
0
)
{
Status
=
gRT
->
SetVariable
(
L"FirmwareFeatures"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录