]>
Commit | Line | Data |
---|---|---|
0fbffbc0 JY |
1 | # SplitFspBin.py is a python script to support some operations on Intel FSP 2.0 image.\r |
2 | \r | |
3 | It supports:\r | |
4 | \r | |
5 | - Split Intel FSP 2.0 image into individual FSP-T/M/S/O component\r | |
6 | \r | |
7 | - Rebase Intel FSP 2.0 components to different base addresses\r | |
8 | \r | |
9 | - Generate Intel FSP 2.0 C header file\r | |
10 | \r | |
11 | - Display Intel FSP 2.0 information header for each FSP component\r | |
12 | \r | |
13 | ## Split Intel FSP 2.0 image\r | |
14 | \r | |
15 | To split individual FSP component in Intel FSP 2.0 image, the following\r | |
16 | command can be used:\r | |
17 | \r | |
18 | **python SplitFspBin.py split [-h] -f FSPBINARY [-o OUTPUTDIR] [-n NAMETEMPLATE]**\r | |
19 | \r | |
20 | For example: \r | |
21 | \r | |
22 | `python SplitFspBin.py split -f FSP.bin`\r | |
23 | \r | |
24 | It will create FSP_T.bin, FSP_M.bin and FSP_S.bin in current directory.\r | |
25 | \r | |
26 | ## Rebase Intel FSP 2.0 components\r | |
27 | \r | |
28 | To rebase one or multiple FSP components in Intel FSP 2.0 image, the following\r | |
29 | command can be used:\r | |
30 | \r | |
31 | **python SplitFspBin.py rebase [-h] -f FSPBINARY -c {t,m,s,o} [{t,m,s,o} ...] -b FSPBASE [FSPBASE ...] [-o OUTPUTDIR] [-n OUTPUTFILE]**\r | |
32 | \r | |
33 | For example: \r | |
34 | \r | |
35 | `python SplitFspBin.py rebase -f FSP.bin –c t –b 0xFFF00000 –n FSP_new.bin`\r | |
36 | \r | |
37 | It will rebase FSP-T component inside FSP.bin to new base 0xFFF00000 and save the\r | |
38 | rebased Intel FSP 2.0 image into file FSP_new.bin.\r | |
39 | \r | |
40 | `python SplitFspBin.py rebase -f FSP.bin –c t m –b 0xFFF00000 0xFEF80000 –n FSP_new.bin`\r | |
41 | \r | |
42 | It will rebase FSP-T and FSP-M components inside FSP.bin to new base 0xFFF00000\r | |
43 | and 0xFEF80000 respectively, and save the rebased Intel FSP 2.0 image into file \r | |
44 | FSP_new.bin file.\r | |
45 | \r | |
46 | ## Generate Intel FSP 2.0 C header file\r | |
47 | \r | |
48 | To generate Intel FSP 2.0 C header file, the following command can be used:\r | |
49 | \r | |
50 | **Python SplitFspBin.py genhdr [-h] -f FSPBINARY [-o OUTPUTDIR] [-n HFILENAME]**\r | |
51 | \r | |
52 | For example: \r | |
53 | \r | |
54 | `python SplitFspBin.py genhdr -f FSP.bin –n FSP.h`\r | |
55 | \r | |
56 | It will create the C header file FSP.h containing the image ID, revision, offset\r | |
57 | and size for each individual FSP component.\r | |
58 | \r | |
59 | ## Display Intel FSP 2.0 information header\r | |
60 | \r | |
61 | To display Intel FSP 2.0 information headers, the following command can be used:\r | |
62 | \r | |
63 | **Python SplitFspBin.py info [-h] -f FSPBINARY**\r | |
64 | \r | |
65 | For example: \r | |
66 | \r | |
67 | `python SplitFspBin.py info -f FSP.bin`\r | |
68 | \r | |
69 | It will print out the FSP information header for each FSP component.\r |