Skip to content

Commit

Permalink
not detecting the RK3588 in chroot, so enable big cores here
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Oct 13, 2024
1 parent 4bd2902 commit a88a6fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ apt-get update --quiet

before=$(df --output=used / | tail -n1)
# clean up stuff
echo 'Purging snaps'

# get rid of snaps
echo "Purging snaps"
rm -rf /var/lib/snapd/seed/snaps/*
rm -f /var/lib/snapd/seed/seed.yaml
apt-get purge --yes --quiet lxd-installer lxd-agent-loader
Expand Down Expand Up @@ -62,6 +63,14 @@ systemctl disable systemd-networkd-wait-online.service
# the bluetooth service isn't needed and causes a delay at boot
systemctl disable ap6275p-bluetooth.service

# enable big cores
echo "Enabling big cores"
sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/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
systemctl daemon-reload
systemctl enable photonvision.service

rm -rf /var/lib/apt/lists/*
apt-get --yes --quiet clean

Expand Down

0 comments on commit a88a6fa

Please sign in to comment.