diff options
author | Duggapu, Chinni B <chinni.b.duggapu@intel.com> | 2023-04-16 21:22:56 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-18 06:09:25 +0000 |
commit | b16284e2a0011489f6e16dfcc6af7623c3cbaf0b (patch) | |
tree | af3567cd948bcbab68efabcf8753f92c1ac5c5a4 /IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md | |
parent | 6ded9f50c3aa123fe581c42ff6c03789b9b593c1 (diff) | |
download | edk2-b16284e2a0011489f6e16dfcc6af7623c3cbaf0b.tar.gz edk2-b16284e2a0011489f6e16dfcc6af7623c3cbaf0b.tar.bz2 edk2-b16284e2a0011489f6e16dfcc6af7623c3cbaf0b.zip |
IntelFsp2Pkg/Tools: Enhance PathFv.py to patch Fd file directly
https://bugzilla.tianocore.org/show_bug.cgi?id=4412
After shrinking the FSP (FV) component using FMMT, Image size
in FSP info header is not in sync with the FV length in FV header.
This enhancement helps to patch the FSP image size offset with
correct length & can be used to patch any offset directly on
the FSP Component Fd.
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ted Kuo <ted.kuo@intel.com>
Signed-off-by: Duggapu Chinni B <chinni.b.duggapu@intel.com>
Reviewed-by: Ted Kuo <ted.kuo@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Diffstat (limited to 'IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md')
-rw-r--r-- | IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md b/IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md index 5f1031e729..f28eedf625 100644 --- a/IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md +++ b/IntelFsp2Pkg/Tools/UserManuals/PatchFvUserManual.md @@ -1,6 +1,7 @@ #Name
**_PatchFv.py_** - The python script that patches the firmware volumes (**FV**)
with in the flash device (**FD**) file post FSP build.
+From version 0.60, script is capable of patching flash device (**FD**) directly.
#Synopsis
@@ -10,6 +11,12 @@ PatchFv FvBuildDir [FvFileBaseNames:]FdFileBaseNameToPatch ["Offset, Value"]+ | ["Offset, Value, $Command"]+
| ["Offset, Value, $Command, @Comment"]+
```
+```
+PatchFv FdFileDir FdFileName ["Offset, Value"]+
+ | ["Offset, Value, @Comment"]+
+ | ["Offset, Value, $Command"]+
+ | ["Offset, Value, $Command, @Comment"]+
+```
#Description
The **_PatchFv.py_** tool allows the developer to fix up FD images to follow the
@@ -102,6 +109,19 @@ ModuleGuid:Offset < > Convert absolute address <expr> into an image offset (expr & FSP_SIZE)
```
+From version 0.60 tool allows to pass flash device file path as Argument 1 and
+flash device name as Argument 2 and rules for passing offset & value are same
+as explained in the previous sections.
+
+####Example usage:
+Argument 1
+```
+ YouPlatformFspBinPkg\
+```
+Argument 2
+```
+ Fsp_Rebased_T
+```
###Special Commands:
Special commands must use the **$** symbol as a prefix to the command itself.
|