-
Notifications
You must be signed in to change notification settings - Fork 28
Provisional orange pi 6 plus image builder #126
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
853d709
orange pi 6 plus attempt #1
guineawheek 0ac8d17
please run ci
guineawheek 0d0095d
generational skill issue
guineawheek 764ddfa
bruh
guineawheek a9d4703
didn't debloatify hard enough
guineawheek d22a5ae
re-enable everything else
guineawheek 5a3e2b8
photon/vision
guineawheek 32f4800
we don't need to do this twice
mcm001 38a16ae
whas;dlkfja
mcm001 489aff6
increase aggressiveness of purge
guineawheek cfb4212
test locally
guineawheek 9bbd17c
Revert "test locally"
guineawheek 10a6e36
server image is significantly less stupid
guineawheek 496a9d0
fix ssh
guineawheek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Exit on errors, print commands, ignore unset variables | ||
| set -ex +u | ||
|
|
||
| # change hostname | ||
| sed -i 's/orangepi6plus/photonvision/g' /etc/hostname | ||
| sed -i 's/orangepi6plus/photonvision/g' /etc/hosts | ||
|
|
||
| # silence log spam from dpkg | ||
| cat > /etc/apt/apt.conf.d/99dpkg.conf << EOF | ||
| Dpkg::Progress-Fancy "0"; | ||
| APT::Color "0"; | ||
| Dpkg::Use-Pty "0"; | ||
| EOF | ||
|
|
||
| apt-get -q update | ||
|
|
||
| before=$(df --output=used / | tail -n1) | ||
| # clean up stuff | ||
|
|
||
| # remove build-essential for minor space savings | ||
| apt-get --yes purge --allow-change-held-packages -q *-dev git | ||
| apt-get --yes autoremove --allow-change-held-packages --purge | ||
|
|
||
| after=$(df --output=used / | tail -n1) | ||
| freed=$(( before - after )) | ||
| echo "Freed up $freed KiB" | ||
|
|
||
| # run Photonvision install script | ||
| chmod +x ./install.sh | ||
| ./install.sh --install-nm=yes --arch=aarch64 --version="$1" | ||
|
|
||
| echo "Installing additional things" | ||
| apt-get --yes -qq install libc6 libstdc++6 | ||
|
|
||
| # modify photonvision.service to enable big cores | ||
| # For reasons beyond human comprehension, the little cores are on 2, 3, 4, and 5. | ||
| sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=0,1,6-11/g' /lib/systemd/system/photonvision.service | ||
| cp -f /lib/systemd/system/photonvision.service /etc/systemd/system/photonvision.service | ||
| chmod 644 /etc/systemd/system/photonvision.service | ||
| cat /etc/systemd/system/photonvision.service | ||
|
|
||
| # networkd isn't being used, this causes an unnecessary delay | ||
| systemctl disable systemd-networkd-wait-online.service | ||
|
|
||
| # PhotonVision server is managing the network, so it doesn't need to wait for online | ||
| systemctl disable NetworkManager-wait-online.service | ||
|
|
||
| # there's no internal bluetooth or wifi on the opi6plus | ||
|
|
||
| # there's also no...preinstalled ssh keys. | ||
| ssh-keygen -A | ||
|
|
||
| rm -rf /var/lib/apt/lists/* | ||
| apt-get --yes -qq clean | ||
|
|
||
| rm -rf /usr/share/doc | ||
| rm -rf /usr/share/locale/ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.