diff options
author | Heiko Schocher <hs@denx.de> | 2014-03-03 12:19:29 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-21 16:39:37 -0400 |
commit | 6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df (patch) | |
tree | 44f41ca0a49cc50634747550fd5932aaceadb932 /tools/fit_common.h | |
parent | bf007ebb6f4b01af675782d23bacbddd17e1a627 (diff) | |
download | u-boot-imx-6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df.zip u-boot-imx-6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df.tar.gz u-boot-imx-6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df.tar.bz2 |
tools, fit: add fit_info host command
add fit_info command to the host tools. This command prints
the name, offset and the len from a property from a node in
a fit file. This info can be used to extract a properties
data with linux tools, for example "dd".
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_common.h')
-rw-r--r-- | tools/fit_common.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/fit_common.h b/tools/fit_common.h new file mode 100644 index 0000000..adf4404 --- /dev/null +++ b/tools/fit_common.h @@ -0,0 +1,22 @@ +/* + * (C) Copyright 2014 + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _FIT_COMMON_H_ +#define _FIT_COMMON_H_ + +#include "imagetool.h" +#include "mkimage.h" +#include <image.h> + +int fit_verify_header(unsigned char *ptr, int image_size, + struct image_tool_params *params); + +int fit_check_image_types(uint8_t type); + +int mmap_fdt(char *cmdname, const char *fname, void **blobp, + struct stat *sbuf, int useunlink); + +#endif /* _FIT_COMMON_H_ */ |