Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

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?

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