Trammell hudson
a1fd2f72da
repack LZMA compressed files so that they are uncompressed
2018-04-10 15:14:04 -04:00
Gan Shun Lim
5617d646d3
Fix for newer versions of lzma
...
Newer versions of lzma seem to require the files have the correct
extension, this pipes them in via stdin instead.
Signed-off-by: Gan Shun Lim <ganshun@gmail.com>
2018-03-25 13:07:30 -07:00
Trammell hudson
b11a3cd0d1
Quiet some of the output
2018-03-16 10:35:44 -04:00
Trammell hudson
b67e0fc403
Compact NVRAM NVAR firmware files.
...
This tool will remove old versions of NVRAM NVAR non-volatile
variables and leave only the final version. The UEFI
`FaultTolerantWriteProtocol` makes a new copy every time a
variable is modified, leading to numerous copies in the ROM
image. For reproducibility we want only the last version.
This also will make it possible to add new variables at image
build time for things like the LinuxBoot kernel command line.
2018-03-16 10:35:44 -04:00
Gan Shun Lim
dad0bc1415
Fix check in fit-parse
...
The value of fit_offset cannot possibly be greater than the
length of the rom, since fit_ptr is restricted to be 32 bits.
Check instead that the fit_ptr doesn't point outside the rom,
or in other words that fit_offset isn't less than 0.
2018-02-07 09:39:36 -08:00
Trammell hudson
503688a835
Change FV creation to take a list of files instead of using fv_append()
2018-02-02 11:02:56 -05:00
Trammell hudson
764b3bfc22
add -h | --help option, change ending offset to length argument
2018-02-02 08:40:42 -05:00
Trammell hudson
0d33925b8e
add -h | --help option, handle empty argument case
2018-02-02 08:40:14 -05:00
Trammell hudson
dda4ca6404
auto mode will try to detect the section types from the uefi-firmware-parser filenames
2018-02-01 18:28:16 -05:00
Trammell hudson
41d483b5a5
fix length of IFD at 64 KB
2018-01-31 17:22:46 -05:00
Trammell hudson
44d6171713
warn, not die on invalid section length (dell r630 has bad sections)
2018-01-30 10:52:02 -05:00
Trammell hudson
c6fbf2b9fe
warn, but do not fail on fv size errors
2018-01-27 15:33:56 -05:00
Trammell hudson
e6d9e32bdc
remove heads commandline tools
2018-01-27 15:30:23 -05:00
Trammell hudson
0d68aa8942
extract IFD so that it can be replaced by unlocked/resized version
2018-01-27 10:33:42 -05:00
Trammell hudson
0e22590c5e
handle pad files and ignore tiano compressed sections
2018-01-26 23:09:57 -05:00
Trammell hudson
c1b15f69dc
output empty regions, since we might need them for padding
2018-01-26 22:05:06 -05:00
Trammell hudson
a460c4aa14
fix sense of end_offset test
2018-01-26 15:56:25 -05:00
Trammell hudson
fc0494c5b4
getoptions
2018-01-26 15:54:46 -05:00
Trammell hudson
f4d8597ce6
unified output format of extract-firmware
2018-01-26 15:47:53 -05:00
Trammell hudson
beedc1cb5c
extract firmware works on FFSv2 and FFSv3 files
2018-01-26 15:08:48 -05:00
Trammell hudson
e8c0acaff7
extract names from sections
2018-01-26 13:51:17 -05:00
Trammell hudson
d07129b7f7
initial script to extract firmware volumes and files from existing imgaes
2018-01-26 13:07:56 -05:00
Trammell hudson
8a097f94fa
fix size in warning
2018-01-25 18:22:17 -05:00
Trammell hudson
d889032f4e
Rename output to linuxboot instead of nerf.
...
Change sense of create-fv sizes to be more regular.
Helpers for section extraction.
2018-01-25 12:20:42 -05:00
Trammell hudson
085705c994
fix section alignment so that DxeCore likes it - compressed FS boots now
2018-01-22 15:43:40 -05:00
Trammell hudson
a2322e858a
replace non-useful structure with useful hints on usage
2018-01-21 10:32:16 -05:00
Trammell hudson
f87c8081bd
Add -v output for create-fv
2018-01-21 07:40:03 -05:00
Trammell hudson
18bec9b3b4
Refactored EFI code and structures into small Perl library
2018-01-20 22:54:16 -05:00
Trammell hudson
fcf8e57b68
fix alignment of files and length of final pad
2018-01-20 17:29:23 -05:00
Trammell hudson
ed5220b489
relocate UI, DEPEX, VER sections to end of file so that PE32 stays aligned
2018-01-20 17:28:50 -05:00
Trammell hudson
06747b01c0
allow hex values for volume sizes
2018-01-20 16:04:13 -05:00
Trammell hudson
b73cb30b1e
create firmware volumes
2018-01-20 15:59:52 -05:00
Trammell hudson
fe900561ab
extract GUID parsing
2018-01-20 15:59:38 -05:00
Trammell hudson
07f7653999
move tools into bin/ directory
2018-01-19 14:17:26 -05:00