Lines Matching +full:rk +full:- +full:nand
8 * http://www.apache.org/licenses/LICENSE-2.0
51 while ((read = getline(&line, &len, fp)) != -1) { in getVersionFromfile()
62 int pline_len = strlen(pline) - 1; in getVersionFromfile()
82 if (download_file(url, DOWNLOAD_VERSION_PATH) == -1) { in getRemoteVersion()
150 * -1: recovery 模式
158 return -1; in getCurrentSlot()
176 return -1; in getCurrentSlot()
190 LOGI("Current device is nand : %s.\n", NAND_DRIVER_DEV_LBA); in getFlashPoint()
207 const MtdPartition *part = mtd_find_partition_by_name("rk-nand"); in getFlashSize()
209 part = mtd_find_partition_by_name("spi-nand0"); in getFlashSize()
212 LOGE("Can't find rk-nand or spi-nand0\n"); in getFlashSize()
213 return -1; in getFlashSize()
215 total_size = total_size - (erase_size * 4); in getFlashSize()
223 return -2; in getFlashSize()
225 if ((total_size_64 = lseek64(fd_dest, 0, SEEK_END)) == -1) { in getFlashSize()
228 return -2; in getFlashSize()
249 LOGE("%s-%d: get mtd info error\n", __func__, __LINE__); in getFlashInfo()
250 return -1; in getFlashInfo()
256 LOGE("%s-%d: get flash total size error. NOT support now.\n", __func__, __LINE__); in getFlashInfo()
257 return -1; in getFlashInfo()