Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
0339a1c5
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,发现更多精彩内容 >>
提交
0339a1c5
编写于
4月 10, 2019
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCore: Make logging configurable
上级
859f9028
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
82 addition
and
11 deletion
+82
-11
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+78
-6
Platform/OpenCore/OpenCore.c
Platform/OpenCore/OpenCore.c
+4
-5
未找到文件。
Docs/Configuration.pdf
浏览文件 @
0339a1c5
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
0339a1c5
...
...
@@ -16,6 +16,7 @@
\usepackage
[margin=0.7in]
{
geometry
}
\usepackage
{
titlesec
}
\usepackage
[yyyymmdd,hhmmss]
{
datetime
}
\usepackage
{
textcomp
}
\usepackage
{
tikz
}
\usetikzlibrary
{
trees
}
...
...
@@ -30,12 +31,13 @@
frame=tb,
columns=fullflexible,
captionpos=b,
morekeywords=
{
git, make, build
}
,
morekeywords=
{
git, make, build
, ioreg, grep, nvram
}
,
literate =
{
"
}{{
\
uprightquote
}}
1
{
"
}{{
\
textquotedbl
}}
1
{
'
}{{
\textquotesingle
}}
1
{
-
}{{
-
}}
1
{
~
}{{
\centeredtilde
}}
1
{
~
}{{
\texttildelow
}}
1
{
*
}{{
*
}}
1
,
}
...
...
@@ -99,7 +101,6 @@ Currently this file has the following entries not completed:
\begin{itemize}
\item
Known
\texttt
{
UEFI
}
driver list is incomplete.
\item
Not all
\texttt
{
NVRAM
}
variables are properly described (e.g. boot-args).
\item
\texttt
{
Misc
}
section is missing.
\end{itemize}
\section
{
Generic Terms
}
\label
{
generic-terms
}
...
...
@@ -846,7 +847,9 @@ blocking.
\textbf
{
Description
}
: Load selected kernel drivers from
\texttt
{
OC/Kexts
}
directory.
Designed to be filled with
\texttt
{
plist
\
dict
}
values, describing each driver.
See
\hyperref
[kernelpropsadd]
{
Add Properties
}
section below.
See
\hyperref
[kernelpropsadd]
{
Add Properties
}
section below. Kernel driver load
order follows the item order in the array, thus the dependencies should be written
prior to their consumers.
\item
\texttt
{
Block
}
\\
...
...
@@ -1118,7 +1121,69 @@ behaviour that does not go to any other sections
\subsection
{
Properties
}
\label
{
miscprops
}
FIXME
\begin{enumerate}
\item
\texttt
{
Debug
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
dict
}
\\
\textbf
{
Description
}
: Apply debug configuration described in
\hyperref
[miscdebugprops]
{
Debug Properties
}
section below.
\end{enumerate}
\subsection
{
Debug Properties
}
\label
{
miscdebugprops
}
\begin{enumerate}
\item
\texttt
{
Delay
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
\\
\textbf
{
Default value
}
:
\texttt
{
0
}
\\
\textbf
{
Description
}
: Delay in microseconds performed after
every printed line of visible logging output like console,
Data Hub, or serial port.
\item
\texttt
{
Target
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
\\
\textbf
{
Default value
}
:
\texttt
{
0
}
\\
\textbf
{
Description
}
: A bitmask (sum) of enabled logging targets.
By default all the logging output is hidden, so this option is
required to be set when debugging is necessary. The following
logging targets are supported:
\begin{itemize}
\tightlist
\item
\texttt
{
1
}
--- Enable logging, otherwise all log is discarded.
\item
\texttt
{
2
}
--- Enable basic console (onscreen) logging.
\item
\texttt
{
4
}
--- Enable logging to Data Hub.
\item
\texttt
{
8
}
--- Enable serial port logging.
\item
\texttt
{
16
}
--- Enable UEFI variable logging.
\item
\texttt
{
32
}
--- Enable non-volatile UEFI variable logging.
\item
\texttt
{
64
}
--- Enable logging to file.
\end{itemize}
\emph
{
Note
}
: Console logging prints less than all the other variants.
Depending on the build type (
\texttt
{
RELEASE
}
,
\texttt
{
DEBUG
}
, or
\texttt
{
NOOPT
}
) different amount of logging may be read (from least to most).
\emph
{
Note
}
: To obtain Data Hub log use the following command
in macOS:
\begin{lstlisting}
[label=dhublog, style=ocbash]
ioreg -lw0 -p IODeviceTree | grep boot-log | sed 's/.*<
\(
.
*
\)
>.*/
\1
/'
\end{lstlisting}
\emph
{
Note
}
: UEFI variable log may get truncated on some firmwares.
Using non-volatile flag will write the log to NVRAM flash after every
printed line. To obtain UEFI variable log use the following command
in macOS:
\begin{lstlisting}
[label=nvramlog, style=ocbash]
nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-log |
\
awk '
{
gsub(/
%0d%0a%00/,"");gsub(/%0d%0a/,"\n")}1'
\end{lstlisting}
\emph
{
Note
}
: File logging is currently not implemented.
\end{enumerate}
\section
{
NVRAM
}
\label
{
nvram
}
...
...
@@ -1149,6 +1214,13 @@ several GUIDs, including but not limited to:
(
\texttt
{
EFI
\_
GLOBAL
\_
VARIABLE
\_
GUID
}
)
\end{itemize}
\emph
{
Note
}
: Some of the variables may be added by
\hyperref
[platforminfonvram]
{
PlatformNVRAM
}
or
\hyperref
[platforminfogeneric]
{
Generic
}
subsections of
\hyperref
[platforminfo]
{
PlatformInfo
}
section.
Please ensure that variables of this section never collide with them,
as behaviour is undefined otherwise.
\subsection
{
Properties
}
\label
{
nvramprops
}
\begin{enumerate}
...
...
Platform/OpenCore/OpenCore.c
浏览文件 @
0339a1c5
...
...
@@ -114,11 +114,10 @@ OcMain (
DEBUG
((
DEBUG_ERROR
,
"OC: Failed to load configuration!
\n
"
));
}
//
// TODO: Make this configurable, additional variants include:
// OC_LOG_DATA_HUB | OC_LOG_SERIAL | OC_LOG_VARIABLE | OC_LOG_NONVOLATILE | OC_LOG_FILE
//
OcConfigureLogProtocol
(
OC_LOG_ENABLE
|
OC_LOG_CONSOLE
);
OcConfigureLogProtocol
(
mOpenCoreConfiguration
.
Misc
.
Debug
.
Target
,
mOpenCoreConfiguration
.
Misc
.
Debug
.
Delay
);
OcCpuScanProcessor
(
&
CpuInfo
);
OcLoadUefiSupport
(
Storage
,
&
mOpenCoreConfiguration
,
&
CpuInfo
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录