Skip to content

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

@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
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