/base/update/updater/services/flashd/image_writer/ |
D | image_writer.cpp | 35 bool FlashdWriterRaw::GetDataWriter(const std::string &partition) in GetDataWriter() argument 40 if (!devicePtb.GetPartionInfoByName(partition, ptnInfo)) { in GetDataWriter() 41 LOG(ERROR) << "FlashdWriterRaw: cannot find the lun index of partition: " << partition; in GetDataWriter() 48 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, GetBlockDeviceByMountPoint(partition)); in GetDataWriter() 51 LOG(ERROR) << partition << " FlashdWriterRaw writer error"; in GetDataWriter() 57 int FlashdWriterRaw::Write(const std::string &partition, const uint8_t *data, size_t len) in Write() argument 60 if (!GetDataWriter(partition)) { in Write() 66 LOG(ERROR) << "writer " << partition << " failed "; in Write() 93 std::unique_ptr<FlashdWriter> FlashdImageWriter::GetWriter(const std::string &partition, in GetWriter() argument 98 if (iter.checkImage(partition, data, len)) { in GetWriter() [all …]
|
D | image_writer.h | 31 virtual int Write(const std::string &partition, const uint8_t *data, size_t len) = 0; 36 int Write(const std::string &partition, const uint8_t *data, size_t len) override; 39 bool GetDataWriter(const std::string &partition); 53 …std::unique_ptr<FlashdWriter> GetWriter(const std::string &partition, const uint8_t *data, size_t … 59 bool IsRawImage(const std::string &partition, const uint8_t *data, size_t len) const;
|
/base/startup/hvb/test/ |
D | hvb_main.c | 33 const char *partition, in hvb_read_partition() argument 44 fd = open(partition, O_RDONLY); in hvb_read_partition() 46 printf("Error open %s partition.\n", partition); in hvb_read_partition() 54 printf("Error getting size of %s partition.\n", partition); in hvb_read_partition() 94 const char *partition, in hvb_write_partition() argument 104 fd = open(partition, O_WRONLY); in hvb_write_partition() 106 printf("Error opening %s partition.\n", partition); in hvb_write_partition() 159 const char *partition, in hvb_get_partiton_uuid() argument 171 const char *partition, in hvb_get_partiton_size() argument 177 fd = open(partition, O_WRONLY); in hvb_get_partiton_size() [all …]
|
/base/update/updater/ |
D | README.md | 12 The updater runs in the updater partition. It reads the misc partition information to obtain the up… 21 │ ├── fs_manager # File system and partition management code 40 The updater runs in the updater partition. To ensure proper functioning of the updater, perform the… 42 1. Create a updater partition. 44 …partition is independent of other partitions. It is recommended that the size of the updater parti… 46 2. Create the misc partition. 48 …partition stores metadata required by the update subsystem during the update process. Such data in… 50 3. Prepare the partition configuration table. 52 …eds to operate the partitions through the partition configuration table. The default file name of … 56 The init process in the updater partition has an independent configuration file named **init.cfg**… [all …]
|
/base/update/packaging_tools/ |
D | script_generator.py | 104 def sha_check(self, ranges_str, expected_sha, partition): argument 115 expected_sha=expected_sha, partition=partition) 118 def image_sha_check(self, partition, src_size, src_hash, argument 130 partition=partition, src_size=src_size, src_hash=src_hash, 134 def first_block_check(self, partition): argument 141 partition=partition) 144 def abort(self, partition): argument 152 partition=partition) 167 def image_patch(self, partition, src_size, src_hash, target_size, target_hash): argument 175 '"{partition}.patch.dat");\n'.format(partition=partition, src_size=src_size, [all …]
|
D | patch_package_process.py | 37 def __init__(self, partition, tgt_image, src_image, argument 41 self.partition = partition 47 self.package_patch_zip = PackagePatchZip(partition) 385 def write_script(self, partition, script_check_cmd_list, argument 399 ranges_str, expected_sha, partition) 401 first_block_check_cmd = verse_script.first_block_check(partition) 403 abort_cmd = verse_script.abort(partition) 414 block_update_cmd = verse_script.block_update(partition) 416 cmd = '%s_WRITE_FLAG%s' % (partition, block_update_cmd) 505 def __init__(self, partition): argument [all …]
|
D | README.md | 16 …ge contains the partition table and full image data, which are used for partition change processin… 62 …ON_FILE, --partition_file PARTITION_FILE Variable partition mode, which means to partition l…
|
D | transfers_manager.py | 69 def __init__(self, partition, tgt_img_obj, src_img_obj, argument 73 self.partition = partition
|
D | build_update.py | 516 def write_image_patch_script(partition, src_image_path, tgt_image_path, argument 531 sha_check_cmd = verse_script.image_sha_check(partition, 534 first_block_check_cmd = verse_script.first_block_check(partition) 536 abort_cmd = verse_script.abort(partition) 545 image_patch_cmd = verse_script.image_patch(partition, os.path.getsize(src_image_path), 549 cmd = '%s_WRITE_FLAG%s' % (partition, image_patch_cmd) 555 partition, src_image_path, tgt_image_path, argument 566 prefix="%s_patch.dat-" % partition, mode='wb') 583 return write_image_patch_script(partition, src_image_path, tgt_image_path,
|
D | README_zh.md | 74 -pf PARTITION_FILE, --partition_file PARTITION_FILE Variable partition mode, Partition list f…
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/ |
D | hvb_ops.c | 45 const char* partition, in HvbReadFromPartition() argument 55 if (partition == NULL) { in HvbReadFromPartition() 65 pathLen = strlen(PARTITION_PATH_PREFIX) + strlen(partition); in HvbReadFromPartition() 73 partition); in HvbReadFromPartition() 94 int64_t total_size = GetImageSizeForHVB(fd, partition); in HvbReadFromPartition() 96 BEGET_LOGE("Failed to get the size of the partition %s", partition); in HvbReadFromPartition() 132 const char* partition, in HvbWriteToPartition() argument 183 const char* partition, in HvbGetSizeOfPartition() argument
|
/base/startup/hvb/tools/ |
D | readme.md | 13 … --partition xxx … 31 …e.g. ./hvbtool.py make_hash_footer --image boot.img --partition boot --partition_size 31457280 … 39 … --partition xxx … 57 …e.g. ./hvbtool.py make_hashtree_footer --image system.img --partition system --partition_size 3… 63 ./hvbtool.py mak_rvt_image --partition rvt //rvt分区 89 …086bcb8cf37f991733f2696 --pubkey test_pub.pem --privkey test_priv.pem --partition rvt --partition_…
|
D | hvbtool.py | 124 … self.img_org_len, self.img_len, self.partition = struct.unpack('2Q64s', self.cert[48:128]) 151 msg += "\tPartition name: {}\n".format(self.partition.decode()) 706 self.partition = _params['partition'] 744 …partition_name = (self.partition).encode('utf-8') + b'\0' * (max_partition_name_len - len(self.par… 1061 if 'rvt' in cert.partition.decode():
|
/base/update/ota_lite/hals/ |
D | hal_hota_board.h | 74 int HotaHalWrite(int partition, unsigned char *buffer, unsigned int offset, unsigned int bufLen); 90 int HotaHalRead(int partition, unsigned int offset, unsigned int bufLen, unsigned char *buffer);
|
/base/update/ota_lite/frameworks/source/updater/ |
D | hota_updater.c | 439 static void GetCurrentDloadCompPartition(int *partition) in GetCurrentDloadCompPartition() argument 451 *partition = g_otaComponents[i].id; in GetCurrentDloadCompPartition() 468 int partition = PARTITION_ERROR; in StashRecvDataToBuffer() local 469 GetCurrentDloadCompPartition(&partition); in StashRecvDataToBuffer() 470 if (HotaHalWrite(partition, buffer, startAddr - g_currentDloadComp.offset, in StashRecvDataToBuffer() 472 printf("StashRecvDataToBuffer HotaHalWrite failed, partition = %d .\r\n", partition); in StashRecvDataToBuffer()
|
/base/update/updater/services/flashd/ |
D | BUILD.gn | 115 "//base/update/updater/services/flashd/partition.cpp",
|
/base/update/updateservice/ |
D | README.md | 73 …mp"></a><a name="p237mcpsimp"></a>Writes the update command to the misc partition and runs the <st…
|
/base/update/updater/test/unittest/test_data/applypatch/ |
D | TestGZipModeImagePatch.old.gz |
|
/base/update/updater/test/unittest/test_data/diffpatch/ |
D | PatchGztest_new.gz |
|
D | PatchGztest_old.gz |
|