Lines Matching refs:dest_path
152 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
242 if (dest_path == NULL) { in ota_recovery_cmds()
247 …[%s:%d] parameter flash offset %#llx dest path %s\n", __func__, __LINE__, flash_offset, dest_path); in ota_recovery_cmds()
265 sprintf(data_buf, "nandwrite -p /dev/mtd0 -s %#llx %s; \n", flash_offset, dest_path); in ota_recovery_cmds()
287 …=%s if=%s bs=%d seek=%lld; \t###flash offset [%#10llx] \n", flash_name, dest_path, dd_bs, dd_seek,… in ota_recovery_cmds()
345 LOGI("now write %s to %s.\n", update_cmd[i].name, update_cmd[i].dest_path); in RK_ota_start()
357 LOGE("update %s error.\n", update_cmd[i].dest_path); in RK_ota_start()
367 if (ota_recovery_cmds(update_cmd[i].flash_offset, update_cmd[i].dest_path)) { in RK_ota_start()
375 if (ota_recovery_cmds(update_cmd[i].flash_offset, update_cmd[i].dest_path)) { in RK_ota_start()
390 comparefile(update_cmd[i].dest_path, _url, in RK_ota_start()
393 LOGI("check %s ok.\n", update_cmd[i].dest_path); in RK_ota_start()
395 LOGE("check %s failed.\n", update_cmd[i].dest_path); in RK_ota_start()
432 … if (ota_recovery_cmds(param_item[j].offset * SECTOR_SIZE, update_cmd[i].dest_path)) { in RK_ota_start()