Home
last modified time | relevance | path

Searched refs:section_head (Results 1 - 11 of 11) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_kernel.c23 hi_u32 boot_upg_lzma_detect(hi_u32 addr_write, hi_u32 *uncompress_size, const hi_upg_section_head *section_head) in boot_upg_lzma_detect() argument
29 hi_u32 ret = hi_flash_read(addr_write + section_head->section0_offset, 13, lzma_head); /* 13 Bytes:head length */ in boot_upg_lzma_detect()
53 hi_u32 boot_upg_lzma_verify(hi_u32 addr_write, hi_u32 *uncompress_size, const hi_upg_section_head *section_head, in boot_upg_lzma_verify() argument
56 hi_u32 ret = boot_upg_lzma_detect(addr_write, uncompress_size, section_head); in boot_upg_lzma_verify()
66 ret = boot_upg_check_before_decompress(addr_write, section_head, file_head); in boot_upg_lzma_verify()
77 hi_upg_section_head section_head = { 0 }; in boot_upg_kernel_process() local
78 hi_u32 ret = hi_flash_read(addr_write + sizeof(hi_upg_head), sizeof(hi_upg_section_head), (hi_u8 *)(&section_head)); in boot_upg_kernel_process()
82 if (section_head.section0_compress == HI_FALSE) { in boot_upg_kernel_process()
92 ret = boot_decrypt_upg_file(addr_write, &section_head); in boot_upg_kernel_process()
99 ret = boot_upg_lzma_verify(addr_write, &uncompress_size, &section_head, file_hea in boot_upg_kernel_process()
[all...]
H A Dboot_upg_check.c142 hi_u32 boot_upg_get_section_head(hi_u32 addr, hi_upg_section_head *section_head) in boot_upg_get_section_head() argument
147 if (section_head == HI_NULL) { in boot_upg_get_section_head()
154 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in boot_upg_get_section_head()
259 hi_upg_section_head section_head = { 0 }; in boot_get_start_addr_offset() local
260 hi_u32 ret = boot_upg_get_section_head(addr, &section_head); in boot_get_start_addr_offset()
262 *offset = addr + section_head.section0_offset; in boot_get_start_addr_offset()
H A Dboot_upg_check.h25 hi_u32 boot_upg_get_section_head(hi_u32 addr, hi_upg_section_head *section_head);
H A Dboot_upg_tool.c280 hi_u32 boot_upg_check_before_decompress(hi_u32 addr_write, const hi_upg_section_head *section_head, in boot_upg_check_before_decompress() argument
287 hi_flash_read(addr_write + section_head->section0_offset, 13, lzma_head); /* read 13B */ in boot_upg_check_before_decompress()
288 g_compress_src_addr = addr_write + section_head->section0_offset; in boot_upg_check_before_decompress()
296 ret = hi_lzma_decompress(lzma_head, sizeof(lzma_head), section_head->section0_len, kernel_comprss_flash_read, in boot_upg_check_before_decompress()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dburn_file.c20 hi_u32 loaderboot_get_section_head(hi_u32 addr, hi_upg_section_head *section_head) in loaderboot_get_section_head() argument
25 if (section_head == HI_NULL) { in loaderboot_get_section_head()
33 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in loaderboot_get_section_head()
44 hi_upg_section_head section_head = { 0 }; in loaderboot_get_start_addr_offset() local
45 hi_u32 ret = loaderboot_get_section_head(addr, &section_head); in loaderboot_get_start_addr_offset()
47 *offset = addr + section_head.section0_offset; in loaderboot_get_start_addr_offset()
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dmake_upg_file.py229 section_head = hi_upg_section_head.from_buffer(
232 section_head.image_id, section_head.struct_version))
234 section_head.param.hash_alg, section_head.param.sign_alg, section_head.param.sign_param))
235 print("[section_count=0x%x]"%(section_head.section_count))
236 print("[section0_compress=0x%x][section0_offset=0x%x][section0_len=0x%x]"%(section_head.section0_compress, section_head.section0_offset, section_head
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_file.c213 hi_u32 upg_get_section_head_from_flash(hi_u32 addr, hi_upg_section_head *section_head) in upg_get_section_head_from_flash() argument
218 if (section_head == HI_NULL) { in upg_get_section_head_from_flash()
227 ret = hi_flash_read(addr + head.section_offset, sizeof(hi_upg_section_head), (hi_u8 *)section_head); in upg_get_section_head_from_flash()
343 hi_upg_section_head *section_head = HI_NULL; in upg_verify_file() local
361 section_head = (hi_upg_section_head *)hi_malloc(HI_MOD_ID_UPG, sizeof(hi_upg_section_head)); in upg_verify_file()
362 if (section_head == HI_NULL) { in upg_verify_file()
366 memset_s(section_head, sizeof(hi_upg_section_head), 0, sizeof(hi_upg_section_head)); 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()
372 ret = upg_check_boot_file(addr + section_head->section0_offset, section_head in upg_verify_file()
[all...]
H A Dupg_check_file.h38 hi_u32 upg_get_section_head_from_flash(hi_u32 addr, hi_upg_section_head *section_head);
H A Dupg_common.c162 hi_upg_section_head section_head = { 0 }; in upg_refresh_nv() local
174 ret = upg_get_section_head_from_flash(cfg.addr_start, &section_head); in upg_refresh_nv()
179 hi_u32 nv_addr = cfg.addr_start + section_head.section1_offset; in upg_refresh_nv()
180 hi_u32 nv_size = section_head.section1_len; in upg_refresh_nv()
184 hi_pvoid buf = hi_malloc(HI_MOD_ID_UPG, section_head.section1_len); in upg_refresh_nv()
897 hi_upg_section_head section_head = { 0 }; in upg_refresh_boot() local
902 hi_u32 ret = upg_get_section_head_from_flash(addr, &section_head); in upg_refresh_boot()
907 total_size = section_head.section0_len; in upg_refresh_boot()
927 ret = hi_flash_read(addr + section_head.section0_offset + offset, this_size, buf); in upg_refresh_boot()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.h104 hi_u32 boot_decrypt_upg_file(hi_u32 addr_write, const hi_upg_section_head *section_head);
H A Dcrypto.c1133 hi_u32 boot_decrypt_upg_file(hi_u32 addr_write, const hi_upg_section_head *section_head) in boot_decrypt_upg_file() argument
1136 hi_u32 start_offset = addr_write + section_head->section0_offset; in boot_decrypt_upg_file()

Completed in 9 milliseconds