Skip to content

Commit 66c9805

Browse files
committed
boot/nxboot: update stale comment to reflect CRC validation
The comment previously stated CRC was not calculated before boot. This is no longer accurate after adding full image CRC validation in validate_image(). Signed-off-by: Neil Berkman <neil@xuku.com>
1 parent 8dbc177 commit 66c9805

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

boot/nxboot/loader/boot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,9 @@ int nxboot_perform_update(bool check_only)
911911
}
912912
}
913913

914-
/* Check whether there is a valid image in the primary slot. This just
915-
* checks whether the header is valid, but does not calculate the CRC
916-
* of the image as this would prolong the boot process.
914+
/* Check whether there is a valid image in the primary slot. Validates
915+
* both the header and the full image CRC to ensure integrity before
916+
* booting.
917917
*/
918918

919919
primary = flash_partition_open(CONFIG_NXBOOT_PRIMARY_SLOT_PATH);

0 commit comments

Comments
 (0)