Skip to content

Commit

Permalink
Docs: Refresh documentation and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 8, 2019
1 parent 2b60de5 commit 797932b
Show file tree
Hide file tree
Showing 8 changed files with 5,556 additions and 14 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
@@ -1,5 +1,10 @@
OpenCore Changelog
==================

#### v0.0.2
- Documentation improvements (see Differences.pdf)
- Platform information database updates
- Fixed misbehaving Debug -> Target enable bit

#### v0.0.1
- Initial developer preview release
32 changes: 32 additions & 0 deletions Docs/BuildDocs.tool
@@ -0,0 +1,32 @@
#!/bin/bash

abort() {
echo "ERROR: $1!"
exit 1
}

cd "$(dirname "$0")" || abort "Wrong directory"

if [ "$(which latexdiff)" = "" ]; then
abort "latexdiff is missing, check your TeX Live installation"
fi

if [ "$(which pdflatex)" = "" ]; then
abort "pdflatex is missing, check your TeX Live installation"
fi

pdflatex Configuration.tex || \
abort "Unable to create configuration pdf"
pdflatex Configuration.tex || \
abort "Unable to create configuration pdf with TOC"

cd Differences || abort "Unable to process annotations"

latexdiff -s ONLYCHANGEDPAGE PreviousConfiguration.tex ../Configuration.tex \
> Differences.tex || \
abort "Unable to differentiate"

pdflatex Differences || \
abort "Unable to create differences pdf"
pdflatex Differences || \
abort "Unable to create differences pdf with TOC"
Binary file modified Docs/Configuration.pdf
Binary file not shown.
52 changes: 38 additions & 14 deletions Docs/Configuration.tex
Expand Up @@ -72,7 +72,7 @@

\vspace{0.2in}

Reference Manual
Reference Manual (0.0.2)

\vspace{0.2in}

Expand Down Expand Up @@ -100,11 +100,6 @@ \subsection{Known defects}\label{reported-defects}

For OpenCore issues please refer to
\href{https://github.com/acidanthera/bugtracker}{Acidanthera Bugtracker}.
Currently this file has the following entries not completed:

\begin{itemize}
\item Not all \texttt{NVRAM} variables are properly described (e.g. boot-args).
\end{itemize}

\section{Generic Terms}\label{generic-terms}

Expand Down Expand Up @@ -1315,11 +1310,21 @@ \subsection{Boot Properties}\label{miscbootprops}
\texttt{Resolution}\\
\textbf{Type}: \texttt{plist\ string}\\
\textbf{Default value}: Empty string\\
\textbf{Description}: Sets console output screen resolution as specified
with the \texttt{WxH@Bpp} (e.g. \texttt{1920x1080@32}) or
\texttt{WxH} (e.g. \texttt{1920x1080}) formatted string. Set to empty string
not to change screen resolution. Set to \texttt{Max} to try to use largest
available screen resolution.
\textbf{Description}: Sets console output screen resolution.

\begin{itemize}
\tightlist
\item Set to \texttt{WxH@Bpp} (e.g. \texttt{1920x1080@32}) \texttt{WxH}
(e.g. \texttt{1920x1080}) formatted string to request custom resolution
from GOP if available.
\item Set to empty string not to change screen resolution.
\item Set to \texttt{Max} to try to use largest available screen resolution.
\end{itemize}

On HiDPI screens \texttt{APPLE\_VENDOR\_VARIABLE\_GUID} \texttt{UIScale}
NVRAM variable may need to be set to \texttt{02} to enable HiDPI scaling
in FileVault 2 UEFI password interface and boot screen logo. Refer to
\hyperref[nvramvarsrec]{Recommended Variables} section for more details.

\emph{Note}: This will fail when console handle has no GOP protocol. When
the firmware does not provide it, it can be added with \texttt{ProvideConsoleGop}
Expand Down Expand Up @@ -1440,6 +1445,10 @@ \subsection{Debug Properties}\label{miscdebugprops}
awk '{gsub(/%0d%0a%00/,"");gsub(/%0d%0a/,"\n")}1'
\end{lstlisting}

\emph{Warning}: Some firmwares are reported to have broken NVRAM garbage collection.
This means that they may not be able to always free space after variable deletion.
Do not use non-volatile NVRAM logging without extra need on such devices.

While OpenCore boot log already contains basic version information with build type and
date, this data may also be found in NVRAM in \texttt{opencore-version} variable
even with boot log disabled:
Expand Down Expand Up @@ -1725,10 +1734,25 @@ \subsection{Other Variables}\label{nvramvarsother}
Kernel arguments, used to pass configuration to Apple kernel and drivers.
There are many arguments, which may be found by looking for the use of
\texttt{PE\_parse\_boot\_argn} function in the kernel or driver code.
Some of the known boot arguments include:

\begin{itemize}
\item FIXME: document several known values! debug, keepsyms, slide, -v, -s,
-x, cpus=x, io=x, kextlog=x, -nehalem\_error\_disable -no\_compat\_check nvda\_drv=1, etc?
\item \texttt{acpi\_layer=0xFFFFFFFF}
\item \texttt{acpi\_level=0xFFFF5F} (implies
\href{https://github.com/acpica/acpica/blob/master/source/include/acoutput.h}
{\texttt{ACPI\_ALL\_COMPONENTS}})
\item \texttt{cpus=VALUE}
\item \texttt{debug=VALUE}
\item \texttt{io=VALUE}
\item \texttt{keepsyms=1}
\item \texttt{kextlog=VALUE}
\item \texttt{nvda\_drv=1}
\item \texttt{slide=VALUE}
\item \texttt{-nehalem\_error\_disable}
\item \texttt{-no\_compat\_check}
\item \texttt{-s}
\item \texttt{-v}
\item \texttt{-x}
\end{itemize}

\item
Expand Down Expand Up @@ -2678,7 +2702,7 @@ \subsection{Tips and Tricks}\label{troubleshootingtricks}
Custom name may be created by providing \texttt{.contentDetails} file.

To download recovery online you may use
\href{https://github.com/acidanthera/OcSupportPkg/tree/master/Tools/Recovery}{Recovery}
\href{https://github.com/acidanthera/OcSupportPkg/tree/master/Tools/Recovery}{Recovery}
tool from \href{https://github.com/acidanthera/OcSupportPkg}{OcSupportPkg}.

\end{enumerate}
Expand Down
Binary file added Docs/Differences/Differences.pdf
Binary file not shown.

0 comments on commit 797932b

Please sign in to comment.