Lines Matching +full:max +full:- +full:load +full:- +full:value
5 # SPDX-License-Identifier: Apache-2.0
8 # NPCM eSIO series how to load the firmware from flash to code ram
10 # -i in_file.bin -o out_file.bin
11 # [-chip <name>] [-v]
61 INVALID_INPUT = -1
103 :returns: output file path object, or -1 if fails
110 exit_with_failure("Define input file, using -i flag")
157 """writes the anchor value to the output file
164 message = f'ANCHOR max support 8 bytes'
172 print(f'- HDR - FW Header ANCHOR - Offset '
173 f'{HDR_ANCHOR_OFFSET} - %s' % FW_HDR_ANCHOR)
178 """writes the fw load address to the output file
203 message = f'Cannot read FW Load start address'
207 message = f'Firmware load address ({fw_load_addr_to_print}) ' \
212 message = f'Firmware load address ({fw_load_addr_to_print}) ' \
241 # set start load flash address
245 # set end load flash address
249 # set load start address (RAM)
254 print(f'- HDR - FW load start address - Offset '
255 f'{HDR_FW_LOAD_START_ADDR_OFFSET} - '
257 print(f'- HDR - flash load start address - Offset '
258 f'{HDR_FW_FLASH_ADDR_START_LOAD_OFFSET} - '
260 print(f'- HDR - flash load end address - Offset '
261 f'{HDR_FW_FLASH_ADDR_END_LOAD_OFFSET} - '
278 # check if fwep flag wasn't set and set it to fw load address if needed
304 print(f'- HDR - FW Entry point - Offset '
305 f'{HDR_FW_ENTRY_POINT_OFFSET} - '
309 """Computes the SHA-256 digest of a file using hashlib.
312 :return: The SHA-256 digest of the file as a bytearray.
316 # Read and update hash string value in blocks of 4K
322 """writes the flash size value to the output file
323 Note: the firmware length value has already been checked before
337 print(f'- HDR - FW Length - Offset '
338 f'{HDR_FW_LENGTH_OFFSET} - '
343 """writes the load hash value to the output file
344 Note: the firmware length value has already been checked before
353 # Read and update hash string value in blocks of 4K
365 """writes the segment start and size value to the output file
366 Note: the firmware length value has already been checked before
410 print(f'- HDR - Segment1 start address - Offset '
411 f'{HDR_FW_SEG1_START_OFFSET} - '
413 print(f'- HDR - Segment1 size - Offset '
414 f'{HDR_FW_SEG1_SIZE_OFFSET} - '
416 print(f'- HDR - Segment2 start address - Offset '
417 f'{HDR_FW_SEG2_START_OFFSET} - '
419 print(f'- HDR - Segment2 size - Offset '
420 f'{HDR_FW_SEG2_SIZE_OFFSET} - '
422 print(f'- HDR - Segment3 start address - Offset '
423 f'{HDR_FW_SEG3_START_OFFSET} - '
425 print(f'- HDR - Segment3 size - Offset '
426 f'{HDR_FW_SEG3_SIZE_OFFSET} - '
428 print(f'- HDR - Segment4 start address - Offset '
429 f'{HDR_FW_SEG4_START_OFFSET} - '
431 print(f'- HDR - Segment4 size - Offset '
432 f'{HDR_FW_SEG4_SIZE_OFFSET} - '
451 """Writes the segment hash value to the output file.
452 Note: the firmware length value has already been checked before this method.
483 # Read and update hash string value in blocks of 4K
519 input_file_size = Path(esiost_args.input).stat().st_size - HEADER_SIZE
537 def _hex_print_format(value): argument
540 :param value: an integer to be represented in hex
542 return "0x{:08x}".format(value)