Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 25 of 25) sorted by relevance

/mcuboot-latest/boot/mynewt/flash_map_backend/src/
Dflash_map_extended.c52 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/
Darea.rs56 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/
Dflash_map_backend.h53 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/
Dlib.rs135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector()
137 return Some((sector, offset)); in get_sector()
345 for sector in &sectors { 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 &sectors { 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/
Dswap_misc.c39 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()
Dbootutil_priv.h443 size_t slot, size_t sector) in boot_img_sector_size() argument
445 return flash_area_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
454 size_t sector) in boot_img_sector_off() argument
456 return flash_area_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
464 size_t slot, size_t sector) in boot_img_sector_size() argument
466 return flash_sector_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
471 size_t sector) in boot_img_sector_off() argument
473 return flash_sector_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
Dbootutil_misc.c340 struct flash_sector sector; in bootutil_max_image_size()
342 int rc = flash_area_get_sector(fap, boot_status_off(fap), &sector); in bootutil_max_image_size()
349 return flash_sector_get_off(&sector); in bootutil_max_image_size()
Dloader.c1484 uint32_t sector; local
1530 sector = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT) - 1;
1533 sz += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sector);
1534 off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, sector);
1535 sector--;
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/
Dflash_map.h144 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector);
154 struct flash_sector *sector);
/mcuboot-latest/boot/zephyr/
Dflash_map_extended.c133 int flash_area_sector_from_off(off_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
143 sector->fs_off = page.start_offset; in flash_area_sector_from_off()
144 sector->fs_size = page.size; in flash_area_sector_from_off()
DCMakeLists.txt485 …message(WARNING "Unable to determine size of slot0 partition, cannot calculate minimum sector usag…
487 …WARNING "Unable to determine erase size of slot0 partition, cannot calculate minimum sector usage")
494 …message(WARNING "Unable to determine size of slot1 partition, cannot calculate minimum sector usag…
496 …WARNING "Unable to determine erase size of slot1 partition, cannot calculate minimum sector usage")
510 …message(WARNING "Unable to calculate minimum number of sector sizes, falling back to 128 sector de…
640 …message(WARNING "CONFIG_BOOT_MAX_IMG_SECTORS is not defined, falling back to 128 sector default. P…
651 …message(WARNING "CONFIG_BOOT_MAX_IMG_SECTORS is not defined, falling back to 128 sector default. P…
DKconfig366 If y, the swap upgrade is done by each sector X+1 in the secondary slot moved index X in
367 the primary slot, then the sector at X+1 in the primary is moved to index X in the
372 the second sector in the second slot instead of the first.
378 sector of the primary slot is moved up one sector, then for
379 each sector X in the secondary slot, it is moved to index X in
380 the primary slot, then the sector at X+1 in the primary is
/mcuboot-latest/boot/espressif/include/flash_map_backend/
Dflash_map_backend.h81 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector);
85 struct flash_sector *sector);
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c383 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
385 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_sector_from_off()
386 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_sector_from_off()
392 struct flash_sector *sector) in flash_area_get_sector() argument
394 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_get_sector()
395 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_get_sector()
/mcuboot-latest/docs/release-notes.d/
Dswap-using-offset.md4 up by having the update image written in the second sector in
/mcuboot-latest/boot/zephyr/include/flash_map_backend/
Dflash_map_backend.h63 int flash_area_sector_from_off(off_t off, struct flash_sector *sector);
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c454 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
478 sector->fs_off = sec_off; in flash_area_sector_from_off()
479 sector->fs_size = sec_size; in flash_area_sector_from_off()
488 struct flash_sector *sector) in flash_area_get_sector() argument
512 sector->fs_off = sec_off; in flash_area_get_sector()
513 sector->fs_size = sec_size; in flash_area_get_sector()
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c233 struct flash_sector sector; in decrypt_image_inplace() local
239 rc = flash_area_get_sector(fa_p, boot_status_off(fa_p), &sector); in decrypt_image_inplace()
280 sect_size = sector.fs_size; in decrypt_image_inplace()
/mcuboot-latest/docs/
Dreadme-zephyr.md169 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
Dtestplan-mynewt.md162 $ pyocd flash -e sector -a 0x80000 ${IMG_FILE} bin
DPORTING.md97 uint32_t fa_size; /** The size of this sector */
Drelease-notes.md16 - bootutil: Fixed issue with comparing sector sizes for
19 up by one sector).
Dreadme-espressif.md817 # Use sector erasing (recommended) instead of entire image size
/mcuboot-latest/sim/src/
Dimage.rs1717 for sector in flash.sector_iter() { in show_flash()
1719 sector.num, sector.base, sector.size); in show_flash()
/mcuboot-latest/boot/cypress/MCUBootApp/
DREADME.md55 … make sure you have updated `MCUBOOT_MAX_IMG_SECTORS` appropriatery with sector size assumed to be…