Skip to content

Conversation

@landerweit-phytec
Copy link
Collaborator

The option --dry-run disables writing to the device. Only the partitions and input files are validated. If the input files fit inside a partition is not checked.

@landerweit-phytec landerweit-phytec added the enhancement New feature or request label Mar 7, 2023
@mschwan-phytec mschwan-phytec added this to the v0.4.0 milestone Mar 7, 2023
@mschwan-phytec mschwan-phytec removed this from the v0.4.0 milestone May 2, 2023
@landerweit-phytec landerweit-phytec force-pushed the wip-dry-run branch 2 times, most recently from 63301ba to c3e4f83 Compare June 12, 2023 12:12
Add new function validate_file(), which gets the absolute file path,
checks for file existence and validates the file with checksums.

Use this new function before writing the file to the device.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Add function pu_flash_validate_config().

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Validate the parsed config before initializing the device.
The validation currently includes checking for file existence and
checksum validation.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
The property for dry run, which indicates that no changes are made on
the device.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Dry run disables writing to the device. This is done by creating the
partition table and the partitions only in memory and not writing them
to the device. The input files are only validated but not written.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Passing this parameter enables dry run mode which disables all changes
to the device.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
@landerweit-phytec landerweit-phytec added this to the v1.0.0 milestone Jul 11, 2023
@landerweit-phytec landerweit-phytec marked this pull request as draft July 13, 2023 07:40
@mschwan-phytec mschwan-phytec removed this from the v1.0.0 milestone Nov 15, 2023
@mschwan-phytec mschwan-phytec force-pushed the main branch 9 times, most recently from a97a710 to ed48627 Compare September 25, 2025 11:30
@mschwan-phytec mschwan-phytec force-pushed the main branch 2 times, most recently from 9ab6f72 to 41bf69f Compare January 15, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants