Home
last modified time | relevance | path

Searched refs:partition (Results 1 – 25 of 101) sorted by relevance

12345

/ohos5.0/base/update/updater/services/flashd/image_writer/
H A Dimage_writer.cpp35 bool FlashdWriterRaw::GetDataWriter(const std::string &partition) in GetDataWriter() argument
40 if (!devicePtb.GetPartionInfoByName(partition, ptnInfo)) { in GetDataWriter()
46 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, GetBlockDeviceByMountPoint(partition)); in GetDataWriter()
49 LOG(ERROR) << partition << " FlashdWriterRaw writer error"; in GetDataWriter()
55 int FlashdWriterRaw::Write(const std::string &partition, const uint8_t *data, size_t len) in Write() argument
58 if (!GetDataWriter(partition)) { in Write()
64 LOG(ERROR) << "writer " << partition << " failed "; in Write()
75 return this->IsRawImage(partition, data, len); in FlashdImageWriter()
95 std::unique_ptr<FlashdWriter> FlashdImageWriter::GetWriter(const std::string &partition, in GetWriter() argument
100 if (iter.checkImage(partition, data, len)) { in GetWriter()
[all …]
H A Dimage_writer.h31 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;
/ohos5.0/base/update/packaging_tools/
H A Dscript_generator.py115 expected_sha=expected_sha, partition=partition)
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)
175 '"{partition}.patch.dat");\n'.format(partition=partition, src_size=src_size,
179 def block_update(self, partition): argument
187 '"{partition}.patch.dat");\n'.format(partition=partition)
193 def raw_image_write(self, partition, image_name): argument
[all …]
H A Dpatch_package_process.py37 def __init__(self, partition, tgt_image, src_image, argument
41 self.partition = partition
47 self.package_patch_zip = PackagePatchZip(partition)
394 def write_script(self, partition, script_check_cmd_list, argument
408 ranges_str, expected_sha, partition)
410 first_block_check_cmd = verse_script.first_block_check(partition)
412 abort_cmd = verse_script.abort(partition)
423 block_update_cmd = verse_script.block_update(partition)
425 cmd = '%s_WRITE_FLAG%s' % (partition, block_update_cmd)
514 def __init__(self, partition): argument
[all …]
H A DREADME.md16 …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…
H A Dbuild_update.py512 def write_image_patch_script(partition, src_image_path, tgt_image_path, argument
527 sha_check_cmd = verse_script.image_sha_check(partition,
530 first_block_check_cmd = verse_script.first_block_check(partition)
532 abort_cmd = verse_script.abort(partition)
541 image_patch_cmd = verse_script.image_patch(partition, os.path.getsize(src_image_path),
545 cmd = '%s_WRITE_FLAG%s' % (partition, image_patch_cmd)
551 partition, src_image_path, tgt_image_path, argument
562 prefix="%s_patch.dat-" % partition, mode='wb')
563 OPTIONS_MANAGER.incremental_image_file_obj_dict[partition] = patch_file_obj
578 return write_image_patch_script(partition, src_image_path, tgt_image_path,
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_char_lite.c65 if (partition == NULL) { in MtdCharOpen()
83 partition->user_num = 1; in MtdCharOpen()
85 (void)LOS_MuxUnlock(&partition->lock); in MtdCharOpen()
86 mfi->partIndex = partition->patitionnum; in MtdCharOpen()
104 partition->user_num = 0; in MtdCharClose()
106 (void)LOS_MuxUnlock(&partition->lock); in MtdCharClose()
127 size_t partSize = (partition->end_block + 1 - partition->start_block) * blockSize; in MtdCharRead()
169 (void)LOS_MuxUnlock(&partition->lock); in MtdCharRead()
187 size_t partSize = (partition->end_block + 1 - partition->start_block) * blockSize; in MtdCharWrite()
229 (void)LOS_MuxUnlock(&partition->lock); in MtdCharWrite()
[all …]
/ohos5.0/base/update/updater/
H A DREADME.md12 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.
44partition is independent of other partitions. It is recommended that the size of the updater parti…
46 2. Create the misc partition.
48partition 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 …]
/ohos5.0/base/startup/hvb/test/
H A Dhvb_main.c33 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 …]
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-shell-file-partition.md1 # partition chapter
6 partition命令用来查看flash分区信息。
11 partition [_nand / spinor_]
26 - partition命令用来查看flash分区信息。
33 举例:partition spinor
42 OHOS # partition spinor
43 spinor partition num:0, blkdev name:/dev/spinorblk0, mountpt:/, startaddr:0x00500000, length:0x00a…
/ohos5.0/drivers/interface/partitionslot/v1_0/
H A DIPartitionSlot.idl23 * obtain current booting partition slot, update current booting partition slot,
24 * or set partition slot as unbootable.
32 * These APIs can be used to obtain current booting partition slot,
33 * or update current booting partition slot, or set partition slot as unbootable.
40 * The operations include getting and setting current booting partition slot,
47 * @brief Obtains current booting partition slot.
51 * @return Returns <b>0</b> if the board is booting from partition slot A.
52 * @return Returns <b>1</b> if the board is booting from partition slot B.
53 * @return Returns <b>N</b> if the board is booting from partition slot N.
72 * @brief Set current active boot partition slot
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/partitionslot_v1_0/foo/partitionslot/v1_0/
H A DIPartitionSlot.idl23 * obtain current booting partition slot, update current booting partition slot,
24 * or set partition slot as unbootable.
32 * These APIs can be used to obtain current booting partition slot,
33 * or update current booting partition slot, or set partition slot as unbootable.
40 * The operations include getting and setting current booting partition slot,
47 * @brief Obtains current booting partition slot.
51 * @return Returns <b>0</b> if the board is booting from partition slot A.
52 * @return Returns <b>1</b> if the board is booting from partition slot B.
53 * @return Returns <b>N</b> if the board is booting from partition slot N.
72 * @brief Set current active boot partition slot
[all …]
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-file-partition.md1 # partition chapter
6 This command is used to query flash partition information.
10 partition \[_nand / spinor_\]
27 …442mcpsimp"></a><a name="p1442mcpsimp"></a>Displays information about the NAND flash partition.</p>
34 …mcpsimp"></a><a name="p1449mcpsimp"></a>Displays information about the SPI NOR flash partition.</p>
44 - The **partition** command is used to query flash partition information.
45 …NAND flash partition information can be queried only when the Yet Another Flash File System \(YAFF…
49 Run **partition spinor**.
53 SPI NOR flash partition information:
56 OHOS # partition spinor
[all …]
H A Dkernel-mini-extend-file.md39 **Table 3** APIs for partition operations
43 | mount | Mounts a partition.| Supported| Supported|
96 API for formatting a partition:
104 API for mounting a partition:
146 /* Set partition information. */
184 - Before unmounting a partition, ensure that all directories and files in the partition are closed.
224 - The **system** partition is mounted to the QEMU.
354 API for formatting a partition:
358 - **partName**: pointer to the partition name.
362 API for mounting a partition:
[all …]
H A Dkernel-small-debug-shell-file-partinfo.md20 | dev_inodename | Specifies the name of the partition to be queried.| A valid partition name|
35 System partition information:
H A Dkernel-standard-mm-eswap.md6partition to serve as a swap partition and uses a resident process zswapd to encrypt and swap the …
12 … have the storage device for swap-out or have the corresponding storage partition created, you can…
100 Use the zram device as the swap partition.
121 …> - **disable**: If there is no data in the ESwap partition, disable ESwap. Otherwise, changes ESw…
122 …in the ESwap partition, disable ESwap. Otherwise, changes ESwap to **readonly** mode and disable E…
157 - **free_swap_threshold** indicates the threshold of the free capacity of the swap partition. After…
218 …in the zram partition is greater than the total size of zram multiplied by **zram_wm_ratio**, the …
264 Set zram and ESwap partition sizes based on service requirements and hardware features. For the rk3…
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-boot-deviceboot.md302 6. Mount the `required` partition.
333 - Mounting of `vendor` partition
420 …em partition, for example, partition A or partition B. The value is a number. For example, **1** i…
422partition A/B booting based on `bootslots`. If the system does not support partition A/B booting, …
443 …n the `currentslot` value to determine whether partition A or partition B is the current system pa…
445partition added with the corresponding suffix and enter the second phase of startup. This phase o…
458 return, "Failed to format partition name suffix, use default partition name");
467 …tform as an example to illustrate how to change from default partition booting to partition A/B bo…
471 ![Original partition](figures/ABStartup_1.png)
497partition `mmcblk0p6` is mounted to the root file system (represented by a slash), and partition `…
[all …]
H A Dsubsys-ota-guide.md237 The partition table is generated with the image. The format is as follows:
243 …leSystem="File system type" Start="Start address of the partition" Length="Size of the partition" …
244 …leSystem="File system type" Start="Start address of the partition" Length="Size of the partition" …
248 **Table 2** Description of labels in the partition table
252 …| Sel | Whether the partition is effective. The value **1** indicates that the partition is effect…
256 | Start | Start address of the partition, in MB. The start address of all partitions is **0**.|
257 | Length | Size of the partition, in MB.|
301 - -**pf ./partition\_file.xml**: path of the partition table file
557 1. Obtain the current boot slot to determine the partition to be updated.
567 …3. Upon starting of the update, set the slot of the partition to be updated to the **unbootable** …
[all …]
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
H A Dhvb_ops.c69 const char* partition, in HvbReadFromPartition() argument
79 if (ops == NULL || partition == NULL || in HvbReadFromPartition()
85 pathLen = strlen(PARTITION_PATH_PREFIX) + strlen(partition); in HvbReadFromPartition()
93 partition); in HvbReadFromPartition()
108 int64_t total_size = GetImageSizeForHVB(fd, partition); in HvbReadFromPartition()
110 BEGET_LOGE("Failed to get the size of the partition %s", partition); in HvbReadFromPartition()
144 const char* partition, in HvbWriteToPartition() argument
195 const char* partition, in HvbGetSizeOfPartition() argument
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-file-management.md10 …lumeManager | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<vo…
14partition(volId: string, fstype: string, callback: AsyncCallback\<void>): void;<br>partition(volId…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-file-management.md10 …lumeManager | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<vo…
14partition(volId: string, fstype: string, callback: AsyncCallback\<void>): void;<br>partition(volId…
/ohos5.0/base/startup/hvb/tools/
H A Dreadme.md13 …​ --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_…
/ohos5.0/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_hvb_ops.cpp68 …struct hvb_ops *ops, const char *partition, int64_t offset, uint64_t numBytes, void *buf, uint64_t… in HvbReadFromPartition() argument
70 if (partition == nullptr) { in HvbReadFromPartition()
79 std::string path = std::string(partition); in HvbReadFromPartition()
108 struct hvb_ops *ops, const char *partition, int64_t offset, uint64_t numBytes, const void *buf) in HvbWriteToPartition() argument
149 static enum hvb_io_errno HvbGetSizeOfPartition(struct hvb_ops *ops, const char *partition, uint64_t… in HvbGetSizeOfPartition() argument
/ohos5.0/base/update/sys_installer_lite/hals/
H A Dhal_hota_board.h74 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);
/ohos5.0/base/update/updater/services/flow_update/update_bin/
H A Dbin_flow_update.cpp137 std::unique_ptr<DataWriter> BinFlowUpdate::GetDataWriter(const std::string &partition) in GetDataWriter() argument
141 if (lastPartition == partition) { in GetDataWriter()
143 lastPartition = partition + std::to_string(lastIndex); in GetDataWriter()
145 lastPartition = partition; in GetDataWriter()

12345