Home
last modified time | relevance | path

Searched refs:common_head (Results 1 - 7 of 7) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dmake_upg_file.py482 common_head = hi_upg_common_head.from_buffer(common_head_bin)
483 common_head.image_id = image_id
484 common_head.struct_version = 0
485 common_head.section_offset = section_head_offset
486 common_head.section_len = len(upg_bin) - section_head_offset
487 common_head.file_type = file_type
488 common_head.file_version = file_ver
489 common_head.encrypt_flag = encrypt_flag
490 common_head.file_attr = file_attr
491 common_head
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_file.c342 hi_upg_common_head *common_head = HI_NULL; in upg_verify_file() local
353 common_head = &(upg_head->common); in upg_verify_file()
360 if (common_head->file_type == HI_UPG_FILE_BOOT) { in upg_verify_file()
367 ret = hi_flash_read(addr + common_head->section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in upg_verify_file()
H A Dupg_common.c389 if (((offset + buf_len) > (ctx->common_head.file_len)) || in upg_cache_ctrl()
391 upg_print("[upg cache ctrl]error param:0x%x-0x%x-0x%x \r\n", offset, buf_len, ctx->common_head.file_len); in upg_cache_ctrl()
416 memset_s(&ctx->common_head, sizeof(hi_upg_common_head), 0, sizeof(hi_upg_common_head)); in upg_clear_ctx()
690 hi_u32 ret = upg_get_backup_write_addr(ctx->common_head.file_type, ctx->common_head.file_len, &write_addr); in upg_set_flash_write_addr()
694 upg_print("[upg write addr]ret-addr-size:0x%x-0x%x-0x%x\r\n", ret, ctx->file_addr, ctx->common_head.file_len); in upg_set_flash_write_addr()
728 if (memcpy_s(&(ctx->common_head), sizeof(hi_upg_common_head), head, sizeof(hi_upg_common_head)) != EOK) { in upg_start()
840 *ver = ctx->common_head.file_version; in upg_get_boot_file_ver()
1384 ctx->common_head.file_len = head.file_len; in hi_upg_get_content()
1443 if (ctx->common_head in upg_file_decrypt()
[all...]
H A Dupg_common.h76 hi_upg_common_head common_head; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_check.c233 hi_upg_common_head *common_head = &(upg_head->common); in boot_upg_check_file() local
234 ret = boot_upg_check_common_head(common_head); in boot_upg_check_file()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c56 hi_upg_common_head *common_head = &(upg_head.common); in crypto_check_kernel_file() local
58 ret = crypto_check_image_id(common_head->image_id); in crypto_check_kernel_file()
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_general.c264 hi_upg_common_head *common_head = &(upg_head->common); in factory_check_file() local
265 ret = factory_check_common_head(common_head, bin_len); in factory_check_file()

Completed in 10 milliseconds