/mcuboot-latest/boot/mynewt/flash_map_backend/src/ |
D | flash_map_extended.c | 52 int flash_area_sector_from_off(off_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument 74 sector->fs_off = start - fa->fa_off; in flash_area_sector_from_off() 75 sector->fs_size = size; in flash_area_sector_from_off()
|
/mcuboot-latest/sim/mcuboot-sys/src/ |
D | area.rs | 56 for sector in &self.sectors[&dev_id] { in add_image() 60 if base > sector.base + sector.size - 1 { in add_image() 63 if sector.base != base { in add_image() 71 off: sector.base as u32, in add_image() 72 size: sector.size as u32, in add_image() 75 base += sector.size; in add_image() 76 len -= sector.size; in add_image()
|
/mcuboot-latest/boot/mynewt/flash_map_backend/include/flash_map_backend/ |
D | flash_map_backend.h | 53 int flash_area_sector_from_off(off_t off, struct flash_sector *sector); 56 struct flash_sector *sector) in flash_area_get_sector() argument 58 return flash_area_sector_from_off(off, sector); in flash_area_get_sector()
|
/mcuboot-latest/sim/simflash/src/ |
D | lib.rs | 135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector() 137 return Some((sector, offset)); in get_sector() 345 for sector in §ors { in test_device() 346 let byte = [(sector.num & 127) as u8]; in test_device() 347 flash.write(sector.base, &byte).unwrap(); in test_device() 348 flash.write(sector.base + sector.size - 1, &byte).unwrap(); in test_device() 353 for sector in §ors { in test_device() 354 let byte = (sector.num & 127) as u8; in test_device() 355 buf.resize(sector.size, 0); in test_device() 356 flash.read(sector.base, &mut buf).unwrap(); in test_device()
|
/mcuboot-latest/boot/bootutil/src/ |
D | swap_misc.c | 39 uint32_t sector; in swap_erase_trailer_sectors() local 66 sector = boot_img_num_sectors(state, slot) - 1; in swap_erase_trailer_sectors() 70 sz = boot_img_sector_size(state, slot, sector); in swap_erase_trailer_sectors() 71 off = boot_img_sector_off(state, slot, sector); in swap_erase_trailer_sectors() 75 sector--; in swap_erase_trailer_sectors()
|
D | bootutil_priv.h | 409 size_t slot, size_t sector) in boot_img_sector_size() argument 411 return flash_area_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size() 420 size_t sector) in boot_img_sector_off() argument 422 return flash_area_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off() 430 size_t slot, size_t sector) in boot_img_sector_size() argument 432 return flash_sector_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size() 437 size_t sector) in boot_img_sector_off() argument 439 return flash_sector_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
|
D | bootutil_misc.c | 340 struct flash_sector sector; in bootutil_max_image_size() 342 int rc = flash_area_get_sector(fap, boot_status_off(fap), §or); in bootutil_max_image_size() 349 return flash_sector_get_off(§or); in bootutil_max_image_size()
|
D | loader.c | 1448 uint32_t sector; local 1494 sector = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT) - 1; 1497 sz += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sector); 1498 off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, sector); 1499 sector--;
|
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/ |
D | flash_map.h | 144 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector); 154 struct flash_sector *sector);
|
/mcuboot-latest/boot/zephyr/ |
D | flash_map_extended.c | 126 int flash_area_sector_from_off(off_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument 136 sector->fs_off = page.start_offset; in flash_area_sector_from_off() 137 sector->fs_size = page.size; in flash_area_sector_from_off()
|
D | CMakeLists.txt | 416 …message(WARNING "Unable to determine size of slot0 partition, cannot calculate minimum sector usag… 418 …WARNING "Unable to determine erase size of slot0 partition, cannot calculate minimum sector usage") 425 …message(WARNING "Unable to determine size of slot1 partition, cannot calculate minimum sector usag… 427 …WARNING "Unable to determine erase size of slot1 partition, cannot calculate minimum sector usage") 441 …message(WARNING "Unable to calculate minimum number of sector sizes, falling back to 128 sector de…
|
D | Kconfig | 289 sector of the primary slot is moved up one sector, then for 290 each sector X in the secondary slot, it is moved to index X in 291 the primary slot, then the sector at X+1 in the primary is
|
/mcuboot-latest/boot/espressif/include/flash_map_backend/ |
D | flash_map_backend.h | 81 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector); 85 struct flash_sector *sector);
|
/mcuboot-latest/boot/espressif/port/ |
D | esp_mcuboot.c | 375 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument 377 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_sector_from_off() 378 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_sector_from_off() 384 struct flash_sector *sector) in flash_area_get_sector() argument 386 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_get_sector() 387 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_get_sector()
|
/mcuboot-latest/sim/mcuboot-sys/csupport/ |
D | run.c | 451 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument 475 sector->fs_off = sec_off; in flash_area_sector_from_off() 476 sector->fs_size = sec_size; in flash_area_sector_from_off() 485 struct flash_sector *sector) in flash_area_get_sector() argument 509 sector->fs_off = sec_off; in flash_area_get_sector() 510 sector->fs_size = sec_size; in flash_area_get_sector()
|
/mcuboot-latest/boot/zephyr/include/flash_map_backend/ |
D | flash_map_backend.h | 63 int flash_area_sector_from_off(off_t off, struct flash_sector *sector);
|
/mcuboot-latest/boot/boot_serial/src/ |
D | boot_serial_encryption.c | 221 struct flash_sector sector; in decrypt_image_inplace() local 227 rc = flash_area_get_sector(fa_p, boot_status_off(fa_p), §or); in decrypt_image_inplace() 265 sect_size = sector.fs_size; in decrypt_image_inplace()
|
/mcuboot-latest/docs/ |
D | readme-zephyr.md | 169 from both slots, this section must be at least as big as the largest sector 171 with a sector size of 512 bytes and secondar slot in external off-chip flash 172 with a sector size of 4KB then the scratch area must be at least 4KB in size). 173 The number of sectors must also be evenly divisable by this sector size, e.g. 199 has a 4KB sector size so the size of the scratch partition can be reduced at
|
D | testplan-mynewt.md | 162 $ pyocd flash -e sector -a 0x80000 ${IMG_FILE} bin
|
D | PORTING.md | 97 uint32_t fa_size; /** The size of this sector */
|
D | release-notes.md | 16 - bootutil: Fixed issue with comparing sector sizes for 19 up by one sector).
|
D | readme-espressif.md | 813 # Use sector erasing (recommended) instead of entire image size
|
/mcuboot-latest/sim/src/ |
D | image.rs | 1704 for sector in flash.sector_iter() { in show_flash() 1706 sector.num, sector.base, sector.size); in show_flash()
|
/mcuboot-latest/boot/cypress/MCUBootApp/ |
D | README.md | 55 … make sure you have updated `MCUBOOT_MAX_IMG_SECTORS` appropriatery with sector size assumed to be…
|