Skip to content

imx500: Allow for fw progress bar access restrictions#1378

Merged
davidplowman merged 2 commits intonextfrom
imx500
Apr 20, 2026
Merged

imx500: Allow for fw progress bar access restrictions#1378
davidplowman merged 2 commits intonextfrom
imx500

Conversation

@naushir
Copy link
Copy Markdown
Collaborator

@naushir naushir commented Apr 20, 2026

The firmware upload progress bar reads two files under debugfs, which requires sudo group membership. Non-sudo users may hit PermissionError during IMX500() construction even though the progress bar is purely cosmetic and the rest of the device works without it.

Catch PermissionError/FileNotFoundError on the two opens, print a warning, and continue fw upload without a progress bar.

The firmware upload progress bar reads two files under debugfs, which
requires sudo group membership. Non-sudo users may hit PermissionError
during IMX500() construction even though the progress bar is purely
cosmetic and the rest of the device works without it.

Catch PermissionError/FileNotFoundError on the two opens, print a
warning, and continue fw upload without a progress bar.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@naushir naushir requested a review from davidplowman April 20, 2026 10:10
@davidplowman davidplowman merged commit b891a5c into next Apr 20, 2026
4 checks passed
@naushir naushir deleted the imx500 branch April 20, 2026 10:14
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.

2 participants