Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
48f95b65
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,发现更多精彩内容 >>
提交
48f95b65
编写于
6月 22, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcApfsLib: Add `GlobalConnect` mode for device handle connection
closes acidanthera/bugtracker#960
上级
e1b7844d
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
62 addition
and
10 deletion
+62
-10
Changelog.md
Changelog.md
+1
-0
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+12
-0
Docs/Differences/Differences.pdf
Docs/Differences/Differences.pdf
+0
-0
Docs/Differences/Differences.tex
Docs/Differences/Differences.tex
+16
-2
Docs/Errata/Errata.pdf
Docs/Errata/Errata.pdf
+0
-0
Docs/Sample.plist
Docs/Sample.plist
+2
-0
Docs/SampleFull.plist
Docs/SampleFull.plist
+2
-0
Include/Acidanthera/Library/OcApfsLib.h
Include/Acidanthera/Library/OcApfsLib.h
+2
-0
Include/Acidanthera/Library/OcConfigurationLib.h
Include/Acidanthera/Library/OcConfigurationLib.h
+1
-0
Library/OcApfsLib/OcApfsConnect.c
Library/OcApfsLib/OcApfsConnect.c
+23
-8
Library/OcApfsLib/OcApfsLib.inf
Library/OcApfsLib/OcApfsLib.inf
+1
-0
Library/OcConfigurationLib/OcConfigurationLib.c
Library/OcConfigurationLib/OcConfigurationLib.c
+1
-0
Platform/OpenCore/OpenCoreUefi.c
Platform/OpenCore/OpenCoreUefi.c
+1
-0
未找到文件。
Changelog.md
浏览文件 @
48f95b65
...
...
@@ -16,6 +16,7 @@ OpenCore Changelog
-
Fixed slide choice on platforms when 0 slide is unavailable, thx @zhen-zen
-
Fixed assertions caused by unaligned file path access in DEBUG builds
-
Renamed
`ConfigValidity`
utility to
`ocvalidate`
for consistency
-
Added
`GlobalConnect`
for APFS loading to workaround older firmware issues
#### v0.5.9
-
Added full HiDPI support in OpenCanopy
...
...
Docs/Configuration.pdf
浏览文件 @
48f95b65
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
48f95b65
...
...
@@ -4635,6 +4635,18 @@ functioning. Feature highlights:
\texttt
{
ScanPolicy
}
. See more details in ``EFI Jumpstart'' section of
\href
{
https:
//
developer.apple.com
/
support
/
apple
-
file
-
system
/
Apple
-
File
-
System
-
Reference.pdf
}{
Apple File System Reference
}
.
\item
\texttt
{
GlobalConnect
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
boolean
}
\\
\textbf
{
Failsafe
}
:
\texttt
{
false
}
\\
\textbf
{
Description
}
: Perform full device connection during APFS loading.
Instead of partition handle connection normally used for APFS driver loading
every handle is connected recursively. This may take more time than usual
but can be the only way to access APFS partitions on some firmwares like
those found on older HP laptops.
\item
\texttt
{
HideVerbose
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
boolean
}
\\
...
...
Docs/Differences/Differences.pdf
浏览文件 @
48f95b65
无法预览此类型文件
Docs/Differences/Differences.tex
浏览文件 @
48f95b65
\documentclass
[]
{
article
}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Tue Jun 2 03:55:18 2020
%DIF ADD ../Configuration.tex
Sun Jun 21 16:58:05
2020
%DIF ADD ../Configuration.tex
Mon Jun 22 00:02:42
2020
\usepackage
{
lmodern
}
\usepackage
{
amssymb,amsmath
}
...
...
@@ -4732,8 +4732,22 @@ functioning. Feature highlights:
\texttt
{
ScanPolicy
}
. See more details in ``EFI Jumpstart'' section of
\href
{
https:
//
developer.apple.com
/
support
/
apple
-
file
-
system
/
Apple
-
File
-
System
-
Reference.pdf
}{
Apple File System Reference
}
.
\item
\DIFaddbegin
\texttt
{
\DIFadd
{
GlobalConnect
}}
\\
\textbf
{
\DIFadd
{
Type
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
plist
\
boolean
}}
\\
\textbf
{
\DIFadd
{
Failsafe
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
false
}}
\\
\textbf
{
\DIFadd
{
Description
}}
\DIFadd
{
: Perform full device connection during APFS loading.
}
\DIFadd
{
Instead of partition handle connection normally used for APFS driver loading
every handle is connected recursively. This may take more time than usual
but can be the only way to access APFS partitions on some firmwares like
those found on older HP laptops.
}
\item
\texttt
{
HideVerbose
}
\\
\
DIFaddend
\
texttt
{
HideVerbose
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
boolean
}
\\
\textbf
{
Failsafe
}
:
\texttt
{
false
}
\\
\textbf
{
Description
}
: Hide verbose output from APFS driver.
...
...
Docs/Errata/Errata.pdf
浏览文件 @
48f95b65
无法预览此类型文件
Docs/Sample.plist
浏览文件 @
48f95b65
...
...
@@ -848,6 +848,8 @@
<dict>
<key>
EnableJumpstart
</key>
<true/>
<key>
GlobalConnect
</key>
<false/>
<key>
HideVerbose
</key>
<true/>
<key>
JumpstartHotPlug
</key>
...
...
Docs/SampleFull.plist
浏览文件 @
48f95b65
...
...
@@ -951,6 +951,8 @@
<dict>
<key>
EnableJumpstart
</key>
<true/>
<key>
GlobalConnect
</key>
<false/>
<key>
HideVerbose
</key>
<true/>
<key>
JumpstartHotPlug
</key>
...
...
Include/Acidanthera/Library/OcApfsLib.h
浏览文件 @
48f95b65
...
...
@@ -57,6 +57,7 @@
@param[in] MinVersion Minimal allowed APFS driver version to load.
@param[in] MinDate Minimal allowed APFS driver date to load.
@param[in] ScanPolicy OpenCore scan policy.
@param[in] GlobalConnect Perform global device connection for APFS.
@param[in] IgnoreVerbose Avoid APFS driver verbose output.
**/
VOID
...
...
@@ -64,6 +65,7 @@ OcApfsConfigure (
IN
UINT64
MinVersion
,
IN
UINT32
MinDate
,
IN
UINT32
ScanPolicy
,
IN
BOOLEAN
GlobalConnect
,
IN
BOOLEAN
IgnoreVerbose
);
...
...
Include/Acidanthera/Library/OcConfigurationLib.h
浏览文件 @
48f95b65
...
...
@@ -479,6 +479,7 @@ typedef enum {
_(UINT64 , MinVersion , , 0 , ()) \
_(UINT32 , MinDate , , 0 , ()) \
_(BOOLEAN , EnableJumpstart , , FALSE , ()) \
_(BOOLEAN , GlobalConnect , , FALSE , ()) \
_(BOOLEAN , HideVerbose , , FALSE , ()) \
_(BOOLEAN , JumpstartHotPlug , , FALSE , ())
OC_DECLARE
(
OC_UEFI_APFS
)
...
...
Library/OcApfsLib/OcApfsConnect.c
浏览文件 @
48f95b65
...
...
@@ -20,6 +20,7 @@
#include <Library/OcAppleImageVerificationLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcDriverConnectionLib.h>
#include <Library/OcGuardLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
...
...
@@ -34,6 +35,7 @@ STATIC UINT64 mApfsMinimalVersion = OC_APFS_VERSION_DEFAULT;
STATIC
UINT32
mApfsMinimalDate
=
OC_APFS_DATE_DEFAULT
;
STATIC
UINT32
mOcScanPolicy
;
STATIC
BOOLEAN
mIgnoreVerbose
;
STATIC
BOOLEAN
mGlobalConnect
;
STATIC
EFI_SYSTEM_TABLE
*
mNullSystemTable
;
//
...
...
@@ -327,12 +329,23 @@ ApfsStartDriver (
return
Status
;
}
//
// Recursively connect controller to get apfs.efi loaded.
// We cannot use apfs.efi handle as it apparently creates new handles.
// This follows ApfsJumpStart driver implementation.
//
gBS
->
ConnectController
(
PrivateData
->
LocationInfo
.
ControllerHandle
,
NULL
,
NULL
,
TRUE
);
if
(
mGlobalConnect
)
{
//
// Connect all devices when implicitly requested. This is a workaround
// for some older HP laptops, which for some reason fail to connect by both
// drive and partition handles.
// REF: https://github.com/acidanthera/bugtracker/issues/960
//
OcConnectDrivers
();
}
else
{
//
// Recursively connect controller to get apfs.efi loaded.
// We cannot use apfs.efi handle as it apparently creates new handles.
// This follows ApfsJumpStart driver implementation.
//
gBS
->
ConnectController
(
PrivateData
->
LocationInfo
.
ControllerHandle
,
NULL
,
NULL
,
TRUE
);
}
return
EFI_SUCCESS
;
}
...
...
@@ -391,6 +404,7 @@ OcApfsConfigure (
IN
UINT64
MinVersion
,
IN
UINT32
MinDate
,
IN
UINT32
ScanPolicy
,
IN
BOOLEAN
GlobalConnect
,
IN
BOOLEAN
IgnoreVerbose
)
{
...
...
@@ -413,8 +427,9 @@ OcApfsConfigure (
mApfsMinimalDate
=
MinDate
;
}
mOcScanPolicy
=
ScanPolicy
;
mIgnoreVerbose
=
IgnoreVerbose
;
mOcScanPolicy
=
ScanPolicy
;
mIgnoreVerbose
=
IgnoreVerbose
;
mGlobalConnect
=
GlobalConnect
;
}
EFI_STATUS
...
...
Library/OcApfsLib/OcApfsLib.inf
浏览文件 @
48f95b65
...
...
@@ -57,6 +57,7 @@
DebugLib
OcAppleImageVerificationLib
OcConsoleLib
OcDriverConnectionLib
OcGuardLib
OcMiscLib
MemoryAllocationLib
...
...
Library/OcConfigurationLib/OcConfigurationLib.c
浏览文件 @
48f95b65
...
...
@@ -566,6 +566,7 @@ STATIC
OC_SCHEMA
mUefiApfsSchema
[]
=
{
OC_SCHEMA_BOOLEAN_IN
(
"EnableJumpstart"
,
OC_GLOBAL_CONFIG
,
Uefi
.
Apfs
.
EnableJumpstart
),
OC_SCHEMA_BOOLEAN_IN
(
"GlobalConnect"
,
OC_GLOBAL_CONFIG
,
Uefi
.
Apfs
.
GlobalConnect
),
OC_SCHEMA_BOOLEAN_IN
(
"HideVerbose"
,
OC_GLOBAL_CONFIG
,
Uefi
.
Apfs
.
HideVerbose
),
OC_SCHEMA_BOOLEAN_IN
(
"JumpstartHotPlug"
,
OC_GLOBAL_CONFIG
,
Uefi
.
Apfs
.
JumpstartHotPlug
),
OC_SCHEMA_INTEGER_IN
(
"MinDate"
,
OC_GLOBAL_CONFIG
,
Uefi
.
Apfs
.
MinDate
),
...
...
Platform/OpenCore/OpenCoreUefi.c
浏览文件 @
48f95b65
...
...
@@ -538,6 +538,7 @@ OcLoadUefiSupport (
Config
->
Uefi
.
Apfs
.
MinVersion
,
Config
->
Uefi
.
Apfs
.
MinDate
,
Config
->
Misc
.
Security
.
ScanPolicy
,
Config
->
Uefi
.
Apfs
.
GlobalConnect
,
Config
->
Uefi
.
Apfs
.
HideVerbose
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录