Skip to content

Remove large folders of firmware that (probably) isn't needed#41

Merged
mcm001 merged 3 commits intoPhotonVision:mainfrom
crschardt:remove-firmware-from-opi-image
Aug 10, 2025
Merged

Remove large folders of firmware that (probably) isn't needed#41
mcm001 merged 3 commits intoPhotonVision:mainfrom
crschardt:remove-firmware-from-opi-image

Conversation

@crschardt
Copy link
Contributor

@crschardt crschardt commented Dec 24, 2024

There are a lot of firmware files included in the OrangePi images that are for hardware that isn't likely to be used with PhotonVision.

Here are the largest directories:

pi@photonvision:~$ du -sch /usr/lib/firmware/* | sort -rh | head
588M    total
78M     /usr/lib/firmware/mrvl
78M     /usr/lib/firmware/mellanox
74M     /usr/lib/firmware/6.1.0-1025-rockchip
59M     /usr/lib/firmware/qcom
41M     /usr/lib/firmware/nvidia
28M     /usr/lib/firmware/intel
23M     /usr/lib/firmware/amdgpu
19M     /usr/lib/firmware/rkwifi
15M     /usr/lib/firmware/mediatek

While some, like "6.1.0-1025-rockchip" are going to be needed, most of these are for hardware that isn't present on the Orange Pi 5 SBCs.

This PR removes:

  • mrvl
  • mellanox
  • qcom
  • nvidia
  • intel
  • amdgpu

@mcm001
Copy link
Contributor

mcm001 commented Dec 24, 2024

From googling I'm having a hard time telling which of these firmwares are expected to be needed vs not. But most of the mrvl drivers look to be WiFi related so that's good to yeet. Just want to make sure we don't accidentally break USB hubs or something.

Copy link
Contributor Author

@crschardt crschardt left a comment

Choose a reason for hiding this comment

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

I'm being agressive here to see if we can find something that breaks. I'll keep it draft until we are really confident that it's OK.

Copy link
Contributor Author

@crschardt crschardt left a comment

Choose a reason for hiding this comment

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

But, on the plus side, the compressed OPi5 image is down to 611 MB.

@mcm001
Copy link
Contributor

mcm001 commented Dec 24, 2024

image

I bet those rkwifi drivers can go too. And do we already purge manages and apt cache and stuff?

@Gold856 Gold856 marked this pull request as ready for review August 10, 2025 00:07
Copy link
Member

@Gold856 Gold856 left a comment

Choose a reason for hiding this comment

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

Worked fine for me on an Orange Pi 5

@mcm001 mcm001 merged commit 1611214 into PhotonVision:main Aug 10, 2025
13 checks passed
mcm001 pushed a commit to PhotonVision/photonvision that referenced this pull request Oct 21, 2025
## Description

Adds support for building images for the Luma P1. This bumps the image
modifier pin to v2025.0.4. This pulls in:

* Allow users to install any release via install.sh by @crschardt in
PhotonVision/photon-image-modifier#49
* Exit install script if run on systemcore by @crschardt in
PhotonVision/photon-image-modifier#58
* Fix --list-versions in install.sh by @crschardt in
PhotonVision/photon-image-modifier#59
* Remove large folders of firmware that (probably) isn't needed by
@crschardt in
PhotonVision/photon-image-modifier#41
* Cancel in progress runs by @spacey-sooty in
PhotonVision/photon-image-modifier#65
* Add limelight 4 support by @spacey-sooty in
PhotonVision/photon-image-modifier#52

**Full Changelog**:
PhotonVision/photon-image-modifier@v2025.0.3...v2025.0.4


## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2025.3.2
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
spacey-sooty pushed a commit to spacey-sooty/photonvision that referenced this pull request Dec 22, 2025
## Description

Adds support for building images for the Luma P1. This bumps the image
modifier pin to v2025.0.4. This pulls in:

* Allow users to install any release via install.sh by @crschardt in
PhotonVision/photon-image-modifier#49
* Exit install script if run on systemcore by @crschardt in
PhotonVision/photon-image-modifier#58
* Fix --list-versions in install.sh by @crschardt in
PhotonVision/photon-image-modifier#59
* Remove large folders of firmware that (probably) isn't needed by
@crschardt in
PhotonVision/photon-image-modifier#41
* Cancel in progress runs by @spacey-sooty in
PhotonVision/photon-image-modifier#65
* Add limelight 4 support by @spacey-sooty in
PhotonVision/photon-image-modifier#52

**Full Changelog**:
PhotonVision/photon-image-modifier@v2025.0.3...v2025.0.4


## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with settings back to v2025.3.2
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added
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