Home
last modified time | relevance | path

Searched full:fit (Results 1 – 25 of 2158) sorted by relevance

12345678910>>...87

/openbmc/u-boot/common/
H A Dimage-fit.c58 * fit_parse_conf - parse FIT configuration spec
61 * @addr: pointer to a ulong variable, will hold FIT image address of a given
67 * where <addr> is a FIT image address that contains configuration
85 * fit_parse_subimage - parse FIT subimage spec
88 * @addr: pointer to a ulong variable, will hold FIT image address of a given
93 * [<addr>]:<subimage>, where <addr> is a FIT image address that contains
111 static void fit_get_debug(const void *fit, int noffset, in fit_get_debug() argument
114 debug("Can't get '%s' property from FIT 0x%08lx, node: offset %d, name %s (%s)\n", in fit_get_debug()
115 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL), in fit_get_debug()
121 * @fit: pointer to the FIT format image header
[all …]
H A Dimage-sig.c175 * @fit: FIT image
183 struct image_region *fit_region_make_list(const void *fit, in fit_region_make_list() argument
205 region[i].data = fit + fdt_regions[i].offset; in fit_region_make_list()
213 const void *fit, int noffset, int required_keynode, in fit_image_setup_verify() argument
219 if (fdt_totalsize(fit) > CONFIG_FIT_SIGNATURE_MAX_SIZE) { in fit_image_setup_verify()
224 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify()
229 padding_name = fdt_getprop(fit, noffset, "padding", NULL); in fit_image_setup_verify()
234 info->keyname = fdt_getprop(fit, noffset, "key-name-hint", NULL); in fit_image_setup_verify()
235 info->fit = (void *)fit; in fit_image_setup_verify()
253 int fit_image_check_sig(const void *fit, int noffset, const void *data, in fit_image_check_sig() argument
[all …]
H A Dboot_fit.c15 static int fdt_offset(const void *fit) in fdt_offset() argument
20 node = fit_find_config_node(fit); in fdt_offset()
24 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in fdt_offset()
30 fdt_name = fdt_getprop(fit, node, FIT_FDT_PROP, &fdt_len); in fdt_offset()
37 fdt_node = fdt_subnode_offset(fit, images, fdt_name); in fdt_offset()
44 fdt_offset = fdt_getprop_u32(fit, fdt_node, "data-offset"); in fdt_offset()
49 fdt_len = fdt_getprop_u32(fit, fdt_node, "data-size"); in fdt_offset()
57 void *locate_dtb_in_fit(const void *fit) in locate_dtb_in_fit() argument
63 size = fdt_totalsize(fit); in locate_dtb_in_fit()
66 header = (struct image_header *)fit; in locate_dtb_in_fit()
[all …]
H A Dupdate.c215 static int update_fit_getparams(const void *fit, int noffset, ulong *addr, in update_fit_getparams() argument
220 if (fit_image_get_data(fit, noffset, &data, (size_t *)size)) in update_fit_getparams()
223 if (fit_image_get_load(fit, noffset, (ulong *)fladdr)) in update_fit_getparams()
238 void *fit; in update_tftp() local
281 fit = (void *)addr; in update_tftp()
283 if (!fit_check_format((void *)fit)) { in update_tftp()
284 printf("Bad FIT format of the update file, aborting " in update_tftp()
290 images_noffset = fdt_path_offset(fit, FIT_IMAGES_PATH); in update_tftp()
293 noffset = fdt_next_node(fit, images_noffset, &ndepth); in update_tftp()
298 fit_image_name = (char *)fit_get_name(fit, noffset, NULL); in update_tftp()
[all …]
/openbmc/u-boot/tools/
H A Dimage-host.c18 * @fit: pointer to the FIT format image header
30 static int fit_set_hash_value(void *fit, int noffset, uint8_t *value, in fit_set_hash_value() argument
35 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len); in fit_set_hash_value()
38 FIT_VALUE_PROP, fit_get_name(fit, noffset, NULL), in fit_set_hash_value()
52 * @fit: pointer to the FIT format image header
59 static int fit_image_process_hash(void *fit, const char *image_name, in fit_image_process_hash() argument
68 node_name = fit_get_name(fit, noffset, NULL); in fit_image_process_hash()
70 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_process_hash()
82 ret = fit_set_hash_value(fit, noffset, value, value_len); in fit_image_process_hash()
93 * fit_image_write_sig() - write the signature to a FIT
[all …]
H A Dfit_image.c10 * FIT image specific code abstracted from mkimage.c
80 * fit_calc_size() - Calculate the approximate size of the FIT we will generate
186 * fit_write_images() - Write out a list of images to the FIT
269 * fit_write_configs() - Write out a list of configurations to the FIT
372 fprintf(stderr, "%s: Failed to build FIT image\n", in fit_build()
401 * fit_extract_data() - Move all data outside the FIT
403 * This takes a normal FIT file and removes all the 'data' properties from it.
404 * The data is placed in an area after the FIT so that it can be accessed
492 debug("External offset %x overlaps FIT length %x", in fit_extract_data()
540 /* Allocate space to hold the new FIT */ in fit_import_data()
[all …]
/openbmc/u-boot/common/spl/
H A Dspl_fit.c31 * @fit: Pointer to the FDT blob.
39 static int spl_fit_get_image_name(const void *fit, int images, in spl_fit_get_image_name() argument
48 conf_node = fit_find_config_node(fit); in spl_fit_get_image_name()
52 for (node = fdt_first_subnode(fit, conf_node); in spl_fit_get_image_name()
54 node = fdt_next_subnode(fit, node)) { in spl_fit_get_image_name()
55 name = fdt_getprop(fit, node, "description", &len); in spl_fit_get_image_name()
62 name = fdt_getprop(fit, conf_node, type, &len); in spl_fit_get_image_name()
85 * @fit: Pointer to the FDT blob.
93 static int spl_fit_get_image_node(const void *fit, int images, in spl_fit_get_image_node() argument
100 err = spl_fit_get_image_name(fit, images, type, index, &str); in spl_fit_get_image_node()
[all …]
/openbmc/u-boot/
H A DKconfig253 config FIT config
259 Flattened Image Tree. FIT is formally a FDT, which can include
263 FIT is very flexible, supporting compression, multiple images,
267 if FIT
273 This specifies a data offset in fit image.
275 fit image header. When specifies a offset, specific data
276 could be put in the hole between data payload and fit image
280 bool "Support SHA256 checksum of FIT image contents"
284 Enable this to support SHA256 checksum of FIT image contents. A
289 bool "Support SHA384 checksum of FIT image contents"
[all …]
/openbmc/u-boot/include/
H A Dimage.h55 #define IMAGE_ENABLE_FIT CONFIG_IS_ENABLED(FIT)
75 # define CONFIG_CRC32 /* FIT images need CRC32 support */
361 * Legacy and FIT format headers used by do_bootm() and do_bootm_<os>()
377 void *fit_hdr_os; /* os FIT image header */
381 void *fit_hdr_rd; /* init ramdisk FIT image header */
385 void *fit_hdr_fdt; /* FDT blob FIT image header */
389 void *fit_hdr_setup; /* x86 setup FIT image header */
569 /* What to do with a image load address ('load = <> 'in the FIT) */
610 * boot_get_loadable() will take the given FIT configuration, and look
612 * the FIT given as strings. exe:
[all …]
H A Dboot_fit.h8 * locate_dtb_in_fit - Find a DTB matching the board in a FIT image
9 * @fit: pointer to the FIT image
13 void *locate_dtb_in_fit(const void *fit);
/openbmc/u-boot/test/py/tests/
H A Dtest_vboot.py10 - Create FIT (unsigned) with mkimage
17 - Create FIT (with unsigned configuration) with mkimage
19 - Sign the FIT and mark the key as 'required' for verification
77 ['host load hostfs - 100 %stest.fit' % tmpdir,
85 """Make a new FIT from the .its source file.
87 This runs 'mkimage -f' to create a new FIT.
93 '%s%s' % (datadir, its), fit])
96 """Sign the FIT
98 Signs the FIT and writes the signature into it. It also writes the
107 '-r', fit])
[all …]
H A Dtest_fit.py4 # Sanity check of the FIT handling in U-Boot
98 # This is the U-Boot script that is run for each test. First load the FIT,
102 host load hostfs 0 %(fit_addr)x %(fit)s
176 """Make a sample .fit file ready for loading
179 turn this into a .fit image.
185 Filename of .fit file created
187 fit = make_fname('test.fit')
189 util.run_and_log(cons, [mkimage, '-f', its, fit])
192 return fit
290 """Basic sanity check of FIT loading in U-Boot
[all …]
/openbmc/u-boot/doc/
H A Dmkimage.137 .I FIT (Flattened Image Tree) format
97 .B Create FIT image:
101 Appends the device tree binary file (.dtb) to the FIT.
116 After processing, move the image data outside the FIT and store a data offset
117 in the FIT. Images will be placed one after the other immediately after the
121 byte after the FIT.
130 and -e are used to specify the image to include in the FIT and its attributes.
135 Indicates that an existing FIT image should be modified. No dtc
142 Appends the ramdisk file to the FIT.
161 a 'data-offset' property defining the offset from the end of the FIT, \-p will
[all …]
H A DREADME.multi-dtb-fit1 MULTI DTB FIT and SPL_MULTI_DTB_FIT
4 from a FIT appended at the end of the binary.
12 The relevant DTBs are packed into a FIT (list provided by CONFIG__OF_LIST). The
13 FIT is automatically generated at the end of the compilation and appended to
15 the FIT.
27 The relevant DTBs are packed into a FIT. This FIT is automatically generated
29 that SPL can locate it and select the correct DTB from inside the FIT.
33 FIT is uncompressed is dynamicaly allocated but this behaviour can be changed
35 FIT.
37 FIT (same as what the SPL uses to select the DTB for U-Boot).
H A DREADME.update10 boot. The update file should be a FIT file, and can contain one or more
22 one must enable FIT and LIBFDT support:
48 Since the update file is in FIT format, it is created from an *.its file using
51 to be prepared. Refer to the doc/uImage.FIT/ directory for more details on FIT
63 - doc/uImage.FIT/update_uboot.its
91 - doc/uImage.FIT/update3.its
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
H A DREADME.falcon4 RAM version U-Boot. Instead, it loads FIT image and boot directly to Linux.
5 CONFIG_SPL_OS_BOOT enables falcon boot. CONFIG_SPL_LOAD_FIT enables the FIT
10 booting U-Boot is not the first choice. The kernel FIT image needs to be put
12 determine if this is a FIT image. If true, FIT image components are parsed and
13 copied or decompressed (if applicable) to their destinations. If FIT image is
24 CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS. However, when FIT image is used for
25 Linux, the device tree stored in FIT image overwrites the memory loaded by spl
28 signature header and needs to be loaded before the FIT image. So it is important
29 to understand the device tree in FIT image should be the one actually used, or
30 leave it absent to favor the stored sectors. It is easier to deploy the FIT
[all …]
/openbmc/linux/arch/mips/generic/
H A DKconfig20 comment "Legacy (non-UHI/non-FIT) Boards"
51 comment "FIT/UHI Boards"
57 from Imagination Technologies in the FIT kernel image. You should
65 from Imagination Technologies in the FIT kernel image.
71 National Instruments in the FIT kernel image.
77 from Imagination Technologies in the FIT kernel image.
84 from Microsemi in the FIT kernel image.
92 from Microsemi in the FIT kernel image.
100 from Microsemi in the FIT kernel image.
108 from Microsemi in the FIT kernel image.
/openbmc/u-boot/doc/uImage.FIT/
H A Dbeaglebone_vboot.txt28 tree with the kernel binary. U-Boot supports the latter with its flexible FIT
195 Linux kernel into a FIT (Flat Image Tree, a flexible file format that U-Boot
208 $UOUT/tools/mkimage -f sign.its -K am335x-boneblack-pubkey.dtb -k keys -r image.fit
212 FIT description: Beaglebone black
242 Now am335x-boneblack-pubkey.dtb contains the public key and image.fit contains
248 $UOUT/tools/fit_check_sign -f image.fit -k am335x-boneblack-pubkey.dtb
253 ## Loading kernel from FIT Image at 7fc6ee469000 ...
276 ## Loading fdt from FIT Image at 7fc6ee469000 ...
293 ## Loading ramdisk from FIT Image at 7fc6ee469000 ...
313 But it is fun to do this by hand, so you can load image.fit into a hex editor
[all …]
H A Dsignature.txt1 U-Boot FIT Signature Verification
6 FIT supports hashing of images so that these hashes can be checked on
24 - hash an image in the FIT
26 - store the resulting signature in the FIT
30 - read the FIT
32 - extract the signature from the FIT
33 - hash the image from the FIT
83 The following properties are required in the FIT's signature node(s) to
128 - hashed-strings: The start and size of the string region of the FIT that
155 normally verified by the FIT image booting algorithm. Valid values are
[all …]
H A Dx86-fit-boot.txt1 Booting Linux on x86 with FIT
166 Create a FIT
169 To create a FIT you will need a source file describing what should go in the
170 FIT. See kernel.its for an example for x86 and also instructions on setting
176 saw above). This means that you will need to load your FIT to a different
189 # Build a FIT image
190 mkimage -f image.its image.fit
195 You can take a look at the resulting fit file if you like:
197 $ dumpimage -l image.fit
198 FIT description: Simple image with single Linux kernel on x86
[all …]
H A Dhowto.txt26 doc/uImage.FIT/source_file_format.txt. The actual data that is to be included in
77 doc/uImage.FIT/kernel.its (note that kernel.its assumes that vmlinux.bin.gz is
87 FIT description: Simple image with single Linux kernel
130 FIT image found
131 FIT description: Simple image with single Linux kernel
153 ## Booting kernel from FIT Image at 00900000 ...
187 be produced using image source file doc/uImage.FIT/kernel_fdt.its like this
197 FIT description: Simple image with single Linux kernel and FDT blob
245 FIT image found
246 FIT description: Simple image with single Linux kernel and FDT blob
[all …]
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/
H A Dncsi_server.h41 * response_buf: buffer, where to put the response. Must be big enough to fit
57 * response_buf: buffer, where to put the response. Must be big enough to fit
71 * response_buf: buffer, where to put the response. Must be big enough to fit
88 * response_buf: buffer, where to put the response. Must be big enough to fit
105 * response_buf: buffer, where to put the response. Must be big enough to fit
121 * response_buf: buffer, where to put the response. Must be big enough to fit
135 * response_buf: buffer, where to put the response. Must be big enough to fit
149 * response_buf: buffer, where to put the response. Must be big enough to fit
165 * response_buf: buffer, where to put the response. Must be big enough to fit
191 * response_buf: buffer, where to put the response. Must be big enough to fit
/openbmc/u-boot/cmd/
H A Dsource.c31 static const char *get_default_image(const void *fit) in get_default_image() argument
35 images_noffset = fdt_path_offset(fit, FIT_IMAGES_PATH); in get_default_image()
39 return fdt_getprop(fit, images_noffset, FIT_DEFAULT_PROP, NULL); in get_default_image()
110 puts ("Bad FIT image format\n"); in source()
118 puts("No FIT subimage unit name\n"); in source()
125 printf ("Can't find '%s' FIT subimage\n", fit_uname); in source()
175 debug ("* source: subimage '%s' from FIT image at 0x%08lx\n", in do_source()
195 "For FIT format uImage addr must include subimage\n"
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dppa.c93 printf("PPA: malloc failed for FIT header(size 0x%zx)\n", in ppa_init()
100 debug("%s: MMC read PPA FIT header: dev # %u, block # %u, count %u\n", in ppa_init()
105 printf("MMC/SD read of PPA FIT header at offset 0x%x failed\n", in ppa_init()
150 debug("%s: MMC read PPA FIT image: dev # %u, block # %u, count %u\n", in ppa_init()
155 printf("MMC/SD read of PPA FIT header at offset 0x%x failed\n", in ppa_init()
161 struct fdt_header fit; in ppa_init() local
168 &fdt_header_len, (u_char *)&fit); in ppa_init()
170 printf("NAND read of PPA FIT header at offset 0x%x failed\n", in ppa_init()
175 ret = fdt_check_header(&fit); in ppa_init()
204 fw_length = fdt_totalsize(&fit); in ppa_init()
/openbmc/u-boot/dts/
H A DKconfig127 control. These will be packaged into a FIT. At run-time, U-boot
144 bool "Support embedding several DTBs in a FIT image for u-boot"
147 appended FIT image and enable board specific code to then select
154 bool "Support embedding several DTBs in a FIT image for the SPL"
157 DTB at runtime from an appended FIT image containing several DTBs.
170 control in the SPL. These will be packaged into a FIT. At run-time,
186 Compress the FIT image containing the DTBs available for the SPL
194 Compress the FIT image containing the DTBs available for the SPL
200 Do not compress the FIT image containing the DTBs available for the SPL.
230 the FIT image containing the DTBs is uncompressed in an area defined
[all …]

12345678910>>...87