{\rtf1\adeflang1025\ansi\ansicpg1252\uc2\adeff0\deff0\stshfdbch13\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe2052{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman{\*\falt Times};}{\f13\fnil\fcharset134\fprq2{\*\panose 02010600030101010101}\'cb\'ce\'cc\'e5{\*\falt SimSun};}
{\f38\fnil\fcharset134\fprq2{\*\panose 02010600030101010101}@\'cb\'ce\'cc\'e5;}{\f39\fswiss\fcharset0\fprq2{\*\panose 020b0604030504040204}Verdana{\*\falt Tahoma};}{\f148\froman\fcharset238\fprq2 Times New Roman CE{\*\falt Times};}
{\f149\froman\fcharset204\fprq2 Times New Roman Cyr{\*\falt Times};}{\f151\froman\fcharset161\fprq2 Times New Roman Greek{\*\falt Times};}{\f152\froman\fcharset162\fprq2 Times New Roman Tur{\*\falt Times};}
{\f153\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew){\*\falt Times};}{\f154\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic){\*\falt Times};}{\f155\froman\fcharset186\fprq2 Times New Roman Baltic{\*\falt Times};}
{\f156\froman\fcharset163\fprq2 Times New Roman (Vietnamese){\*\falt Times};}{\f280\fnil\fcharset0\fprq2 SimSun Western{\*\falt SimSun};}{\f530\fnil\fcharset0\fprq2 @\'cb\'ce\'cc\'e5 Western;}{\f538\fswiss\fcharset238\fprq2 Verdana CE{\*\falt Tahoma};}
{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\rsidtbl \rsid2914101\rsid12466860}{\*\generator Microsoft Word 11.0.0000;}{\info{\operator lgao4}{\creatim\yr2008\mo12\dy31\hr15\min8}{\revtim\yr2010\mo3\dy18\hr17\min7}{\version3}{\edmins0}{\nofpages3}
EfiRom is used to build an Option ROM image from UEFI PE32 file(s) and/or legacy option ROM images that conform to PCI 2.3 or PCI 3.0 specifications for Option ROM layout. The EfiRom utility performs some rudimentary checking on the input Portable Executa
\hich\af39\dbch\af13\loch\f39 b\hich\af39\dbch\af13\loch\f39 le (PE) PE32 files to verify they are indeed PE32 images. These checks include:
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Verification that the DOS stub magic value is 0x5A4D
\par \hich\af39\dbch\af13\loch\f39 \hich\f39 Verification that the PE signature is \'93\loch\f39 PE\\0\\\hich\f39 0\'94
\par }\pard \ltrpar\ql \li0\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 If either of these checks fails then the utility will abort without creating
\hich\af39\dbch\af13\loch\f39 the output ROM image file.
\par \hich\af39\dbch\af13\loch\f39 This utility performs some rudimentary checking of the input binary files to verify they are indeed valid option ROM images. These checks include:
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Verification that the signature of the option ROM header is 0xAA55
\par \hich\af39\dbch\af13\loch\f39 Verification t\hich\af39\dbch\af13\loch\f39 hat the offset to the PCI data structure is within the range of the file size.
\par \hich\af39\dbch\af13\loch\f39 \hich\f39 Verification that the signature of the PCI data structure is \'93\loch\f39 \hich\f39 PCIR\'94\loch\f39 .
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Do not set the LAST bit on the last file.
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Use ClassCode in the PCI data structure header in the input file.
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Use Rev in the PCI data structure header in the input
Turn on verbose output with informational messages printed. This is a count value, so specifying \hich\f39 \endash \loch\f39 vv can be used to increase the verbosity level.
\par }\pard \ltrpar\ql \li360\ri0\sb200\nowidctlpar\wrapdefault\faauto\rin0\lin360\itap0 {\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Print the copyright, version and usage of this program then exit.
\fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Generate the Option ROM with two efi binary files and one legacy binary file. The output filename is not specified in c\hich\af39\dbch\af13\loch\f39 \hich\f39
ommand line, so the output filename will be \'93\loch\f39 \hich\f39 File1.rom\'94\loch\f39 \hich\f39 . The output filename is the same as the first input filename with the extension \'93\loch\f39 \hich\f39 .rom\'94
\par }{\rtlch\fcs1 \ab\af39\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 EfiRom \hich\f39 \endash \loch\f39 e File1.efi File2.efi \hich\f39 \endash \loch\f39 b Legacy.bin
\par }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Generate the Option ROM with two efi binary files and one legacy bina\hich\af39\dbch\af13\loch\f39
ry file with the output filename specified on the command line.
\par }{\rtlch\fcs1 \ab\af39\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 EfiRom \hich\f39 \endash \loch\f39 o file.rom \hich\f39 \endash \loch\f39 e File1.efi File2.efi \hich\f39 \endash \loch\f39 b Legacy.bin
\par }{\rtlch\fcs1 \af39\afs18 \ltrch\fcs0 \fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 Generate the Option ROM with two efi binary files and one legacy binary file. The output filename is not specified in command line, so t
\hich\af39\dbch\af13\loch\f39 \hich\f39 he output filename will be \'93\loch\f39 \hich\f39 File1.rom\'94\loch\f39 \hich\f39 . The output filename is the same as the first input filename with the extension \'93\loch\f39 \hich\f39 .rom\'94\loch\f39
. Vendor ID and Device ID are both specified in command line and the efi binary files will be compressed using the Tiano Compressi\hich\af39\dbch\af13\loch\f39 o\hich\af39\dbch\af13\loch\f39 n algorithm.
Generate the Option ROM with two efi binary files and one legacy binary file with the output filename is specified in command line. Vendor ID and Device ID are both specified in \hich\af39\dbch\af13\loch\f39
command line and the efi binary files will be compressed using the Tiano Compression algorithm.
\par }{\rtlch\fcs1 \ab\af39\afs18 \ltrch\fcs0 \b\fs18\cf1\insrsid12466860 \hich\af39\dbch\af13\loch\f39 EfiRom \hich\f39 \endash \loch\f39 o file.rom \hich\f39 \endash \loch\f39 i 0xABCD \hich\f39 \endash \loch\f39 f 0x1234 \hich\f39 \endash \loch\f39
ec File1.efi File2.efi \hich\f39 \endash \loch\f39 b Legacy.bin