/mcuboot-latest/boot/bootutil/src/ |
D | bootutil_public.c | 72 .magic = { 246 uint8_t magic[BOOT_MAGIC_SZ]; in boot_read_swap_state() local 252 rc = flash_area_read(fap, off, magic, BOOT_MAGIC_SZ); in boot_read_swap_state() 256 if (bootutil_buffer_is_erased(fap, magic, BOOT_MAGIC_SZ)) { in boot_read_swap_state() 257 state->magic = BOOT_MAGIC_UNSET; in boot_read_swap_state() 259 state->magic = boot_magic_decode(magic); in boot_read_swap_state() 308 uint8_t magic[BOOT_MAGIC_ALIGN_SIZE]; in boot_write_magic() local 324 memset(&magic[0], erased_val, sizeof(magic)); in boot_write_magic() 325 memcpy(&magic[BOOT_MAGIC_ALIGN_SIZE - BOOT_MAGIC_SZ], BOOT_IMG_MAGIC, BOOT_MAGIC_SZ); in boot_write_magic() 330 rc = flash_area_write(fap, pad_off, &magic[0], BOOT_MAGIC_ALIGN_SIZE); in boot_write_magic() [all …]
|
D | bootutil_misc.h | 20 boot_magic_decode(const uint8_t *magic) in boot_magic_decode() argument 22 if (memcmp(magic, BOOT_IMG_MAGIC, BOOT_MAGIC_SZ) == 0) { in boot_magic_decode()
|
D | bootutil_misc.c | 230 uint8_t magic[BOOT_MAGIC_SZ]; in boot_find_status() local 236 if (flash_area_read(*fap, boot_magic_off(*fap), magic, BOOT_MAGIC_SZ)) { in boot_find_status() 241 if (BOOT_MAGIC_GOOD == boot_magic_decode(magic)) { in boot_find_status()
|
D | swap_move.c | 335 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \ 336 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \ 369 if (state_primary_slot.magic == BOOT_MAGIC_GOOD && in swap_status_source() 371 state_secondary_slot.magic != BOOT_MAGIC_GOOD) { in swap_status_source() 502 if (swap_state.magic == BOOT_MAGIC_UNSET) { in fixup_revert()
|
D | swap_offset.c | 412 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \ 413 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \ 441 if (state_primary_slot.magic == BOOT_MAGIC_GOOD && 443 state_secondary_slot.magic != BOOT_MAGIC_GOOD) { 605 if (swap_state.magic == BOOT_MAGIC_UNSET) {
|
D | swap_scratch.c | 247 ((state)->magic == BOOT_MAGIC_GOOD ? "good" : \ 248 (state)->magic == BOOT_MAGIC_UNSET ? "unset" : \ 376 state_primary_slot.magic) && in swap_status_source() 379 state_scratch.magic) && in swap_status_source()
|
D | bootutil_priv.h | 164 uint8_t magic[14]; member
|
D | loader.c | 2785 if (active_swap_state->magic != BOOT_MAGIC_GOOD ||
|
/mcuboot-latest/scripts/ |
D | mcubin.bt | 40 Warning("Invalid magic on ptable header"); 58 uint32 magic <format=hex>; 69 uint16 magic; 111 if (ihdr.magic == 0x96f3b83d) { 117 if (tlv_hdr.magic == 0x6907) {
|
/mcuboot-latest/samples/compression_test/ |
D | independent_cmp.c | 19 uint32_t magic; member 50 if (ih.magic != EXPECTED_MAGIC) { in main()
|
/mcuboot-latest/boot/mynewt/src/ |
D | single_loader.c | 74 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once() 81 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
|
/mcuboot-latest/boot/zephyr/ |
D | single_loader.c | 82 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once() 89 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
|
D | firmware_loader.c | 78 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once() 85 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
|
D | hooks_sample.c | 68 state->magic = BOOT_MAGIC_UNSET; in boot_read_swap_state_primary_slot_hook()
|
D | CMakeLists.txt | 587 # Boot trailer magic size
|
D | Kconfig | 319 It caches the result in the magic area, which makes it an unsecure 424 swap mode. It requires the trailer magic to be added to the signed image.
|
/mcuboot-latest/scripts/imgtool/ |
D | dumpinfo.py | 70 magic = "" 72 magic += "{0:#04x} ".format(trailer_magic[i]) 74 magic += ("\n" + " ") 75 return magic
|
D | image.py | 124 def __init__(self, endian, magic=TLV_INFO_MAGIC): argument 125 self.magic = magic 153 header = struct.pack(e + 'HH', self.magic, len(self)) 811 magic, _, header_size, _, img_size = struct.unpack('IIHHI', b[:16]) 814 if magic != IMAGE_MAGIC: 819 magic, tlv_tot = struct.unpack('HH', tlv_info) 820 if magic == TLV_PROT_INFO_MAGIC: 823 magic, tlv_tot = struct.unpack('HH', tlv_info) 825 if magic != TLV_INFO_MAGIC:
|
/mcuboot-latest/boot/bootutil/include/bootutil/ |
D | bootutil.h | 77 uint8_t magic[BOOT_MAGIC_SZ]; member
|
D | bootutil_public.h | 151 uint8_t magic; /* One of the BOOT_MAGIC_[...] values. */ member
|
/mcuboot-latest/boot/cypress/cy_flash_pal/include/flash_map_backend/ |
D | flash_map_backend.h | 145 uint32_t magic; member
|
/mcuboot-latest/sim/src/ |
D | image.rs | 1631 magic: Option<u8>, image_ok: Option<u8>, in verify_trailers_loose() 1635 magic, image_ok, copy_done) in verify_trailers_loose() 1642 magic: Option<u8>, image_ok: Option<u8>, in verify_trailers() 1646 magic, image_ok, copy_done) in verify_trailers() 1839 magic: tlv.get_magic(), in install_image() 2111 magic: Option<u8>, image_ok: Option<u8>, in verify_trailer() 2126 failed |= match magic { in verify_trailer() 2234 magic: u32, field
|
/mcuboot-latest/sim/mcuboot-sys/src/ |
D | api.rs | 43 magic: u32, field
|
/mcuboot-latest/docs/ |
D | imgtool.md | 104 trailer magic
|
D | release-notes.md | 164 this value can be increased, which will result in a different magic
|