Home
last modified time | relevance | path

Searched refs:dest_path (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/external/recovery/update_engine/
H A Dmd5sum.c34 bool checkdata_mtd(const char *dest_path, unsigned char* out_md5sum, long long offset, long long ch… in checkdata_mtd() argument
45 checkSize, offset, dest_path, TMP_MD5SUM_NAME); in checkdata_mtd()
89 LOGI("MD5Check is ok of %s\n", dest_path); in checkdata_mtd()
93 bool checkdata(const char *dest_path, unsigned char *out_md5sum, long long offset, long long checkS… in checkdata() argument
101 FILE *fp = fopen(dest_path, "rb"); in checkdata()
103 LOGE("open file failed %s", dest_path); in checkdata()
140 LOGI("MD5Check is ok of %s\n", dest_path); in checkdata()
144 bool comparefile(const char *dest_path, const char *source_path, long long dest_offset, long long s… in comparefile() argument
149 checkdata_mtd(dest_path, md5sum_dest, dest_offset, checkSize); in comparefile()
151 checkdata(dest_path, md5sum_dest, dest_offset, checkSize); in comparefile()
[all …]
H A Dupdate.c152 if (*update_cmd[i].dest_path && (update_cmd[i].need_update == false)) { in RK_ota_set_partition()
204 …memset(update_cmd[i].dest_path, 0, sizeof(update_cmd[i].dest_path) / sizeof(update_cmd[i].dest_pat… in RK_ota_set_partition()
206 sprintf(update_cmd[i].dest_path, "%s/gpt", _url_dir); in RK_ota_set_partition()
208 sprintf(update_cmd[i].dest_path, "%s/%s", _url_dir, update_cmd[i].name); in RK_ota_set_partition()
212 sprintf(update_cmd[i].dest_path, "/dev/block/by-name/gpt"); in RK_ota_set_partition()
215 … sprintf(update_cmd[i].dest_path, "/dev/block/by-name/%s", update_cmd[i].name); in RK_ota_set_partition()
220 sprintf(update_cmd[i].dest_path, "/dev/mtd%d", mtdp->device_index); in RK_ota_set_partition()
221 … LOGI("need update %s ,.dest_path: %s.\n", update_cmd[i].name, update_cmd[i].dest_path); in RK_ota_set_partition()
224 … sprintf(update_cmd[i].dest_path, "/dev/block/by-name/%s", update_cmd[i].name); in RK_ota_set_partition()
237 static int ota_recovery_cmds (long long flash_offset, const char *dest_path) in ota_recovery_cmds() argument
[all …]
H A Dflash_image.c88 …td_write(char *src_path, long long offset, long long size, long long flash_offset, char *dest_path) in mtd_write() argument
90 …LOGI("mtd_write %s, offset = %#llx size = %#llx flash_offset = %lld.\n", dest_path, offset, size, … in mtd_write()
95 stat(dest_path, &sb); in mtd_write()
102 sprintf(mtd_write_erase_cmd, "flash_erase %s 0 0", dest_path); in mtd_write()
111 src_path, dd_bs, dd_skip, dd_count, dest_path ); in mtd_write()
114 LOGE("flash_erase: can't erase MTD \"%s\"\n", dest_path); in mtd_write()
126 …ck_write(char *src_path, long long offset, long long size, long long flash_offset, char *dest_path) in block_write() argument
128 LOGI("block_write src %s dest %s.\n", src_path, dest_path); in block_write()
157 fd_dest = open(dest_path, O_RDWR | O_CREAT | O_TRUNC, 0644); in block_write()
160 LOGE("Can't open %s\n", dest_path); in block_write()
[all …]
H A Dflash_image.h34 int flash_bootloader(char *dest_path, void *pupdate_cmd);
35 int flash_parameter(char *dest_path, void *pupdate_cmd);
36 int flash_normal(char *dest_path, void *pupdate_cmd);
H A Drkboot.c306 static int WriteIDBlock(PBYTE lpIDBlock, DWORD dwSectorNum, char *dest_path) in WriteIDBlock() argument
308 LOGE("WriteIDBlock start %s \n", dest_path); in WriteIDBlock()
310 int fd_dest = open(dest_path, O_CREAT | O_RDWR | O_SYNC | O_TRUNC, 0); in WriteIDBlock()
312 LOGE("WriteIDBlock open %s failed. %s\n", dest_path, strerror(errno)); in WriteIDBlock()
332 bool download_loader(PBYTE data_buf, int size, char *dest_path) in download_loader() argument
371 if (getFlashSize(dest_path, &m_FlashSize, &m_FlasBlockNum) != 0) { in download_loader()
388 if (WriteIDBlock(pIDBData, uiSecNumPerIDB, dest_path) != 0) { in download_loader()
H A Dmd5sum.h19 bool comparefile(const char *dest_path, const char *source_path, long long dest_offset, long long s…
20 bool compareMd5sum(const char *dest_path, unsigned char *source_md5sum, long long offset, long long…
H A Drkboot.h21 bool download_loader(PBYTE data_buf, int size, char *dest_path);
H A Dupdate.h29 char dest_path[100]; member
/OK3568_Linux_fs/kernel/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c262 const char *dest_path = "/tmp"; in test_priv_mount_unpriv_remount() local
297 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount()
300 orig_path, dest_path, strerror(errno)); in test_priv_mount_unpriv_remount()
303 ret = mount(dest_path, dest_path, "none", in test_priv_mount_unpriv_remount()
311 remount_mnt_flags = read_mnt_flags(dest_path); in test_priv_mount_unpriv_remount()
314 dest_path, orig_path); in test_priv_mount_unpriv_remount()
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/
H A Dcase.py173 dest_path = '%s/%s.conf' % (multiconfigdir, multiconfig)
174 self.track_for_cleanup(dest_path)
176 dest_path = self.testinc_path
178 self.logger.debug("Writing to: %s\n%s\n" % (dest_path, data))
179 ftools.write_file(dest_path, data)
/OK3568_Linux_fs/kernel/fs/vboxsf/
H A Dvboxsf_wrappers.c180 struct shfl_string *dest_path, u32 flags) in vboxsf_rename() argument
192 parms.dest.u.pointer.size = shfl_string_buf_size(dest_path); in vboxsf_rename()
193 parms.dest.u.pointer.u.linear_addr = (uintptr_t)dest_path; in vboxsf_rename()
H A Dvfsmod.h122 struct shfl_string *dest_path, u32 flags);
/OK3568_Linux_fs/yocto/poky/scripts/lib/devtool/
H A Dupgrade.py44 dest_path = os.path.join(dest, path)
45 shutil.move(os.path.join(orig, path), dest_path)
/OK3568_Linux_fs/yocto/poky/bitbake/lib/
H A Dpyinotify.py774 dest_path = mv_[0]
775 watch_.path = dest_path
786 w.path = os.path.join(dest_path, w.path[src_path_len:])