diff options
| author | Simon Glass <[email protected]> | 2019-07-08 14:25:52 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2019-07-24 12:54:08 -0700 |
| commit | 71ce0ba284aeb388ddcefb4f6f0056c759a758cc (patch) | |
| tree | c353819863c1f5b2247915db7b20d2d0e0e98c18 /tools/binman/README | |
| parent | 3a9c252583785c3aabce834e8f9a54fa94685ee8 (diff) | |
binman: Add an 'extract' command
It is useful to be able to extract all binaries from the image, or a
subset of them. Add a new 'extract' command to handle this.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/README')
| -rw-r--r-- | tools/binman/README | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/binman/README b/tools/binman/README index 1655a9d50df..756c6a0010e 100644 --- a/tools/binman/README +++ b/tools/binman/README @@ -533,6 +533,30 @@ or with wildcards: image-header bf8 8 image-header bf8 +Extracting files from images +---------------------------- + +You can extract files from an existing firmware image created by binman, +provided that there is an 'fdtmap' entry in the image. For example: + + $ binman extract -i image.bin section/cbfs/u-boot + +which will write the uncompressed contents of that entry to the file 'u-boot' in +the current directory. You can also extract to a particular file, in this case +u-boot.bin: + + $ binman extract -i image.bin section/cbfs/u-boot -f u-boot.bin + +It is possible to extract all files into a destination directory, which will +put files in subdirectories matching the entry hierarchy: + + $ binman extract -i image.bin -O outdir + +or just a selection: + + $ binman extract -i image.bin "*u-boot*" -O outdir + + Logging ------- @@ -883,7 +907,6 @@ Some ideas: - Use of-platdata to make the information available to code that is unable to use device tree (such as a very small SPL image) - Allow easy building of images by specifying just the board name -- Add an option to decode an image into the constituent binaries - Support building an image for a board (-b) more completely, with a configurable build directory - Support updating binaries in an image (with no size change / repacking) |
