Skip to content

Conversation

@ashrafk93
Copy link
Contributor

custom fw install

print( ' --device <> Run only on the specified devices; ignore any test that does not match (implies --live)' )
print( ' --no-reset Do not try to reset any devices, with or without a hub' )
print( ' --hub-reset If a hub is available, reset the hub itself' )
print( ' --custom-fw If custom fw provided flash it if its different that the current fw installed' )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe --custom-fw-d400?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

image_file = find_image_or_exit(product_name) if not custom_fw_path else custom_fw_path
cmd = [fw_updater_exe, '-r', '-f', image_file]
if custom_fw_path:
# unsiged fw
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsigned

if recovered or 'nightly' not in test.context:
if recovered or 'nightly' not in test.context or custom_fw_path:
# In nightly, we always update; otherwise we try to save time, so do not do anything!
# If custom fw was provided always update for now.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the libci param description you wrote
'If custom fw provided flash it if its different that the current fw installed'
Why not implementing it?

@ashrafk93 ashrafk93 force-pushed the feature/ashraf/libCICD branch 4 times, most recently from acb1aaa to 7a630e2 Compare March 30, 2025 13:09
@ashrafk93 ashrafk93 force-pushed the feature/ashraf/libCICD branch from 7a630e2 to e28eebb Compare March 30, 2025 13:11
no_reset = False
hub_reset = False
skip_disconnected = False
custom_fw_path=''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d400

filename = os.path.basename(file_path)
match = re.search(r'Image(\d+)_(\d+)_(\d+)_(\d+)', filename)
if match:
return rsutils.version(".".join(match.groups()[:3])) # Skip the last digit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the last digit is not always 0, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens when the last digit is not 0?
will the fw version include the last digit ? cause i saw that currently it doesn't and it shows only 5.7.6 not 5.7.6.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to skip last digits only if its zero

@ashrafk93 ashrafk93 force-pushed the feature/ashraf/libCICD branch 2 times, most recently from 6c160ad to 8255e40 Compare March 30, 2025 17:25
@ashrafk93 ashrafk93 force-pushed the feature/ashraf/libCICD branch from 8255e40 to 55f0e76 Compare March 30, 2025 17:31
@Nir-Az Nir-Az merged commit 4fd0e18 into realsenseai:development Apr 3, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants