audk/BaseTools/UserManuals/VolInfo_Utility_Man_Page.rtf

48 lines
4.9 KiB
Plaintext
Raw Normal View History

{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab360{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red8\green96\blue168;\red0\green0\blue0;}
{\stylesheet{ Normal;}{\s1 heading 1;}{\s2 heading 2;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\f0\fs28 Name\par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 VolInfo \endash Displays the contents of a firmware volume\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 Synopsis\par
\pard\nowidctlpar\li360\sb200\cf2\fs18 VolInfo [options] [target]\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\fs28 Description\par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 VolInfo is a utility which displays the contents of a firmware volume residing in a file for informational purposes.\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 Options\par
\pard\nowidctlpar\li360\sb200\cf2\fs18 -x xref, --xref xref\par
\pard\nowidctlpar\li720\sb200\b0 xref is the path to a file-guid cross reference file. This file will be used to provide human readable names to the GUIDs found in the firmware volume.\par
\pard\nowidctlpar\li360\sb200\b --offset offset\par
\pard\nowidctlpar\li720\sb200\b0 offset is the offset within the file to start processing the firmware volume. This can be useful if the specified disk file is a firmware device image which generally will contain multiple firmware volume. The offset is a number and can be specified as a decimal number or a hexadecimal number (for example, 0x1ffe). If a 'k' suffix is attached to the number, then the number will be multiplied by 1024 (0x400) to turn the number into kilobytes.\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 Examples\par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 Assume that $(WORKSPACE) is /home/joeuser/src/edk2 and the firmware volumes have been built into Build/EdkUnix/DEBUG_UNIXGCC/FV.\par
\pard\nowidctlpar\li720\sb200 ~/src/edk2$\b VolInfo Build/EdkUnix/DEBUG_UNIXGCC/FV/FVMAIN.fv\cf0\b0\f1\fs24\par
\pard\nowidctlpar\li360\sb200\cf2\f0\fs18 Assuming that a firmware device image had been built and that the firmware volume of interest resided at byte offset 65536 of that file, then the following command would show that firmware volume.\par
\pard\nowidctlpar\li720\sb200 ~/src/edk2$ \b VolInfo --offset 65536 path/to/FV/EDKUNIX.fd\b0\f1\par
\pard\nowidctlpar\li360\sb200\f0 Or, equivalently,\par
\pard\nowidctlpar\li720\sb200 ~/src/edk2$ \b VolInfo --offset 64k path/to/FV/EDKUNIX.fd\b0\f1\par
\pard\nowidctlpar\li360\sb200\f0 Or, equivalently,\par
\pard\nowidctlpar\li720\sb200 ~/src/edk2$ \b VolInfo --offset 0x10000 path/to/FV/EDKUNIX.fd\b0\f1\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\f0\fs28 GuidedSectionTools.txt \par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 This (optional) file is built as part of the edk2 build process. It will be generated in the FV directory alongside the firmware volume file. The VolInfo utility will look for this file alongside the input firmware volume file, and if found it will read it's contents to define tools to use for extracting GUID defined firmware volume sections.\par
Each line contains three tokens and they are separated by whitespace. The three tokens are (in order): 1) the GUID associated with the tool, 2) a name for the tool, and 3) the path to the tool executable. An example of a possible line from the file:\par
\pard\nowidctlpar\li720\sb200 a31280ad-481e-41b6-95e8-127f4c984779 TIANO /path/to/TianoCompress\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 Files \par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 GuidedSectionTools.txt\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 Bugs \par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 No known bugs.\par
Report bugs to edk2-buildtools-devel@lists.sourceforge.net\f1\par
\pard\nowidctlpar\sb400\sa60\sl-340\slmult0\tx1440\cf1\b\f0\fs28 Files \par
\pard\nowidctlpar\li360\sb200\cf2\b0\fs18 GuidedSectionTools.txt\par
\pard\keep\keepn\nowidctlpar\s2\sb400\sa60\sl-340\slmult0\tx360\tx1440\cf1\b\fs28 License\par
\pard\nowidctlpar\li360\cf2\b0\fs18 Copyright (c) 1999 - 2009, Intel Corporation. All rights reserved.\par
\par
This program and the accompanying materials are licensed and made available under the terms and\par
conditions of the BSD License which accompanies this distribution. The full text of the license may be\par
found at:\par
http://opensource.org/licenses/bsd-license.php\par
\par
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES\par
OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\par
\par
\pard\nowidctlpar\li360\sb200\cf0\f1\fs24\par
}